pages/login/login.vue
@@ -190,6 +190,7 @@ } }, onLogin: function (){ console.log(this.baseHttp + this.baseIP + ':' +this.basePORT + this.baseUrl + '/login.action'); if(!this.userName || this.userName.length==0){ uni.showToast({title: '请填写账号',icon: "none"}) return; @@ -199,10 +200,11 @@ return; } uni.showLoading(); uni.request({ url: this.baseHttp + this.baseIP + ':' +this.basePORT + this.baseUrl + '/login.action', data: { mobile:this.userName, username:this.userName, password:md5.hex_md5(this.password) }, header: {