| | |
| | | // #ifndef VUE3 |
| | | import Vue from 'vue' |
| | | Vue.config.productionTip = false |
| | | Vue.prototype.baseUrl = 'http://192.168.4.188:9528' |
| | | Vue.prototype.baseUrl = 'https://47.97.1.152:80/crm' |
| | | App.mpType = 'app' |
| | | const app = new Vue({ |
| | | ...App |
| | |
| | | uni.request({ |
| | | url: that.baseUrl + '/login.action', |
| | | fail(result) { |
| | | uni.showToast({title: '请求失败'}) |
| | | uni.showToast({icon:'error',title: '请求失败'}) |
| | | }, |
| | | data: { |
| | | username:that.user.userName, |
| | |
| | | }, |
| | | success(result) { |
| | | if (result.statusCode === 404) { |
| | | uni.showToast({title: '请重新登录', icon: "none", position: 'top'}) |
| | | uni.showToast({title: '登录失败', icon: "error"}) |
| | | return |
| | | } |
| | | let res = result.data |