pujiaming лет назад: 2
Родитель
Сommit
b40236f48d
1 измененных файлов с 6 добавлено и 6 удалено
  1. 6 6
      src/views/settings.vue

+ 6 - 6
src/views/settings.vue

@@ -63,12 +63,12 @@
               <el-input type="text" :disabled="!!user.profile.mobile" v-model="ruleForm3.mobile" placeholder="请输入手机号" />
             </el-form-item>
             <el-form-item label="验证码:" prop="captcha">
-              <el-input type="text" :disabled="ruleForm3.mobile.length !== 11" v-model="ruleForm3.captcha" placeholder="请输入验证码" >
-                <template #append>
-                  <el-button v-if="!!user.profile.mobile" type="primary" @click="getCaptcha" style="width: 100px;" :disabled ="!can_send">{{smsMessage}}</el-button>
-                  <el-button v-else @click="getCaptcha2" type="primary" style="width: 100px;" :disabled ="!can_send">{{smsMessage}}</el-button>
-                </template>
-              </el-input>
+
+              <div style="display: flex;align-items: center;justify-content: space-between;width: 100%;">
+                <el-input type="text" :disabled="ruleForm3.mobile.length !== 11" v-model="ruleForm3.captcha" placeholder="请输入验证码" />
+                <el-button v-if="!!user.profile.mobile" type="primary" @click="getCaptcha" style="width: 100px;" :disabled ="!can_send">{{smsMessage}}</el-button>
+                <el-button v-else @click="getCaptcha2" type="primary" style="width: 100px;" :disabled ="!can_send">{{smsMessage}}</el-button>
+              </div>
             </el-form-item>
             <el-form-item >
               <el-button v-if="!!user.profile.mobile" type="primary"   size="large" @click="submitForm3(ruleFormRef3)">