@tplc/business 0.0.47 → 0.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/CHANGELOG.md +277 -0
  2. package/action.d.ts +7 -2
  3. package/api/user.ts +6 -0
  4. package/components/lcb-action-view/types.ts +2 -2
  5. package/components/lcb-block/types.ts +1 -0
  6. package/components/lcb-button/lcb-button.vue +32 -0
  7. package/components/lcb-button/types.ts +8 -0
  8. package/components/lcb-city-select/components/lcb-city-letter/index.vue +1 -1
  9. package/components/lcb-city-select/components/lcb-city-list/index.vue +1 -1
  10. package/components/lcb-city-select/components/lcb-city-list/types.ts +1 -1
  11. package/components/lcb-dynamic-data/lcb-dynamic-data.vue +10 -3
  12. package/components/lcb-image/Image/index.vue +15 -25
  13. package/components/lcb-list/components/FilterList/index.vue +9 -4
  14. package/components/lcb-list/components/FilterList/mockData.ts +575 -0
  15. package/components/lcb-list/hooks/useSelect.ts +2 -0
  16. package/components/lcb-list/lcb-list.vue +32 -17
  17. package/components/lcb-list/types.ts +0 -13
  18. package/components/lcb-nav/lcb-nav.vue +1 -1
  19. package/components/lcb-notice/api/index.ts +21 -0
  20. package/components/lcb-notice/lcb-notice.vue +66 -50
  21. package/components/lcb-notice/types.ts +11 -26
  22. package/components/lcb-product/lcb-product.vue +37 -33
  23. package/components/lcb-product-item/components/ItemValue.vue +103 -22
  24. package/components/lcb-product-item/lcb-product-item.vue +249 -70
  25. package/components/lcb-product-item/types.ts +15 -14
  26. package/components/lcb-text/lcb-text.vue +20 -0
  27. package/components/lcb-text/types.ts +5 -0
  28. package/components/lcb-user-top/Nums/index.vue +19 -10
  29. package/components/lcb-user-top/lcb-user-top.vue +54 -55
  30. package/constants.ts +2 -0
  31. package/global.d.ts +2 -0
  32. package/hooks/useUpload.ts +3 -6
  33. package/index.ts +1 -1
  34. package/package.json +2 -2
  35. package/tsconfig.json +24 -0
  36. package/types/api/user.d.ts +6 -0
  37. package/types/components/lcb-action-view/types.d.ts +2 -2
  38. package/types/components/lcb-block/types.d.ts +1 -0
  39. package/types/components/{lcb-notice/Item/index.vue.d.ts → lcb-button/lcb-button.vue.d.ts} +4 -18
  40. package/types/components/lcb-button/types.d.ts +7 -0
  41. package/types/components/lcb-city-select/components/lcb-city-letter/index.vue.d.ts +1 -1
  42. package/types/components/lcb-city-select/components/lcb-city-list/types.d.ts +1 -1
  43. package/types/components/lcb-list/components/FilterList/mockData.d.ts +63 -0
  44. package/types/components/lcb-list/lcb-list.vue.d.ts +7 -21
  45. package/types/components/lcb-list/types.d.ts +0 -1
  46. package/types/components/lcb-notice/api/index.d.ts +19 -0
  47. package/types/components/lcb-notice/lcb-notice.vue.d.ts +25 -19
  48. package/types/components/lcb-notice/types.d.ts +11 -24
  49. package/types/components/lcb-product/lcb-product.vue.d.ts +2 -22
  50. package/types/components/lcb-product-item/components/ItemValue.vue.d.ts +26 -8
  51. package/types/components/lcb-product-item/lcb-product-item.vue.d.ts +63 -23
  52. package/types/components/lcb-product-item/types.d.ts +14 -13
  53. package/types/components/lcb-text/lcb-text.vue.d.ts +42 -0
  54. package/types/components/lcb-text/types.d.ts +4 -0
  55. package/types/constants.d.ts +2 -0
  56. package/types/hooks/useUpload.d.ts +1 -3
  57. package/types/utils/auth.d.ts +2 -0
  58. package/types/utils/utils.d.ts +2 -0
  59. package/utils/auth.ts +19 -0
  60. package/utils/utils.ts +6 -1
  61. package/components/lcb-notice/Item/index.vue +0 -112
  62. package/components/lcb-user-top/api/index.ts +0 -13
  63. package/types/components/lcb-user-top/api/index.d.ts +0 -10
@@ -0,0 +1,575 @@
1
+ export default {
2
+ code: 'OK',
3
+ count: 321,
4
+ data: [
5
+ {
6
+ address: '紫金1',
7
+ agentId: '0',
8
+ areaId: '330102',
9
+ areaName: '上城区',
10
+ auditDateTime: '2024-08-12 16:06:43',
11
+ auditRemark: '',
12
+ auditStatus: 1,
13
+ behindUnit: '晚起',
14
+ bigIcon: false,
15
+ businessStatus: 1,
16
+ cityAreaName: '杭州市上城区',
17
+ cityId: '330100',
18
+ cityName: '杭州市',
19
+ clickCount: 0,
20
+ collectCount: 0,
21
+ collectFlag: false,
22
+ commentCount: 0,
23
+ coverImg:
24
+ '["http://static.dingdandao.com/25afad2abdb8137b8cef3ef264bfc3da","http://static.dingdandao.com/741f7c99cdb9de8c4dad3360806bc3e7","http://static.dingdandao.com/cc107a26b555e2ee10eaeee31002c36b"]',
25
+ createDate: '2023-06-05 20:19:59',
26
+ distance: '99999.0',
27
+ hideTags: '',
28
+ hierarchy: 1,
29
+ lastModifyDate: '2024-08-12 16:06:42',
30
+ latitude: '30.283335',
31
+ level: '0',
32
+ longitude: '120.169795',
33
+ mapShowFlag: true,
34
+ marketingType: 1,
35
+ merchantHeadId: '0',
36
+ merchantId: '0',
37
+ orderCount: 0,
38
+ orderSkuCount: 0,
39
+ peopleNumScope: '1-2',
40
+ phone: '15868152560',
41
+ poiId: '1115374482605117440',
42
+ poiName: 'test10111',
43
+ poiNameI18n: '',
44
+ poiType: '["住宿"]',
45
+ praiseCount: 0,
46
+ praiseFlag: false,
47
+ price: -1,
48
+ productId: '23636737',
49
+ productName: 'test10111',
50
+ productNameI18n: '',
51
+ productType: '1',
52
+ provinceId: '330000',
53
+ provinceName: '浙江省',
54
+ scribePrice: -1,
55
+ showDateFlag: false,
56
+ startDateStr: '',
57
+ startTime: '',
58
+ status: 1,
59
+ tags: '["test"]',
60
+ weightSort: '0.0',
61
+ },
62
+ {
63
+ address: '广州市天河区凤凰里U创',
64
+ agentId: '0',
65
+ areaId: '440106',
66
+ areaName: '天河区',
67
+ auditDateTime: '2024-10-20 12:00:20',
68
+ auditRemark: '',
69
+ auditStatus: 1,
70
+ behindUnit: '晚起',
71
+ bigIcon: false,
72
+ businessStatus: 1,
73
+ cityAreaName: '广州市天河区',
74
+ cityId: '440100',
75
+ cityName: '广州市',
76
+ clickCount: 0,
77
+ collectCount: 1,
78
+ collectFlag: false,
79
+ commentCount: 0,
80
+ coverImg: '["https://static.dingdandao.com/638fe650b240ee505b6ea653099decc21704940499572"]',
81
+ createDate: '2024-03-18 15:45:11',
82
+ distance: '99999.0',
83
+ hideTags: '',
84
+ hierarchy: 1,
85
+ lastModifyDate: '2024-10-21 20:28:17',
86
+ latitude: '23.206532',
87
+ level: '0',
88
+ longitude: '113.387128',
89
+ mapShowFlag: true,
90
+ marketingType: 1,
91
+ merchantHeadId: '0',
92
+ merchantId: '34241741',
93
+ orderCount: 27,
94
+ orderSkuCount: 34,
95
+ peopleNumScope: '2-5',
96
+ phone: '0571-8888888',
97
+ poiId: '1219310643383287808',
98
+ poiName: '开放平台对接测试门店',
99
+ poiNameI18n: '',
100
+ poiType: '["住宿"]',
101
+ praiseCount: 0,
102
+ praiseFlag: false,
103
+ price: 0.01,
104
+ productId: '34241741',
105
+ productName: '开放平台对接测试门店',
106
+ productNameI18n: '',
107
+ productType: '1',
108
+ provinceId: '440000',
109
+ provinceName: '广东省',
110
+ scribePrice: 0.01,
111
+ showDateFlag: false,
112
+ startDateStr: '',
113
+ startTime: '',
114
+ status: 1,
115
+ tags: '',
116
+ weightSort: '999.0',
117
+ },
118
+ {
119
+ address: '龙门县永汉镇梅州水库村马星村见田村龙门富力南昆山温泉养生谷E区第13栋02号',
120
+ agentId: '0',
121
+ areaId: '441324',
122
+ areaName: '龙门县',
123
+ auditDateTime: '2024-10-25 01:00:42',
124
+ auditRemark: '',
125
+ auditStatus: 1,
126
+ behindUnit: '晚起',
127
+ bigIcon: false,
128
+ businessStatus: 1,
129
+ cityAreaName: '惠州市龙门县',
130
+ cityId: '441300',
131
+ cityName: '惠州市',
132
+ clickCount: 0,
133
+ collectCount: 24,
134
+ collectFlag: false,
135
+ commentCount: 0,
136
+ coverImg:
137
+ '["https://static.dingdandao.com/7499e2014aa5e54f80c80309f3a390d3","https://static.dingdandao.com/d2f33c0bf1dc8ad776bc7874a1503d25","https://static.dingdandao.com/5e4c7c1b81634f9a7a3fcf69f0ce3352","https://static.dingdandao.com/dbba2a3d7d1375d985b815c129a1b2f1","https://static.dingdandao.com/be1ac7d9d280b0f05a5f4db73eed2f95"]',
138
+ createDate: '2023-06-05 20:20:05',
139
+ distance: '99999.0',
140
+ hideTags: '["亲子民宿"]',
141
+ hierarchy: 1,
142
+ lastModifyDate: '2024-10-25 01:00:42',
143
+ latitude: '23.581038',
144
+ level: '0',
145
+ longitude: '114.008831',
146
+ mapShowFlag: true,
147
+ marketingType: 1,
148
+ merchantHeadId: '0',
149
+ merchantId: '0',
150
+ orderCount: 0,
151
+ orderSkuCount: 0,
152
+ peopleNumScope: '1-28',
153
+ phone: '18022450999',
154
+ poiId: '1115374508236509184',
155
+ poiName: '惠州南昆山富力养生谷旅刻度假别墅',
156
+ poiNameI18n: '',
157
+ poiType: '["住宿"]',
158
+ praiseCount: 0,
159
+ praiseFlag: false,
160
+ price: 95,
161
+ productId: '92631125',
162
+ productName: '惠州南昆山富力养生谷旅刻度假别墅',
163
+ productNameI18n: '',
164
+ productType: '1',
165
+ provinceId: '440000',
166
+ provinceName: '广东省',
167
+ scribePrice: 95,
168
+ showDateFlag: false,
169
+ startDateStr: '',
170
+ startTime: '',
171
+ status: 1,
172
+ tags: '["9折","南昆山旅游区","温泉","亲子"]',
173
+ weightSort: '900.0',
174
+ },
175
+ {
176
+ address: '仁化县丹霞街道丹霞山青湖塘新村第二排D88号',
177
+ agentId: '0',
178
+ areaId: '440224',
179
+ areaName: '仁化县',
180
+ auditDateTime: '2024-10-25 01:00:31',
181
+ auditRemark: '',
182
+ auditStatus: 1,
183
+ behindUnit: '晚起',
184
+ bigIcon: false,
185
+ businessStatus: 1,
186
+ cityAreaName: '韶关市仁化县',
187
+ cityId: '440200',
188
+ cityName: '韶关市',
189
+ clickCount: 0,
190
+ collectCount: 4,
191
+ collectFlag: false,
192
+ commentCount: 0,
193
+ coverImg:
194
+ '["https://static.dingdandao.com/334ba3966d24591ca442efe2724c0125","https://static.dingdandao.com/d9f76ba81d54566828875b0f937a3585","https://static.dingdandao.com/9920c20704d451ea6250032e1e8a1023","https://static.dingdandao.com/80ff9e0e58b9b2f5d3dbb8277540abe0","https://static.dingdandao.com/7ed30eef3408f7ec1cbfb57cf6d5dfc4","https://static.dingdandao.com/cafaf45961b9d70b32e4eac4a20eee65","https://static.dingdandao.com/1e1c1c7cf78baca11f26af70e14b9642","https://static.dingdandao.com/2e42aaff5f41698339115727b28ac5f1","https://static.dingdandao.com/b631a8b45bb1d1e48398b10ca3a8bc61","https://static.dingdandao.com/420e4d0e49de72b2d21d6b7749c7aea2","https://static.dingdandao.com/7b13873425d6ceabc3419e29864e36d6"]',
195
+ createDate: '2023-06-05 20:19:58',
196
+ distance: '99999.0',
197
+ hideTags: '',
198
+ hierarchy: 1,
199
+ lastModifyDate: '2024-10-25 01:00:31',
200
+ latitude: '25.0476',
201
+ level: '4',
202
+ longitude: '113.765243',
203
+ mapShowFlag: true,
204
+ marketingType: 1,
205
+ merchantHeadId: '0',
206
+ merchantId: '0',
207
+ orderCount: 0,
208
+ orderSkuCount: 0,
209
+ peopleNumScope: '2-3',
210
+ phone: '15875100808',
211
+ poiId: '1115374479425835008',
212
+ poiName: '韶关丹霞山醉美居客栈',
213
+ poiNameI18n: '',
214
+ poiType: '["住宿"]',
215
+ praiseCount: 0,
216
+ praiseFlag: false,
217
+ price: 98,
218
+ productId: '18602476',
219
+ productName: '韶关丹霞山醉美居客栈',
220
+ productNameI18n: '',
221
+ productType: '1',
222
+ provinceId: '440000',
223
+ provinceName: '广东省',
224
+ scribePrice: 98,
225
+ showDateFlag: false,
226
+ startDateStr: '',
227
+ startTime: '',
228
+ status: 1,
229
+ tags: '["5.19广东文旅促消费民宿","一星商户","9折","近丹霞山","宠物友好"]',
230
+ weightSort: '9959.0',
231
+ },
232
+ {
233
+ address: '惠州市惠阳区霞涌街道华润小径湾观海轩10',
234
+ agentId: '0',
235
+ areaId: '441303',
236
+ areaName: '惠阳区',
237
+ auditDateTime: '2024-10-25 01:00:31',
238
+ auditRemark: '',
239
+ auditStatus: 1,
240
+ behindUnit: '晚起',
241
+ bigIcon: false,
242
+ businessStatus: 1,
243
+ cityAreaName: '惠州市惠阳区',
244
+ cityId: '441300',
245
+ cityName: '惠州市',
246
+ clickCount: 0,
247
+ collectCount: 16,
248
+ collectFlag: false,
249
+ commentCount: 0,
250
+ coverImg:
251
+ '["https://static.dingdandao.com/ee2e5ebfd11b3ab6734c17333247ca04","https://static.dingdandao.com/7ff513809c456cd91a366a205adbbc29","https://static.dingdandao.com/743204db6c3571c0ef461f31ecbf7d29","https://static.dingdandao.com/0be42aa146f199f28f533885a12138b7","https://static.dingdandao.com/9cb19b33ba6f1151faa362c5c36676da","https://static.dingdandao.com/8332dffb29c041bf9d4890a455473d8e","https://static.dingdandao.com/8067c6d8c1c16657aeb6cdad92336e06","https://static.dingdandao.com/46340022cb677f364e90b079c0f195bc","https://static.dingdandao.com/18469154a40a525684a743384a45dcb6","https://static.dingdandao.com/fede2f774316f746f32c7f63da0b0292","https://static.dingdandao.com/0a9cfbfb766d1e7279ebd07549b63115","https://static.dingdandao.com/02558e5823c00a8ed66416d08cb1c0bd","https://static.dingdandao.com/c5c9b7959b47d4f56a509edd05623631","https://static.dingdandao.com/04d6ed58700391746b28f146db2800e5","https://static.dingdandao.com/26abe8ab98bfd49a0aa2dd9a699b89f9","https://static.dingdandao.com/c343851e5d13de691e9c818889c71888","https://static.dingdandao.com/aebd9618c9d5c79275f5e68c43b5180e","https://static.dingdandao.com/bc0a797a13a8db0db91f6bfad82f89ea","https://static.dingdandao.com/f72e61e406c8c31a7b728aa08c118279"]',
252
+ createDate: '2023-06-05 20:19:58',
253
+ distance: '99999.0',
254
+ hideTags: '["亲子民宿"]',
255
+ hierarchy: 1,
256
+ lastModifyDate: '2024-10-25 01:00:31',
257
+ latitude: '22.791393',
258
+ level: '0',
259
+ longitude: '114.700961',
260
+ mapShowFlag: true,
261
+ marketingType: 1,
262
+ merchantHeadId: '0',
263
+ merchantId: '14109957',
264
+ orderCount: 19,
265
+ orderSkuCount: 20,
266
+ peopleNumScope: '2-14',
267
+ phone: '13811525015',
268
+ poiId: '1115374477399986176',
269
+ poiName: '惠州小径湾驿动空间海景度假民宿',
270
+ poiNameI18n: '',
271
+ poiType: '["住宿"]',
272
+ praiseCount: 0,
273
+ praiseFlag: false,
274
+ price: 100,
275
+ productId: '14109957',
276
+ productName: '惠州小径湾驿动空间海景度假民宿',
277
+ productNameI18n: '',
278
+ productType: '1',
279
+ provinceId: '440000',
280
+ provinceName: '广东省',
281
+ scribePrice: 100,
282
+ showDateFlag: false,
283
+ startDateStr: '',
284
+ startTime: '',
285
+ status: 1,
286
+ tags: '["9折","近沙滩","海景","宠物友好"]',
287
+ weightSort: '900.0',
288
+ },
289
+ {
290
+ address: '东平镇葛港大道前排3号',
291
+ agentId: '0',
292
+ areaId: '441704',
293
+ areaName: '阳东区',
294
+ auditDateTime: '2024-10-25 01:00:43',
295
+ auditRemark: '',
296
+ auditStatus: 1,
297
+ behindUnit: '晚起',
298
+ bigIcon: false,
299
+ businessStatus: 1,
300
+ cityAreaName: '阳江市阳东区',
301
+ cityId: '441700',
302
+ cityName: '阳江市',
303
+ clickCount: 0,
304
+ collectCount: 4,
305
+ collectFlag: false,
306
+ commentCount: 0,
307
+ coverImg: '["https://static.dingdandao.com/3fcd09c18e7c0c775a111cee9fdaa3501701145101579"]',
308
+ createDate: '2023-11-29 11:11:55',
309
+ distance: '99999.0',
310
+ hideTags: '["海边民宿"]',
311
+ hierarchy: 1,
312
+ lastModifyDate: '2024-10-25 01:00:43',
313
+ latitude: '21.73518756341867',
314
+ level: '3',
315
+ longitude: '112.23600664311402',
316
+ mapShowFlag: true,
317
+ marketingType: 1,
318
+ merchantHeadId: '0',
319
+ merchantId: '30446710',
320
+ orderCount: 13,
321
+ orderSkuCount: 53,
322
+ peopleNumScope: '2-4',
323
+ phone: '13336572325',
324
+ poiId: '1179379210988691456',
325
+ poiName: '星辰海岸民宿',
326
+ poiNameI18n: '',
327
+ poiType: '["住宿"]',
328
+ praiseCount: 0,
329
+ praiseFlag: false,
330
+ price: 108,
331
+ productId: '30446710',
332
+ productName: '星辰海岸民宿',
333
+ productNameI18n: '',
334
+ productType: '1',
335
+ provinceId: '440000',
336
+ provinceName: '广东省',
337
+ scribePrice: 108,
338
+ showDateFlag: false,
339
+ startDateStr: '',
340
+ startTime: '',
341
+ status: 1,
342
+ tags: '["一星商户","9.5折","度假胜地","网红打卡","海景"]',
343
+ weightSort: '999.0',
344
+ },
345
+ {
346
+ address: '河源市源城区浦前镇陂角村委旁杨家小院',
347
+ agentId: '0',
348
+ areaId: '441602',
349
+ areaName: '源城区',
350
+ auditDateTime: '2024-10-25 01:00:44',
351
+ auditRemark: '',
352
+ auditStatus: 1,
353
+ behindUnit: '晚起',
354
+ bigIcon: false,
355
+ businessStatus: 1,
356
+ cityAreaName: '河源市源城区',
357
+ cityId: '441600',
358
+ cityName: '河源市',
359
+ clickCount: 0,
360
+ collectCount: 1,
361
+ collectFlag: false,
362
+ commentCount: 0,
363
+ coverImg:
364
+ '["https://static.dingdandao.com/74b8b3aa6ac77ac55f5a96871839a9b9","https://static.dingdandao.com/0727f3e7b1da3e5deb826d3fbc9aaa49","https://static.dingdandao.com/78e640417de3975ea61642bd860ac38a","https://static.dingdandao.com/6cf86fcf29877e767ee443c9fd4b64fd","https://static.dingdandao.com/5f75b1c726bb2356bdc5c6176f2b8bbe","https://static.dingdandao.com/675af258241a2cd7ca9cb44e715a421e"]',
365
+ createDate: '2023-06-05 20:19:59',
366
+ distance: '99999.0',
367
+ hideTags: '',
368
+ hierarchy: 1,
369
+ lastModifyDate: '2024-10-25 01:00:44',
370
+ latitude: '23.60597',
371
+ level: '4',
372
+ longitude: '114.605169',
373
+ mapShowFlag: true,
374
+ marketingType: 1,
375
+ merchantHeadId: '0',
376
+ merchantId: '0',
377
+ orderCount: 0,
378
+ orderSkuCount: 0,
379
+ peopleNumScope: '2-16',
380
+ phone: '18038522822',
381
+ poiId: '1115374485398523904',
382
+ poiName: '杨家小院',
383
+ poiNameI18n: '',
384
+ poiType: '["住宿"]',
385
+ praiseCount: 0,
386
+ praiseFlag: false,
387
+ price: 110,
388
+ productId: '30526120',
389
+ productName: '杨家小院',
390
+ productNameI18n: '',
391
+ productType: '1',
392
+ provinceId: '440000',
393
+ provinceName: '广东省',
394
+ scribePrice: 110,
395
+ showDateFlag: false,
396
+ startDateStr: '',
397
+ startTime: '',
398
+ status: 1,
399
+ tags: '["5.19广东文旅促消费民宿","9.8折","树屋","环境舒适","清静优雅"]',
400
+ weightSort: '9946.0',
401
+ },
402
+ {
403
+ address: '梅州市梅江区江南彬芳大道宪梓中学侧(综合',
404
+ agentId: '0',
405
+ areaId: '441402',
406
+ areaName: '梅江区',
407
+ auditDateTime: '2024-10-25 01:00:28',
408
+ auditRemark: '',
409
+ auditStatus: 1,
410
+ behindUnit: '晚起',
411
+ bigIcon: false,
412
+ businessStatus: 1,
413
+ cityAreaName: '梅州市梅江区',
414
+ cityId: '441400',
415
+ cityName: '梅州市',
416
+ clickCount: 0,
417
+ collectCount: 1,
418
+ collectFlag: false,
419
+ commentCount: 0,
420
+ coverImg:
421
+ '["https://static.dingdandao.com/c5864d6e18e6d350c67b5975ca26dad4","https://static.dingdandao.com/1179d8cdb29e81c669edff4e82c6ab8b","https://static.dingdandao.com/124bc22da0f45781c1a7e262abbf7dd2","https://static.dingdandao.com/712333a0e8814cba96b50c963f4de99d","https://static.dingdandao.com/006ab322089beb519acd5487279a4f0b","https://static.dingdandao.com/a364a0071d6dac518364adce02bad147","https://static.dingdandao.com/fd8d749b21f81e2630c87b3f68aa6fb0","https://static.dingdandao.com/d434772db838ef7ab9007b02d16d6df7"]',
422
+ createDate: '2023-06-05 20:20:00',
423
+ distance: '99999.0',
424
+ hideTags: '',
425
+ hierarchy: 1,
426
+ lastModifyDate: '2024-10-25 01:00:28',
427
+ latitude: '24.282685593182617',
428
+ level: '3',
429
+ longitude: '116.12930514305867',
430
+ mapShowFlag: true,
431
+ marketingType: 1,
432
+ merchantHeadId: '0',
433
+ merchantId: '37145443',
434
+ orderCount: 24,
435
+ orderSkuCount: 74,
436
+ peopleNumScope: '2',
437
+ phone: '86-7532139666',
438
+ poiId: '1115374487143354368',
439
+ poiName: '梅州又见民宿',
440
+ poiNameI18n: '',
441
+ poiType: '["住宿"]',
442
+ praiseCount: 0,
443
+ praiseFlag: false,
444
+ price: 118,
445
+ productId: '37145443',
446
+ productName: '梅州又见民宿',
447
+ productNameI18n: '',
448
+ productType: '1',
449
+ provinceId: '440000',
450
+ provinceName: '广东省',
451
+ scribePrice: 118,
452
+ showDateFlag: false,
453
+ startDateStr: '',
454
+ startTime: '',
455
+ status: 1,
456
+ tags: '["一星商户","8.5折","设计感","免费停车"]',
457
+ weightSort: '999.0',
458
+ },
459
+ {
460
+ address: '丹霞街道丹霞山青湖塘新村德睿公馆',
461
+ agentId: '0',
462
+ areaId: '440224',
463
+ areaName: '仁化县',
464
+ auditDateTime: '2024-10-25 01:00:28',
465
+ auditRemark: '',
466
+ auditStatus: 1,
467
+ behindUnit: '晚起',
468
+ bigIcon: false,
469
+ businessStatus: 1,
470
+ cityAreaName: '韶关市仁化县',
471
+ cityId: '440200',
472
+ cityName: '韶关市',
473
+ clickCount: 0,
474
+ collectCount: 0,
475
+ collectFlag: false,
476
+ commentCount: 0,
477
+ coverImg: '["https://static.dingdandao.com/e1de2c80149ed971133c5a9c85d6b18e1717465056716"]',
478
+ createDate: '2024-06-04 13:35:07',
479
+ distance: '99999.0',
480
+ hideTags: '',
481
+ hierarchy: 1,
482
+ lastModifyDate: '2024-10-25 01:00:28',
483
+ latitude: '25.047109',
484
+ level: '3',
485
+ longitude: '113.76486',
486
+ mapShowFlag: true,
487
+ marketingType: 1,
488
+ merchantHeadId: '0',
489
+ merchantId: '61106762',
490
+ orderCount: 3,
491
+ orderSkuCount: 6,
492
+ peopleNumScope: '2-3',
493
+ phone: '13531455337',
494
+ poiId: '1247544166141353984',
495
+ poiName: '丹霞山德睿公馆',
496
+ poiNameI18n: '',
497
+ poiType: '["住宿"]',
498
+ praiseCount: 0,
499
+ praiseFlag: false,
500
+ price: 118,
501
+ productId: '61106762',
502
+ productName: '丹霞山德睿公馆',
503
+ productNameI18n: '',
504
+ productType: '1',
505
+ provinceId: '440000',
506
+ provinceName: '广东省',
507
+ scribePrice: 118,
508
+ showDateFlag: false,
509
+ startDateStr: '',
510
+ startTime: '',
511
+ status: 1,
512
+ tags: '["5.19广东文旅促消费民宿","8.5折","近丹霞山","休闲观光"]',
513
+ weightSort: '999.0',
514
+ },
515
+ {
516
+ address: '永和镇长安村社祇岭16号',
517
+ agentId: '0',
518
+ areaId: '441481',
519
+ areaName: '兴宁市',
520
+ auditDateTime: '2024-10-25 01:00:31',
521
+ auditRemark: '',
522
+ auditStatus: 1,
523
+ behindUnit: '晚起',
524
+ bigIcon: false,
525
+ businessStatus: 1,
526
+ cityAreaName: '梅州市兴宁市',
527
+ cityId: '441400',
528
+ cityName: '梅州市',
529
+ clickCount: 0,
530
+ collectCount: 0,
531
+ collectFlag: false,
532
+ commentCount: 0,
533
+ coverImg:
534
+ '["https://xbwlxcx.oss-cn-hangzhou.aliyuncs.com/default/1121037812401324032/20240619102954/6767.jpg"]',
535
+ createDate: '2024-06-18 18:26:45',
536
+ distance: '99999.0',
537
+ hideTags: '',
538
+ hierarchy: 1,
539
+ lastModifyDate: '2024-10-25 01:00:31',
540
+ latitude: '24.121533',
541
+ level: '3',
542
+ longitude: '115.81473',
543
+ mapShowFlag: true,
544
+ marketingType: 1,
545
+ merchantHeadId: '0',
546
+ merchantId: '14276398',
547
+ orderCount: 8,
548
+ orderSkuCount: 12,
549
+ peopleNumScope: '2',
550
+ phone: '15812904518',
551
+ poiId: '1252690986966401024',
552
+ poiName: '兴陇民宿馆',
553
+ poiNameI18n: '',
554
+ poiType: '["住宿"]',
555
+ praiseCount: 0,
556
+ praiseFlag: false,
557
+ price: 118,
558
+ productId: '14276398',
559
+ productName: '兴陇民宿馆',
560
+ productNameI18n: '',
561
+ productType: '1',
562
+ provinceId: '440000',
563
+ provinceName: '广东省',
564
+ scribePrice: 118,
565
+ showDateFlag: false,
566
+ startDateStr: '',
567
+ startTime: '',
568
+ status: 1,
569
+ tags: '["5.19广东文旅促消费民宿","9折","茶室"]',
570
+ weightSort: '999.0',
571
+ },
572
+ ],
573
+ dataClass: 'java.util.ArrayList',
574
+ traceId: '69d6cb39-b575-4557-b46a-2a7736286b43',
575
+ }
@@ -16,6 +16,8 @@ const useSelect = (
16
16
  } else {
17
17
  model.value = [...(model.value || []), item.value as string]
18
18
  }
19
+ } else if (model.value === item.value) {
20
+ model.value = undefined
19
21
  } else {
20
22
  model.value = item.value
21
23
  }
@@ -20,7 +20,7 @@
20
20
  :key="item.valueName"
21
21
  :title="titleObj[item.valueName] || item.filterName"
22
22
  icon="caret-down-small"
23
- icon-size="26px"
23
+ icon-size="26rpx"
24
24
  :selected="getSelect(item)"
25
25
  ref="dropMenu"
26
26
  @opened="handleOpened"
@@ -51,7 +51,10 @@
51
51
  </wd-drop-menu>
52
52
  <view
53
53
  v-if="info?.filterTags || info.btnComponent"
54
- class="bg-white px-3 pb-2 box-border flex items-center"
54
+ class="px-3 pb-2 box-border flex items-center"
55
+ :class="{
56
+ 'mt-2': showPlain,
57
+ }"
55
58
  >
56
59
  <view class="flex gap-3.5 flex-1">
57
60
  <TagSelect
@@ -71,18 +74,17 @@
71
74
  <FilterList v-bind="{ ...info.listInfo, listType, filter, ...attrs }">
72
75
  <template #default="{ items }">
73
76
  <slot name="list" :items="items">
74
- <lcb-product v-bind="{ ...attrs }" :listType="listType" :items="items">
75
- <template #item="slotContext">
76
- <slot name="item" v-bind="slotContext" />
77
- </template>
78
- <template
79
- v-for="slotName in lcbProductItemContentTypes"
80
- :key="slotName"
81
- #[slotName]="slotContext"
82
- >
83
- <slot :name="slotName" v-bind="slotContext" />
77
+ <lcb-product v-bind="{ ...attrs }" :listType="listType" :items="items" v-if="$slots.item">
78
+ <template #item="{ item }">
79
+ <slot name="item" :item="item"></slot>
84
80
  </template>
85
81
  </lcb-product>
82
+ <lcb-product
83
+ v-bind="{ ...attrs }"
84
+ :listType="listType"
85
+ :items="items"
86
+ v-else
87
+ ></lcb-product>
86
88
  </slot>
87
89
  </template>
88
90
  </FilterList>
@@ -91,7 +93,7 @@
91
93
 
92
94
  <script setup lang="ts">
93
95
  import { computed, inject, Ref, ref, watch, useAttrs } from 'vue'
94
- import { LcbListProps, defaultLcbListProps } from './types'
96
+ import { LcbListProps } from './types'
95
97
  import { FilterComponent, getFilterDetail, LcbFilterResult } from './api'
96
98
  import FilterSelect from './components/FilterSelect/index.vue'
97
99
  import TreeSelect from './components/TreeSelect/index.vue'
@@ -99,14 +101,11 @@ import ComponentGroup from './components/ComponentGroup/index.vue'
99
101
  import TagSelect from './components/TagSelect/index.vue'
100
102
  import FilterList from './components/FilterList/index.vue'
101
103
  import FilterTabs from './components/FilterTabs/index.vue'
102
- import { lcbProductItemContentTypes } from '../lcb-product-item/types'
103
104
 
104
105
  import './index.scss'
105
106
  import { FORM_KEY } from '../../constants'
106
107
  const attrs = useAttrs()
107
108
 
108
- const slotNames = [...lcbProductItemContentTypes, 'item']
109
-
110
109
  defineOptions({
111
110
  name: 'LcbList',
112
111
  options: {
@@ -117,7 +116,18 @@ defineOptions({
117
116
  })
118
117
  const form = inject<Ref<Record<string, any>>>(FORM_KEY)
119
118
  const dropMenu = ref()
120
- const props = withDefaults(defineProps<LcbListProps>(), defaultLcbListProps as any)
119
+ const props = withDefaults(defineProps<LcbListProps>(), {
120
+ pageFilterType: 'hotelTravelFilter',
121
+ border: true,
122
+ styleMode: 'default',
123
+ listType: 'list',
124
+ // @ts-ignore
125
+ pageListProps: () => ({
126
+ productProps: {
127
+ // listType: 'list',
128
+ },
129
+ }),
130
+ } as LcbListProps as any)
121
131
  const info = ref<LcbFilterResult>()
122
132
  const filter = ref<Record<string, any>>({})
123
133
  const titleObj = ref<Record<string, any>>({})
@@ -191,6 +201,11 @@ watch(
191
201
  deep: true,
192
202
  },
193
203
  )
204
+
205
+ defineSlots<{
206
+ list(props: { items: any }): any
207
+ item(props: { item: any }): any
208
+ }>()
194
209
  </script>
195
210
 
196
211
  <style lang="scss" scoped>