12
whycq
2022-02-22 066b803e929f2bc6ef0356a781f4e2907efdd1a9
pages/login/login.vue
@@ -89,7 +89,6 @@
            url: {
               bindingThirdPhone: '/sys/thirdLogin/bindingThirdPhone'
            },
            baseIP:'',
            type:'',
            userName:'',
            password:'',
@@ -112,13 +111,11 @@
             that.password = '';
         }
         const UIP = uni.getStorageSync('UIP');
            console.log(UIP)
            if (UIP) {
             that.IP = UIP;
            } else {
             that.IP = '';
            }
      },
      onLoad:function(){
         // #ifdef APP-PLUS
@@ -151,16 +148,12 @@
            this.$refs.inputDialog.open()
         },
         dialogInputConfirm(type){
            this.baseUrl=type
            this.IP = type
            this.UIP = type
            uni.setStorageSync('UIP',type)
            console.log(this.IP)
            console.log(this.baseUrl)
            console.log(this.UIP)
         },
            this.baseIP = type
            },
         checkboxChange: function(e) {
             console.log(e.detail.value.length);
             if (e.detail.value.length == 1) {
         
                 //获取缓存的账号
@@ -181,8 +174,9 @@
               return;
            }
            uni.showLoading();
            console.log(this.baseIP)
            uni.request({
                url: 'http://'+ this.baseUrl + ':8082/xgmwms' + '/login.action',
                url: this.baseHttp + this.baseIP + this.baseUrl + '/login.action',
                data: {
                  mobile:this.userName,
                  password:md5.hex_md5(this.password) 
@@ -228,7 +222,6 @@
            var info = plus.push.getClientInfo();
            var cid = info.clientid;
            this.$http.get("/sys/user/saveClientId",{params:{clientId:cid}}).then(res=>{
               console.log("res::saveClientId>",res)
               this.$tip.success('登录成功!')
               this.$Router.replaceAll({name:'index'})
            })