| | |
| | | v-if="isCollect" /> |
| | | <img v-else src="../../../assets/image/icon-star.png" class="w-30 h-30 mr-10 ml-20" @click="openCurrency" /> |
| | | </div> |
| | | <img src="../../../assets/image/public/record.png" alt="record-img" class="w-44 h-44 " |
| | | @click="goHistory" /> |
| | | |
| | | <img v-if="isTrade" src="../../../assets/image/kline.png" class="w-44 h-44 right" alt="" |
| | | @click="$router.push(`/cryptos/trendDetails/${symbol}?kineType=trade`)"> |
| | | </div> |
| | |
| | | } |
| | | this.show = false |
| | | }, |
| | | goHistory() { |
| | | if (this.$store.state.user.userInfo.token) { |
| | | let type = 'cryptos' |
| | | if (this.$route.query.type) { |
| | | type = this.$route.query.type |
| | | } |
| | | this.$router.push(`/cryptos/tradeRecord/${this.symbol}/?type=${type}`) |
| | | } else { |
| | | this.$router.push('/login') |
| | | } |
| | | }, |
| | | async onSidebar() { // 侧边栏打开 |
| | | // console.log(this.userInfo) |
| | | // 优先用本地缓存的 coins |