|
|
@@ -46,7 +46,7 @@
|
|
|
<view class="circle-icon">
|
|
|
<cwg-icon name="crm-ellipsis-vertical" :size="16" color="#2e3a47" />
|
|
|
</view>
|
|
|
- <text class="circle-label" v-t="'Latest.More'" />
|
|
|
+ <text class="circle-label" v-t="'vu.item7'" />
|
|
|
</view>
|
|
|
</cwg-dropdown>
|
|
|
</view>
|
|
|
@@ -56,9 +56,9 @@
|
|
|
<template v-for="(item, index) in actionButtons" :key="index">
|
|
|
<view class="action-btn" :class="{ 'primary': item.primary, 'is-disabled': item.disabled }"
|
|
|
@click="handleAction1(item)" v-if="!item.needDemo">
|
|
|
- <span class="btn-icon">
|
|
|
+ <text class="btn-icon">
|
|
|
<cwg-icon :name="item.icon" :size="16" :color="item.color" />
|
|
|
- </span>
|
|
|
+ </text>
|
|
|
<text v-t="item.label" />
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -78,21 +78,22 @@
|
|
|
<view class="info-section">
|
|
|
<view class="info-column">
|
|
|
<cwg-label-line-value :label="t('Label.Leverage')" :value="account.actualLeverage" />
|
|
|
- <cwg-label-line-value label="浮动盈/亏" :value="account.floatingPL" />
|
|
|
+ <cwg-label-line-value :label="t('Documentary.console.item5')" :value="account.floatingPL" />
|
|
|
<cwg-label-line-value :label="t('Label.Balance')" :value="account.balanceWithSymbol" />
|
|
|
</view>
|
|
|
<view class="info-column">
|
|
|
<cwg-label-line-value :label="t('Label.Equity')" :value="account.equityWithSymbol" />
|
|
|
<cwg-label-line-value :label="t('Label.Credit')" :value="account.creditWithSymbol" />
|
|
|
- <cwg-label-line-value label="平台" :value="account.platform" />
|
|
|
+ <cwg-label-line-value :label="t('Documentary.console.item3')" :value="account.platform" />
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 额外操作行(服务器、登录、更改密码,折叠时隐藏) -->
|
|
|
<view class="extra-actions">
|
|
|
<!-- 登录复制行 -->
|
|
|
<view class="copy-row">
|
|
|
- <span class="label">{{ account.platform }} 登陆</span>
|
|
|
- <span class="value">{{ account.login }}</span>
|
|
|
+ <text class="label">{{ account.platform }}</text>
|
|
|
+ <text class="label" v-t="'signin.title'" />
|
|
|
+ <text class="value">{{ account.login }}</text>
|
|
|
<view class="copy-btn" @click="copy(account.login)">
|
|
|
<cwg-icon name="copy" :size="16" color="#2e3a47" />
|
|
|
</view>
|
|
|
@@ -100,10 +101,10 @@
|
|
|
|
|
|
<!-- 更改交易密码按钮 -->
|
|
|
<view class="change-password-btn" @click="handleAction('changePassword1')" v-if="!isDemo">
|
|
|
- <span class="btn-icon">
|
|
|
+ <text class="btn-icon">
|
|
|
<cwg-icon name="crm-xg" :size="16" color="#2e3a47" />
|
|
|
- </span>
|
|
|
- 更改交易密码
|
|
|
+ </text>
|
|
|
+ <text v-t="'vu.item3'" />
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -112,9 +113,9 @@
|
|
|
<view class="notificators"></view>
|
|
|
<TerminalDialog v-model:visible="terminalDialogVisible" />
|
|
|
<TerminalChangePasswordDialog v-model:visible="terminalChangePasswordDialogVisible" :pwdType="pwdType"
|
|
|
- :account="account" />
|
|
|
+ :account="account" :accountLabel="t('Documentary.tradingCenter.item29') + ' # '" />
|
|
|
<TerminalInfoDialog v-model:visible="terminalInfoDialogVisible" :accountNumber="accountInfo.login"
|
|
|
- :form="accountInfo" :fieldList="fieldList" />
|
|
|
+ :form="accountInfo" :fieldList="fieldList" :title="t('Documentary.TundManagement.item29')" :accountLabel="t('Documentary.tradingCenter.item29') + ' # '" />
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
@@ -151,7 +152,6 @@ export interface Account {
|
|
|
}
|
|
|
const isDemo = computed(() => accountInfo.value.listType == 'demo')
|
|
|
const closeFunctionOpen = (code) => {
|
|
|
- console.log(code, 121212);
|
|
|
const closeFunctions = accountInfo.value.closeFunctions || ""
|
|
|
|
|
|
if (closeFunctions == null || closeFunctions === "") {
|
|
|
@@ -175,14 +175,14 @@ const actionButtons = computed(() => [
|
|
|
{ key: 'transfer', label: 'Custom.Index.Transfer', icon: 'crm-transfer', color: '#2e3a47', primary: false, action: 'transfer', needDemo: isDemo.value, disabled: !(closeFunctionOpen('5') && closeFunctionOpen('6') && closeFunctionOpen('3')) }
|
|
|
])
|
|
|
const fieldList = ref([
|
|
|
- { label: '账户类型', key: 'nickname', copyable: false },
|
|
|
- { label: t('Label.Leverage'), key: 'actualLeverage', copyable: false },
|
|
|
- { label: '浮动盈/亏', key: 'floatingPL', copyable: false },
|
|
|
- { label: t('Label.Balance'), key: 'balanceWithSymbol', copyable: false },
|
|
|
- { label: t('Label.Equity'), key: 'equityWithSymbol', copyable: false },
|
|
|
- { label: t('Label.Credit'), key: 'creditWithSymbol', copyable: false },
|
|
|
- { label: '平台', key: 'platform', copyable: false },
|
|
|
- { label: '账号', key: 'login', copyable: true }
|
|
|
+ { label: 'Custom.PaymentHistory.AccountType', key: 'nickname', copyable: false },
|
|
|
+ { label: 'Label.Leverage', key: 'actualLeverage', copyable: false },
|
|
|
+ { label: 'Documentary.console.item5', key: 'floatingPL', copyable: false },
|
|
|
+ { label: 'Label.Balance', key: 'balanceWithSymbol', copyable: false },
|
|
|
+ { label: 'Label.Equity', key: 'equityWithSymbol', copyable: false },
|
|
|
+ { label: 'Label.Credit', key: 'creditWithSymbol', copyable: false },
|
|
|
+ { label: 'Documentary.console.item3', key: 'platform', copyable: false },
|
|
|
+ { label: 'Documentary.console.item4', key: 'login', copyable: true }
|
|
|
])
|
|
|
const nickName = ref(accountInfo.value.nickName)
|
|
|
|
|
|
@@ -261,7 +261,7 @@ const handleAction = (type: string) => {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
-const customMenuList = computed(() => !isDemo.value ? [{ label: '修改交易密码', type: 'changePassword1' }, { label: '修改投资者密码', type: 'changePassword2' }, { label: '账户信息', type: 'info' }] : [{ label: '账户信息', type: 'info' }])
|
|
|
+const customMenuList = computed(() => !isDemo.value ? [{ label: t('vu.item3'), type: 'changePassword1' }, { label: t('vu.item4'), type: 'changePassword2' }, { label: t('Documentary.TundManagement.item29'), type: 'info' }] : [{ label: t('Documentary.TundManagement.item29'), type: 'info' }])
|
|
|
const handleCustomClick = (item, index) => {
|
|
|
handleAction(item.value.type)
|
|
|
}
|
|
|
@@ -418,6 +418,7 @@ onBeforeUnmount(() => {
|
|
|
justify-content: center;
|
|
|
color: #2e3a47;
|
|
|
transition: background-color 0.2s;
|
|
|
+
|
|
|
&.primary {
|
|
|
background-color: var(--color-navy-700);
|
|
|
color: #fff;
|
|
|
@@ -562,7 +563,7 @@ onBeforeUnmount(() => {
|
|
|
|
|
|
.label {
|
|
|
color: #6c8595;
|
|
|
- min-width: px2rpx(70);
|
|
|
+ min-width: px2rpx(30);
|
|
|
}
|
|
|
|
|
|
.value {
|