瀏覽代碼

fix: 边框显示问题

ritchie 2 年之前
父節點
當前提交
c3f548ea00
共有 3 個文件被更改,包括 8049 次插入7960 次删除
  1. 1 1
      src/views/changePassword.vue
  2. 7 7
      src/views/forgetPassword.vue
  3. 8041 7952
      yarn.lock

+ 1 - 1
src/views/changePassword.vue

@@ -90,7 +90,7 @@ export default {
           display: none;
         }
 
-        .van-field__control {
+        /deep/.van-field__control {
           height: 38px;
           line-height: 38px;
           padding: 6px;

+ 7 - 7
src/views/forgetPassword.vue

@@ -7,13 +7,13 @@
         <van-field
           v-model="username"
           name="username"
-          :label="$t('forgetPassword.usernameLabel')"
+          
           :placeholder="$t('forgetPassword.usernamePlaceholder')"
           :rules="[{ required: true, message: $t('forgetPassword.usernameRequired') }]"
         />
         <span class="info2">{{$t('forgetPassword.selectForgetPassword')}}</span>
         <div class="van-cell van-field">
-          <div class="van-cell__title van-field__label"><span></span></div>
+          
           <div class="van-cell__value van-field__value radioBox">
             <van-radio-group v-model="ifForeign" direction="horizontal">
               <van-radio name="0" icon-size="18px">{{$t('forgetPassword.phone')}}</van-radio>
@@ -27,7 +27,7 @@
             v-model="phone"
             name="phone"
             type="tel"
-            :label="$t('forgetPassword.phoneLabel')"
+            
             :placeholder="$t('forgetPassword.phonePlaceholder')"
             :rules="[{ required: true, message: $t('forgetPassword.phoneRequired') }]"
           >
@@ -41,12 +41,12 @@
           <van-field
             v-model="email"
             name="email"
-            :label="$t('forgetPassword.emailLabel')"
+            
             :placeholder="$t('forgetPassword.emailPlaceholder')"
             :rules="[{ required: true, message: $t('forgetPassword.emailRequired') }]"
           >
             <template #button>
-              <van-button size="small" type="primary" @click="seedVerCode()" :disabled="time !== 0" style="color: black;">{{time === 0 ? $t('forgetPassword.seedVerCode') : time + '秒后可重发'}}</van-button>
+              <van-button size="small" type="primary" @click="seedVerCode()" :disabled="time !== 0">{{time === 0 ? $t('forgetPassword.seedVerCode') : time + '秒后可重发'}}</van-button>
             </template>
           </van-field>
         </div>
@@ -158,8 +158,8 @@ export default {
         margin-top: 20px;
         overflow: visible;
         &::after { display: none;}
-		.van-field__button button { background-color: #4d6add; color: #fff; }
-        .van-field__control {
+		.van-field__button button { background-color: #8096ec; color: #fff; }
+        /deep/.van-field__control {
           height: 38px;
           line-height: 38px;
           padding: 6px;

文件差異過大導致無法顯示
+ 8041 - 7952
yarn.lock