From 6c9cbdf482ce1330704dc635c510ec51a1115a9f Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期一, 18 三月 2024 16:52:29 +0800
Subject: [PATCH] #

---
 pages/basics/orderOut.vue |   24 ++++++++++++++++--------
 1 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/pages/basics/orderOut.vue b/pages/basics/orderOut.vue
index 781b754..adaa0c5 100644
--- a/pages/basics/orderOut.vue
+++ b/pages/basics/orderOut.vue
@@ -99,6 +99,7 @@
     export default {
         data() {
             return {
+				commonUrl:null,
                 billNo: '',
                 matList: [],
                 sites: [],
@@ -106,13 +107,20 @@
             }
         },
         mounted(){
-            const UIP = uni.getStorageSync('UIP');
-            this.baseIP = UIP;
-            const UPORT = uni.getStorageSync('UPORT');
-            this.basePORT = UPORT;
-            this.staNoSelect();
+			const UIP = uni.getStorageSync('UIP');
+			this.baseIP = UIP;
+			const UPORT = uni.getStorageSync('UPORT');
+			this.basePORT = UPORT
+			const PROJ = uni.getStorageSync('UPROJ');
+			this.baseUrl = PROJ
+			this.getUrl()
+			this.staNoSelect();
         },
         methods: {
+			// 鑾峰彇url
+			getUrl() {
+				this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
+			},
 			// 娓呯┖鍗曞彿鎼滅储妗�
 			removeBillNo() {
 				this.billNo = null
@@ -120,7 +128,7 @@
             searchBillNo() {
                 let that = this;
                 uni.request({
-                    url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/orderDetl/list/auth",
+                    url: that.commonUrl + "/orderDetl/list/auth",
                     header: {
 						'content-type':"application/x-www-form-urlencoded",
 						'token':uni.getStorageSync('token')
@@ -157,7 +165,7 @@
             staNoSelect() {
                 let that = this;
                 uni.request({
-                    url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/available/take/site",
+                    url: that.commonUrl + "/available/take/site",
                     header: {'token':uni.getStorageSync('token')},
                     success(result) {
 						console.log(result)
@@ -202,7 +210,7 @@
 				console.log(param)
 				// return
                 uni.request({
-                    url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/mobile/order/out/pakout/auth",
+                    url: that.commonUrl + "/mobile/order/out/pakout/auth",
                     header: {
                         'token':uni.getStorageSync('token')},
                     // data: JSON.stringify(param),

--
Gitblit v1.9.1