| | |
| | | <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 }} |
| | |
| | | </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)"> |
| | |
| | | <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> |
| | | |
| | |
| | | |
| | | |
| | | <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; |
| | |
| | | } |
| | | |
| | | .assets_money { |
| | | color: $text_color4; |
| | | font-size: 3.4rem; |
| | | |
| | | @include themify() { |
| | | color: themed("text_color"); |
| | | } |
| | | |
| | | .pricing_jj { |
| | | font-size: 1.6rem; |
| | |
| | | |
| | | .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"); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | $item_width: 8.3rem; |
| | | width: $item_width; |
| | | font-size: 1.8rem; |
| | | color: $text_color4; |
| | | |
| | | @include themify() { |
| | | color: themed("text_color2"); |
| | | } |
| | | |
| | | img { |
| | | height: $item_width; |
| | |
| | | } |
| | | |
| | | .assets_item { |
| | | color: $text_color4; |
| | | font-size: 2.1rem; |
| | | |
| | | @include themify() { |
| | | color: themed("text_color2"); |
| | | } |
| | | |
| | | .icon { |
| | | width: 1.8rem; |
| | |
| | | } |
| | | |
| | | .assets_item_light { |
| | | color: #9b9b9b; |
| | | font-weight: 300; |
| | | |
| | | @include themify() { |
| | | color: themed("text_color2"); |
| | | } |
| | | } |
| | | } |
| | | } |