Browse Source

feat:提交代码

longzhicheng 1 year ago
parent
commit
c014ec2888

+ 2 - 0
src/config/app.ts

@@ -14,6 +14,8 @@ let httpApi = 'https://api.gdjbp.com'
14
 // let httpApi = 'http://192.168.1.77:8324'
14
 // let httpApi = 'http://192.168.1.77:8324'
15
 export const CDN_URL = 'https://cdn.bjtdba.com/chuxubao'
15
 export const CDN_URL = 'https://cdn.bjtdba.com/chuxubao'
16
 export const CDM_URL = 'https://cdn.bjtdba.com/vod'
16
 export const CDM_URL = 'https://cdn.bjtdba.com/vod'
17
+export const IMG_CDN_URL='https://api.gdjbp.com/share/xcx/'
18
+export const ICON_CDN_URL='https://api.gdjbp.com/share/xcx/icon/'
17
 
19
 
18
 // 聊天接口修改此字符 小程序聊天要求wss 例如:wss://mer.crmeb.net
20
 // 聊天接口修改此字符 小程序聊天要求wss 例如:wss://mer.crmeb.net
19
 let wsApi = ''
21
 let wsApi = ''

+ 5 - 4
src/pages/home/components/movies.vue

@@ -1,12 +1,13 @@
1
 <script lang="ts" setup>
1
 <script lang="ts" setup>
2
+	import { IMG_CDN_URL ,ICON_CDN_URL} from '~/config/app.ts'
2
 	const currentIndex = ref(0)
3
 	const currentIndex = ref(0)
3
 
4
 
4
 	const moviesList = ref([
5
 	const moviesList = ref([
5
-		{
			img: '/static/img/video1.png',
6
+		{
			img: `${IMG_CDN_URL}video1.png`,
6
 			title: '误杀3'
		},
7
 			title: '误杀3'
		},
7
-		{
			img: '/static/img/video2.png',
8
-			title: '小小的我'
		}, {
			img: '/static/img/video3.png',
9
-			title: '"骗骗"喜欢你'
		}, {
			img: '/static/img/video4.png',
8
+		{
			img: `${IMG_CDN_URL}video2.png`,
9
+			title: '小小的我'
		}, {
			img: `${IMG_CDN_URL}video3.png`,
10
+			title: '"骗骗"喜欢你'
		}, {
			img: `${IMG_CDN_URL}video4.png`,
10
 			title: '帕丁顿熊3'
		}
11
 			title: '帕丁顿熊3'
		}
11
 	])
12
 	])
12
 	function onItemClick(){
13
 	function onItemClick(){

+ 1 - 0
src/pages/home/components/navs.vue

@@ -126,6 +126,7 @@
126
 			}
126
 			}
127
 			case KINGKONGKEY.JCSH:{
127
 			case KINGKONGKEY.JCSH:{
128
 				uni.navigateTo({
128
 				uni.navigateTo({
129
+					
129
 					url: `/pages/quick-fuc/life?type=${item.key}&title=精彩生活`,
130
 					url: `/pages/quick-fuc/life?type=${item.key}&title=精彩生活`,
130
 				})
131
 				})
131
 				break
132
 				break

+ 62 - 61
src/pages/home/constants.js

@@ -1,4 +1,5 @@
1
-import { KINGKONGKEY } from '../../apis/model/common.model.ts'
1
+import { KINGKONGKEY } from '~/apis/model/common.model.ts'
2
+import { IMG_CDN_URL ,ICON_CDN_URL} from '~/config/app.ts'
2
 export const TOP_LAB_ARR = [{
3
 export const TOP_LAB_ARR = [{
3
 		title: "精品",
4
 		title: "精品",
4
 		checked: true,
5
 		checked: true,
@@ -113,252 +114,252 @@ export const PRODUCT_TAB_ARR = [{
113
 ];
114
 ];
114
 //热门
115
 //热门
115
 export const NAVS_HOT_ARR = [{
116
 export const NAVS_HOT_ARR = [{
116
-	image: `/static/icon/icon_vip.png`,
117
+	image: `${ICON_CDN_URL}icon_vip.png`,
117
 	title: '会员专区',
118
 	title: '会员专区',
118
 	key: KINGKONGKEY.VIP,
119
 	key: KINGKONGKEY.VIP,
119
 }, {
120
 }, {
120
-	image: `/static/icon/icon_jcsh.png`,
121
+	image: `${ICON_CDN_URL}icon_jcsh.png`,
121
 	title: '精彩生活',
122
 	title: '精彩生活',
122
 	key: KINGKONGKEY.JCSH,
123
 	key: KINGKONGKEY.JCSH,
123
 }, {
124
 }, {
124
-	image: `/static/icon/icon_sjzy.png`,
125
+	image: `${ICON_CDN_URL}icon_sjzy.png`,
125
 	title: '商贸专区',
126
 	title: '商贸专区',
126
 	key: KINGKONGKEY.SMZQ,
127
 	key: KINGKONGKEY.SMZQ,
127
 }, {
128
 }, {
128
-	image: `/static/icon/icon_fg.png`,
129
+	image: `${ICON_CDN_URL}icon_fg.png`,
129
 	title: '复购区',
130
 	title: '复购区',
130
 	key: KINGKONGKEY.FGQ,
131
 	key: KINGKONGKEY.FGQ,
131
 }, {
132
 }, {
132
-	image: `/static/icon/icon_rx.png`,
133
+	image: `${ICON_CDN_URL}icon_rx.png`,
133
 	title: '热销榜单',
134
 	title: '热销榜单',
134
 	key: KINGKONGKEY.RXBD,
135
 	key: KINGKONGKEY.RXBD,
135
 }, {
136
 }, {
136
-	image: `/static/icon/icon_jd.png`,
137
+	image: `${ICON_CDN_URL}icon_jd.png`,
137
 	title: '京东',
138
 	title: '京东',
138
 	key: KINGKONGKEY.JD,
139
 	key: KINGKONGKEY.JD,
139
 }, {
140
 }, {
140
-	image: `/static/icon/icon_pdd.png`,
141
+	image: `${ICON_CDN_URL}icon_pdd.png`,
141
 	title: '拼多多',
142
 	title: '拼多多',
142
 	key: KINGKONGKEY.PDD,
143
 	key: KINGKONGKEY.PDD,
143
 }, {
144
 }, {
144
-	image: `/static/icon/icon_vph.png`,
145
+	image: `${ICON_CDN_URL}icon_vph.png`,
145
 	title: '唯品会',
146
 	title: '唯品会',
146
 	key: KINGKONGKEY.WPH,
147
 	key: KINGKONGKEY.WPH,
147
 }, {
148
 }, {
148
-	image: `/static/icon/home_suningyigou_220920.png`,
149
+	image: `${ICON_CDN_URL}home_suningyigou_220920.png`,
149
 	title: '苏宁易购',
150
 	title: '苏宁易购',
150
 	key: KINGKONGKEY.SN,
151
 	key: KINGKONGKEY.SN,
151
 }, {
152
 }, {
152
-	image: `/static/icon/douyin_x_230313.png`,
153
+	image: `${ICON_CDN_URL}douyin_x_230313.png`,
153
 	title: '抖音',
154
 	title: '抖音',
154
 	key: KINGKONGKEY.DY,
155
 	key: KINGKONGKEY.DY,
155
 }, {
156
 }, {
156
-	image: `/static/icon/icon_ks.png`,
157
+	image: `${ICON_CDN_URL}icon_ks.png`,
157
 	title: '快手',
158
 	title: '快手',
158
 	key: KINGKONGKEY.KS,
159
 	key: KINGKONGKEY.KS,
159
 }, {
160
 }, {
160
-	image: `/static/icon/icon_dd.png`,
161
+	image: `${ICON_CDN_URL}icon_dd.png`,
161
 	title: '打车代价',
162
 	title: '打车代价',
162
 	key: KINGKONGKEY.KS,
163
 	key: KINGKONGKEY.KS,
163
 }, {
164
 }, {
164
-	image: `/static/icon/icon_mdl.png`,
165
+	image: `${ICON_CDN_URL}icon_mdl.png`,
165
 	title: '麦当劳KFC',
166
 	title: '麦当劳KFC',
166
 	key: KINGKONGKEY.MDL,
167
 	key: KINGKONGKEY.MDL,
167
 }, {
168
 }, {
168
-	image: `/static/icon/icon_jkd.png`,
169
+	image: `${ICON_CDN_URL}icon_jkd.png`,
169
 	title: '寄快递',
170
 	title: '寄快递',
170
 	key: KINGKONGKEY.JKD,
171
 	key: KINGKONGKEY.JKD,
171
 }, {
172
 }, {
172
-	image: `/static/icon/icon_recharge.png`,
173
+	image: `${ICON_CDN_URL}icon_recharge.png`,
173
 	title: '话费充值',
174
 	title: '话费充值',
174
 	key: KINGKONGKEY.RECHARGE,
175
 	key: KINGKONGKEY.RECHARGE,
175
 }];
176
 }];
176
 
177
 
177
 //购物
178
 //购物
178
 export const NAVS_SHOP_ARR = [{
179
 export const NAVS_SHOP_ARR = [{
179
-	image: `/static/icon/icon_qiang.png`,
180
+	image: `${ICON_CDN_URL}icon_qiang.png`,
180
 	title: '疯抢榜',
181
 	title: '疯抢榜',
181
 	key: KINGKONGKEY.QIANG,
182
 	key: KINGKONGKEY.QIANG,
182
 }, {
183
 }, {
183
-	image: `/static/icon/icon_rx.png`,
184
+	image: `${ICON_CDN_URL}icon_rx.png`,
184
 	title: '热销榜单',
185
 	title: '热销榜单',
185
 	key: KINGKONGKEY.RXBD,
186
 	key: KINGKONGKEY.RXBD,
186
 }, {
187
 }, {
187
-	image: `/static/icon/icon_9_9by.png`,
188
+	image: `${ICON_CDN_URL}icon_9_9by.png`,
188
 	title: '9.9包邮',
189
 	title: '9.9包邮',
189
 	key: KINGKONGKEY.BY,
190
 	key: KINGKONGKEY.BY,
190
 }, {
191
 }, {
191
-	image: `/static/icon/icon_jhs.png`,
192
+	image: `${ICON_CDN_URL}icon_jhs.png`,
192
 	title: '聚划算',
193
 	title: '聚划算',
193
 	key: KINGKONGKEY.JHS,
194
 	key: KINGKONGKEY.JHS,
194
 }, {
195
 }, {
195
-	image: `/static/icon/home_xianshimiaosha_220614.png`,
196
+	image: `${ICON_CDN_URL}home_xianshimiaosha_220614.png`,
196
 	title: '限时秒杀',
197
 	title: '限时秒杀',
197
 	key: KINGKONGKEY.XSMS,
198
 	key: KINGKONGKEY.XSMS,
198
 }, {
199
 }, {
199
-	image: `/static/icon/icon_tmcs.png`,
200
+	image: `${ICON_CDN_URL}icon_tmcs.png`,
200
 	title: '天猫超市',
201
 	title: '天猫超市',
201
 	key: KINGKONGKEY.TMCS,
202
 	key: KINGKONGKEY.TMCS,
202
 }, {
203
 }, {
203
-	image: `/static/icon/icon_tmgj.png`,
204
+	image: `${ICON_CDN_URL}icon_tmgj.png`,
204
 	title: '天猫国际',
205
 	title: '天猫国际',
205
 	key: KINGKONGKEY.TMGJ,
206
 	key: KINGKONGKEY.TMGJ,
206
 }, {
207
 }, {
207
-	image: `/static/icon/icon_vph.png`,
208
+	image: `${ICON_CDN_URL}icon_vph.png`,
208
 	title: '唯品会',
209
 	title: '唯品会',
209
 	key: KINGKONGKEY.WPH,
210
 	key: KINGKONGKEY.WPH,
210
 }, {
211
 }, {
211
-	image: `/static/icon/home_suningyigou_220920.png`,
212
+	image: `${ICON_CDN_URL}home_suningyigou_220920.png`,
212
 	title: '中免日上',
213
 	title: '中免日上',
213
 	key: KINGKONGKEY.ZMRS,
214
 	key: KINGKONGKEY.ZMRS,
214
 }, {
215
 }, {
215
-	image: `/static/icon/icon_jdsx.png`,
216
+	image: `${ICON_CDN_URL}icon_jdsx.png`,
216
 	title: '京东生鲜',
217
 	title: '京东生鲜',
217
 	key: KINGKONGKEY.JDSX,
218
 	key: KINGKONGKEY.JDSX,
218
 }, {
219
 }, {
219
-	image: `/static/icon/icon_xm.png`,
220
+	image: `${ICON_CDN_URL}icon_xm.png`,
220
 	title: '小米优品',
221
 	title: '小米优品',
221
 	key: KINGKONGKEY.XMYP,
222
 	key: KINGKONGKEY.XMYP,
222
 }, {
223
 }, {
223
-	image: `/static/icon/icon_klhg.png`,
224
+	image: `${ICON_CDN_URL}icon_klhg.png`,
224
 	title: '考拉海购',
225
 	title: '考拉海购',
225
 	key: KINGKONGKEY.KLHG,
226
 	key: KINGKONGKEY.KLHG,
226
 }, {
227
 }, {
227
-	image: `/static/icon/icon_shlx.png`,
228
+	image: `${ICON_CDN_URL}icon_shlx.png`,
228
 	title: '生活旅行',
229
 	title: '生活旅行',
229
 	key: KINGKONGKEY.SHLX,
230
 	key: KINGKONGKEY.SHLX,
230
 }, {
231
 }, {
231
-	image: `/static/icon/icon_qysh.png`,
232
+	image: `${ICON_CDN_URL}icon_qysh.png`,
232
 	title: '权益充值',
233
 	title: '权益充值',
233
 	key: KINGKONGKEY.QYCZ,
234
 	key: KINGKONGKEY.QYCZ,
234
 }, {
235
 }, {
235
-	image: `/static/icon/icon_wm.png`,
236
+	image: `${ICON_CDN_URL}icon_wm.png`,
236
 	title: '外卖优惠',
237
 	title: '外卖优惠',
237
 	key: KINGKONGKEY.WMYH,
238
 	key: KINGKONGKEY.WMYH,
238
 }];
239
 }];
239
 
240
 
240
 //美食
241
 //美食
241
 export const NAVS_FOOD_ARR = [{
242
 export const NAVS_FOOD_ARR = [{
242
-	image: `/static/icon/icon_elm.png`,
243
+	image: `${ICON_CDN_URL}icon_elm.png`,
243
 	title: '饿了么',
244
 	title: '饿了么',
244
 	key: KINGKONGKEY.ELM,
245
 	key: KINGKONGKEY.ELM,
245
 }, {
246
 }, {
246
-	image: `/static/icon/icon_mtwm.png`,
247
+	image: `${ICON_CDN_URL}icon_mtwm.png`,
247
 	title: '美团外卖',
248
 	title: '美团外卖',
248
 	key: KINGKONGKEY.MTWM,
249
 	key: KINGKONGKEY.MTWM,
249
 }, {
250
 }, {
250
-	image: `/static/icon/icon_nxc.png`,
251
+	image: `${ICON_CDN_URL}icon_nxc.png`,
251
 	title: '奈雪の茶',
252
 	title: '奈雪の茶',
252
 	key: KINGKONGKEY.NXC,
253
 	key: KINGKONGKEY.NXC,
253
 }, {
254
 }, {
254
-	image: `/static/icon/icon_hls.png`,
255
+	image: `${ICON_CDN_URL}icon_hls.png`,
255
 	title: '华莱士',
256
 	title: '华莱士',
256
 	key: KINGKONGKEY.HLS,
257
 	key: KINGKONGKEY.HLS,
257
 }, {
258
 }, {
258
-	image: `/static/icon/icon_hbw.png`,
259
+	image: `${ICON_CDN_URL}icon_hbw.png`,
259
 	title: '汉堡王',
260
 	title: '汉堡王',
260
 	key: KINGKONGKEY.HBW,
261
 	key: KINGKONGKEY.HBW,
261
 }, {
262
 }, {
262
-	image: `/static/icon/icon_kfc.png`,
263
+	image: `${ICON_CDN_URL}icon_kfc.png`,
263
 	title: '肯德基',
264
 	title: '肯德基',
264
 	key: KINGKONGKEY.KFC,
265
 	key: KINGKONGKEY.KFC,
265
 }, {
266
 }, {
266
-	image: `/static/icon/icon_xbk.png`,
267
+	image: `${ICON_CDN_URL}icon_xbk.png`,
267
 	title: '星巴克',
268
 	title: '星巴克',
268
 	key: KINGKONGKEY.XBK,
269
 	key: KINGKONGKEY.XBK,
269
 }, {
270
 }, {
270
-	image: `/static/icon/icon_mdl.png`,
271
+	image: `${ICON_CDN_URL}icon_mdl.png`,
271
 	title: '麦当劳',
272
 	title: '麦当劳',
272
 	key: KINGKONGKEY.MDL,
273
 	key: KINGKONGKEY.MDL,
273
 }, {
274
 }, {
274
-	image: `/static/icon/icon_rxkf.png`,
275
+	image: `${ICON_CDN_URL}icon_rxkf.png`,
275
 	title: '瑞幸咖啡',
276
 	title: '瑞幸咖啡',
276
 	key: KINGKONGKEY.RXKF,
277
 	key: KINGKONGKEY.RXKF,
277
 }, {
278
 }, {
278
-	image: `/static/icon/icon_xc.png`,
279
+	image: `${ICON_CDN_URL}icon_xc.png`,
279
 	title: '喜茶',
280
 	title: '喜茶',
280
 	key: KINGKONGKEY.XC,
281
 	key: KINGKONGKEY.XC,
281
 }, {
282
 }, {
282
-	image: `/static/icon/icon_bgy.png`,
283
+	image: `${ICON_CDN_URL}icon_bgy.png`,
283
 	title: '百果园',
284
 	title: '百果园',
284
 	key: KINGKONGKEY.BGY,
285
 	key: KINGKONGKEY.BGY,
285
 }, {
286
 }, {
286
-	image: `/static/icon/icon_kdkf.png`,
287
+	image: `${ICON_CDN_URL}icon_kdkf.png`,
287
 	title: '库迪咖啡',
288
 	title: '库迪咖啡',
288
 	key: KINGKONGKEY.KDKF,
289
 	key: KINGKONGKEY.KDKF,
289
 }, {
290
 }, {
290
-	image: `/static/icon/icon_dks.png`,
291
+	image: `${ICON_CDN_URL}icon_dks.png`,
291
 	title: '德克士',
292
 	title: '德克士',
292
 	key: KINGKONGKEY.DKS,
293
 	key: KINGKONGKEY.DKS,
293
 }, {
294
 }, {
294
-	image: `/static/icon/icon_bsk.png`,
295
+	image: `${ICON_CDN_URL}icon_bsk.png`,
295
 	title: '必胜客',
296
 	title: '必胜客',
296
 	key: KINGKONGKEY.BSK,
297
 	key: KINGKONGKEY.BSK,
297
 }, {
298
 }, {
298
-	image: `/static/icon/icon_mc.png`,
299
+	image: `${ICON_CDN_URL}icon_mc.png`,
299
 	title: '买菜',
300
 	title: '买菜',
300
 	key: KINGKONGKEY.MC,
301
 	key: KINGKONGKEY.MC,
301
 }];
302
 }];
302
 
303
 
303
 //生活
304
 //生活
304
 export const NAVS_LIFE_ARR = [{
305
 export const NAVS_LIFE_ARR = [{
305
-	image: `/static/icon/icon_fz.png`,
306
+	image: `${ICON_CDN_URL}icon_fz.png`,
306
 	title: '飞猪',
307
 	title: '飞猪',
307
 	key: KINGKONGKEY.FZ,
308
 	key: KINGKONGKEY.FZ,
308
 }, {
309
 }, {
309
-	image: `/static/icon/icon_lxmp.png`,
310
+	image: `${ICON_CDN_URL}icon_lxmp.png`,
310
 	title: '旅行门票',
311
 	title: '旅行门票',
311
 	key: KINGKONGKEY.LXMP,
312
 	key: KINGKONGKEY.LXMP,
312
 }, {
313
 }, {
313
-	image: `/static/icon/icon_mtjd.png`,
314
+	image: `${ICON_CDN_URL}icon_mtjd.png`,
314
 	title: '美团酒店',
315
 	title: '美团酒店',
315
 	key: KINGKONGKEY.MTJD,
316
 	key: KINGKONGKEY.MTJD,
316
 }, {
317
 }, {
317
-	image: `/static/icon/icon_yhcx.png`,
318
+	image: `${ICON_CDN_URL}icon_yhcx.png`,
318
 	title: '优惠出行',
319
 	title: '优惠出行',
319
 	key: KINGKONGKEY.YHCX,
320
 	key: KINGKONGKEY.YHCX,
320
 }, {
321
 }, {
321
-	image: `/static/icon/icon_jkd.png`,
322
+	image: `${ICON_CDN_URL}icon_jkd.png`,
322
 	title: '寄快递',
323
 	title: '寄快递',
323
 	key: KINGKONGKEY.JKD,
324
 	key: KINGKONGKEY.JKD,
324
 }, {
325
 }, {
325
-	image: `/static/icon/icon_jzfw.png`,
326
+	image: `${ICON_CDN_URL}icon_jzfw.png`,
326
 	title: '家政服务',
327
 	title: '家政服务',
327
 	key: KINGKONGKEY.JZFW,
328
 	key: KINGKONGKEY.JZFW,
328
 }, {
329
 }, {
329
-	image: `/static/icon/icon_djfw.png`,
330
+	image: `${ICON_CDN_URL}icon_djfw.png`,
330
 	title: '代驾服务',
331
 	title: '代驾服务',
331
 	key: KINGKONGKEY.DJFW,
332
 	key: KINGKONGKEY.DJFW,
332
 }, {
333
 }, {
333
-	image: `/static/icon/icon_czjb.png`,
334
+	image: `${ICON_CDN_URL}icon_czjb.png`,
334
 	title: '超值卷包',
335
 	title: '超值卷包',
335
 	key: KINGKONGKEY.CZJB,
336
 	key: KINGKONGKEY.CZJB,
336
 }, {
337
 }, {
337
-	image: `/static/icon/icon_shbxp.png`,
338
+	image: `${ICON_CDN_URL}icon_shbxp.png`,
338
 	title: '生活必需品',
339
 	title: '生活必需品',
339
 	key: KINGKONGKEY.SHBXP,
340
 	key: KINGKONGKEY.SHBXP,
340
 }, {
341
 }, {
341
-	image: `/static/icon/icon_cjyx.png`,
342
+	image: `${ICON_CDN_URL}icon_cjyx.png`,
342
 	title: '超级优选',
343
 	title: '超级优选',
343
 	key: KINGKONGKEY.CJYX,
344
 	key: KINGKONGKEY.CJYX,
344
 }, {
345
 }, {
345
-	image: `/static/icon/icon_xyzc.png`,
346
+	image: `${ICON_CDN_URL}icon_xyzc.png`,
346
 	title: '小样种草',
347
 	title: '小样种草',
347
 	key: KINGKONGKEY.XYZC,
348
 	key: KINGKONGKEY.XYZC,
348
 }, {
349
 }, {
349
-	image: `/static/icon/icon_aljk.png`,
350
+	image: `${ICON_CDN_URL}icon_aljk.png`,
350
 	title: '阿里健康',
351
 	title: '阿里健康',
351
 	key: KINGKONGKEY.ALJK,
352
 	key: KINGKONGKEY.ALJK,
352
 }, {
353
 }, {
353
-	image: `/static/icon/icon_flqd.png`,
354
+	image: `${ICON_CDN_URL}icon_flqd.png`,
354
 	title: '福利清单',
355
 	title: '福利清单',
355
 	key: KINGKONGKEY.FLQD,
356
 	key: KINGKONGKEY.FLQD,
356
 }, {
357
 }, {
357
-	image: `/static/icon/icon_mtwm.png`,
358
+	image: `${ICON_CDN_URL}icon_mtwm.png`,
358
 	title: '美团外卖',
359
 	title: '美团外卖',
359
 	key: KINGKONGKEY.MTWM,
360
 	key: KINGKONGKEY.MTWM,
360
 }, {
361
 }, {
361
-	image: `/static/icon/icon_jkd.png`,
362
+	image: `${ICON_CDN_URL}icon_jkd.png`,
362
 	title: '寄快递',
363
 	title: '寄快递',
363
 	key: KINGKONGKEY.JKD,
364
 	key: KINGKONGKEY.JKD,
364
 }];
365
 }];

+ 470 - 0
src/subPages/paegs/quick-fuc/business.vue

@@ -0,0 +1,470 @@
1
+<template>
2
+	<view class="business-container">
3
+		<view class="lab-content">
4
+			<scroll-view scroll-x="true" class="lab-item">
5
+				<view class="lab-item-x" v-for="(item,index) in tabList" :key="'lab-item-x-'+index">
6
+					<view class="lab-item-small" @click="onTabClick(index,item.merchant_category_id)">
7
+						<text :class="currentIndex==index?'lab-title':'lab-default-title'">{{item.category_name}}</text>
8
+						<view :class="currentIndex==index?'lab-line':'lab-default-line'"></view>
9
+					</view>
10
+				</view>
11
+			</scroll-view>
12
+		</view>
13
+		<view class="banner-content">
14
+			<image class="top-banner" src="/static/img/img_banner_dslm.png" mode="aspectFill"></image>
15
+		</view>
16
+		<view class="fuc-content">
17
+			<view @click="onFucClick" class="fuc-item" v-for="(item,index) in MU_TABLE_LIST" :key="'fuc-item-'+index">
18
+				<text class="item-title">{{item.title}}</text>
19
+				<text class="item-des">{{item.des}}</text>
20
+				<image class="item-img" :src="item.icon" mode=""></image>
21
+			</view>
22
+		</view>
23
+		<view v-if="goodsList&& goodsList.length!=0" v-for="(item,index) in goodsList" :key="'goods-x-'+index">
24
+			<view class="vip-content" v-if="item.childList&& item.childList.length!=0"
25
+				@click="goShopClick(item.mer_id)">
26
+				<image class="vip-bg" src="/static/img/item_smq_bg.png" mode="aspectFill"></image>
27
+				<view class="left-lab-content">
28
+					<image class="lab-icon" :src="item.mer_avatar" mode="widthFix"></image>
29
+					<text class="lab-title">{{item.mer_name}}</text>
30
+					<view class="small-lab">补充养老</view>
31
+				</view>
32
+				<view class="right-lab-content">
33
+					<text class="right-tx">进入店铺</text>
34
+					<image class="right-icon" src="/static/icon/img_jt_right.png" mode="widthFix"></image>
35
+				</view>
36
+			</view>
37
+			<view class="goods-scoll-content">
38
+				<scroll-view scroll-x="true" class="goods-scoll-item">
39
+					<view @click="onDetailClick(childItem.product_id)" class="goods-scoll-item-x"
40
+						v-for="(childItem,childIndex) in item.childList" :key="'goods-scoll-item-x-'+childIndex">
41
+						<view class="goods-item">
42
+							<image class="goods-img" :src="childItem.image" mode="aspectFill"></image>
43
+							<text class="goods-title">{{childItem.store_name}}</text>
44
+							<view class="price-content">
45
+								<text class="goods-des">{{childItem.price}}</text>
46
+								<text class="goods-des">pv:{{childItem.pv?childItem.pv:0}}</text>
47
+							</view>
48
+						</view>
49
+					</view>
50
+				</scroll-view>
51
+			</view>
52
+			
53
+		</view>
54
+		
55
+		<CXBEmpty v-else />
56
+	</view>
57
+</template>
58
+
59
+<script setup>
60
+	import {
61
+		MU_TABLE_LIST
62
+	} from "./constants.js"
63
+	import {
64
+		apiGetCategoryList,
65
+		apiGetProductType,
66
+		apiGetProductList
67
+	} from '~/apis/quickLink'
68
+	import { getProductShare } from "~/apis/common";
69
+	const currentIndex = ref(0)
70
+	const tabList = ref([])
71
+	const goodsList = ref([])
72
+	let id=''
73
+
74
+
75
+	onLoad((option) => {
76
+		console.log();
77
+		getCategoryList()
78
+		getProductType()
79
+		console.log("===")
80
+		if (option && option.shareId) {
81
+		  userStore.setShareId(option.shareId)
82
+		}
83
+		getProductShare().then(res => {
84
+		  if (res) userStore.setShareId(res.share_id)
85
+		}).catch(message => {
86
+		})
87
+	})
88
+
89
+	onShareAppMessage(() => {
90
+		const shareId = Cache.get('SHARE_ID')
91
+		return {
92
+			title: `消费储蓄 保障未来`,
93
+			path: `/pages/vip/index?shareId=${shareId}`,
94
+			imageUrl: 'https://cdn.bjtdba.com/vod/image/2023-10-09/20231009202402136.png'
95
+		}
96
+	})
97
+
98
+	onShareTimeline(() => {
99
+		const shareId = Cache.get('SHARE_ID')
100
+		return {
101
+			title: `消费储蓄 保障未来`,
102
+			query: `from=share&shareId=${shareId}`,
103
+			imageUrl: 'https://cdn.bjtdba.com/vod/image/2023-10-11/20231011062523504.png'
104
+		}
105
+	})
106
+
107
+	onReachBottom(() => {
108
+		console.log('到底了。。。')
109
+		
110
+	})
111
+
112
+	onPullDownRefresh(() => {
113
+		getProductType()
114
+		uni.stopPullDownRefresh()
115
+	})
116
+
117
+	function onTabClick(position, id) {
118
+		currentIndex.value = position
119
+		id.value = id
120
+		getProductType()
121
+	}
122
+
123
+	function goShopClick(id) {
124
+		uni.navigateTo({
125
+			url: `/pages/store/home/index?id=${id}`
126
+		})
127
+	}
128
+
129
+	function onDetailClick(id) {
130
+		uni.navigateTo({
131
+			url: `/pages/store/product/detail?id=${id}`
132
+		})
133
+	}
134
+
135
+	function onFucClick() {
136
+		uni.showToast({
137
+			title: '升级中',
138
+			icon: 'none'
139
+		})
140
+	}
141
+
142
+	function getCategoryList() {
143
+		apiGetCategoryList().then((res) => {
144
+			let _list = new Array()
145
+			_list.push({
146
+				category_name: '全部',
147
+				merchant_category_id: ''
148
+			})
149
+			if (res.merchantCategory && res.merchantCategory.length != 0) {
150
+				_list.push(...res.merchantCategory)
151
+			}
152
+			tabList.value = _list
153
+		})
154
+	}
155
+
156
+	function getProductType() {
157
+		uni.showLoading({
158
+			title:'加载中...'
159
+		})
160
+		apiGetProductType(id.value).then((res) => {
161
+			if (res && res.pageInfo && res.pageInfo.list) {
162
+				goodsList.value = res.pageInfo.list
163
+				dealData()
164
+			}
165
+			uni.hideLoading()
166
+		})
167
+	}
168
+
169
+	function dealData() {
170
+		for (let i = 0; i < goodsList.value.length; i++) {
171
+			let _id = goodsList.value[i].mer_id
172
+			apiGetProductList(_id).then(resx => {
173
+				if (resx.pageInfo.list && resx.pageInfo.list.length != 0) {
174
+					goodsList.value[i].childList = resx.pageInfo.list
175
+				}
176
+			})
177
+		}
178
+	}
179
+</script>
180
+
181
+<style lang="scss" scoped>
182
+	.business-container {
183
+		display: flex;
184
+		flex-direction: column;
185
+		min-height: 100VH;
186
+		background-color: #f8f8f8;
187
+		box-sizing: border-box;
188
+
189
+		.goods-content {
190
+			display: flex;
191
+			flex-direction: row;
192
+			margin-left: 10rpx;
193
+			margin-right: 10rpx;
194
+
195
+
196
+		}
197
+
198
+		.goods-item {
199
+			display: flex;
200
+			margin-left: 10rpx;
201
+			margin-right: 10rpx;
202
+			width: 230rpx;
203
+			align-items: center;
204
+			justify-content: center;
205
+			flex-direction: column;
206
+			background-color: #fff;
207
+			border-radius: 20rpx;
208
+
209
+			.goods-img {
210
+				width: 230rpx;
211
+				height: 230rpx;
212
+				border-top-right-radius: 20rpx;
213
+				border-top-left-radius: 20rpx;
214
+				background-color: #333;
215
+			}
216
+
217
+			.goods-title {
218
+				width: 230rpx;
219
+				font-size: 28rpx;
220
+				color: #333;
221
+				margin-top: 10rpx;
222
+				text-overflow: ellipsis;
223
+				overflow: hidden;
224
+				margin-left: 10rpx;
225
+				margin-right: 10rpx;
226
+				word-break: break-all;
227
+				white-space: nowrap;
228
+			}
229
+
230
+			.price-content {
231
+				margin-top: 10rpx;
232
+				display: flex;
233
+				margin-bottom: 20rpx;
234
+				flex-direction: row;
235
+				align-items: center;
236
+				justify-content: space-between;
237
+				padding-left: 16rpx;
238
+				padding-right: 16rpx;
239
+				box-sizing: border-box;
240
+				width: 100%;
241
+
242
+				.price-left {
243
+					font-size: 28rpx;
244
+					color: #333;
245
+				}
246
+
247
+				.price-rifht {
248
+					font-size: 28rpx;
249
+					color: #333;
250
+				}
251
+			}
252
+
253
+
254
+		}
255
+
256
+		.vip-content {
257
+			margin: 20rpx;
258
+			position: relative;
259
+			height: 100rpx;
260
+			display: flex;
261
+			flex-direction: row;
262
+			align-items: center;
263
+			box-sizing: border-box;
264
+
265
+			.vip-bg {
266
+				position: absolute;
267
+				height: 100rpx;
268
+				width: 710rpx;
269
+				border-top-right-radius: 20rpx;
270
+				border-top-left-radius: 20rpx;
271
+			}
272
+
273
+			.right-lab-content {
274
+				display: flex;
275
+				flex-direction: row;
276
+				align-items: center;
277
+				flex: 1;
278
+				z-index: 22;
279
+				justify-content: flex-end;
280
+
281
+				.right-tx {
282
+					color: #fff;
283
+					font-size: 26rpx;
284
+					margin-right: 10rpx;
285
+				}
286
+
287
+				.right-icon {
288
+					width: 14rpx;
289
+					height: 10rpx;
290
+					margin-right: 20rpx;
291
+				}
292
+			}
293
+
294
+			.left-lab-content {
295
+				height: 50rpx;
296
+				background-color: #fff;
297
+				border-radius: 20rpx;
298
+				z-index: 222;
299
+				display: flex;
300
+				flex-direction: row;
301
+				align-items: center;
302
+				margin-left: 20rpx;
303
+
304
+				.lab-icon {
305
+					width: 30rpx;
306
+					height: 30rpx;
307
+					margin-left: 10rpx;
308
+				}
309
+
310
+				.lab-title {
311
+					font-size: 26rpx;
312
+					color: #333;
313
+					margin-left: 10rpx;
314
+				}
315
+
316
+				.small-lab {
317
+					border-radius: 20rpx;
318
+					background-color: #000;
319
+					margin-right: 10rpx;
320
+					color: #fff;
321
+					font-size: 24rpx;
322
+					padding-left: 6rpx;
323
+					padding-right: 6rpx;
324
+					margin-left: 20rpx;
325
+				}
326
+
327
+			}
328
+
329
+		}
330
+
331
+		.fuc-content {
332
+			display: flex;
333
+			padding-left: 14rpx;
334
+			padding-right: 14rpx;
335
+			margin-top: 20rpx;
336
+			flex-direction: row;
337
+
338
+			.fuc-item {
339
+				flex: 1;
340
+				display: flex;
341
+				flex-direction: column;
342
+				background-color: #fff;
343
+				border-radius: 10rpx;
344
+				margin-left: 6rpx;
345
+				margin-right: 6rpx;
346
+				padding-top: 30rpx;
347
+				padding-bottom: 30rpx;
348
+				align-items: center;
349
+				justify-content: center;
350
+
351
+				.item-img {
352
+					width: 80rpx;
353
+					height: 80rpx;
354
+				}
355
+
356
+				.item-title {
357
+					font-size: 30rpx;
358
+					font-weight: bolder;
359
+					color: #333;
360
+					margin-bottom: 10rpx;
361
+				}
362
+
363
+				.item-des {
364
+					font-size: 24rpx;
365
+					color: #999;
366
+					margin-bottom: 40rpx;
367
+				}
368
+
369
+			}
370
+		}
371
+
372
+		.banner-content {
373
+			background-color: #fff;
374
+			padding: 20rpx;
375
+			height: 360rpx;
376
+			display: flex;
377
+			flex-direction: column;
378
+			margin-top: 90rpx;
379
+			box-sizing: border-box;
380
+
381
+			.top-banner {
382
+				border-radius: 20rpx;
383
+				background: #999;
384
+				height: 360rpx;
385
+				width: 100%;
386
+			}
387
+		}
388
+
389
+		.goods-scoll-content {
390
+			width: 100%;
391
+			display: flex;
392
+			flex-direction: row;
393
+			align-items: center;
394
+
395
+			.goods-scoll-item {
396
+				display: flex;
397
+				flex-direction: row;
398
+				white-space: nowrap;
399
+				width: 100%;
400
+				margin-left: 10rpx;
401
+				margin-right: 10rpx;
402
+			}
403
+
404
+			.goods-scoll-item-x {
405
+				display: inline-block;
406
+				text-align: center;
407
+				width: 230rpx;
408
+				margin-right: 16rpx;
409
+			}
410
+		}
411
+
412
+		.lab-content {
413
+			width: 100%;
414
+			height: 90rpx;
415
+			display: flex;
416
+			flex-direction: row;
417
+			align-items: center;
418
+			position: fixed;
419
+			top: 0;
420
+			left: 0;
421
+			background-color: #fff;
422
+			z-index: 99999;
423
+
424
+			.lab-item {
425
+				display: flex;
426
+				flex-direction: row;
427
+				white-space: nowrap;
428
+				width: 100%;
429
+			}
430
+
431
+			.lab-item-x {
432
+				display: inline-block;
433
+				margin-right: 10px;
434
+				text-align: center;
435
+			}
436
+
437
+			.lab-item-small {
438
+				display: flex;
439
+				flex-direction: column;
440
+				align-items: center;
441
+				width: 124rpx;
442
+
443
+				.lab-default-title {
444
+					font-size: 28rpx;
445
+					margin-bottom: 10rpx;
446
+				}
447
+
448
+				.lab-title {
449
+					font-size: 32rpx;
450
+					margin-bottom: 10rpx;
451
+					color: #FE0032;
452
+				}
453
+
454
+				.lab-line {
455
+					width: 50rpx;
456
+					height: 6rpx;
457
+					background-color: #FE0032;
458
+					border-radius: 4rpx;
459
+				}
460
+
461
+				.lab-default-line {
462
+					width: 50rpx;
463
+					height: 6rpx;
464
+					border-radius: 4rpx;
465
+				}
466
+
467
+			}
468
+		}
469
+	}
470
+</style>

+ 26 - 0
src/subPages/paegs/quick-fuc/constants.js

@@ -0,0 +1,26 @@
1
+import { KINGKONGKEY } from '~/apis/model/common.model'
2
+export const MU_TABLE_LIST =  [{
3
+	title:'商家入驻',
4
+	key:KINGKONGKEY.SJRZ,
5
+	icon:'/static/icon/icon_sm_sjrz.png',
6
+	des:'入驻流程指南'
7
+},
8
+{
9
+	title:'店铺推荐',
10
+	key:KINGKONGKEY.DPTJ,
11
+	icon:'/static/icon/icon_sm_dptj.png',
12
+	des:'优质店铺推荐'
13
+},
14
+{
15
+	title:'官方客服',
16
+	key:KINGKONGKEY.GFKF,
17
+	icon:'/static/icon/icon_sm_gfkf.png',
18
+	des:'用户专属客服'
19
+},
20
+{
21
+	title:'店铺管理',
22
+	key:KINGKONGKEY.DPGL,
23
+	icon:'/static/icon/icon_sm_dpgl.png',
24
+	des:'商品订单管理'
25
+},
26
+]