@tplc/business 0.7.2 → 0.7.3
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 +7 -0
- package/action.d.ts +1 -1
- package/components/lcb-nav/AddressCommunity/index.vue +3 -2
- package/components/lcb-nav/lcb-nav.vue +0 -21
- package/components/lcb-nav/types.ts +1 -0
- package/package.json +1 -1
- package/types/components/lcb-nav/AddressCommunity/index.vue.d.ts +2 -0
- package/types/components/lcb-nav/types.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.7.3](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.2...v0.7.3) (2025-12-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 更新版本 ([71a7e8a](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/71a7e8ab13cc71ae43c0e6152df26a55a6faa996))
|
|
11
|
+
|
|
5
12
|
### [0.7.2](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.1...v0.7.2) (2025-12-11)
|
|
6
13
|
|
|
7
14
|
### [0.7.1](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.90...v0.7.1) (2025-12-11)
|
package/action.d.ts
CHANGED
|
@@ -73,7 +73,7 @@ export interface LcbGlobal {
|
|
|
73
73
|
mainConfig?: Record<string, any>
|
|
74
74
|
otherConfig?: Record<string, any>
|
|
75
75
|
addressId?: string
|
|
76
|
-
setAddressId: (addressId: string) => void
|
|
76
|
+
setAddressId: (addressId: string, switchType?: 'current' | 'global') => void
|
|
77
77
|
getAddressId: () => string
|
|
78
78
|
}
|
|
79
79
|
messageStore?: () => {
|
|
@@ -40,6 +40,7 @@ const props = withDefaults(defineProps<AddressCommunityProps>(), {
|
|
|
40
40
|
width: 240,
|
|
41
41
|
mode: 'normal',
|
|
42
42
|
popupWidth: 240,
|
|
43
|
+
switchType: 'global',
|
|
43
44
|
})
|
|
44
45
|
const value = defineModel<string>('')
|
|
45
46
|
const constantsStore = uni.$lcb.constantsStore?.()
|
|
@@ -65,12 +66,12 @@ watch(
|
|
|
65
66
|
)
|
|
66
67
|
|
|
67
68
|
const handleChange = (e: any) => {
|
|
68
|
-
uni.$lcb.constantsStore?.()?.setAddressId(e.selectedItem.addressId)
|
|
69
|
+
uni.$lcb.constantsStore?.()?.setAddressId(e.selectedItem.addressId, props.switchType)
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
const onChooseAddress = () => {
|
|
72
73
|
if (props.mode === 'normal') {
|
|
73
|
-
uni.$lcb.navigateTo(
|
|
74
|
+
uni.$lcb.navigateTo(`/pages-sub/index/store?switchType=${props.switchType}`)
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
77
|
const containerStyle = computed(() => {
|
|
@@ -296,27 +296,6 @@ const onCapsule = ({ action }: ICapsule) => {
|
|
|
296
296
|
})
|
|
297
297
|
break
|
|
298
298
|
case 'scanCode':
|
|
299
|
-
// Taro.scanCode({
|
|
300
|
-
// success: ({result:url}) => {
|
|
301
|
-
// if(url.includes('plugin://kivicube-slam/scene')){
|
|
302
|
-
// Taro.redirectTo({
|
|
303
|
-
// url,
|
|
304
|
-
// });
|
|
305
|
-
// }else{
|
|
306
|
-
// Taro.navigateBack({
|
|
307
|
-
// success:()=>{
|
|
308
|
-
// Taro.showToast({
|
|
309
|
-
// title:'请扫描正确的二维码',
|
|
310
|
-
// icon:'none',
|
|
311
|
-
// duration:1500
|
|
312
|
-
// })
|
|
313
|
-
// }
|
|
314
|
-
// })
|
|
315
|
-
// }
|
|
316
|
-
|
|
317
|
-
// },
|
|
318
|
-
// fail:()=>Taro.navigateBack({})
|
|
319
|
-
// });
|
|
320
299
|
uni.scanCode({
|
|
321
300
|
success: (res) => {
|
|
322
301
|
const { result } = res
|
package/package.json
CHANGED
|
@@ -13,6 +13,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
13
13
|
width: number
|
|
14
14
|
mode: string
|
|
15
15
|
popupWidth: number
|
|
16
|
+
switchType: string
|
|
16
17
|
}
|
|
17
18
|
>,
|
|
18
19
|
{},
|
|
@@ -32,6 +33,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
32
33
|
color: string
|
|
33
34
|
fontSize: number
|
|
34
35
|
popupWidth: number
|
|
36
|
+
switchType: 'current' | 'global'
|
|
35
37
|
},
|
|
36
38
|
{}
|
|
37
39
|
>
|