@tplc/business 0.5.32 → 0.5.33

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,18 @@
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.5.33](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.32...v0.5.33) (2025-10-31)
6
+
7
+
8
+ ### 🐛 Bug Fixes | Bug 修复
9
+
10
+ * 支持图片+渐变色 ([d548e2a](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/d548e2a3ec7242d2d5863ef17b73370eb037573f))
11
+
12
+
13
+ ### ✨ Features | 新功能
14
+
15
+ * map ([069393d](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/069393dc76c5c23c7af1aebe0884675a93cff861))
16
+
5
17
  ### [0.5.32](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.31...v0.5.32) (2025-10-27)
6
18
 
7
19
 
@@ -158,25 +158,28 @@ const getData = debounce(() => {
158
158
  mapContext.value?.getCenterLocation({
159
159
  async success({ latitude, longitude }) {
160
160
  isLoading.value = true
161
- const { data = [] } = (await uni.$lcb.http.post(
162
- '/productInfoMap/list',
163
- {
164
- ...props.baseParam,
165
- ...form?.value,
166
- mapLatitude: latitude,
167
- mapLongitude: longitude,
168
- mapScale: currentScale.value,
169
- mapCornerLongitude: southwest.longitude,
170
- mapCornerLatitude: southwest.latitude,
171
- productTypeList: selectedTag.value.length ? selectedTag.value : undefined,
172
- },
173
- true,
174
- )) as {
175
- data: MapItem[]
161
+ try {
162
+ const { data = [] } = (await uni.$lcb.http.post(
163
+ '/productInfoMap/list',
164
+ {
165
+ ...props.baseParam,
166
+ ...form?.value,
167
+ mapLatitude: latitude,
168
+ mapLongitude: longitude,
169
+ mapScale: currentScale.value,
170
+ mapCornerLongitude: southwest.longitude,
171
+ mapCornerLatitude: southwest.latitude,
172
+ productTypeList: selectedTag.value.length ? selectedTag.value : undefined,
173
+ },
174
+ true,
175
+ )) as {
176
+ data: MapItem[]
177
+ }
178
+ list.value = data as any
179
+ getCurrentData(data)
180
+ } finally {
181
+ isLoading.value = false
176
182
  }
177
- list.value = data as any
178
- getCurrentData(data)
179
- isLoading.value = false
180
183
  },
181
184
  })
182
185
  },
package/hooks/usePay.ts CHANGED
@@ -12,8 +12,8 @@ const usePay = (
12
12
 
13
13
  const runAsync = async (orderNo: string) => {
14
14
  try {
15
- const result = await (queryStatusFun || queryOrderPaymentStatus)(orderNo)
16
- if (result.status === 1) {
15
+ const { data } = await (queryStatusFun || queryOrderPaymentStatus)(orderNo)
16
+ if (data?.status === 1) {
17
17
  uni.hideLoading()
18
18
  cancel()
19
19
  successFun.value?.()
@@ -65,6 +65,7 @@ const usePay = (
65
65
  })
66
66
  }
67
67
  onPageHide(() => {
68
+ console.log('onPageHide')
68
69
  cancel?.()
69
70
  })
70
71
  return [pay]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.5.32",
3
+ "version": "0.5.33",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],