| | |
| | | newsdetailList: [], |
| | | bayType: "", |
| | | timer: null, |
| | | key: 0 |
| | | key: 0, |
| | | preMarket:0, |
| | | }; |
| | | }, |
| | | components: { |
| | |
| | | }, |
| | | |
| | | created() { |
| | | // 进入页面的时候清除所以得计时器,防止页面切换的时候出现多个定时器 |
| | | let end = setTimeout(function() {}, 0); |
| | | for (let i = 0; i <= end; i++) { |
| | | clearTimeout(i); |
| | | clearInterval(i); |
| | | } |
| | | |
| | | const { query } = this.$route; |
| | | this.kLineDetails = query; |
| | | if (query.if_us === "1") { |
| | |
| | | this.getSingDetails(); |
| | | this.timer = setInterval(() => { |
| | | this.getSingDetails(); |
| | | }, 5000); |
| | | }, 2000); |
| | | } |
| | | this.getOpation(); |
| | | this.getUserInfo(); |
| | |
| | | if (res.status === 0) { |
| | | this.singDetails = res.data.stock; |
| | | this.bayType = res.data.stock.type; |
| | | |
| | | this.preMarket = res.data.stock.preMarket |
| | | if (res.data.introduction) { |
| | | this.jianjie = res.data.introduction; |
| | | } else { |
| | |
| | | spell: this.singDetails.spell, |
| | | if_us: this.kLineDetails.if_us, |
| | | bayType: this.bayType, |
| | | gid: this.singDetails.gid |
| | | gid: this.singDetails.gid, |
| | | preMarket:this.preMarket |
| | | } |
| | | }); |
| | | if (navigator.vibrate) { |