gx
queenwuli
2021-01-28 b83ba3cc4687f21d744e9866e10e30e91229e8a4
hive-app/pages/login/index.vue
@@ -9,22 +9,22 @@
            <image src="../../static/images/logo.png" mode="widthFix" class="logo"></image>
         <!-- </view> -->
         
         <text>蜂巢美业</text>
         <text>讯聪美业</text>
      </view>
      <view class="login-box">
         <text class="title">登录</text>
         <!-- <text class="title">登录</text> -->
         <view class="input-group-row">
            <input v-model="username" type="text" maxlength="60"  placeholder="请输入账号" placeholder-class='placeholder'/>
            <input v-model="username" type="text" maxlength="60" :disabled="isDisabled"  placeholder="请输入账号" placeholder-class='placeholder'/>
         </view>
         <template v-if="isHidePwd">
            <view class="input-group-row mt-10">
               <input v-model="password" type="password" maxlength="60" placeholder="请输入密码" placeholder-class="placeholder" />
               <input v-model="password" type="password" :disabled="isDisabled" maxlength="60" placeholder="请输入密码" placeholder-class="placeholder" />
               <text @click="isHidePwd=false" class="iconfont iconyanjing font-18 gray"></text>
            </view>
         </template>
         <template v-else>
            <view class="input-group-row mt-10">
               <input v-model="password" type="text" maxlength="60" placeholder="请输入密码" placeholder-class="placeholder" />
               <input v-model="password" type="text" :disabled="isDisabled" maxlength="60" placeholder="请输入密码" placeholder-class="placeholder" />
               <text @click="isHidePwd=true" class="iconfont iconyanjing1 gray"></text>
            </view>
         </template>
@@ -49,6 +49,15 @@
      onLoad(options) {
         if(!options || options.isNotLogin != 1){
            this.isLogin();
         }
      },
      onBackPress(options){
         if (this.lastBackPressed && this.lastBackPressed + 2000 >= Date.now()) {
            plus.runtime.quit();
         }else{
            this.lastBackPressed = Date.now();
            this.Toast.info('再按一次退出应用');
            return true;
         }
      },
      methods:{
@@ -126,7 +135,7 @@
      margin: 0 auto 10px;
   }
   .logo{
      width: 72px;
      width: 92px;
      display: block;
      margin: 0 auto 10px;
      /* height: 72px; */