@tplc/business 0.4.23 → 0.4.25
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,34 @@
|
|
|
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.25](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.18...v0.4.25) (2025-03-26)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
9
|
+
|
|
10
|
+
* **release:** 0.4.19 ([8ba303d](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/8ba303dba4f3459fb3358f4e1be28c311e757657))
|
|
11
|
+
* **release:** 0.4.20 ([58e3599](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/58e3599d5aa5ee73d9017b1c9ac62556ebe45934))
|
|
12
|
+
* **release:** 0.4.21 ([8ebc53f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/8ebc53ff0bd70b82f2227248b62bbead71df3b96))
|
|
13
|
+
* **release:** 0.4.22 ([2b9f34c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2b9f34c3ac0108ccc70f1bff1d64d927b4779444))
|
|
14
|
+
* **release:** 0.4.23 ([1922bc3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1922bc35e565230d937c8bca8da898ddd13e055a))
|
|
15
|
+
* **release:** 0.4.24 ([6bf6493](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/6bf6493d59608fe30f573edb77b2bd032afc8a1a))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### ✨ Features | 新功能
|
|
19
|
+
|
|
20
|
+
* search 调整 ([62102ae](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/62102ae0d4dbc56a910aa95264550df796a8cf55))
|
|
21
|
+
* 同步字段 ([706fd2b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/706fd2bbd2f52f6e3e1c4d994e099fc64631d998))
|
|
22
|
+
* 支持联动 ([6954a8a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/6954a8a102218e67bfae301187d1739b9787f1eb))
|
|
23
|
+
* 支持过滤 ([7fd93ce](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7fd93ce323e2276b4a8e837340eeda1fe1926981))
|
|
24
|
+
* 新增组件 ([af04c93](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/af04c93df2bdcf41fde656d5f0e5712539f243c1))
|
|
25
|
+
|
|
26
|
+
### [0.4.24](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.23...v0.4.24) (2025-03-26)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### ✨ Features | 新功能
|
|
30
|
+
|
|
31
|
+
* 支持联动 ([6954a8a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/6954a8a102218e67bfae301187d1739b9787f1eb))
|
|
32
|
+
|
|
5
33
|
### [0.4.23](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.22...v0.4.23) (2025-03-26)
|
|
6
34
|
|
|
7
35
|
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
</template>
|
|
112
112
|
|
|
113
113
|
<script setup lang="ts">
|
|
114
|
-
import { computed, ref,
|
|
114
|
+
import { computed, ref, watchEffect, inject, Ref } from 'vue'
|
|
115
115
|
import { LcbHomeSearch } from './types'
|
|
116
116
|
import dayjs from 'dayjs/esm'
|
|
117
117
|
import useLocation from '../../hooks/useLocation'
|
|
@@ -145,17 +145,7 @@ const props = withDefaults(defineProps<LcbHomeSearch>(), {
|
|
|
145
145
|
})
|
|
146
146
|
|
|
147
147
|
const current = ref(0)
|
|
148
|
-
const form = inject(FORM_KEY,
|
|
149
|
-
categoryTags: '',
|
|
150
|
-
keywords: '',
|
|
151
|
-
startDate: '',
|
|
152
|
-
endDate: '',
|
|
153
|
-
cityId: '',
|
|
154
|
-
areaId: '',
|
|
155
|
-
provinceId: '',
|
|
156
|
-
addressName: '',
|
|
157
|
-
cityName: '',
|
|
158
|
-
})
|
|
148
|
+
const form = inject(FORM_KEY) as Ref<Record<string, any>>
|
|
159
149
|
|
|
160
150
|
// 今天 明天 后天 周...
|
|
161
151
|
const getDayName = (time: number) => {
|
|
@@ -172,22 +162,22 @@ const getDayName = (time: number) => {
|
|
|
172
162
|
}
|
|
173
163
|
|
|
174
164
|
watchEffect(() => {
|
|
175
|
-
form.categoryTags = props.tabs[current.value].value
|
|
165
|
+
form.value.categoryTags = props.tabs[current.value].value
|
|
176
166
|
})
|
|
177
167
|
|
|
178
168
|
watchEffect(() => {
|
|
179
|
-
form.startDate = dayjs(dayRange.value[0]).format('YYYY-MM-DD')
|
|
180
|
-
form.endDate = dayjs(dayRange.value[1]).format('YYYY-MM-DD')
|
|
169
|
+
form.value.startDate = dayjs(dayRange.value[0]).format('YYYY-MM-DD')
|
|
170
|
+
form.value.endDate = dayjs(dayRange.value[1]).format('YYYY-MM-DD')
|
|
181
171
|
})
|
|
182
172
|
|
|
183
173
|
watchEffect(() => {
|
|
184
174
|
if (addressCity.value) {
|
|
185
|
-
form.cityId = addressCity.value.cityId
|
|
186
|
-
form.areaId = addressCity.value.areaId
|
|
187
|
-
form.provinceId = addressCity.value.provinceId
|
|
188
|
-
form.addressName = addressCity.value.addressName
|
|
175
|
+
form.value.cityId = addressCity.value.cityId
|
|
176
|
+
form.value.areaId = addressCity.value.areaId
|
|
177
|
+
form.value.provinceId = addressCity.value.provinceId
|
|
178
|
+
form.value.addressName = addressCity.value.addressName
|
|
189
179
|
if (addressCity.value.keywords) {
|
|
190
|
-
form.keywords = addressCity.value.keywords
|
|
180
|
+
form.value.keywords = addressCity.value.keywords
|
|
191
181
|
}
|
|
192
182
|
}
|
|
193
183
|
})
|
|
@@ -178,10 +178,10 @@ const onSearch = async (e: { detail: { value: string } }) => {
|
|
|
178
178
|
const onSelect = (keyword: ProductInfo) => {
|
|
179
179
|
searchHistoryRef.value?.saveHistory(keyword)
|
|
180
180
|
const [path, query] = keyword.link.jumpUrl.split('?')
|
|
181
|
-
|
|
181
|
+
const params = parse(query)
|
|
182
|
+
let queryParams = query ? params : {}
|
|
182
183
|
const options = getCurrentPage().options
|
|
183
184
|
queryParams = {
|
|
184
|
-
keywords: form?.value?.keywords,
|
|
185
185
|
endDate: options.endDate,
|
|
186
186
|
startDate: options.startDate,
|
|
187
187
|
cityName: options.cityName,
|
|
@@ -197,6 +197,7 @@ const onSelect = (keyword: ProductInfo) => {
|
|
|
197
197
|
delete queryParams[key]
|
|
198
198
|
}
|
|
199
199
|
})
|
|
200
|
+
queryParams.keywords = params.keywords
|
|
200
201
|
if (!options.jumpPageType) {
|
|
201
202
|
uni.$emit(`${getPreviousPageId()}_filter_change`, queryParams)
|
|
202
203
|
uni.navigateBack()
|