From 3e7daebe18087c0511302081583f6af85c1deb95 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期二, 26 七月 2022 15:10:56 +0800 Subject: [PATCH] # --- pages/basics/checkout.vue | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/pages/basics/checkout.vue b/pages/basics/checkout.vue index 522b582..dd4f473 100644 --- a/pages/basics/checkout.vue +++ b/pages/basics/checkout.vue @@ -73,6 +73,7 @@ export default { data() { return { + commonUrl:null, barcode: '', barcodeFocus:true, focus:false, @@ -112,9 +113,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 + }, // 鍑哄簱鍒嗕负涓ょ 涓�:鍏ㄦ澘鍑哄簱 鎵弿鎵樼洏鐮佹樉绀哄叏鏉垮晢鍝� 鍙互鐩存帴纭 浜屾槸鍑忔枡鍑哄簱 鎵弿鎵樼洏鐮佹彁绀洪渶瑕佸嚭搴撴暟閲� 鎵弿璐у搧鏉$爜杈惧埌鏈�澶у嚭搴撴暟閲忓嵆鍙� messageToggle(type) { this.msgType = type @@ -193,7 +200,7 @@ findBarcode() { let that = this uni.request({ - url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/pakout/confirm/barcode/auth', + url: that.commonUrl + '/mobile/pakout/confirm/barcode/auth', data: { barcode:that.barcode }, @@ -233,7 +240,7 @@ findMat() { let that = this uni.request({ - url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/pakout/confirm/pick/auth', + url: that.commonUrl + '/mobile/pakout/confirm/pick/auth', data: { wrkNo:that.wrkNo, matnr:that.matnr @@ -313,7 +320,7 @@ } uni.showLoading(); uni.request({ - url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/pakout/confirm/auth', + url: that.commonUrl + '/mobile/pakout/confirm/auth', data: that.matList, method: 'POST', header: { -- Gitblit v1.9.1