소스 검색

修改问题

yinxiangke 3 주 전
부모
커밋
e3944925f5
4개의 변경된 파일10개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 0
      src/locales/en.js
  2. 2 0
      src/locales/zh-CN.js
  3. 2 2
      src/pages/Personal/Wallet.vue
  4. 4 2
      src/pages/PersonalCenter.vue

+ 2 - 0
src/locales/en.js

@@ -380,6 +380,8 @@ export default {
     qydbtyhyxy:'Please read and agree to the membership agreement',
     bdyxjcjzh:'By binding an email, an account will be automatically created',
     psrjnbq:'Please enter skill tags',
+    zdtjwg:'You can add up to 5',
+    txsqytj:'The withdrawal application has been submitted, please wait for review',
   },
   orderConfirm:{
     personalPay:'Personal Payment',

+ 2 - 0
src/locales/zh-CN.js

@@ -383,6 +383,8 @@ export default {
     qydbtyhyxy:'请阅读并同意《会员协议》',
     bdyxjcjzh:'绑定邮箱即自动创建账号',
     psrjnbq:'请输入技能标签',
+    zdtjwg:'最多添加5个',
+    txsqytj:'提现申请已提交,请等待审核',
   },
   orderConfirm:{
     personalPay:'个人支付',

+ 2 - 2
src/pages/Personal/Wallet.vue

@@ -375,7 +375,6 @@ const rules = ref({
 })
 
 const submitForm = async (formEl) => {
-  console.log(formEl)
   if (!formEl) return
   await formEl.validate(async (valid, fields) => {
     if (valid) {
@@ -384,7 +383,8 @@ const submitForm = async (formEl) => {
         show.value = false;
         appStore.USERINFO();
         getList()
-        DGTMessage.success(t('common.success'));
+        ruleForm.value.applyAmount = null;
+        DGTMessage.success(t('personalCenter.txsqytj'));
       }
     }
   })

+ 4 - 2
src/pages/PersonalCenter.vue

@@ -390,12 +390,13 @@
 
         <el-row>
           <el-col :span="24">
-            <el-form-item :label="$t('personalCenter.skillTag')">
+            <el-form-item :label="`${$t('personalCenter.skillTag')}(${ $t('personalCenter.zdtjwg') })`">
               <div class="flex tags flex_1">
                 <el-tag v-for="tag in dynamicTags" :key="tag" closable @close="handleClose(tag)">
                   {{ tag }}
                 </el-tag>
-                <el-input v-if="inputVisible" ref="InputRef" v-model="inputValue" class="w-20" size="small"
+                <template v-if="dynamicTags.length < 5">
+                  <el-input v-if="inputVisible" ref="InputRef" v-model="inputValue" class="w-20" size="small"
                   @keyup.enter="handleInputConfirm" @blur="handleInputConfirm" maxlength="5" :placeholder="
                     $t('personalCenter.psrjnbq')
                   ">
@@ -405,6 +406,7 @@
                 <el-button v-else class="button-new-tag" size="small" @click="showInput">
                   + {{ $t('common.addTags') }}
                 </el-button>
+                </template>
               </div>
             </el-form-item>
           </el-col>