| | |
| | | </div> |
| | | </div> |
| | | <div class="flex justify-between"> |
| | | <div class="py-2 px-8 rounded-full text-13 font-medium bg-white">{{item.change_ratio}}</div> |
| | | <div class="py-2 px-8 rounded-full text-13 font-medium bg-white">{{item.change_ratio_str}}</div> |
| | | <span class="text-18">→</span> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="text-center">{{t('理財')}}</div> |
| | | </div> |
| | | <div class="flex-1 flex flex-col items-center" @click="goToPage('/cryptos/trade/btcusdt')"> |
| | | <div class="flex-1 flex flex-col items-center" @click="goToPage('/cryptos/trade/USDSGD')"> |
| | | <div class="w-40 h-40 rounded-full flex items-center justify-center"> |
| | | <img class="w-33 h-33" src="@/assets/c.jpg" draggable="false"> |
| | | </div> |
| | |
| | | import { showToast } from 'vant' |
| | | import { useI18n } from 'vue-i18n' |
| | | import { useRouter } from 'vue-router' |
| | | import { _getCoinList } from '@/service/quotes.api' |
| | | import { setStorage } from '@/utils/index' |
| | | const router = useRouter() |
| | | |
| | | const { t } = useI18n() |
| | |
| | | console.log('user', user) |
| | | username.value = user.userInfo?.username || '' |
| | | usercode.value = user.userInfo?.usercode || '' |
| | | |
| | | // 如果本地没有 coins,拉取接口 |
| | | const quotesData = await _getCoinList() |
| | | setStorage('qoutes', { coins: quotesData }) // 存到本地 |
| | | }) |
| | | |
| | | const goToExplanation = () => { |