#
whycq
2022-02-21 8efa54a50763289e6457220ba527b40e35d33afc
#
3个文件已修改
21 ■■■■■ 已修改文件
main.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages.json 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/login/login.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
main.js
@@ -3,9 +3,9 @@
// #ifndef VUE3
import Vue from 'vue'
// Vue.prototype.baseUrl = "http://localhost:8081/acs"
Vue.prototype.baseIP = '192.168.4.138'
Vue.prototype.baseIP = '192.168.4.138:8082'
const baseIP = Vue.prototype.baseIP
Vue.prototype.baseUrl = 'http://' + baseIP + ':8082/xgmwms'
Vue.prototype.baseUrl = 'http://' + baseIP + '/xgmwms'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
pages.json
@@ -1,21 +1,18 @@
{
    "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
        {
            "path": "pages/index/index",
            "style": {
                "navigationBarTitleText": "PDA首页"
            }
        }
        ,
        {
            "path" : "pages/login/login",
            "style": {
                "navigationBarBackgroundColor":"#ffffff",
                "navigationBarTextStyle":"black",
                "navigationBarTitleText": "登录"
            }  
        },
        {
        },{
            "path": "pages/index/index",
            "style": {
                "navigationBarTitleText": "PDA首页"
            }
        },{
            "path" : "pages/basics/combPro",
            "style" :                                                                                    
            {
pages/login/login.vue
@@ -177,7 +177,7 @@
                }
                uni.showLoading();
                uni.request({
                    url: 'http://'+ this.baseUrl + ':8082/xgmwms' + '/login.action',
                    url: this.baseUrl + '/login.action',
                    data: {
                      mobile:this.userName,
                      password:md5.hex_md5(this.password)