jt
2022-08-04 377722df8f97989ca6c4252f909243c9b8b0d340
pages/login/index.vue
@@ -146,8 +146,11 @@
               </label>
            </checkbox-group>
         </form>
            <button id='login' type="default" @tap="logind" class="btn_login">{{login}}</button>
         </div>
         <button id='login' type="default" @tap="logind" class="btn_login">{{login}}</button>
         <p style="float:right; margin: 10px 10px;color:#c8c7cc">
            <span>版本号:</span>
            <span>{{version}}</span>
         </p>
         <div class="" style="text-align: center;background: white;border-top: 0px solid #C0C0C0;color: #7cd0f8;position: absolute;bottom: 0;width: 100%;height: 24px;padding-top:3px;font-size: 11px;">
         </div>
      </div>
@@ -191,6 +194,7 @@
            userName:account,
            userPwd:password,
            ischecked:ischecked,
            version:"1.0.0",
         }
      },
      // computed: mapState({
@@ -252,6 +256,18 @@
            
         // },
         logind(){
            if(!this.userServer){
               uni.showModal({title:"提示",content:"未输入网站地址,请重新配置输入!",showCancel:false,confirmText:"取消"});
               return;
            }
            if(!this.userName){
               uni.showModal({title:"提示",content:"未输入用户名,请重新输入!",showCancel:false,confirmText:"取消"});
               return;
            }
            if(!this.userPwd){
               uni.showModal({title:"提示",content:"未输入密码,请重新输入!",showCancel:false,confirmText:"取消"});
               return;
            }
            //检查 "登录状态/锁屏状态" 结束
            var loginInfo = {
               server: this.userServer,
@@ -294,7 +310,10 @@
         }
      },
      onLoad() {
         plus.runtime.getProperty(plus.runtime.appid,(info)=>{
            // console.log(info);
            this.$data.version=info.version;
         });
      }
   }
</script>