Browse Source

修改合约不能进行搜索

master
liaoxinyu 2 years ago
parent
commit
be3b5771f9
  1. 22
      src/views/contract/index.vue
  2. 3
      src/views/exchange/symbols.vue

22
src/views/contract/index.vue

@ -212,16 +212,24 @@
filterCoin: {
handler(n, o) {
if (!n) {
this.contractListFilter = this.contractList;
this.Liste = this.contractListFilter[0].marketInfoList;
} else {
this.contractListFilter = this.contractList.map((item1, index1) => {
let arr = item1;
arr.marketInfoList = item1.marketInfoList.filter(item2 => {
return item2.symbol.indexOf(n.toUpperCase()) != -1
})
return arr;
this.Liste = this.Liste.filter(item2 => {
return item2.symbol.indexOf(n.toUpperCase()) != -1
})
}
// if (!n) {
// this.contractListFilter = this.contractList;
// } else {
// this.contractListFilter = this.contractList.map((item1, index1) => {
// let arr = item1;
// arr.marketInfoList = item1.marketInfoList.filter(item2 => {
// return item2.symbol.indexOf(n.toUpperCase()) != -1
// })
// console.log(arr,'111');
// return arr;
// })
// }
},
immediate: true
}

3
src/views/exchange/symbols.vue

@ -49,7 +49,8 @@
<tr style="display:block" :class="{highlight : item.pair_id == marketId}" @click="$emit('update:symbol', item.symbol)" v-for="(item, key) in coin.marketInfoList" :key="key" v-show="isShow(item)">
<td class="w-33" style="white-space:nowrap">
<!-- <i class="icon ion-md-star h6" :class="{ active: isCoolect(item) }" @click.self="handleFav(item)"></i> -->
<img :src="item.coin_icon" width="20" />
<img :src="item.coin_icon" width="20" v-if="item.coin_name !== 'TRX'" />
<img src="https://seee.ewmcoin.com/storage/images/trx.png" width="20" v-else />
{{ coin.coin_name == 'fav' ? item.pair_name : item.coin_name + '/' + coin.coin_name}}
</td>
<td class="w-33 text-right" :class="increaseStrColor(item)">

Loading…
Cancel
Save