lxf
2025-07-15 1fcd8481799bb4c789db22c040d01c91153104b4
style
2 files modified
62 ■■■■ changed files
src/components/Transform/list-quotation/index.vue 50 ●●●● patch | view | raw | blame | history
src/views/authentication/components/nationalityList.vue 12 ●●●● patch | view | raw | blame | history
src/components/Transform/list-quotation/index.vue
@@ -1,21 +1,6 @@
<template>
  <div class="list-quatation">
    <!-- <ex-tabs @tabs="onTabs"></ex-tabs> -->
    <van-list>
      <!-- <van-cell>
        <div class="flex items-center w-full text-grey font-26">
          <p class="left text-left">
            <span>{{ $t('交易对') }}
            </span>
          </p>
          <p class="mid text-right">
            {{ $t('最新价') }}
          </p>
          <p class="right text-right">
            {{ active == 3 ? $t('成交额') : $t('24h涨跌幅') }}
          </p>
        </div>
      </van-cell> -->
      <!-- 热门 -->
      <div class="flex items-end justify-between" style="margin: 14px 0;">
        <div class="block text-22 font-medium">{{ $t('Market') }}</div>
@@ -29,8 +14,6 @@
            style="z-index:999;margin-top: 0.8rem;" v-show="isTopShow">
            <div @click="changeType('货币兑换', 2)">{{ $t('货币兑换') }}</div>
            <div @click="changeType('外汇交易', 1)">{{ $t('外汇交易') }}</div>
            <!-- <div>期貨</div>
            <div>收藏</div> -->
          </div>
        </div>
      </div>
@@ -48,36 +31,26 @@
                  <span class="flex items-end font-32 flex items-center">
                    <span class="textColor font-600 font-30">{{ item.name || '--'
                      }}</span>
                    <!-- <span class="font-24 text-grey" style="position: relative; top: 1px">
                      /USDT
                    </span> -->
                    <!-- <span class="font-24 text-grey" style="position: relative; top: 1px">
                      {{ item.name && item.name.replace(item.symbol.toUpperCase(), '') || '--' }}</span> -->
                  </span>
                  <span class="font-24 text-grey text-left">{{ (item.amount * 1).toFixed(2) }}</span>
                </p>
              </li>
              <li class="flex flex-col items-end mid">
                <p class="textColor font-32 font-600">{{ item.close || '--' }}</p>
                <!-- <p class="font-24 text-grey">{{ currency.currency_symbol }}
                  {{ item.close && item.symbol_data.toUpperCase() == 'SHIB' ? (item.close * currency.rate).toFixed(8) : (item.close *
                    currency.rate).toFixed(2) || '--' }}</p> -->
              </li>
              <li class="right flex items-center justify-end">
                <p class="w-153 font-31 h-71 bg-green text-white border-0 text-center btn" v-if="item.change_ratio > 0">
                  {{ (item.change_ratio === 0 ? 0 : item.change_ratio) }}%</p>
                <p class="w-153 font-31 h-71 bg-red text-white border-0 text-center btn" v-else>
                  {{ (item.change_ratio === 0 ? 0 : item.change_ratio) }}%</p>
                <p
                  class="w-153 font-31 h-71 text-white border-0 text-center btn"
                  :class="item.change_ratio > 0 ? 'bg-green' : 'bg-red'"
                >
                  {{ item.change_ratio === 0 ? 0 : item.change_ratio }}%
                </p>
              </li>
            </ul>
          </van-cell>
        </div>
      </transition-group>
    </van-list>
    <!-- <div class="flex flex-col justify-center items-center pb-58 mt-20" @click="$router.push('/quotes/?active=3')" v-if="showMore">
        <p class="text-grey font-28 mb-8">{{ $t('查看') }}</p>
        <img src="./icon-arrow_more.png" alt="more" class="w-24 h-10"/>
    </div> -->
  </div>
</template>
<script>
@@ -152,20 +125,9 @@
        });
      } else {
        setStorage('symbol', item.symbol)
        // /cryptos/perpetualContract/btcusdt?selectIndex=2
        this.$router.push({
          path: `/cryptos/trade/${item.symbol}`,
          // path: `/cryptos/perpetualContract/${item.symbol}`,
          // query: { selectIndex: 2 }
        });
        //  this.$router.push({
        //   path: `/foreign/deliveryContract/${item.symbol}`,
        //   query: { type: 'cryptos' }
        // });
        // this.$router.push({
        //   path: `/cryptos/perpetualContract/${item.symbol}`,
        //   query: { type: 'cryptos' }
        // });
      }
    },
    handleImage(url) {
src/views/authentication/components/nationalityList.vue
@@ -2,8 +2,8 @@
    <div class="nationList">
        <van-action-sheet v-model:show="isShow" :title="props.title">
            <form>
                <van-search class="tabBackground" v-model="val" :placeholder="$t('entrynational')" @input="onSearch(val)"
                    @clear="onClear" />
                <van-search class="tabBackground" v-model="val" :placeholder="$t('entrynational')"
                    @input="onSearch(val)" @clear="onClear" />
            </form>
            <div class="flex pl-30 pr-30 pt-30 pb-30 justify-between list-view box-border textColor container"
@@ -220,12 +220,12 @@
@import "intl.css";
:deep(.van-action-sheet__header) {
    background-color: $main2_background;
    // background-color: $main2_background;
    color: $text_color;
}
.container {
    background-color:  $main2_background;
    // background-color:  $main2_background;
}
.van-action-sheet__header {
@@ -239,11 +239,11 @@
}
:deep(.van-search__content) {
    background: $tab_background;
    // background: $tab_background;
    color: $text_color;
}
:deep(.van-action-sheet__content) {
    background:  $selectSymbol_background;
    // background:  $selectSymbol_background;
}
</style>