| | |
| | | }); |
| | | }, |
| | | mounted() { |
| | | |
| | | this.GET_UERS_KYC(); |
| | | let symbol = this.$route.params.symbol; |
| | | let type = this.$route.params.aa; |
| | |
| | | ...mapActions("user", ["GET_UERS_KYC"]), |
| | | typeclick(e) { |
| | | this.typeindex = e |
| | | if(e==0){ |
| | | this.initParama(this.symbol) |
| | | }else{ |
| | | // this.symbol = 'wld' |
| | | this.initParam(this.symbol) |
| | | } |
| | | // if(e==0){ |
| | | // this.initParama(this.symbol) |
| | | // }else{ |
| | | // // this.symbol = 'wld' |
| | | // this.initParam(this.symbol) |
| | | // } |
| | | this.$forceUpdate() |
| | | }, |
| | | onUpdate(symbol,name) { |
| | |
| | | }, |
| | | fetchDeepData(symbol) { |
| | | console.log("sd"); |
| | | this.typeclick(0) |
| | | _getDeepData(symbol).then((data) => { |
| | | // 获取深度 |
| | | console.log(data); |
| | |
| | | }else{ |
| | | this.closeSocket(); |
| | | } |
| | | |
| | | |
| | | if(this.symbol=="jkrt"){ |
| | | this.symbol = 'axs' |
| | | } |
| | | this.socket = new WebSocket(`${WS_URL}/3/${this.symbol}`); |
| | | |
| | | this.socket.onopen = () => { |
| | |
| | | console.log("symbol", this.symbol); |
| | | if (!this.symbol) { |
| | | return; |
| | | } |
| | | if(this.symbol=="jkrt"){ |
| | | this.symbol = 'axs' |
| | | } |
| | | this.socket = new WebSocket(`${WS_URL}/1/${this.symbol}`); |
| | | this.socket.onmessage = (evt) => { |
| | |
| | | }, |
| | | startQuoteSocket() { |
| | | // 行情socket |
| | | if(this.symbol=="jkrt"){ |
| | | this.symbol = 'axs' |
| | | } |
| | | this.sockets.quotes = new WebSocket(`${WS_URL}/1/${this.symbol}`); |
| | | // socket.onopen = () => { |
| | | // console.log('open') |