Handy_Cao преди 1 година
родител
ревизия
b4a59b3241

+ 21 - 6
public/locales/en-US.json

@@ -31,7 +31,8 @@
         "yes": "Yes",
         "no": "No",
         "submitfailure": "Submit Failure:",
-        "requestfailure": "Request failed, click Reload"
+        "requestfailure": "Request failed, click Reload",
+        "tips1": "Will it be listed immediately?"
     },
     "tabbar": {
         "home": "Home",
@@ -305,10 +306,12 @@
         },
         "pricing": {
             "title": "Trade",
+            "title1": "Listing & Pricing",
+            "goods": "Goods",
             "buyorsell": "BuyOrSell",
             "pricemode": "PriceMode",
             "orderqty": "OrderQty",
-            "marketmaxsub": "MarketMaxSub",
+            "marketmaxsub": "MaxSub",
             "price": "OrderPrice",
             "enableQty": "Estimate Buy Qty",
             "deposit": "Deposit",
@@ -1208,6 +1211,7 @@
     "user": {
         "login": {
             "username": "UserName",
+            "username1": "UserName/LoginCode/Mobile",
             "password": "PassWord",
             "login": "Login",
             "forgetpassword": "Forget Password?",
@@ -1222,14 +1226,17 @@
             "loading": "loading...",
             "tips1": "For the security of your account, please change the password!",
             "logining": "logining...",
-            "tips2": "Please agree to the terms of use first"
+            "logining1": "logining...",
+            "tips2": "Please agree to the terms of use first",
+            "tips3": "Login failed:"
         },
         "register": {
             "title": "User Register",
+            "title1": "Scan code registration",
             "mobile": "Mobile",
             "vcode": "SMS Code",
             "sendagain": "Send Again",
-            "getsmscode": "Get SMS Code",
+            "getsmscode": "SMS Code",
             "freeregister": "Register Free",
             "logipwd": "Login Pwd",
             "confirmpwd": "Confirm Pwd",
@@ -1256,10 +1263,18 @@
             "mobile": "Mobile",
             "vcode": "SMS Code",
             "sendagain": "Send Again",
-            "getsmscode": "Get SMS Code",
+            "getsmscode": "SMS Code",
             "newpwd": "New Pwd",
             "confirmpwd": "Conform Pwd",
-            "resetpwd": "Reset Pwd"
+            "resetpwd": "Reset Pwd",
+            "tips1": "Please enter mobile phone",
+            "tips2": "Please enter SMS verification code",
+            "tips3": "Please enter new password",
+            "tips4": "Please enter confirmation password",
+            "tips5": "The password must be any combination of two characters with a minimum length of 6 characters",
+            "tips6": "The new password is inconsistent with the confirmation password",
+            "tips7": "Failure to send",
+            "tips8": "Password reset successfully, please log in again."
         },
         "cancel": {
             "title": "Cancel Service",

+ 19 - 4
public/locales/zh-CN.json

@@ -32,7 +32,8 @@
         "yes": "是",
         "no": "否",
         "submitfailure": "提交失败:",
-        "requestfailure": "请求失败,点击重新加载"
+        "requestfailure": "请求失败,点击重新加载",
+        "tips1": "是否立即挂牌?"
     },
     "tabbar": {
         "home": "首页",
@@ -306,6 +307,8 @@
         },
         "pricing": {
             "title": "交易下单",
+            "title1": "挂牌点价",
+            "goods": "商品",
             "buyorsell": "方向",
             "pricemode": "价格方式",
             "orderqty": "数量",
@@ -1213,9 +1216,10 @@
     "user": {
         "login": {
             "username": "用户名",
+            "username1": "用户名/账号/手机号",
             "password": "密码",
             "login": "登录",
-            "forgetpassword": "忘记密码",
+            "forgetpassword": "忘记密码?",
             "rulesyszc": "《隐私政策》",
             "register": "用户注册",
             "ruleszcxy": "《用户注册协议》",
@@ -1227,10 +1231,13 @@
             "loading": "加载中...",
             "tips1": "为了您的账户安全,请修改密码!",
             "logining": "登录中...",
-            "tips2": "请先同意使用条款"
+            "logining1": "正在登录",
+            "tips2": "请先同意使用条款",
+            "tips3": "登录失败:"
         },
         "register": {
             "title": "用户注册",
+            "title1": "扫码注册",
             "mobile": "手机号码",
             "vcode": "短信验证码",
             "sendagain": "重新发送",
@@ -1264,7 +1271,15 @@
             "getsmscode": "获取验证码",
             "newpwd": "新密码",
             "confirmpwd": "确认密码",
-            "resetpwd": "重置密码"
+            "resetpwd": "重置密码",
+            "tips1": "请输入手机号码",
+            "tips2": "请输入短信验证码",
+            "tips3": "请输入新密码",
+            "tips4": "请输入确认密码",
+            "tips5": "密码必须是任意两种字符组合,长度最少6位",
+            "tips6": "新密码和确认密码不一致",
+            "tips7": "发送失败",
+            "tips8": "密码重置成功,请重新登录。"
         },
         "cancel": {
             "title": "注销服务",

+ 1 - 1
src/packages/pc/components/layouts/header/components/setting/index.vue

@@ -85,7 +85,7 @@ const updateSettings = () => {
 const resetSettings = () => {
     ElMessageBox.confirm(
         '是否恢复到默认设置?',
-        '提示'
+        t('common.tips')
     ).then(() => {
         settingStore.resetSettings()
         onCancel()

+ 1 - 1
src/packages/pc/components/modules/goods-detail/order/delisting/index.vue

@@ -111,7 +111,7 @@ const onSubmit = (buildType: number) => {
         if (valid) {
             ElMessageBox.confirm(
                 isTrademode16.value ? '是否立即摘牌?' : '*若存在价格匹配的反方向委托订单,系统将会自动撤销。',
-                isTrademode16.value ? '提示' : '是否立即摘牌?'
+                isTrademode16.value ? t('common.tips') : '是否立即摘牌?'
             ).then(() => {
                 const { goodsid, orderid, orderprice, buyorsell } = props.selectedRow
                 const { marketid = 0 } = quote.value ?? {}

+ 14 - 13
src/packages/pc/components/modules/quote/forex/index.vue

@@ -35,7 +35,7 @@
 import { shallowRef, computed, watch, useAttrs } from 'vue'
 import { handleNumberValue } from '@/filters'
 import { BuyOrSell } from '@/constants/order'
-import { useFuturesStore } from '@/stores'
+import { useFuturesStore, i18n } from '@/stores'
 import { ETradeMode } from '@/constants/client'
 
 const props = defineProps({
@@ -50,6 +50,7 @@ const attrs = useAttrs()
 const futuresStore = useFuturesStore()
 const quote = computed(() => futuresStore.getGoodsQuote(props.goodsCode).value)
 const active = shallowRef('')
+const { t } = i18n.global
 
 const buyList = computed(() => {
     const item = quote.value
@@ -58,7 +59,7 @@ const buyList = computed(() => {
         if (item) {
             const result = [
                 {
-                    label: '卖价',
+                    label: t('quote.ask'),
                     price: item.bid,
                     qty: item.bidvolume,
                     color: item.bidColor,
@@ -70,31 +71,31 @@ const buyList = computed(() => {
         if (item) {
             const result = [
                 {
-                    label: '买一',
+                    label: t('quote.bid1'),
                     price: item.bid,
                     qty: item.bidvolume,
                     color: item.bidColor,
                 },
                 {
-                    label: '买二',
+                    label: t('quote.bid2'),
                     price: item.bid2,
                     qty: item.bidvolume2,
                     color: item.bid2Color,
                 },
                 {
-                    label: '买三',
+                    label: t('quote.bid3'),
                     price: item.bid3,
                     qty: item.bidvolume3,
                     color: item.bid3Color,
                 },
                 {
-                    label: '买四',
+                    label: t('quote.bid4'),
                     price: item.bid4,
                     qty: item.bidvolume4,
                     color: item.bid4Color,
                 },
                 {
-                    label: '买五',
+                    label: t('quote.bid5'),
                     price: item.bid5,
                     qty: item.bidvolume5,
                     color: item.bid5Color,
@@ -113,7 +114,7 @@ const sellList = computed(() => {
         if (item) {
             const result = [
                 {
-                    label: '买价',
+                    label: t('quote.bid'),
                     price: item.ask,
                     qty: item.askvolume,
                     color: item.askColor,
@@ -125,31 +126,31 @@ const sellList = computed(() => {
         if (item) {
             const result = [
                 {
-                    label: '卖一',
+                    label: t('quote.ask1'),
                     price: item.ask,
                     qty: item.askvolume,
                     color: item.askColor,
                 },
                 {
-                    label: '卖二',
+                    label: t('quote.ask2'),
                     price: item.ask2,
                     qty: item.askvolume2,
                     color: item.ask2Color,
                 },
                 {
-                    label: '卖三',
+                    label: t('quote.ask3'),
                     price: item.ask3,
                     qty: item.askvolume3,
                     color: item.ask3Color,
                 },
                 {
-                    label: '卖四',
+                    label: t('quote.ask4'),
                     price: item.ask4,
                     qty: item.askvolume4,
                     color: item.ask4Color,
                 },
                 {
-                    label: '卖五',
+                    label: t('quote.ask5'),
                     price: item.ask5,
                     qty: item.askvolume5,
                     color: item.ask5Color,

+ 10 - 10
src/packages/pc/views/account/holddeposit/components/deposit/index.vue

@@ -5,21 +5,21 @@
             <el-form-item label="扣费账号" prop="bankaccountno">
                 <el-input name="bankaccountno" readonly v-model="bankaccountno" />
             </el-form-item>
-            <el-form-item prop="Amount" label="入金金额">
-                <el-input-number placeholder="请输入入金金额" :max="500000" :min="0.0" :precision="2" :step="0.01"
+            <el-form-item prop="Amount" :label="t('banksign.wallet.deposit.inamount')">
+                <el-input-number :placeholder="t('banksign.wallet.deposit.pleaseenterinamount')" :max="500000" :min="0.0" :precision="2" :step="0.01"
                     v-model="billAmount" :rules="formRules.BillAmount" />
             </el-form-item>
             <!-- <el-form-item>
                 <span>{{ numberToChinese(formatDecimal(billAmount)) }}</span>
             </el-form-item> -->
-            <el-form-item class="el-form-item--row" label="备注" prop="Remark">
-                <el-input name="Remark" type="textarea" placeholder="请输入备注" :rows="3" v-model="Remark" />
+            <el-form-item class="el-form-item--row" :label="t('banksign.wallet.withdraw.remark')" prop="Remark">
+                <el-input name="Remark" type="textarea" :placeholder="t('performance.pleaseinputremark')" :rows="3" v-model="Remark" />
             </el-form-item>
         </el-form>
         <fieldset class="g-fieldset">
-            <legend class="g-fieldset__legend">提示</legend>
-            <span class="tips" style="display: block;color: #b8c3cd;">入金时间:交易日 {{ startTime }} - {{ endTime }}</span>
-            <span class="tips" style="color: #b8c3cd;">节假日以通知、公告为准,非交易日请勿操作!</span>
+            <legend class="g-fieldset__legend">{{ t('common.tips') }}</legend>
+            <span class="tips" style="display: block;color: #b8c3cd;">{{ t('banksign.wallet.deposit.time') }} {{ startTime }} - {{ endTime }}</span>
+            <span class="tips" style="color: #b8c3cd;">{{ t('banksign.wallet.deposit.notice') }}</span>
         </fieldset>
         <template #footer>
             <el-button type="info" @click="onCancel">{{ t('operation.cancel') }}</el-button>
@@ -78,16 +78,16 @@ const formSubmit = () => {
                 if (n.isSameOrAfter(s) && n.isBefore(e)) {
                     formData.BillAmount = formatDecimal(billAmount.value)
                     onSubmit().then(() => {
-                        ElMessage.success('提交成功,请稍后确认结果')
+                        ElMessage.success(t('common.submitsuccess1'))
                         onCancel()
                     }).catch((err) => {
                         ElMessage.error(t('common.submitfailure') + err)
                     })
                 } else {
-                    ElMessageBox.confirm('入金不在时间范围内', '提示', { confirmButtonText: '我知道了', showCancelButton: false })
+                    ElMessageBox.confirm(t('banksign.wallet.deposit.goldisnotwithinthetimeframe'), t('common.tips'), { confirmButtonText: t('common.ikonw'), showCancelButton: false })
                 }
             }).catch(() => {
-                ElMessage.error('获取服务器时间失败')
+                ElMessage.error(t('banksign.wallet.deposit.failedtogetservertime'))
             }).finally(() => {
                 loading.value = false
             })

+ 12 - 12
src/packages/pc/views/auth/forget/index.vue

@@ -1,28 +1,28 @@
 <template>
     <el-form ref="formRef" :model="formData" :rules="formRules">
         <el-form-item prop="mobile">
-            <el-input placeholder="请输入手机号码" type="number" v-model="formData.mobile" :rules="formRules.mobile" />
+            <el-input :placeholder="t('user.forget.tips1')" type="number" v-model="formData.mobile" :rules="formRules.mobile" />
         </el-form-item>
         <el-form-item prop="vcode">
-            <el-input placeholder="请输入短信验证码" type="number" v-model="formData.vcode" :rules="formRules.vcode">
+            <el-input :placeholder="t('user.forget.tips2')" type="number" v-model="formData.vcode" :rules="formRules.vcode">
                 <template #append>
                     <el-button size="small" type="primary" :disabled="isCountdown" @click="sendVerifyCode">
-                        <span v-if="isCountdown">重新发送({{ seconds }})</span>
-                        <span v-else>获取验证码</span>
+                        <span v-if="isCountdown">{{ t('user.forget.sendagain') }}({{ seconds }})</span>
+                        <span v-else>{{ t('user.forget.getsmscode') }}</span>
                     </el-button>
                 </template>
             </el-input>
         </el-form-item>
         <el-form-item prop="password">
-            <el-input placeholder="请输入新密码" type="password" v-model="formData.password" :rules="formRules.password" />
+            <el-input :placeholder="t('user.forget.tips3')" type="password" v-model="formData.password" :rules="formRules.password" />
         </el-form-item>
         <el-form-item prop="confirmpassword">
-            <el-input placeholder="请输入确认密码" type="password" v-model="formData.confirmpassword"
+            <el-input :placeholder="t('user.forget.tips4')" type="password" v-model="formData.confirmpassword"
                 :rules="formRules.confirmpassword" />
         </el-form-item>
         <el-form-item>
             <el-button type="primary" @click="formSubmit">{{ t('operation.back')}}</el-button>
-            <el-button @click="onClose" style="margin-left: auto;">{{ t('user.forget.resetpwd')}}</el-button>
+            <el-button @click="onClose" style="margin-left: auto;">{{ t('user.forget.resetpwd') }}</el-button>
         </el-form-item>
     </el-form>
 </template>
@@ -70,12 +70,12 @@ const formRules: FormRules = {
             if (validateRules.password.validate(value)) {
                 callback()
             }
-            callback(new Error('密码必须是任意两种字符组合,长度最少6位'))
+            callback(new Error(t('user.forget.tips5')))
         }
     }],
     vcode: [{
         required: true,
-        message: '请输入短信验证码',
+        message: t('user.forget.tips2'),
     }],
     confirmpassword: [{
         required: true,
@@ -83,7 +83,7 @@ const formRules: FormRules = {
             if (formData.password === value) {
                 callback()
             }
-            callback(new Error('新密码和确认密码不一致'))
+            callback(new Error(t('user.forget.tips6')))
         }
     }],
 }
@@ -109,7 +109,7 @@ const sendVerifyCode = () => {
                         }
                     }, 1000)
                 }).catch(() => {
-                    ElMessage.error('发送失败')
+                    ElMessage.error(t('user.forget.tips7'))
                 })
             }).catch((err) => {
                 ElMessage.error(err)
@@ -140,7 +140,7 @@ const formSubmit = () => {
                     }
                 }).then((res) => {
                     if (res.code === '0') {
-                        ElMessage.success('密码重置成功,请重新登录。')
+                        ElMessage.success(t('user.forget.tips8'))
                         onClose()
                     } else {
                         ElMessage.error(res.message)

+ 11 - 11
src/packages/pc/views/auth/login/index.vue

@@ -1,15 +1,15 @@
 <template>
-  <sign-layout class="user-login" :title="islogin ? '登录' : '重置密码'">
+  <sign-layout class="user-login" :title="islogin ? t('user.login.login') : t('user.forget.resetpwd')">
     <el-form ref="formRef" :model="formData" :rules="formRules" v-if="islogin">
       <el-form-item prop="userName">
-        <el-input placeholder="用户名/账号/手机号" v-model="formData.userName">
+        <el-input :placeholder="t('user.login.username1')" v-model="formData.userName">
           <!-- <template #append>
             <el-checkbox v-model="remember"></el-checkbox>
           </template> -->
         </el-input>
       </el-form-item>
       <el-form-item prop="password">
-        <el-input type="password" placeholder="请输入您的登录密码" v-model="formData.password">
+        <el-input type="password" :placeholder="t('user.login.Pleaseenterthepassword')" v-model="formData.password">
         </el-input>
       </el-form-item>
       <el-form-item>
@@ -17,19 +17,19 @@
       </el-form-item>
       <el-form-item>
         <div class="text-link">
-          <span @click="click" v-if="shwoRegister">立即注册</span>
-          <span @click="islogin = false">忘记密码?</span>
+          <span @click="click" v-if="shwoRegister">{{ t('user.login.register') }}</span>
+          <span @click="islogin = false">{{ t('user.login.forgetpassword') }}</span>
         </div>
       </el-form-item>
       <el-form-item>
         <el-button class="submit" type="primary" :loading="loading" @click="formSubmit">
-          <span v-if="loading">正在登录</span>
-          <span v-else>登录</span>
+          <span v-if="loading">{{ t('user.login.logining1') }}</span>
+          <span v-else>{{ t('user.login.login') }}</span>
         </el-button>
       </el-form-item>
     </el-form>
     <Forget @close="islogin = true" v-else></Forget>
-    <el-dialog class="register" v-model="isRegister" title="扫码注册" :width="360" center align-center>
+    <el-dialog class="register" v-model="isRegister" :title="t('user.register.title1')" :width="360" center align-center>
       <div v-loading="rloading" v-if="rloading"></div>
       <div style="text-align: center;" v-else>
         <app-qrcode class="app-register-code__qrcode" :width="240" :text="qrContent" />
@@ -77,10 +77,10 @@ const { t } = i18n.global
 
 const formRules: FormRules = {
   userName: [
-    { required: true, max: 20, message: '请输入登录账号', trigger: 'blur' }
+    { required: true, max: 20, message: t('user.login.Pleaseenterausername'), trigger: 'blur' }
   ],
   password: [
-    { required: true, max: 16, message: '请输入登录密码', trigger: 'blur' }
+    { required: true, max: 16, message: t('user.login.Pleaseenterthepassword'), trigger: 'blur' }
   ]
 }
 
@@ -137,7 +137,7 @@ const formSubmit = () => {
         }
       } catch (err) {
         reset()
-        ElMessage.error('登录失败:' + err as string)
+        ElMessage.error(t('user.login.tips3') + err as string)
       }
     }
   })

+ 1 - 1
src/packages/pc/views/footer/capital/summary/deposit/index.vue

@@ -123,7 +123,7 @@ const doDepositWarning = () => {
                             onCancel()
                         })
                 } else {
-                    ElMessageBox.confirm(t('banksign.wallet.deposit.goldisnotwithinthetimeframe'), '提示', { confirmButtonText: '我知道了', showCancelButton: false })
+                    ElMessageBox.confirm(t('banksign.wallet.deposit.goldisnotwithinthetimeframe'), t('common.tips'), { confirmButtonText: t('common.ikonw'), showCancelButton: false })
                 }
             }).catch(() => {
                 ElMessage.error(t('banksign.wallet.deposit.failedtogetservertime'))

+ 1 - 1
src/packages/pc/views/footer/swap/position/close/index.vue

@@ -117,7 +117,7 @@ const tableColumns = shallowRef<Model.TableColumn[]>([
 const onCloseSubmit = (row: Model.TradeHolderDetailRsp) => {
     ElMessageBox.confirm(
         '是否立即平仓?',
-        '提示'
+        t('common.tips')
     ).then(() => {
         const { marketid, goodsid, buyorsell, tradeid } = row
         formData.Header = { MarketID: marketid, GoodsID: goodsid }

+ 3 - 3
src/packages/pc/views/market/trade/goods/list/listing/index.vue

@@ -214,13 +214,13 @@ const onBeforeSubmit = (buildType: EBuildType) => {
                 if (settingStore.getSettingValue('showOrderDialog')) {
                     if (isTrademode16.value) {
                         ElMessageBox.confirm(
-                            '是否立即挂牌?',
-                            '提示'
+                            t('common.tips1'),
+                            t('common.tips')
                         ).then(() => onSubmit())
                     } else {
                         ElMessageBox.confirm(
                             t('quote.goods.tips2'),
-                            '是否立即挂牌?'
+                            t('common.tips1')
                         ).then(() => onSubmit())
                     }
                 } else {

+ 2 - 2
src/packages/pc/views/market/trade/presell/transfer/listing/index.vue

@@ -168,8 +168,8 @@ const onBeforeSubmit = () => {
         if (valid) {
             if (settingStore.getSettingValue('showOrderDialog')) {
                 ElMessageBox.confirm(
-                    '是否立即挂牌?',
-                    '提示'
+                    t('common.tips1'),
+                    t('common.tips')
                 ).then(() => onSubmit())
             } else {
                 onSubmit()

+ 39 - 39
src/packages/pc/views/market/trade/pricing/list/listing/index.vue

@@ -4,30 +4,30 @@
             <Forex v-bind="{ goodsCode: selectedGoods.goodscode }" @price-click="onPriceClick" />
         </div>
         <div class="pricing-listing__form">
-            <h4 class="header-title">挂牌点价</h4>
+            <h4 class="header-title">{{ t('quote.pricing.title1') }}</h4>
             <el-form ref="formRef" class="el-form--vertical" label-width="60px" :show-message="false" :model="formData"
                 :rules="formRules">
-                <el-form-item prop="GoodsID" label="商品">
+                <el-form-item prop="GoodsID" :label="t('quote.pricing.goods')">
                     <el-select effect="dark" :placeholder="t('common.choice')" v-model="selectedGoodsId" filterable>
                         <el-option :label="item.goodsname" :value="item.goodsid" v-for="(item, index) in marketGoodsList"
                             :key="index" />
                     </el-select>
                 </el-form-item>
-                <el-form-item prop="BuyOrSell" label="方向">
+                <el-form-item prop="BuyOrSell" :label="t('quote.pricing.buyorsell')">
                     <el-radio-group v-model="formData.BuyOrSell">
                         <el-radio v-for="(item, index) in getBuyOrSellList()" :key="index" :label="item.value">
                             {{ item.label }}
                         </el-radio>
                     </el-radio-group>
                 </el-form-item>
-                <el-form-item prop="PriceMode" label="方式">
+                <el-form-item prop="PriceMode" :label="t('quote.pricing.pricemode')">
                     <el-radio-group v-model="formData.PriceMode">
                         <el-radio v-for="(item, index) in getPricemode2List()" :key="index" :label="item.value">
                             {{ item.label }}
                         </el-radio>
                     </el-radio-group>
                 </el-form-item>
-                <el-form-item prop="OrderQty" label="数量">
+                <el-form-item prop="OrderQty" :label="t('quote.pricing.orderqty')">
                     <div class="g-qty-group">
                         <el-input-number ref="qtyRef" :placeholder="t('common.pleaseenter')" :min="0" :max="9999999999" :precision="0" :step="qtyStep || 1"
                             v-model="formData.OrderQty" @keyup.enter="submitFocus" />
@@ -38,18 +38,18 @@
                             v-if="(formData.BuyOrSell === BuyOrSell.Buy || selectedGoods?.tradeproperty !== 2) && settingStore.getSettingValue('showOrderEnableQty')">
                             <div
                                 style="display: flex;flex-direction: column;line-height: normal;font-size: 12px;color: #7a8a94;">
-                                <span>预估可订立量:{{ total.enableQty }}</span>
-                                <span>预扣保证金:{{ total.deposit.toFixed(2) }}</span>
-                                <span>可用资金:{{ accountStore.currentAccount.avaiableMoney?.toFixed(2) }}</span>
+                                <span>{{ t('quote.pricing.enableQty') }}:{{ total.enableQty }}</span>
+                                <span>{{ t('quote.pricing.deposit') }}:{{ total.deposit.toFixed(2) }}</span>
+                                <span>{{ t('quote.pricing.avaiableMoney') }}:{{ accountStore.currentAccount.avaiableMoney?.toFixed(2) }}</span>
                             </div>
                         </template>
                     </div>
                 </el-form-item>
-                <el-form-item prop="MarketMaxSub" label="点差" v-if="formData.PriceMode === PriceMode.Market">
+                <el-form-item prop="MarketMaxSub" :label="t('quote.pricing.marketmaxsub')" v-if="formData.PriceMode === PriceMode.Market">
                     <el-input-number ref="priceRef" :placeholder="t('common.pleaseenter')" :min="0" :max="9999999999" v-model="formData.MarketMaxSub" 
                     @keyup.enter="submitFocus" integer />
                 </el-form-item>
-                <el-form-item prop="OrderPrice" label="价格" v-if="formData.PriceMode === PriceMode.Limit">
+                <el-form-item prop="OrderPrice" :label="t('quote.pricing.price')" v-if="formData.PriceMode === PriceMode.Limit">
                     <el-input-number ref="priceRef" :placeholder="t('common.pleaseenter')" :max="9999999999" :min="0" v-model="formData.OrderPrice" 
                      :auto-fixed="false" :decimal-length="decimalplace" :step="decimalvalue" @keyup.enter="submitFocus" />
                 </el-form-item>
@@ -164,7 +164,7 @@ const formRules: FormRules = {
             if (value) {
                 callback()
             } else {
-                callback(new Error('请输入价格'))
+                callback(new Error(t('quote.pricing.tips2')))
             }
         }
     }],
@@ -175,7 +175,7 @@ const formRules: FormRules = {
             if (value) {
                 callback()
             } else {
-                callback(new Error('请输入允许成交范围'))
+                callback(new Error(t('quote.pricing.tips3')))
             }
         }
     }],
@@ -185,32 +185,32 @@ const formRules: FormRules = {
             if (value) {
                 callback()
             } else {
-                callback(new Error('请输入数量'))
-            }
-        }
-    }],
-    SlPrice: [{
-        required: true,
-        type: 'number',
-        validator: (rule, value, callback) => {
-            if (value) {
-                callback()
-            } else {
-                callback(new Error('请输入止损价'))
-            }
-        }
-    }],
-    SpPrice: [{
-        required: true,
-        type: 'number',
-        validator: (rule, value, callback) => {
-            if (value) {
-                callback()
-            } else {
-                callback(new Error('请输入止盈价'))
+                callback(new Error(t('quote.pricing.tips1')))
             }
         }
     }],
+    // SlPrice: [{
+    //     required: true,
+    //     type: 'number',
+    //     validator: (rule, value, callback) => {
+    //         if (value) {
+    //             callback()
+    //         } else {
+    //             callback(new Error('请输入止损价'))
+    //         }
+    //     }
+    // }],
+    // SpPrice: [{
+    //     required: true,
+    //     type: 'number',
+    //     validator: (rule, value, callback) => {
+    //         if (value) {
+    //             callback()
+    //         } else {
+    //             callback(new Error('请输入止盈价'))
+    //         }
+    //     }
+    // }],
 }
 
 const onPriceClick = (buyorsell: BuyOrSell, value: number) => {
@@ -260,10 +260,10 @@ const onBeforeSubmit = (buildType: BuildType) => {
 
                 if (settingStore.getSettingValue('showOrderDialog')) {
                     ElMessageBox.confirm(
-                            '是否立即挂牌?',
-                            '提示'
-                        ).then(() => onSubmit())
-                } else {
+                        t('common.tips1'),
+                        t('common.tips')
+                    ).then(() => onSubmit())
+            } else {
                     onSubmit()
                 }
             }

+ 1 - 1
src/packages/pc/views/market/trade/swap/detail/listing/index.vue

@@ -198,7 +198,7 @@ const onCancel = (isRefresh = false) => {
 const onSubmit = () => {
     formRef.value?.validate((valid) => {
         if (valid) {
-            ElMessageBox.confirm('是否立即挂牌?').then(() => {
+            ElMessageBox.confirm(t('common.tips1')).then(() => {
                 /// 获取对应的市场ID
                 formData.MarketID = marketid
                 formData.OrderPrice = priceMove.value === EPriceMode.PRICEMODE_LIMIT ? formData.OrderPrice : 0.0