@tplc/business 0.4.54 → 0.4.56
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 +17 -0
- package/components/lcb-calendar-search/lcb-calendar-search.vue +2 -2
- package/components/lcb-city-select/components/lcb-city-letter/index.vue +2 -4
- package/components/lcb-city-select/lcb-city-select.vue +15 -9
- package/components/lcb-search/components/SearchHistory/index.vue +10 -1
- package/components/lcb-search/lcb-search.vue +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
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.4.56](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.55...v0.4.56) (2025-04-04)
|
|
6
|
+
|
|
7
|
+
### [0.4.55](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.53...v0.4.55) (2025-04-04)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
11
|
+
|
|
12
|
+
* **release:** 0.4.54 ([acae241](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/acae24129c9295be4eecc6bb5d7a3ad3f2ef87fc))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### ✨ Features | 新功能
|
|
16
|
+
|
|
17
|
+
* 按钮 ([b8a3b1e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b8a3b1ebd3dc695d939b8cd0af4da1df0dbf171a))
|
|
18
|
+
* 新增版本 ([408362b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/408362bc52c73180339cc30c050bbc572ef019d3))
|
|
19
|
+
* 星星默认颜色 ([f4582a4](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/f4582a42f29630bc7ef6e350261f4f4a913e3263))
|
|
20
|
+
* 部署按钮 ([1b783b3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1b783b3180b81f0f75ff46a5b41110d17d23baaa))
|
|
21
|
+
|
|
5
22
|
### [0.4.54](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.52...v0.4.54) (2025-04-03)
|
|
6
23
|
|
|
7
24
|
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
@submit="onSearch"
|
|
39
39
|
v-if="mode === 'search'"
|
|
40
40
|
/>
|
|
41
|
+
|
|
41
42
|
<lcb-action-view
|
|
42
43
|
v-else
|
|
43
44
|
v-bind="inputLink"
|
|
@@ -67,8 +68,6 @@ import { LcbAddress } from '../lcb-city-select/api'
|
|
|
67
68
|
import { FORM_KEY } from '../../constants'
|
|
68
69
|
import { getHistoryCity } from '../../utils/history'
|
|
69
70
|
import { stringify } from 'qs'
|
|
70
|
-
import { cleanOutSizeKeys } from '../../utils/transform'
|
|
71
|
-
import { getCurrentPage } from '../../utils/utils'
|
|
72
71
|
defineOptions({
|
|
73
72
|
name: 'LcbCalendarSearch',
|
|
74
73
|
options: {
|
|
@@ -103,6 +102,7 @@ const urlParams = computed(() => {
|
|
|
103
102
|
provinceId: form.value.provinceId,
|
|
104
103
|
cityId: form.value.cityId,
|
|
105
104
|
areaId: form.value.areaId,
|
|
105
|
+
addressName: form.value.addressName,
|
|
106
106
|
})
|
|
107
107
|
})
|
|
108
108
|
const { translate } = useTranslate()
|
|
@@ -26,10 +26,7 @@
|
|
|
26
26
|
<view
|
|
27
27
|
class="flex justify-center items-center address-tag"
|
|
28
28
|
:class="{
|
|
29
|
-
'current-address':
|
|
30
|
-
modelValue &&
|
|
31
|
-
`${modelValue.addressName},${modelValue.keywords}` ===
|
|
32
|
-
`${city.addressName},${city.keywords}`,
|
|
29
|
+
'current-address': modelValue?.addressName === city.addressName,
|
|
33
30
|
[city.className || '']: true,
|
|
34
31
|
}"
|
|
35
32
|
v-for="city in item.childAddress"
|
|
@@ -37,6 +34,7 @@
|
|
|
37
34
|
:style="{
|
|
38
35
|
fontSize: city?.addressName?.length > 4 ? '20rpx' : '24rpx',
|
|
39
36
|
}"
|
|
37
|
+
:key="city.areaId || city.cityId"
|
|
40
38
|
>
|
|
41
39
|
<view class="tag-view">
|
|
42
40
|
<wd-icon v-if="city.icon" :name="city.icon" class="mr-0.5" />
|
|
@@ -101,7 +101,12 @@ const onCancel = () => {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
const onAddressClick = (item: LcbAddress) => {
|
|
104
|
-
modelValue.value =
|
|
104
|
+
modelValue.value = {
|
|
105
|
+
addressName: item.addressName,
|
|
106
|
+
cityId: item.cityId,
|
|
107
|
+
areaId: item.areaId,
|
|
108
|
+
provinceId: item.provinceId,
|
|
109
|
+
} as ChildHotAddress
|
|
105
110
|
onCancel()
|
|
106
111
|
show.value = false
|
|
107
112
|
}
|
|
@@ -110,7 +115,6 @@ watch(
|
|
|
110
115
|
(val) => {
|
|
111
116
|
if (val && !modelValue.value) {
|
|
112
117
|
modelValue.value = {
|
|
113
|
-
addressInfo: val.addressInfo,
|
|
114
118
|
addressName: val.showName || val.cityName,
|
|
115
119
|
cityId: val.cityId,
|
|
116
120
|
areaId: val.areaId,
|
|
@@ -132,15 +136,12 @@ watch(
|
|
|
132
136
|
provinceId: val?.provinceId,
|
|
133
137
|
addressName: val?.addressName,
|
|
134
138
|
}
|
|
135
|
-
|
|
136
|
-
// params.keywords = val.keywords
|
|
137
|
-
// }
|
|
138
|
-
const datas = cleanOutSizeKeys(form.value, Object.keys(getCurrentPage().options))
|
|
139
|
+
|
|
139
140
|
form.value = {
|
|
140
|
-
...
|
|
141
|
+
...cleanOutSizeKeys(form.value, Object.keys(getCurrentPage().options)),
|
|
141
142
|
...params,
|
|
142
143
|
}
|
|
143
|
-
setHistoryCity(
|
|
144
|
+
setHistoryCity(params as ChildHotAddress)
|
|
144
145
|
show.value = false
|
|
145
146
|
},
|
|
146
147
|
)
|
|
@@ -192,7 +193,12 @@ watch(
|
|
|
192
193
|
|
|
193
194
|
const onSelectChange = (val: ChildHotAddress) => {
|
|
194
195
|
if (JSON.stringify(val) !== JSON.stringify(modelValue.value)) {
|
|
195
|
-
modelValue.value =
|
|
196
|
+
modelValue.value = {
|
|
197
|
+
addressName: val.addressName,
|
|
198
|
+
cityId: val.cityId,
|
|
199
|
+
areaId: val.areaId,
|
|
200
|
+
provinceId: val.provinceId,
|
|
201
|
+
} as ChildHotAddress
|
|
196
202
|
}
|
|
197
203
|
}
|
|
198
204
|
onMounted(() => {
|
|
@@ -79,8 +79,17 @@ const saveHistory = (keyword: ProductInfo) => {
|
|
|
79
79
|
if (list.length > props.maxLength) {
|
|
80
80
|
list.pop()
|
|
81
81
|
}
|
|
82
|
+
const cacheKey = ['productName', 'productType', 'link']
|
|
82
83
|
// 保存到本地存储
|
|
83
|
-
uni.setStorageSync(
|
|
84
|
+
uni.setStorageSync(
|
|
85
|
+
props.storageKey,
|
|
86
|
+
list.map((v) => {
|
|
87
|
+
return cacheKey.reduce((acc, key) => {
|
|
88
|
+
acc[key] = v[key]
|
|
89
|
+
return acc
|
|
90
|
+
}, {})
|
|
91
|
+
}),
|
|
92
|
+
)
|
|
84
93
|
historyList.value = list
|
|
85
94
|
} catch (error) {
|
|
86
95
|
console.error('保存搜索历史失败:', error)
|