@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 +12 -0
- package/components/lcb-map/lcb-map.vue +21 -18
- package/hooks/usePay.ts +3 -2
- package/package.json +1 -1
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
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
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
|
|
16
|
-
if (
|
|
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]
|