longzhicheng 1 год назад
Родитель
Сommit
a20677f6b3
5 измененных файлов с 15 добавлено и 9 удалено
  1. 1 1
      .env.development
  2. 1 1
      .env.production
  3. 5 3
      src/config/app.ts
  4. 1 1
      src/constants/index.ts
  5. 7 3
      src/subPages/pages/store/product/detail.vue

+ 1 - 1
.env.development

@@ -1,3 +1,3 @@
1
-VITE_GLOB_API_URL = 'https://api.hxxfb.com'
1
+VITE_GLOB_API_URL = 'https://testapi.hxxfb.com'
2 2
 
3 3
 

+ 1 - 1
.env.production

@@ -1 +1 @@
1
-VITE_GLOB_API_URL = 'https://api.hxxfb.com'
1
+VITE_GLOB_API_URL = 'https://testapi.hxxfb.com'

+ 5 - 3
src/config/app.ts

@@ -5,11 +5,13 @@ let VUE_APP_WS_URL = `ws://${location.hostname}?type=user`
5 5
 // 网络接口修改此字符 小程序域名要求https
6 6
 
7 7
 
8
-//let httpApi = 'https://testapi.hxxfb.com'
8
+let httpApi = 'https://testapi.hxxfb.com'
9 9
 
10
-let httpApi = 'https://api.hxxfb.com'
10
+//let httpApi = 'https://api.hxxfb.com'
11 11
 console.log("===httpApi=====111111111",httpApi);
12
-console.log("===httpApi",httpApi);
12
+
13
+console.log("===httpApi=====111111111",httpApi);
14
+
13 15
 export const BASE_URL = httpApi
14 16
 console.log("===BASE_URL",BASE_URL);
15 17
 export const CDN_URL = 'https://cdn.bjtdba.com/chuxubao'

+ 1 - 1
src/constants/index.ts

@@ -1,7 +1,7 @@
1 1
 
2 2
 
3 3
 // 应用版本号
4
-export const APP_VERSION = '2.0.1'
4
+export const APP_VERSION = '2.0.2'
5 5
 // 用户纬度
6 6
 export const USER_LATITUDE = 'user_latitude'
7 7
 // 用户经度

+ 7 - 3
src/subPages/pages/store/product/detail.vue

@@ -117,21 +117,25 @@
117 117
 		if(option.initType){
118 118
 			initType.value = option.initType
119 119
 		}
120
-		console.log("===option", option.initType);
120
+		console.log("===option", option);
121
+		console.log("===option.scene", option.scene);
121 122
 		if (option.scene) {
122 123
 			let queryString = decodeURIComponent(option.scene)
124
+			console.log("===queryString",queryString);
123 125
 			// 将字符串按 '&' 分割成数组
124 126
 			const paramsArray = queryString.split('&');
127
+			console.log("===paramsArray",paramsArray);
128
+			
125 129
 			for (const param of paramsArray) {
126 130
 				if (param.includes('id=')) {
127 131
 					// 使用 split('=') 获取参数值
128 132
 					option.id = param.split('=')[1];
129
-					break;
133
+					console.log("===option.id",option.id);
130 134
 				}
131 135
 				if (param.includes('shareID=')) {
132 136
 					// 使用 split('=') 获取参数值
133 137
 					option.shareID = param.split('=')[1];
134
-					break;
138
+					console.log("===option.shareID",option.shareID);
135 139
 				}
136 140
 			}
137 141
 		}