| | |
| | | <van-col :span="active == 'DZ' ? '12' : '7'"> |
| | | <div > |
| | | <div class="tp" style="display: flex;flex-direction: column;"> |
| | | <span style="margin-bottom: 10px;font-size: .32rem;color: #858093;">{{$t('最新价')}}</span> |
| | | <span style="margin-bottom: 10px;font-size: .32rem;color: #858093;">{{$t('hj40')}}</span> |
| | | <div style="display: flex;"> |
| | | <span class="price_color" style="font-size: 16px;font-weight: bold;"> |
| | | {{ item.nowPrice }} |
| | | </span> |
| | | <img v-if="item.hcrateP.charAt(0) == '-'" style="width: 18px;" src="@/assets/home/greeensvg.png"/> |
| | | <img v-else style="width: 18px;" src="@/assets/home/R10OVD4.png"/> |
| | | <div v-if="active != 'DZ'"> |
| | | <img v-if="item.hcrateP.charAt(0) == '-'" style="width: 18px;" src="@/assets/home/greeensvg.png"/> |
| | | <img v-else style="width: 18px;" src="@/assets/home/R10OVD4.png"/> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="bt" v-if="active != 'DZ'"> |
| | |
| | | stockType = array[0].name; |
| | | } else { |
| | | let array = this.zxtabsList.filter((item) => item.key === b); |
| | | console.log(this.zxtabsList, b); |
| | | stockType = array[0].name; |
| | | } |
| | | let pageNumVal = c || this.pageNumVal; |
| | | // console.log(this.zxtabsList, b); |
| | | let opt = { |
| | | pageNum: pageNumVal, |
| | | pageSize: 20 * this.num, |
| | |
| | | if (pageNumVal !== 1) { |
| | | this.listArr = [...this.listArr, ...data.data.list]; |
| | | } else { |
| | | this.listArr = [] |
| | | if (this.active) { |
| | | if (this.active === data.data.stockType) { |
| | | this.listArr = data.data.list; |
| | |
| | | initWebSocket() { |
| | | console.log("initWebSocket"); |
| | | this.Trade = new WhrWebSocket({ |
| | | path: `wss://wss.yanshiz.com/websocket-server `, |
| | | path: `wss://wss.bycarlyle.com/websocket-server `, |
| | | onmessage: this.getTradeMessage, |
| | | }); |
| | | |