| | |
| | | >₹{{ singDetails.preclose_px }}</span |
| | | > |
| | | </div> |
| | | <div class="rights bots"> |
| | | <div class="rights bots"> |
| | | <span class="titles">{{ $t("hj75") }}</span> |
| | | <!-- <span :class="singDetails.preclose_px < 0 ? 'number green' : 'number red'">{{ |
| | | singDetails.today_min |
| | |
| | | </div> |
| | | </div> |
| | | <div class="k_line_detail"> |
| | | <Kline :type="singDetails.type" /> |
| | | <Kline :key="key" :type="singDetails.type" /> |
| | | </div> |
| | | <div |
| | | class="priect_top_bottom" |
| | |
| | | newsdetailList: [], |
| | | bayType: "", |
| | | timer: null, |
| | | key:0, |
| | | }; |
| | | }, |
| | | components: { |
| | |
| | | } else { |
| | | this.timer = setInterval(() => { |
| | | this.getSingDetails(); |
| | | }, 500); |
| | | }, 2000); |
| | | } |
| | | this.getOpation(); |
| | | // this.$Lazyload(); |
| | |
| | | this.getNohknews(); |
| | | }, |
| | | beforeDestroy() { |
| | | this.clearInterval(this.timer); // 在组件销毁前清除定时器 |
| | | this.clearStockTimer(); |
| | | }, |
| | | // beforeDestroy() { |
| | | // this.Klinetype = false; |
| | | // window.clearInterval() |
| | | // }, |
| | | methods: { |
| | | clearStockTimer() { |
| | | if (this.timer) { |
| | | clearInterval(this.timer); |
| | | this.timer = null; |
| | | } |
| | | }, |
| | | async getHknews() { |
| | | await api.queryIndexNews().then((res) => { |
| | | if (res.status === 0) { |
| | |
| | | } |
| | | }, |
| | | handleBackaa() { |
| | | clearInterval(this.timer); |
| | | this.clearStockTimer(); |
| | | window.localStorage.removeItem("kLine"); |
| | | this.$router.go(-1); |
| | | }, |
| | |
| | | }); |
| | | }, |
| | | goBuy(index) { |
| | | clearInterval(this.timer); |
| | | this.clearStockTimer(); |
| | | this.$router.push({ |
| | | path: "/TradingBuy", |
| | | query: { |
| | |
| | | .top_now { |
| | | width: 100%; |
| | | // height: 65%; |
| | | font-size: 0.741rem; |
| | | font-size: 25px; |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | font-weight: bold; |
| | | span { |
| | | font-weight: 500; |
| | | } |