@tplc/business 0.1.10 → 0.1.12

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,44 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.12](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.6...v0.1.12) (2024-10-28)
6
+
7
+
8
+ ### 🚀 Chore | 构建/工程依赖/工具
9
+
10
+ * **release:** 0.1.10 ([732f746](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/732f746ecc268186d3357b882c40e4ee0a227250))
11
+ * **release:** 0.1.11 ([0ff8ceb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0ff8ceb8c63810597998d2660a87ccc8007f7196))
12
+ * **release:** 0.1.7 ([69fbf39](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/69fbf39f9e9f1c7b2daf25aa81d7e508a530fa2b))
13
+ * **release:** 0.1.8 ([0cd2b98](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0cd2b98488ea39de407df1badedf2554f94190f1))
14
+ * **release:** 0.1.9 ([b1dd896](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b1dd896c4acc76bfc370b39c7d0a24eb729182eb))
15
+
16
+
17
+ ### ✨ Features | 新功能
18
+
19
+ * lcb-list 相关 slot 适应小程序调整 ([aff0850](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/aff085079e4918761191a7a00f7c48a5fb2c599d))
20
+ * nav 颜色调整 ([1f7bba0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1f7bba00c2386a85a5bfe3b3973ad160c87efd78))
21
+ * 上传图片 ([5ae5dcb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5ae5dcbb018ce5c9bbc53290eb0e3e082985d887))
22
+ * 新增dynamic-data ([d43b20f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d43b20f5f334ae6ac5b46294b5caf7903bc4a820))
23
+ * 调整usertop ui ([13daab3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/13daab39ecd02d313cf9c9c61fa8ab79ba10198f))
24
+
25
+ ### [0.1.11](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.6...v0.1.11) (2024-10-27)
26
+
27
+
28
+ ### 🚀 Chore | 构建/工程依赖/工具
29
+
30
+ * **release:** 0.1.10 ([732f746](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/732f746ecc268186d3357b882c40e4ee0a227250))
31
+ * **release:** 0.1.7 ([69fbf39](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/69fbf39f9e9f1c7b2daf25aa81d7e508a530fa2b))
32
+ * **release:** 0.1.8 ([0cd2b98](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0cd2b98488ea39de407df1badedf2554f94190f1))
33
+ * **release:** 0.1.9 ([b1dd896](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b1dd896c4acc76bfc370b39c7d0a24eb729182eb))
34
+
35
+
36
+ ### ✨ Features | 新功能
37
+
38
+ * nav 颜色调整 ([1f7bba0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1f7bba00c2386a85a5bfe3b3973ad160c87efd78))
39
+ * 上传图片 ([5ae5dcb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5ae5dcbb018ce5c9bbc53290eb0e3e082985d887))
40
+ * 新增dynamic-data ([d43b20f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d43b20f5f334ae6ac5b46294b5caf7903bc4a820))
41
+ * 调整usertop ui ([13daab3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/13daab39ecd02d313cf9c9c61fa8ab79ba10198f))
42
+
5
43
  ### [0.1.10](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.6...v0.1.10) (2024-10-27)
6
44
 
7
45
 
package/action.d.ts CHANGED
@@ -14,7 +14,7 @@ export interface ActionView {
14
14
  }[]
15
15
  }
16
16
  export type IResData<T> = {
17
- code: number
17
+ code: number | string
18
18
  msg: string
19
19
  data: T
20
20
  }
@@ -1,8 +1,15 @@
1
1
  <template>
2
2
  <lcb-block v-bind="$props">
3
- <view class="flex justify-between items-center">
4
- <view v-for="item in items" :key="item.title">
5
- <view>{{ item.unit }} {{ pageInfo[item.key] }}</view>
3
+ <view class="flex justify-between items-center text-28rpx">
4
+ <view
5
+ v-for="item in items"
6
+ :key="item.title"
7
+ class="flex flex-col items-center justify-center"
8
+ >
9
+ <view class="flex mb-12rpx">
10
+ <view class="text-24rpx mr-4rpx mt-12rpx">{{ item.unit }}</view>
11
+ <view class="font-500 text-36rpx">{{ pageInfo[item.key] || '0.00' }}</view>
12
+ </view>
6
13
  <view>{{ item.title }}</view>
7
14
  </view>
8
15
  </view>
@@ -16,6 +16,7 @@ import { computed, ref, watch, useAttrs } from 'vue'
16
16
  import useZPaging from 'z-paging/components/z-paging/js/hooks/useZPaging'
17
17
  import { LcbFilterListProps } from './type'
18
18
  import { formatJson } from '../../../../utils/utils'
19
+ import mockData from './mockData'
19
20
  const attrs = useAttrs()
20
21
 
21
22
  defineOptions({
@@ -37,7 +38,7 @@ const normalizeDataList = computed(() => {
37
38
  const tags = formatJson(item.tags, [])
38
39
  return {
39
40
  ...item,
40
- image: imgArr?.[1] ?? imgArr?.[0],
41
+ image: imgArr?.[1] || imgArr?.[0],
41
42
  title: item?.productName,
42
43
  tags,
43
44
  price: item?.price,
@@ -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
+ }
@@ -71,18 +71,17 @@
71
71
  <FilterList v-bind="{ ...info.listInfo, listType, filter, ...attrs }">
72
72
  <template #default="{ items }">
73
73
  <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" />
74
+ <lcb-product v-bind="{ ...attrs }" :listType="listType" :items="items" v-if="$slots.item">
75
+ <template #item="{ item }">
76
+ <slot name="item" :item="item"></slot>
77
77
  </template>
78
- <template
79
- v-for="slotName in lcbProductItemContentTypes"
80
- :key="slotName"
81
- #[slotName]="slotContext"
82
- >
83
- <slot :name="slotName" v-bind="slotContext" />
84
- </template>
85
- </lcb-product> -->
78
+ </lcb-product>
79
+ <lcb-product
80
+ v-bind="{ ...attrs }"
81
+ :listType="listType"
82
+ :items="items"
83
+ v-else
84
+ ></lcb-product>
86
85
  </slot>
87
86
  </template>
88
87
  </FilterList>
@@ -99,14 +98,11 @@ import ComponentGroup from './components/ComponentGroup/index.vue'
99
98
  import TagSelect from './components/TagSelect/index.vue'
100
99
  import FilterList from './components/FilterList/index.vue'
101
100
  import FilterTabs from './components/FilterTabs/index.vue'
102
- import { lcbProductItemContentTypes } from '../lcb-product-item/types'
103
101
 
104
102
  import './index.scss'
105
103
  import { FORM_KEY } from '../../constants'
106
104
  const attrs = useAttrs()
107
105
 
108
- const slotNames = [...lcbProductItemContentTypes, 'item']
109
-
110
106
  defineOptions({
111
107
  name: 'LcbList',
112
108
  options: {
@@ -191,6 +187,11 @@ watch(
191
187
  deep: true,
192
188
  },
193
189
  )
190
+
191
+ defineSlots<{
192
+ list(props: { items: any }): any
193
+ item(props: { item: any }): any
194
+ }>()
194
195
  </script>
195
196
 
196
197
  <style lang="scss" scoped>
@@ -1,7 +1,6 @@
1
1
  <script setup lang="ts">
2
2
  import { computed, useAttrs } from 'vue'
3
3
  import { LcbProductProps } from './types'
4
- import { lcbProductItemContentTypes } from '../lcb-product-item/types'
5
4
 
6
5
  const attrs = useAttrs()
7
6
  defineOptions({
@@ -20,17 +19,7 @@ const props = withDefaults(defineProps<LcbProductProps>(), {
20
19
  itemHeight: 560,
21
20
  } as any)
22
21
  defineSlots<{
23
- image(): any
24
- title(): any
25
- subTitle(): any
26
- price(): any
27
- priceUnit(): any
28
- priceSuffix(): any
29
- originPrice(): any
30
- originPriceUnit(): any
31
- tags(): any
32
- location(): any
33
- distance(): any
22
+ item(props: { item: any }): any
34
23
  }>()
35
24
  </script>
36
25
 
@@ -42,15 +31,7 @@ defineSlots<{
42
31
  <lcb-product-item
43
32
  v-bind="{ ...item, ...attrs }"
44
33
  :imageStyle="{ width: `${imageWidthPercent}%` }"
45
- >
46
- <template
47
- v-for="slotName in lcbProductItemContentTypes"
48
- :key="slotName"
49
- #[slotName]="slotContext"
50
- >
51
- <slot :name="slotName" v-bind="slotContext" />
52
- </template>
53
- </lcb-product-item>
34
+ ></lcb-product-item>
54
35
  </slot>
55
36
  </view>
56
37
  </view>
@@ -65,15 +46,7 @@ defineSlots<{
65
46
  layoutType="vertical"
66
47
  className="!h-full"
67
48
  :imageStyle="{ height: `${imageHeightPercent}%` }"
68
- >
69
- <template
70
- v-for="slotName in lcbProductItemContentTypes"
71
- :key="slotName"
72
- #[slotName]="slotContext"
73
- >
74
- <slot :name="slotName" v-bind="slotContext" />
75
- </template>
76
- </lcb-product-item>
49
+ ></lcb-product-item>
77
50
  </slot>
78
51
  </view>
79
52
  </view>
@@ -88,15 +61,7 @@ defineSlots<{
88
61
  class="!w-66vw flex-shrink-0"
89
62
  >
90
63
  <slot name="item" :item="item">
91
- <lcb-product-item v-bind="item" imageClass="!w-1/2">
92
- <template
93
- v-for="slotName in lcbProductItemContentTypes"
94
- :key="slotName"
95
- #[slotName]="slotContext"
96
- >
97
- <slot :name="slotName" v-bind="slotContext" />
98
- </template>
99
- </lcb-product-item>
64
+ <lcb-product-item v-bind="item" imageClass="!w-1/2"></lcb-product-item>
100
65
  </slot>
101
66
  </view>
102
67
  </view>
@@ -14,19 +14,19 @@ const props = withDefaults(
14
14
  {},
15
15
  )
16
16
 
17
- // defineSlots<{
18
- // image(): any
19
- // title(): any
20
- // subTitle(): any
21
- // price(): any
22
- // priceUnit(): any
23
- // priceSuffix(): any
24
- // originPrice(): any
25
- // originPriceUnit(): any
26
- // tags(): any
27
- // location(): any
28
- // distance(): any
29
- // }>()
17
+ defineSlots<{
18
+ image(props: { value: any }): any
19
+ title(props: { value: any }): any
20
+ subTitle(props: { value: any }): any
21
+ price(props: { value: any }): any
22
+ priceUnit(props: { value: any }): any
23
+ priceSuffix(props: { value: any }): any
24
+ originPrice(props: { value: any }): any
25
+ originPriceUnit(props: { value: any }): any
26
+ tags(props: { value: any }): any
27
+ location(props: { value: any }): any
28
+ distance(props: { value: any }): any
29
+ }>()
30
30
 
31
31
  const visible = computed(() => {
32
32
  return itemProps?.[`${props?.prop}Visible`] ?? true
@@ -43,7 +43,9 @@ const value = computed(() => {
43
43
  </script>
44
44
 
45
45
  <template>
46
- <template v-if="visible && !!value && (isArray(value) ? value?.length > 0 : true)">
46
+ <template
47
+ v-if="visible && (prop === 'image' || (!!value && (isArray(value) ? value?.length > 0 : true)))"
48
+ >
47
49
  <!-- 图片 -->
48
50
  <slot :value="value" v-if="prop === 'image'" name="image">
49
51
  <view :value="value" :class="className" :style="style">
@@ -73,12 +75,7 @@ const value = computed(() => {
73
75
 
74
76
  <!-- 标签 -->
75
77
  <slot :value="value" v-if="prop === 'tags'" name="tags">
76
- <view
77
- :class="className"
78
- :style="style"
79
- :value="value"
80
- class="flex gap-1 whitespace-nowrap overflow-auto"
81
- >
78
+ <view class="flex gap-1 whitespace-nowrap overflow-auto">
82
79
  <wd-tag
83
80
  v-for="tag in value"
84
81
  :key="tag"
@@ -33,17 +33,17 @@ const attrs = useAttrs()
33
33
  provide('lcb-product-item-props', props)
34
34
 
35
35
  defineSlots<{
36
- image(): any
37
- title(): any
38
- subTitle(): any
39
- price(): any
40
- priceUnit(): any
41
- priceSuffix(): any
42
- originPrice(): any
43
- originPriceUnit(): any
44
- tags(): any
45
- location(): any
46
- distance(): any
36
+ image(props: { value: any }): any
37
+ title(props: { value: any }): any
38
+ subTitle(props: { value: any }): any
39
+ price(props: { value: any }): any
40
+ priceUnit(props: { value: any }): any
41
+ priceSuffix(props: { value: any }): any
42
+ originPrice(props: { value: any }): any
43
+ originPriceUnit(props: { value: any }): any
44
+ tags(props: { value: any }): any
45
+ location(props: { value: any }): any
46
+ distance(props: { value: any }): any
47
47
  }>()
48
48
 
49
49
  // console.log('attrs', attrs)
@@ -52,39 +52,66 @@ defineSlots<{
52
52
  <template>
53
53
  <!-- 横向布局 -->
54
54
  <view v-if="layoutType === 'horizontal'" :class="className" class="flex gap-3 px-2 py-3 bg-white">
55
- <ItemValue prop="image" className="w-1/3 h-220rpx bg-gray-100 rounded-sm overflow-hidden">
56
- <template
57
- v-for="slotName in lcbProductItemContentTypes"
58
- :key="slotName"
59
- #[slotName]="slotContext"
60
- >
61
- <slot :name="slotName" v-bind="slotContext" />
55
+ <ItemValue
56
+ v-if="!!$slots?.['image']"
57
+ prop="image"
58
+ className="w-1/3 h-220rpx bg-gray-100 rounded-sm overflow-hidden"
59
+ >
60
+ <template #image="{ value }">
61
+ <slot name="image" :value="value" />
62
62
  </template>
63
63
  </ItemValue>
64
+ <ItemValue
65
+ v-else
66
+ prop="image"
67
+ className="w-1/3 h-220rpx bg-gray-100 rounded-sm overflow-hidden"
68
+ />
64
69
  <view class="flex flex-col flex-1 gap-2 justify-between text-26rpx overflow-hidden">
65
70
  <view class="flex flex-col gap-2 overflow-hidden">
66
- <ItemValue v-for="prop in ['title', 'location', 'tags']" :prop="prop" :key="prop">
67
- <template
68
- v-for="slotName in lcbProductItemContentTypes"
69
- :key="slotName"
70
- #[slotName]="slotContext"
71
- >
72
- <slot :name="slotName" v-bind="slotContext" />
73
- </template>
74
- </ItemValue>
71
+ <template v-for="propName in ['title', 'location', 'tags']" :key="propName">
72
+ <ItemValue :prop="propName" v-if="!!$slots?.[propName]">
73
+ <template #image="{ value }"><slot name="image" :value="value" /></template>
74
+ <template #title="{ value }"><slot name="title" :value="value" /></template>
75
+ <template #subTitle="{ value }"><slot name="subTitle" :value="value" /></template>
76
+ <template #price="{ value }"><slot name="price" :value="value" /></template>
77
+ <template #priceUnit="{ value }"><slot name="priceUnit" :value="value" /></template>
78
+ <template #priceSuffix="{ value }"><slot name="priceSuffix" :value="value" /></template>
79
+ <template #originPrice="{ value }"><slot name="originPrice" :value="value" /></template>
80
+ <template #originPriceUnit="{ value }">
81
+ <slot name="originPriceUnit" :value="value" />
82
+ </template>
83
+ <template #tags="{ value }"><slot name="tags" :value="value" /></template>
84
+ <template #location="{ value }"><slot name="location" :value="value" /></template>
85
+ <template #distance="{ value }"><slot name="distance" :value="value" /></template>
86
+ </ItemValue>
87
+ <ItemValue :prop="propName" v-else />
88
+ </template>
75
89
  </view>
76
90
 
77
91
  <view class="flex gap-2">
78
92
  <view class="flex gap-[4rpx] items-end">
79
- <ItemValue v-for="prop in ['priceUnit', 'price', 'priceSuffix']" :prop="prop" :key="prop">
80
- <template
81
- v-for="slotName in lcbProductItemContentTypes"
82
- :key="slotName"
83
- #[slotName]="slotContext"
84
- >
85
- <slot :name="slotName" v-bind="slotContext" />
86
- </template>
87
- </ItemValue>
93
+ <template v-for="propName in ['priceUnit', 'price', 'priceSuffix']" :key="propName">
94
+ <ItemValue :prop="propName" v-if="!!$slots?.[propName]">
95
+ <template #image="{ value }"><slot name="image" :value="value" /></template>
96
+ <template #title="{ value }"><slot name="title" :value="value" /></template>
97
+ <template #subTitle="{ value }"><slot name="subTitle" :value="value" /></template>
98
+ <template #price="{ value }"><slot name="price" :value="value" /></template>
99
+ <template #priceUnit="{ value }"><slot name="priceUnit" :value="value" /></template>
100
+ <template #priceSuffix="{ value }">
101
+ <slot name="priceSuffix" :value="value" />
102
+ </template>
103
+ <template #originPrice="{ value }">
104
+ <slot name="originPrice" :value="value" />
105
+ </template>
106
+ <template #originPriceUnit="{ value }">
107
+ <slot name="originPriceUnit" :value="value" />
108
+ </template>
109
+ <template #tags="{ value }"><slot name="tags" :value="value" /></template>
110
+ <template #location="{ value }"><slot name="location" :value="value" /></template>
111
+ <template #distance="{ value }"><slot name="distance" :value="value" /></template>
112
+ </ItemValue>
113
+ <ItemValue :prop="propName" v-else />
114
+ </template>
88
115
  </view>
89
116
  </view>
90
117
  </view>
@@ -92,43 +119,61 @@ defineSlots<{
92
119
 
93
120
  <!-- 竖向布局 -->
94
121
  <view v-if="layoutType === 'vertical'" :class="className" class="flex flex-col gap-2 bg-white">
95
- <ItemValue prop="image" className="overflow-hidden">
96
- <template
97
- v-for="slotName in lcbProductItemContentTypes"
98
- :key="slotName"
99
- #[slotName]="slotContext"
100
- >
101
- <slot :name="slotName" v-bind="slotContext" />
122
+ <ItemValue v-if="!!$slots?.['image']" prop="image" className="overflow-hidden">
123
+ <template #image="{ value }">
124
+ <slot name="image" :value="value" />
102
125
  </template>
103
126
  </ItemValue>
127
+ <ItemValue v-else prop="image" className="overflow-hidden" />
104
128
  <view
105
129
  :class="'p-2'"
106
130
  class="flex flex-col flex-1 gap-2 justify-between text-26rpx overflow-hidden"
107
131
  >
108
132
  <view class="flex flex-col gap-2 overflow-hidden">
109
- <!-- <ItemValue prop="title"></ItemValue> -->
110
- <ItemValue v-for="prop in ['title', 'location', 'tags']" :prop="prop" :key="prop">
111
- <template
112
- v-for="slotName in lcbProductItemContentTypes"
113
- :key="slotName"
114
- #[slotName]="slotContext"
115
- >
116
- <slot :name="slotName" v-bind="slotContext" />
117
- </template>
118
- </ItemValue>
133
+ <template v-for="propName in ['title', 'location', 'tags']" :key="propName">
134
+ <ItemValue :prop="propName" v-if="!!$slots?.[propName]">
135
+ <template #image="{ value }"><slot name="image" :value="value" /></template>
136
+ <template #title="{ value }"><slot name="title" :value="value" /></template>
137
+ <template #subTitle="{ value }"><slot name="subTitle" :value="value" /></template>
138
+ <template #price="{ value }"><slot name="price" :value="value" /></template>
139
+ <template #priceUnit="{ value }"><slot name="priceUnit" :value="value" /></template>
140
+ <template #priceSuffix="{ value }"><slot name="priceSuffix" :value="value" /></template>
141
+ <template #originPrice="{ value }"><slot name="originPrice" :value="value" /></template>
142
+ <template #originPriceUnit="{ value }">
143
+ <slot name="originPriceUnit" :value="value" />
144
+ </template>
145
+ <template #tags="{ value }"><slot name="tags" :value="value" /></template>
146
+ <template #location="{ value }"><slot name="location" :value="value" /></template>
147
+ <template #distance="{ value }"><slot name="distance" :value="value" /></template>
148
+ </ItemValue>
149
+ <ItemValue :prop="propName" v-else />
150
+ </template>
119
151
  </view>
120
152
 
121
153
  <view class="flex gap-2">
122
154
  <view class="flex gap-[4rpx] items-end">
123
- <ItemValue v-for="prop in ['priceUnit', 'price', 'priceSuffix']" :prop="prop" :key="prop">
124
- <template
125
- v-for="slotName in lcbProductItemContentTypes"
126
- :key="slotName"
127
- #[slotName]="slotContext"
128
- >
129
- <slot :name="slotName" v-bind="slotContext" />
130
- </template>
131
- </ItemValue>
155
+ <template v-for="propName in ['priceUnit', 'price', 'priceSuffix']" :key="propName">
156
+ <ItemValue :prop="propName" v-if="!!$slots?.[propName]">
157
+ <template #image="{ value }"><slot name="image" :value="value" /></template>
158
+ <template #title="{ value }"><slot name="title" :value="value" /></template>
159
+ <template #subTitle="{ value }"><slot name="subTitle" :value="value" /></template>
160
+ <template #price="{ value }"><slot name="price" :value="value" /></template>
161
+ <template #priceUnit="{ value }"><slot name="priceUnit" :value="value" /></template>
162
+ <template #priceSuffix="{ value }">
163
+ <slot name="priceSuffix" :value="value" />
164
+ </template>
165
+ <template #originPrice="{ value }">
166
+ <slot name="originPrice" :value="value" />
167
+ </template>
168
+ <template #originPriceUnit="{ value }">
169
+ <slot name="originPriceUnit" :value="value" />
170
+ </template>
171
+ <template #tags="{ value }"><slot name="tags" :value="value" /></template>
172
+ <template #location="{ value }"><slot name="location" :value="value" /></template>
173
+ <template #distance="{ value }"><slot name="distance" :value="value" /></template>
174
+ </ItemValue>
175
+ <ItemValue :prop="propName" v-else />
176
+ </template>
132
177
  </view>
133
178
  </view>
134
179
  </view>
@@ -29,7 +29,7 @@
29
29
  <view class="flex-1">
30
30
  <lcb-action-view :jumpType="88" @phone="getPhone" v-if="!userStore?.userInfo?.phone">
31
31
  <view
32
- class="font-bold"
32
+ class="font-500"
33
33
  :style="{
34
34
  fontSize: transformValueUnit(textSize),
35
35
  color: textColor,
@@ -38,9 +38,9 @@
38
38
  授权登录
39
39
  </view>
40
40
  </lcb-action-view>
41
- <template v-else>
42
- <view class="text-32rpx font-#333 font-bold mb-20rpx">
43
- {{ userStore?.userInfo?.nickName || '微信用户' }}
41
+ <view v-else class="leading-none">
42
+ <view class="text-32rpx font-#333 font-500 mb-20rpx">
43
+ {{ userStore?.userInfo?.userName || '微信用户' }}
44
44
  </view>
45
45
  <view class="flex" @click="toEdit">
46
46
  <view
@@ -57,7 +57,7 @@
57
57
  <view>{{ editText }}</view>
58
58
  </view>
59
59
  </view>
60
- </template>
60
+ </view>
61
61
  </view>
62
62
  <!-- 右边按钮 -->
63
63
  <lcb-action-view v-if="moreIcon" v-bind="rightIconLink">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -0,0 +1,63 @@
1
+ declare const _default: {
2
+ code: string
3
+ count: number
4
+ data: {
5
+ address: string
6
+ agentId: string
7
+ areaId: string
8
+ areaName: string
9
+ auditDateTime: string
10
+ auditRemark: string
11
+ auditStatus: number
12
+ behindUnit: string
13
+ bigIcon: boolean
14
+ businessStatus: number
15
+ cityAreaName: string
16
+ cityId: string
17
+ cityName: string
18
+ clickCount: number
19
+ collectCount: number
20
+ collectFlag: boolean
21
+ commentCount: number
22
+ coverImg: string
23
+ createDate: string
24
+ distance: string
25
+ hideTags: string
26
+ hierarchy: number
27
+ lastModifyDate: string
28
+ latitude: string
29
+ level: string
30
+ longitude: string
31
+ mapShowFlag: boolean
32
+ marketingType: number
33
+ merchantHeadId: string
34
+ merchantId: string
35
+ orderCount: number
36
+ orderSkuCount: number
37
+ peopleNumScope: string
38
+ phone: string
39
+ poiId: string
40
+ poiName: string
41
+ poiNameI18n: string
42
+ poiType: string
43
+ praiseCount: number
44
+ praiseFlag: boolean
45
+ price: number
46
+ productId: string
47
+ productName: string
48
+ productNameI18n: string
49
+ productType: string
50
+ provinceId: string
51
+ provinceName: string
52
+ scribePrice: number
53
+ showDateFlag: boolean
54
+ startDateStr: string
55
+ startTime: string
56
+ status: number
57
+ tags: string
58
+ weightSort: string
59
+ }[]
60
+ dataClass: string
61
+ traceId: string
62
+ }
63
+ export default _default
@@ -1,7 +1,11 @@
1
1
  import { LcbListProps } from './types'
2
2
  import './index.scss'
3
- declare function __VLS_template(): {
4
- list?(_: { items: any[] }): any
3
+ declare function __VLS_template(): Readonly<{
4
+ list(props: { items: any }): any
5
+ item(props: { item: any }): any
6
+ }> & {
7
+ list(props: { items: any }): any
8
+ item(props: { item: any }): any
5
9
  }
6
10
  declare const __VLS_component: import('vue').DefineComponent<
7
11
  __VLS_WithDefaults<__VLS_TypePropsToOption<LcbListProps>, any>,
@@ -1,28 +1,8 @@
1
1
  import { LcbProductProps } from './types'
2
2
  declare function __VLS_template(): Readonly<{
3
- image(): any
4
- title(): any
5
- subTitle(): any
6
- price(): any
7
- priceUnit(): any
8
- priceSuffix(): any
9
- originPrice(): any
10
- originPriceUnit(): any
11
- tags(): any
12
- location(): any
13
- distance(): any
3
+ item(props: { item: any }): any
14
4
  }> & {
15
- image(): any
16
- title(): any
17
- subTitle(): any
18
- price(): any
19
- priceUnit(): any
20
- priceSuffix(): any
21
- originPrice(): any
22
- originPriceUnit(): any
23
- tags(): any
24
- location(): any
25
- distance(): any
5
+ item(props: { item: any }): any
26
6
  }
27
7
  declare const __VLS_component: import('vue').DefineComponent<
28
8
  __VLS_WithDefaults<__VLS_TypePropsToOption<LcbProductProps>, any>,
@@ -1,11 +1,27 @@
1
- declare function __VLS_template(): {
2
- image?(_: { value: any }): any
3
- title?(_: { value: any }): any
4
- location?(_: { value: any }): any
5
- tags?(_: { value: any }): any
6
- priceUnit?(_: { value: any }): any
7
- price?(_: { value: any }): any
8
- priceSuffix?(_: { value: any }): any
1
+ declare function __VLS_template(): Readonly<{
2
+ image(props: { value: any }): any
3
+ title(props: { value: any }): any
4
+ subTitle(props: { value: any }): any
5
+ price(props: { value: any }): any
6
+ priceUnit(props: { value: any }): any
7
+ priceSuffix(props: { value: any }): any
8
+ originPrice(props: { value: any }): any
9
+ originPriceUnit(props: { value: any }): any
10
+ tags(props: { value: any }): any
11
+ location(props: { value: any }): any
12
+ distance(props: { value: any }): any
13
+ }> & {
14
+ image(props: { value: any }): any
15
+ title(props: { value: any }): any
16
+ subTitle(props: { value: any }): any
17
+ price(props: { value: any }): any
18
+ priceUnit(props: { value: any }): any
19
+ priceSuffix(props: { value: any }): any
20
+ originPrice(props: { value: any }): any
21
+ originPriceUnit(props: { value: any }): any
22
+ tags(props: { value: any }): any
23
+ location(props: { value: any }): any
24
+ distance(props: { value: any }): any
9
25
  }
10
26
  declare const __VLS_component: import('vue').DefineComponent<
11
27
  __VLS_WithDefaults<
@@ -1,28 +1,28 @@
1
1
  import { LcbProductItemProps } from './types'
2
2
  declare function __VLS_template(): Readonly<{
3
- image(): any
4
- title(): any
5
- subTitle(): any
6
- price(): any
7
- priceUnit(): any
8
- priceSuffix(): any
9
- originPrice(): any
10
- originPriceUnit(): any
11
- tags(): any
12
- location(): any
13
- distance(): any
3
+ image(props: { value: any }): any
4
+ title(props: { value: any }): any
5
+ subTitle(props: { value: any }): any
6
+ price(props: { value: any }): any
7
+ priceUnit(props: { value: any }): any
8
+ priceSuffix(props: { value: any }): any
9
+ originPrice(props: { value: any }): any
10
+ originPriceUnit(props: { value: any }): any
11
+ tags(props: { value: any }): any
12
+ location(props: { value: any }): any
13
+ distance(props: { value: any }): any
14
14
  }> & {
15
- image(): any
16
- title(): any
17
- subTitle(): any
18
- price(): any
19
- priceUnit(): any
20
- priceSuffix(): any
21
- originPrice(): any
22
- originPriceUnit(): any
23
- tags(): any
24
- location(): any
25
- distance(): any
15
+ image(props: { value: any }): any
16
+ title(props: { value: any }): any
17
+ subTitle(props: { value: any }): any
18
+ price(props: { value: any }): any
19
+ priceUnit(props: { value: any }): any
20
+ priceSuffix(props: { value: any }): any
21
+ originPrice(props: { value: any }): any
22
+ originPriceUnit(props: { value: any }): any
23
+ tags(props: { value: any }): any
24
+ location(props: { value: any }): any
25
+ distance(props: { value: any }): any
26
26
  }
27
27
  declare const __VLS_component: import('vue').DefineComponent<
28
28
  __VLS_WithDefaults<
@@ -77,9 +77,9 @@ declare const __VLS_component: import('vue').DefineComponent<
77
77
  >
78
78
  >,
79
79
  {
80
+ layoutType: 'vertical' | 'horizontal'
80
81
  priceUnit: any
81
82
  originPriceUnit: any
82
- layoutType: 'vertical' | 'horizontal'
83
83
  imageVisible: boolean
84
84
  titleVisible: boolean
85
85
  subTitleVisible: boolean