| | |
| | | import Vue from 'vue' |
| | | // Vue.prototype.baseUrl = "http://localhost:8081/acs" |
| | | Vue.prototype.baseHttp = 'http://' |
| | | Vue.prototype.baseUrl = '/xgmwms' |
| | | Vue.prototype.baseUrl = '/xgmFlwms' |
| | | Vue.config.productionTip = false |
| | | App.mpType = 'app' |
| | | const app = new Vue({ |
| | |
| | | } |
| | | }, |
| | | 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; |
| | |
| | | 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: { |