From 21effea0ecb46f78ce5d11e22e18b42518a66e7f Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期二, 13 九月 2022 10:52:35 +0800 Subject: [PATCH] # --- pages/basics/stockQuery.vue | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/pages/basics/stockQuery.vue b/pages/basics/stockQuery.vue index 8a5353d..cb34322 100644 --- a/pages/basics/stockQuery.vue +++ b/pages/basics/stockQuery.vue @@ -73,6 +73,7 @@ export default { data () { return { + commonUrl:null, matList: [], locNo: null, matnr: null @@ -84,8 +85,15 @@ this.baseIP = UIP; const UPORT = uni.getStorageSync('UPORT'); this.basePORT = UPORT + const PROJ = uni.getStorageSync('UPROJ'); + this.baseUrl = PROJ + this.getUrl() }, methods: { + // 鑾峰彇url + getUrl() { + this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl + }, checkbox: function () { }, @@ -100,7 +108,7 @@ request() { let that = this uni.request({ - url:that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/locDetl/list/auth', + url:that.commonUrl + '/locDetl/list/auth', header:{'token':uni.getStorageSync('token')}, data: { curr: 1, -- Gitblit v1.9.1