| | |
| | | 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 v-if="isTrade" src="../../../assets/image/kline.png" class="w-44 h-44 right" alt="" |
| | | @click="$router.push(`/cryptos/trendDetails/${symbol}?kineType=trade`)"> |
| | | <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> |
| | | </div> |
| | | <!-- 左侧边弹出菜单 --> |
| | |
| | | </div> |
| | | <div class="text-right"> |
| | | <div class="textColor font-28">{{ item.close || '--' }}</div> |
| | | <div class="mt-10 font-28" :class="item.change_ratio_str > 0 ? 'text-green' : 'text-red'"> |
| | | {{ item.change_ratio_str }}%</div> |
| | | <div class="mt-10 font-28" :class="item.change_ratio > 0 ? 'text-green' : 'text-red'"> |
| | | {{ item.change_ratio }}%</div> |
| | | </div> |
| | | </div> |
| | | </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=forex`) |
| | | } else { |
| | | this.$router.push('/login') |
| | | } |
| | | }, |
| | | async onSidebar() { // 侧边栏打开 |
| | | // console.log(this.userInfo) |
| | | // 优先用本地缓存的 coins |