yangan
1 天以前 5c63b1fccedfcd208f3434edb79926c206c3d26f
pages/login/userPassword.vue
@@ -34,15 +34,29 @@
         </view>
         <view class="list-call">
            <u-input v-model="password"
               clearable
               v-if="inpType"
               clearable
               maxlength="32"
               :type="inpType ?  'password' : 'text'"
               :type="'password'"
               placeholder="请输入密码"
               prefixIcon="lock"
               style="padding:0;margin-left:8px;"
               prefixIconStyle="font-size: 22px;color: #909399">
               <template slot="suffix">
                  <u-icon  size="40" name="eye" @click="todoShow"></u-icon>
                  <u-icon  size="45" name="eye-off" @click.native.stop="todoShow"></u-icon>
            </template>
            </u-input>
            <u-input v-model="password"
               v-if="!inpType"
               maxlength="32"
               clearable
               :type="'text'"
               placeholder="请输入密码"
               prefixIcon="lock"
               style="padding:0;margin-left:8px;"
               prefixIconStyle="font-size: 22px;color: #909399">
               <template slot="suffix">
                  <u-icon  size="45" name="eye" @click.native.stop="todoShow"></u-icon>
            </template>
            </u-input>
         </view>
@@ -121,7 +135,8 @@
         },
         todoShow(){
            console.log('点击')
            this.inpType = !this.inpType
            this.inpType = !this.inpType;
            this.password = this.password;
         },
         //登录