@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 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
 
@@ -81,7 +81,7 @@ onMounted(async () => {
81
81
  addressRef.value = data
82
82
  })
83
83
  const locationAddress = computed<HotAddress[]>(() => {
84
- return props.location
84
+ return props.location && props.location.openFlag
85
85
  ? ([
86
86
  {
87
87
  categoryName: '定位',
@@ -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
 
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.98",
3
+ "version": "0.4.100",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -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 declare const getUserLocation: (data?: {
14
15
  userLongitude: string