@tplc/business 0.4.98 → 0.4.100
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 +9 -0
- package/components/lcb-city-select/components/lcb-city-letter/index.vue +1 -1
- package/components/lcb-search/components/SearchHistory/index.vue +1 -1
- package/components/lcb-search/lcb-search.vue +4 -3
- package/hooks/useLocation.api.ts +1 -0
- package/package.json +1 -1
- package/types/hooks/useLocation.api.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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.100](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.99...v0.4.100) (2025-05-08)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🐛 Bug Fixes | Bug 修复
|
|
9
|
+
|
|
10
|
+
* search undifend ([a3f2677](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a3f26778a15ebb98d59f3e0e8b00c93ccd9d103b))
|
|
11
|
+
|
|
12
|
+
### [0.4.99](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.98...v0.4.99) (2025-05-08)
|
|
13
|
+
|
|
5
14
|
### [0.4.98](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.97...v0.4.98) (2025-05-08)
|
|
6
15
|
|
|
7
16
|
|
|
@@ -58,7 +58,7 @@ const historyList = ref<ProductInfo[]>([])
|
|
|
58
58
|
const getHistory = () => {
|
|
59
59
|
try {
|
|
60
60
|
const history = uni.getStorageSync(props.storageKey)
|
|
61
|
-
historyList.value = history || []
|
|
61
|
+
historyList.value = (history || []).filter((v) => v.productName)
|
|
62
62
|
} catch (error) {
|
|
63
63
|
historyList.value = []
|
|
64
64
|
}
|
|
@@ -188,18 +188,19 @@ const onSearch = async () => {
|
|
|
188
188
|
if (options.backPageType) {
|
|
189
189
|
onSelect({
|
|
190
190
|
link: {
|
|
191
|
-
jumpUrl: `/pages/lowcode/lowcode?pageType=${options.backPageType}&keywords=${form?.value?.keywords}`,
|
|
191
|
+
jumpUrl: `/pages/lowcode/lowcode?pageType=${options.backPageType}&keywords=${form?.value?.keywords || ''}`,
|
|
192
192
|
},
|
|
193
|
+
productName: form?.value?.keywords || '',
|
|
193
194
|
} as unknown as ProductInfo)
|
|
194
195
|
} else {
|
|
195
196
|
uni.$emit(`${getPreviousPageId()}_filter_change`, {
|
|
196
|
-
keywords: form?.value?.keywords,
|
|
197
|
+
keywords: form?.value?.keywords || '',
|
|
197
198
|
})
|
|
198
199
|
uni.navigateBack()
|
|
199
200
|
}
|
|
200
201
|
}
|
|
201
202
|
const onSelect = (keyword: ProductInfo) => {
|
|
202
|
-
if (keyword.link) {
|
|
203
|
+
if (keyword.link && keyword.productName) {
|
|
203
204
|
searchHistoryRef.value?.saveHistory(keyword)
|
|
204
205
|
}
|
|
205
206
|
|
package/hooks/useLocation.api.ts
CHANGED
|
@@ -9,6 +9,7 @@ export interface UserLocation {
|
|
|
9
9
|
haveNotAddressInfo: string
|
|
10
10
|
haveNotTip: string
|
|
11
11
|
showName: string
|
|
12
|
+
openFlag: boolean
|
|
12
13
|
}
|
|
13
14
|
export const getUserLocation = (data?: { userLongitude: string; userLatitude: string }) =>
|
|
14
15
|
uni.$lcb.http.post<UserLocation>('/address/userLocation', data)
|
package/package.json
CHANGED