Bladeren bron

feat:提交代码

longzhicheng 1 jaar geleden
bovenliggende
commit
a20677f6b3
5 gewijzigde bestanden met toevoegingen van 15 en 9 verwijderingen
  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
 // 网络接口修改此字符 小程序域名要求https
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
 console.log("===httpApi=====111111111",httpApi);
11
 console.log("===httpApi=====111111111",httpApi);
12
-console.log("===httpApi",httpApi);
12
+
13
+console.log("===httpApi=====111111111",httpApi);
14
+
13
 export const BASE_URL = httpApi
15
 export const BASE_URL = httpApi
14
 console.log("===BASE_URL",BASE_URL);
16
 console.log("===BASE_URL",BASE_URL);
15
 export const CDN_URL = 'https://cdn.bjtdba.com/chuxubao'
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
 export const USER_LATITUDE = 'user_latitude'
6
 export const USER_LATITUDE = 'user_latitude'
7
 // 用户经度
7
 // 用户经度

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

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