From 600caaf8e9aa09ab98bc17318e3c79b2edf5db9c Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期五, 29 七月 2022 15:58:16 +0800 Subject: [PATCH] # --- pages/basics/outPakin.vue | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/pages/basics/outPakin.vue b/pages/basics/outPakin.vue index 80d97bf..6e6ce09 100644 --- a/pages/basics/outPakin.vue +++ b/pages/basics/outPakin.vue @@ -120,6 +120,8 @@ this.baseIP = UIP; const UPORT = uni.getStorageSync('UPORT'); this.basePORT = UPORT + const PROJ = uni.getStorageSync('UPROJ'); + this.baseUrl = PROJ this.getUrl() }, onLoad() { @@ -132,7 +134,7 @@ methods: { // 鑾峰彇url getUrl() { - this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + this.baseUrl + this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl }, radioChange(evt) { for (let i = 0; i < this.origins.length; i++) { @@ -279,6 +281,7 @@ }, // 娣诲姞鎵弿鏃ュ織 addLog(matCode,userName) { + let that = this; uni.request({ url: that.commonUrl + "/mobile/addLog/auth", @@ -291,6 +294,11 @@ }, // method:"POST", success(result) { + var res = result.data + if(res.code === 200) { + // uni.showToast({title: "娣诲姞鎴愬姛", icon: "none",position: 'center'}) + } + } }) @@ -340,6 +348,7 @@ 'token':uni.getStorageSync('token') }, success(result) { + console.log(result) uni.hideLoading(); // uni.vibrateShort(); let res = result.data -- Gitblit v1.9.1