From 6769faf308db7cff877b6a164b10d5a2ff391c92 Mon Sep 17 00:00:00 2001 From: whycq <123456> Date: 星期一, 22 八月 2022 09:26:47 +0800 Subject: [PATCH] # --- pages/basics/order.vue | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pages/basics/order.vue b/pages/basics/order.vue index 54ea69d..952c5fb 100644 --- a/pages/basics/order.vue +++ b/pages/basics/order.vue @@ -125,6 +125,7 @@ export default { data() { return { + commonUrl:null, barcode: '', barcodeFocus:true, focus:false, @@ -150,8 +151,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 + }, // barcode input 浜嬩欢 barcodeInput() { var len = this.barcode.length @@ -283,7 +291,7 @@ } uni.showLoading(); uni.request({ - url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/comb/auth', + url: that.commonUrl + '/mobile/comb/auth', data: JSON.stringify({ orderNo: that.orderNo, barcode: that.barcode, @@ -319,7 +327,7 @@ findOrder() { let that = this uni.request({ - url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/order/search/orderNo/auth', + url: that.commonUrl + '/mobile/order/search/orderNo/auth', data: { orderNo: that.order }, -- Gitblit v1.9.1