Handy_Cao 2 years ago
parent
commit
e0758390df

+ 1 - 1
public/config/appconfig.json

@@ -1,5 +1,5 @@
 {
 {
   "version": "1.0.0",
   "version": "1.0.0",
   "versionCode": "100000",
   "versionCode": "100000",
-  "apiUrl": "http://192.168.31.204:8080/cfg?key=test_204"
+  "apiUrl": "http://192.168.31.134:8080/cfg?key=test_134"
 }
 }

+ 8 - 2
src/packages/mobile/views/bank/sign/components/edit/Index.vue

@@ -18,7 +18,11 @@
                         :rules="formRules.BankAccountName" />
                         :rules="formRules.BankAccountName" />
                     <Field name="MobilePhone" label="手机号码" readonly v-model="formData.MobilePhone" placeholder="请输入手机号码" />
                     <Field name="MobilePhone" label="手机号码" readonly v-model="formData.MobilePhone" placeholder="请输入手机号码" />
                     <template v-for="(item, index) in configs" :key="index">
                     <template v-for="(item, index) in configs" :key="index">
-                        <Field v-model="item.value" type="digit" name="vcode" :label="item.fieldname" placeholder="必填" autocomplete="off"
+                        <Field v-if="(item.fieldcode === 'verify_code') && 
+                                     (item.usabletype === 1) || 
+                                     (item.usabletype === 2 && userStore.userInfo?.userinfotype === 2) || 
+                                     (item.usabletype === 3 && userStore.userInfo?.userinfotype === 1)" 
+                         v-model="item.value"  type="digit" name="vcode" :label="item.fieldname" placeholder="必填" autocomplete="off"
                             :rules="item.fieldname">
                             :rules="item.fieldname">
                             <template #button>
                             <template #button>
                                 <Button size="small" type="danger" :disabled="isCountdown" @click="sendVerifyCode">
                                 <Button size="small" type="danger" :disabled="isCountdown" @click="sendVerifyCode">
@@ -27,7 +31,9 @@
                                 </Button>
                                 </Button>
                             </template>
                             </template>
                         </Field>
                         </Field>
-                        <Field v-if="item.usabletype === 1 || item.usabletype === userStore.userInfo?.userinfotype"
+                        <Field v-else-if="(item.usabletype === 1) || 
+                         (item.usabletype === 2 && userStore.userInfo?.userinfotype === 2) || 
+                         (item.usabletype === 3 && userStore.userInfo?.userinfotype === 1)"
                             :name="item.fieldcode" :label="item.fieldname" v-model="item.value"
                             :name="item.fieldcode" :label="item.fieldname" v-model="item.value"
                             :placeholder="`请输入${item.fieldname}`" />
                             :placeholder="`请输入${item.fieldname}`" />
                     </template>
                     </template>

+ 6 - 2
src/packages/pc/views/account/sign/components/sign/index.vue

@@ -22,7 +22,9 @@
             <template v-for="(item, index) in configs" :key="index">
             <template v-for="(item, index) in configs" :key="index">
                 <el-form-item :label="item.fieldname" :prop="item.fieldcode" 
                 <el-form-item :label="item.fieldname" :prop="item.fieldcode" 
                    v-if="(item.fieldcode === 'verify_code') && 
                    v-if="(item.fieldcode === 'verify_code') && 
-                         (item.usabletype === 1 || item.usabletype === userStore.userInfo?.userinfotype)">
+                         (item.usabletype === 1) || 
+                         (item.usabletype === 2 && userStore.userInfo?.userinfotype === 2) || 
+                         (item.usabletype === 3 && userStore.userInfo?.userinfotype === 1)">
                     <el-input placeholder="请输入短信验证码" type="number" v-model="item.value" :rules="formRules.vcode">
                     <el-input placeholder="请输入短信验证码" type="number" v-model="item.value" :rules="formRules.vcode">
                         <template #append>
                         <template #append>
                             <el-button size="small" type="primary" :disabled="isCountdown" @click="sendVerifyCode">
                             <el-button size="small" type="primary" :disabled="isCountdown" @click="sendVerifyCode">
@@ -33,7 +35,9 @@
                     </el-input>
                     </el-input>
                 </el-form-item>
                 </el-form-item>
                 <el-form-item :label="item.fieldname" :prop="item.fieldcode"
                 <el-form-item :label="item.fieldname" :prop="item.fieldcode"
-                    v-if="item.usabletype === 1 || item.usabletype === userStore.userInfo?.userinfotype">
+                    v-else-if="(item.usabletype === 1) || 
+                         (item.usabletype === 2 && userStore.userInfo?.userinfotype === 2) || 
+                         (item.usabletype === 3 && userStore.userInfo?.userinfotype === 1)">
                     <el-input :name="item.fieldcode" placeholder="请必须输入" v-model="item.value" />
                     <el-input :name="item.fieldcode" placeholder="请必须输入" v-model="item.value" />
                 </el-form-item>
                 </el-form-item>
             </template>
             </template>