李凌
2025-12-16 9337c3cf960b60078558b7f942fd27f1ab39364b
src/views/my/assets.vue
@@ -2,8 +2,8 @@
    <div class="assets">
        <div class="assets_title">{{ $t('总资产估值') }}</div>
        <div class="assets_money font-bold mt-5 flex justify-start items-end">
            {{ currency.currency_symbol }}{{ forexAssets?.money_contract ?
                (forexAssets?.money_contract * (currency.rate ?? 0)).toFixed(2) : '0.00' }}
            {{ currency.currency_symbol }}{{ formatWithCommas(forexAssets?.money_contract ?
                (forexAssets?.money_contract * (currency.rate ?? 0)).toFixed(2) : '0.00') }}
            <div class="pricing_jj ml-5">
                {{ pricing }}
@@ -14,12 +14,16 @@
                </van-dropdown-item>
            </van-dropdown-menu>
        </div>
        <div class="assets_revenue mt-5">
            <span>{{ $t('ProfitDay') }}</span>
            {{ currency.currency_symbol }}{{ forexAssets?.money_contract_profit_today ?
                (forexAssets?.money_contract_profit_today * (currency.rate ?? 0)).toFixed(2) :
                '--' }}
        </div>
        <!-- <div class="assets_revenue mt-5">
            <span>{{ $t('当日') }}</span>
            {{ currency.currency_symbol }}
            <span
                :style="forexAssets?.money_contract_profit_today > 0 ? 'color:green' : forexAssets?.money_contract_profit_today < 0 ? 'color:red' : ''">
                {{ forexAssets?.money_contract_profit_today ?
                    (forexAssets?.money_contract_profit_today * (currency.rate ?? 0)).toFixed(2) :
                    '--' }}
            </span>
        </div> -->
        <div class="tabbers flex justify-between mt-20 pl-1 pr-1">
            <div class="item" v-for="item in tabList" :key="item.key" @click="toPage(item.path)">
@@ -40,15 +44,15 @@
                <div class="assets_item flex justify-start items-center mt-14 font-bold">
                    <div class="icon" style="background-color: #8A90FE;"></div>
                    <span class="ml-5 flex-1">{{ $t('资金账户') }}</span>
                    <span class="mr-5">{{ assetObj.capital }}</span>
                    <span class="mr-5">{{ formatWithCommas(assetObj.capital) }}</span>
                    <van-icon name="arrow" />
                </div>
                <div class="assets_item flex justify-start items-center mt-14 font-bold">
                <!-- <div class="assets_item flex justify-start items-center mt-14 font-bold">
                    <div class="icon" style="background-color: #f7b600;"></div>
                    <span class="ml-5 flex-1">{{ $t('交易账户') }}</span>
                    <span class="mr-5">{{ assetObj.contract }}</span>
                    <span class="mr-5">{{ formatWithCommas(assetObj.contract) }}</span>
                    <van-icon name="arrow" />
                </div>
                </div> -->
            </van-collapse-item>
        </van-collapse>
@@ -181,12 +185,16 @@
<style lang="scss" scoped>
@import '@/assets/theme/index.scss';
.assets {
    min-height: 100vh;
    background: $mainbgWhiteColor;
    padding: 2.8rem 2rem 10rem 2rem;
    $assets_title_color: #9a9a9a;
    color: $assets_title_color;
    @include themify() {
        color: themed("text_color2");
    }
    :deep(.van-cell) {
        padding-left: 0;
@@ -212,8 +220,11 @@
    }
    .assets_money {
        color: $text_color4;
        font-size: 3.4rem;
        @include themify() {
            color: themed("text_color");
        }
        .pricing_jj {
            font-size: 1.6rem;
@@ -245,13 +256,19 @@
    .assets_revenue {
        font-size: 2rem;
        color: #646464;
        font-weight: 600;
        @include themify() {
            color: themed("text_color1");
        }
        span {
            color: #6e6e6e;
            text-decoration: underline dotted;
            font-weight: 400;
            @include themify() {
                color: themed("text_color1");
            }
        }
    }
@@ -260,7 +277,10 @@
            $item_width: 8.3rem;
            width: $item_width;
            font-size: 1.8rem;
            color: $text_color4;
            @include themify() {
                color: themed("text_color2");
            }
            img {
                height: $item_width;
@@ -292,8 +312,11 @@
    }
    .assets_item {
        color: $text_color4;
        font-size: 2.1rem;
        @include themify() {
            color: themed("text_color2");
        }
        .icon {
            width: 1.8rem;
@@ -309,8 +332,11 @@
        }
        .assets_item_light {
            color: #9b9b9b;
            font-weight: 300;
            @include themify() {
                color: themed("text_color2");
            }
        }
    }
}