@tplc/business 0.4.131 → 0.4.133
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 +33 -0
- package/components/lcb-action-view/lcb-action-view.vue +6 -0
- package/components/lcb-action-view/types.ts +1 -0
- package/components/lcb-operation-actions/types.ts +1 -0
- package/components/lcb-vip/api/index.ts +1 -0
- package/hooks/useLocation.ts +4 -4
- package/package.json +1 -1
- package/types/components/lcb-action-view/types.d.ts +1 -0
- package/types/components/lcb-operation-actions/types.d.ts +1 -0
- package/types/components/lcb-search/lcb-search.vue.d.ts +8 -0
- package/types/components/lcb-vip/api/index.d.ts +1 -0
- package/types/hooks/useLocation.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,39 @@
|
|
|
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.133](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.128...v0.4.133) (2025-06-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🐛 Bug Fixes | Bug 修复
|
|
9
|
+
|
|
10
|
+
* pruduct border ([40232e2](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/40232e2fe4f2240d2f0b44691e280d33f411184e))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
14
|
+
|
|
15
|
+
* **release:** 0.4.129 ([ce9f1fd](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ce9f1fd141467f428bd48c5c72f37cbbc7b1b14e))
|
|
16
|
+
* **release:** 0.4.130 ([6296b6b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/6296b6b3b4034cf46b736c269bb765f048de63e4))
|
|
17
|
+
* **release:** 0.4.131 ([a9b656f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a9b656f51d3e7eee3f2de513a10db3e8f01e4d33))
|
|
18
|
+
* **release:** 0.4.132 ([fe6dbed](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/fe6dbed8e349c0834ab1421a70ff101294e5beea))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### ✨ Features | 新功能
|
|
22
|
+
|
|
23
|
+
* version ([3088428](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/3088428b0dc76797651d51d050d264497f125df6))
|
|
24
|
+
* 变更字段 ([7080453](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7080453dfa884fc4d66d75309d9bcc7f9bfaa2ab))
|
|
25
|
+
* 新增product 上下内间距 ([38c0a45](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/38c0a45eec20cf178a20efbbb5fdb81288a808cf))
|
|
26
|
+
* 新增卡片样式 ([e626818](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e62681866d4cac8344d7cbcd19cd3facd0d49611))
|
|
27
|
+
* 新增默认值 ([77346b6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/77346b60fde8a78bb1a095c852474481d7be73f9))
|
|
28
|
+
* 调整定位 ([2d796a0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2d796a0d84c74584077f240c11d1433b8a5746ef))
|
|
29
|
+
|
|
30
|
+
### [0.4.132](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.131...v0.4.132) (2025-06-19)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### ✨ Features | 新功能
|
|
34
|
+
|
|
35
|
+
* 新增默认值 ([77346b6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/77346b60fde8a78bb1a095c852474481d7be73f9))
|
|
36
|
+
* 调整定位 ([2d796a0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2d796a0d84c74584077f240c11d1433b8a5746ef))
|
|
37
|
+
|
|
5
38
|
### [0.4.131](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.130...v0.4.131) (2025-06-17)
|
|
6
39
|
|
|
7
40
|
|
|
@@ -91,6 +91,12 @@ onMounted(async () => {
|
|
|
91
91
|
const data = await getTemplateMessageList(props.events)
|
|
92
92
|
templateMessageList.value = data
|
|
93
93
|
}
|
|
94
|
+
if (props.autoJumpSecond) {
|
|
95
|
+
const timer = setTimeout(() => {
|
|
96
|
+
onActionClick()
|
|
97
|
+
clearTimeout(timer)
|
|
98
|
+
}, props.autoJumpSecond * 1000)
|
|
99
|
+
}
|
|
94
100
|
})
|
|
95
101
|
const show = ref(false)
|
|
96
102
|
const openType = computed(() => {
|
package/hooks/useLocation.ts
CHANGED
|
@@ -20,10 +20,10 @@ const useLocation = (onLocation?: (location: UserLocation) => void) => {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
// 引导用户前往设置页面重新授权
|
|
23
|
-
function navigateToSettings() {
|
|
23
|
+
function navigateToSettings(forceSetting = false) {
|
|
24
24
|
/** 48小时提醒一次 */
|
|
25
25
|
const lastTime = uni.getStorageSync('location_last_time')
|
|
26
|
-
if (lastTime && new Date().getTime() - lastTime < 48 * 60 * 60 * 1000) {
|
|
26
|
+
if (lastTime && new Date().getTime() - lastTime < 48 * 60 * 60 * 1000 && !forceSetting) {
|
|
27
27
|
return
|
|
28
28
|
}
|
|
29
29
|
uni.setStorageSync('location_last_time', new Date().getTime())
|
|
@@ -47,7 +47,7 @@ const useLocation = (onLocation?: (location: UserLocation) => void) => {
|
|
|
47
47
|
})
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
const getLocation = async (force = false) => {
|
|
50
|
+
const getLocation = async (force = false, forceSetting = false) => {
|
|
51
51
|
// 如果不是force并且当前位置有值,则不刷新
|
|
52
52
|
if (!force && currentLocation.value) return
|
|
53
53
|
if ((await checkLocationPermission()) !== false) {
|
|
@@ -85,7 +85,7 @@ const useLocation = (onLocation?: (location: UserLocation) => void) => {
|
|
|
85
85
|
})
|
|
86
86
|
})
|
|
87
87
|
} else {
|
|
88
|
-
navigateToSettings()
|
|
88
|
+
navigateToSettings(forceSetting)
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
return { getLocation, locationIng, userLocation: currentLocation, userLatLon: currentUserLatLon }
|
package/package.json
CHANGED
|
@@ -73,6 +73,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
73
73
|
customClass?: string
|
|
74
74
|
customStyle?: import('vue').StyleValue
|
|
75
75
|
renderMode?: 'view' | 'button'
|
|
76
|
+
autoJumpSecond?: number
|
|
76
77
|
} & {
|
|
77
78
|
jumpType?:
|
|
78
79
|
| 1
|
|
@@ -166,6 +167,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
166
167
|
customClass?: string
|
|
167
168
|
customStyle?: import('vue').StyleValue
|
|
168
169
|
renderMode?: 'view' | 'button'
|
|
170
|
+
autoJumpSecond?: number
|
|
169
171
|
} & {
|
|
170
172
|
jumpType: 30
|
|
171
173
|
phoneNumber?: string
|
|
@@ -235,6 +237,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
235
237
|
customClass?: string
|
|
236
238
|
customStyle?: import('vue').StyleValue
|
|
237
239
|
renderMode?: 'view' | 'button'
|
|
240
|
+
autoJumpSecond?: number
|
|
238
241
|
} & {
|
|
239
242
|
jumpType: 17
|
|
240
243
|
requestInfo?: {
|
|
@@ -308,6 +311,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
308
311
|
customClass?: string
|
|
309
312
|
customStyle?: import('vue').StyleValue
|
|
310
313
|
renderMode?: 'view' | 'button'
|
|
314
|
+
autoJumpSecond?: number
|
|
311
315
|
} & {
|
|
312
316
|
jumpType: 105
|
|
313
317
|
addressInfo?: {
|
|
@@ -382,6 +386,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
382
386
|
customClass?: string
|
|
383
387
|
customStyle?: import('vue').StyleValue
|
|
384
388
|
renderMode?: 'view' | 'button'
|
|
389
|
+
autoJumpSecond?: number
|
|
385
390
|
} & {
|
|
386
391
|
jumpType: 106
|
|
387
392
|
requestParam?: Record<string, any>
|
|
@@ -451,6 +456,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
451
456
|
customClass?: string
|
|
452
457
|
customStyle?: import('vue').StyleValue
|
|
453
458
|
renderMode?: 'view' | 'button'
|
|
459
|
+
autoJumpSecond?: number
|
|
454
460
|
} & {
|
|
455
461
|
jumpType: 141
|
|
456
462
|
} & import('../lcb-block/types').LcbBlockProps
|
|
@@ -519,6 +525,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
519
525
|
customClass?: string
|
|
520
526
|
customStyle?: import('vue').StyleValue
|
|
521
527
|
renderMode?: 'view' | 'button'
|
|
528
|
+
autoJumpSecond?: number
|
|
522
529
|
} & {
|
|
523
530
|
jumpType: 107
|
|
524
531
|
content: {
|
|
@@ -591,6 +598,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
591
598
|
customClass?: string
|
|
592
599
|
customStyle?: import('vue').StyleValue
|
|
593
600
|
renderMode?: 'view' | 'button'
|
|
601
|
+
autoJumpSecond?: number
|
|
594
602
|
} & {
|
|
595
603
|
jumpType: 142
|
|
596
604
|
events: string
|
|
@@ -2,7 +2,7 @@ import { UserLocation } from './useLocation.api'
|
|
|
2
2
|
export declare const currentLocation: import('vue').Ref<UserLocation | undefined>
|
|
3
3
|
export declare const currentUserLatLon: import('vue').Ref<UniApp.GetLocationSuccess | undefined>
|
|
4
4
|
declare const useLocation: (onLocation?: (location: UserLocation) => void) => {
|
|
5
|
-
getLocation: (force?: boolean) => Promise<void>
|
|
5
|
+
getLocation: (force?: boolean, forceSetting?: boolean) => Promise<void>
|
|
6
6
|
locationIng: import('vue').Ref<boolean>
|
|
7
7
|
userLocation: import('vue').Ref<UserLocation | undefined>
|
|
8
8
|
userLatLon: import('vue').Ref<UniApp.GetLocationSuccess | undefined>
|