Handy_Cao преди 3 дни
родител
ревизия
9e8da94fbb

+ 9 - 2
public/locales/en-US.json

@@ -1851,7 +1851,7 @@
         "openAmount": "OpenAmount",
         "maxBalance": "AvaiableMoney",
         "maxBuyQty": "MaxBuyQty",
-        "buyEstimatedFee": "EstimatedFee",
+        "buyEstimatedFee": "BuyEstimatedFee",
         "pricemode": "PriceMode",
         "orderprice": "OrderPrice",
         "marketprice": "MarketPrice",
@@ -1901,6 +1901,13 @@
         "news": "News & Information",
         "tips17": "Please enter the MEMO",
         "tips18": "Whether to activate the current account",
-        "tips19": "Account is activated"
+        "tips19": "Account is activated",
+        "prepayment": "Pre-Payment",
+        "preacquisition": "Pre-Acquisition",
+        "canbuymax": "CanBuyMax",
+        "tipps20": "Please activate the fund account first",
+        "sellEstimatedFee": "SellEstimatedFee",
+        "cangetamount": "Amount Available",
+        "cansellmax": "CanSellMax"
     }
 }

+ 8 - 1
public/locales/th-TH.json

@@ -1904,6 +1904,13 @@
         "news": "新聞資訊",
         "tips17": "請輸入MEMO",
         "tips18": "是否激活当前账户",
-        "tips19": "账户已激活"
+        "tips19": "账户已激活",
+        "prepayment": "預估支付",
+        "preacquisition": "預估獲取",
+        "canbuymax": "可買數量",
+        "tipps20": "請先激活資金賬戶",
+        "sellEstimatedFee": "預估手續費",
+        "cangetamount": "可獲金額",
+        "cansellmax": "可賣數量"
     }
 }

+ 8 - 1
public/locales/vi-VN.json

@@ -1901,6 +1901,13 @@
         "news": "新聞資訊",
         "tips17": "請輸入MEMO",
         "tips18": "是否激活当前账户",
-        "tips19": "账户已激活"
+        "tips19": "账户已激活",
+        "prepayment": "預估支付",
+        "preacquisition": "預估獲取",
+        "canbuymax": "可買數量",
+        "tipps20": "請先激活資金賬戶",
+        "sellEstimatedFee": "預估手續費",
+        "cangetamount": "可獲金額",
+        "cansellmax": "可賣數量"
     }
 }

+ 8 - 1
public/locales/zh-CN.json

@@ -1904,6 +1904,13 @@
         "news": "新闻资讯",
         "tips17": "请输入MEMO",
         "tips18": "是否激活当前账户",
-        "tips19": "账户已激活"
+        "tips19": "账户已激活",
+        "prepayment": "预估支付",
+        "preacquisition": "预估获取",
+        "canbuymax": "可买数量",
+        "tipps20": "请先激活资金账户",
+        "sellEstimatedFee": "预估手续费",
+        "cangetamount": "可获金额",
+        "cansellmax": "可卖数量"
     }
 }

+ 8 - 1
public/locales/zh-TW.json

@@ -1904,6 +1904,13 @@
         "news": "新聞資訊",
         "tips17": "請輸入MEMO",
         "tips18": "是否激活當前賬戶",
-        "tips19": "賬戶已激活"
+        "tips19": "賬戶已激活",
+        "prepayment": "預估支付",
+        "preacquisition": "預估獲取",
+        "canbuymax": "可買數量",
+        "tipps20": "請先激活資金賬戶",
+        "sellEstimatedFee": "預估手續費",
+        "cangetamount": "可獲金額",
+        "cansellmax": "可賣數量"
     }
 }

+ 16 - 16
src/packages/digital/views/listing/goods/detail/index.vue

@@ -1,7 +1,7 @@
 <template>
     <app-view class="listing-goods-detail g-layout g-form">
         <template #header>
-            <app-navbar :title="quote ? quote.goodscode : '交易'">
+            <app-navbar :title="quote ? quote.goodscode : t('tabbar.trade')">
                 <template #right>
                     <img :src="'./img/icons/chart.svg'" @click="navigateToGoodsChart" />
                 </template>
@@ -12,13 +12,13 @@
             <div class="trade-panel__right">
                 <app-submitbar>
                     <Button :type="formData.BuyOrSell === BuyOrSell.Buy ? 'success' : 'default'" size="small" block
-                        @click="formData.BuyOrSell = BuyOrSell.Buy">买入</Button>
+                        @click="formData.BuyOrSell = BuyOrSell.Buy">{{ $t('quote.buy') }}</Button>
                     <Button :type="formData.BuyOrSell === BuyOrSell.Sell ? 'danger' : 'default'" size="small" block
-                        @click="formData.BuyOrSell = BuyOrSell.Sell">卖出</Button>
+                        @click="formData.BuyOrSell = BuyOrSell.Sell">{{ $t('quote.sell') }}</Button>
                 </app-submitbar>
                 <Form ref="formRef" class="g-form__container" @submit="onSubmit">
                     <CellGroup inset>
-                        <Field name="OrderPrice" :rules="formRules.OrderPrice" label="价格" label-align="top">
+                        <Field name="OrderPrice" :rules="formRules.OrderPrice" :label="t('quote.goods.orderprice')" label-align="top">
                             <template #input>
                                 <app-stepper v-model="formData.OrderPrice" :min="0"
                                     :decimal-length="quote?.decimalplace" :step="quote?.decimalvalue" />
@@ -26,7 +26,7 @@
                         </Field>
                     </CellGroup>
                     <CellGroup inset>
-                        <Field label="数量" label-align="top" :rules="formRules.OrderQty">
+                        <Field :label="t('quote.goods.orderqty')" label-align="top" :rules="formRules.OrderQty">
                             <template #input>
                                 <app-stepper v-model="formData.OrderQty" :min="0"
                                     :decimal-length="baseAccount?.currencydecimalplace" />
@@ -34,7 +34,7 @@
                         </Field>
                     </CellGroup>
                     <CellGroup inset>
-                        <Cell :title="formData.BuyOrSell === BuyOrSell.Buy ? '预估支付' : '预估获取'"
+                        <Cell :title="formData.BuyOrSell === BuyOrSell.Buy ? t('digital.prepayment') : t('digital.preacquisition')"
                             :label="formatDecimal(calculations.estimatedAmount, quoteAccount?.currencydecimalplace)" />
                     </CellGroup>
                 </Form>
@@ -43,19 +43,19 @@
         <app-block class="trade-info" v-if="formData.BuyOrSell === BuyOrSell.Buy">
             <ul>
                 <li>
-                    <span class="text-small">预估手续费</span>
+                    <span class="text-small">{{ $t('digital.buyEstimatedFee') }}</span>
                     <span>
                         {{ formatDecimal(calculations.buyEstimatedFee, quoteAccount?.currencydecimalplace) }}
                     </span>
                 </li>
                 <li>
-                    <span class="text-small">可用余额</span>
+                    <span class="text-small">{{ $t('digital.maxBalance') }}</span>
                     <span>
                         {{ formatDecimal(calculations.maxBalance, quoteAccount?.currencydecimalplace) }}
                     </span>
                 </li>
                 <li>
-                    <span class="text-small">可买数量</span>
+                    <span class="text-small">{{ $t('digital.canbuymax') }}</span>
                     <span>
                         {{ formatDecimal(calculations.maxBuyQty, baseAccount?.currencydecimalplace) }}
                     </span>
@@ -65,19 +65,19 @@
         <app-block class="trade-info" v-if="formData.BuyOrSell === BuyOrSell.Sell">
             <ul>
                 <li>
-                    <span class="text-small">预估手续费</span>
+                    <span class="text-small">{{ $t('digital.sellEstimatedFee') }}</span>
                     <span>
                         {{ formatDecimal(calculations.sellEstimatedFee, quoteAccount?.currencydecimalplace) }}
                     </span>
                 </li>
                 <li>
-                    <span class="text-small">可获金额</span>
+                    <span class="text-small">{{ $t('digital.cangetamount') }}</span>
                     <span>
                         {{ formatDecimal(calculations.maxAmount, quoteAccount?.currencydecimalplace) }}
                     </span>
                 </li>
                 <li>
-                    <span class="text-small">可卖数量</span>
+                    <span class="text-small">{{ $t('digital.cansellmax') }}</span>
                     <span>
                         {{ formatDecimal(calculations.maxSellQty, baseAccount?.currencydecimalplace) }}
                     </span>
@@ -190,13 +190,13 @@ const calculations = computed(() => {
 // 表单验证规则
 const formRules: { [key: string]: FieldRule[] } = {
     OrderPrice: [{
-        message: '请输入价格',
+        message: t('quote.goods.pleaseenterorderprice'),
         validator: () => {
             return Number(formData.OrderPrice) > 0
         }
     }],
     OrderQty: [{
-        message: '请输入数量',
+        message: t('quote.goods.pleaseenterorderqty'),
         validator: () => Number(formData.OrderQty) > 0
     }],
 }
@@ -224,14 +224,14 @@ const onSubmit = () => {
             digitalOrder({
                 data: formData
             }).then(() => {
-                hideLoading('提交成功', 'success')
+                hideLoading(t('common.submitsuccess'), 'success')
             }).catch((err) => {
                 hideLoading(err, 'fail')
             })
         })
     } else {
         showDialog({
-            message: '请先激活资金账户'
+            message: t('digital.tipps20')
         }).then(() => {
             activeTab.value = 1
         })

+ 2 - 2
src/packages/digital/views/listing/goods/detail/spread/index.vue

@@ -2,8 +2,8 @@
     <div class="listing-quote-spread">
         <dl v-if="quote">
             <dt>
-                <span>价格</span>
-                <span>数量</span>
+                <span>{{ $t('tabbar.pricing') }}</span>
+                <span>{{ $t('tss.qty') }}</span>
             </dt>
             <dd>
                 <span :class="quote.askColor">{{ handleNumberValue(quote.ask.toFixed(quote.decimalplace)) }}</span>