whycq
2024-07-25 a8bbfa5addff1f556c670e049f8eb86ebe8c58d0
# xgmFlwms
2个文件已修改
6 ■■■■■ 已修改文件
main.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/login/login.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
main.js
@@ -4,7 +4,7 @@
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({
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: {