#
whycq
2022-02-24 c8dc3d4f33e7548e2d02ba14e9cb770afda5df2b
pages/login/login.vue
@@ -89,7 +89,6 @@
            url: {
               bindingThirdPhone: '/sys/thirdLogin/bindingThirdPhone'
            },
            baseIP:'',
            type:'',
            userName:'',
            password:'',
@@ -114,10 +113,10 @@
         const UIP = uni.getStorageSync('UIP');
            if (UIP) {
             that.IP = UIP;
            that.baseIP = UIP;
            } else {
             that.IP = '';
            }
      },
      onLoad:function(){
         // #ifdef APP-PLUS
@@ -150,11 +149,10 @@
            this.$refs.inputDialog.open()
         },
         dialogInputConfirm(type){
            this.baseUrl=type
            this.IP = type
            this.UIP = type
            uni.setStorageSync('UIP',type)
         },
            this.baseIP = type
            // 存入本地缓存
            uni.setStorageSync('UIP',this.baseIP)
            },
         checkboxChange: function(e) {
             if (e.detail.value.length == 1) {
         
@@ -176,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)