@tplc/business 0.5.9 → 0.5.10
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,8 @@
|
|
|
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.10](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.9...v0.5.10) (2025-10-10)
|
|
6
|
+
|
|
5
7
|
### [0.5.9](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.8...v0.5.9) (2025-10-10)
|
|
6
8
|
|
|
7
9
|
### [0.5.8](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.2...v0.5.8) (2025-10-10)
|
|
@@ -33,21 +33,31 @@ withDefaults(defineProps<AddressCommunityProps>(), {
|
|
|
33
33
|
color: '#000',
|
|
34
34
|
width: 240,
|
|
35
35
|
})
|
|
36
|
+
const constantsStore = uni.$lcb.constantsStore?.()
|
|
36
37
|
const value = defineModel<string>('')
|
|
37
38
|
const title = ref<string>('地址社区')
|
|
38
39
|
const options = computed(() => {
|
|
39
|
-
return
|
|
40
|
+
return constantsStore?.mainConfig?.addressList
|
|
40
41
|
})
|
|
42
|
+
const setCurrentAddress = (addressId?: string) => {
|
|
43
|
+
if (addressId) {
|
|
44
|
+
title.value = options.value.find((item) => item.addressId === addressId)?.addressName
|
|
45
|
+
value.value = addressId
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
setCurrentAddress(
|
|
49
|
+
constantsStore?.mainConfig?.address?.addressId ||
|
|
50
|
+
constantsStore?.mainConfig?.addressList?.[0]?.addressId ||
|
|
51
|
+
'',
|
|
52
|
+
)
|
|
41
53
|
watch(
|
|
42
|
-
() =>
|
|
43
|
-
(
|
|
44
|
-
|
|
45
|
-
title.value = options.value.find((item) => item.addressId === addressId)?.addressName
|
|
46
|
-
value.value = addressId
|
|
47
|
-
}
|
|
54
|
+
() => constantsStore?.mainConfig?.address,
|
|
55
|
+
(address) => {
|
|
56
|
+
setCurrentAddress(address?.addressId)
|
|
48
57
|
},
|
|
49
58
|
{
|
|
50
59
|
immediate: true,
|
|
60
|
+
deep: true,
|
|
51
61
|
},
|
|
52
62
|
)
|
|
53
63
|
|
|
@@ -192,7 +192,7 @@ const props = withDefaults(defineProps<NavProps>(), {
|
|
|
192
192
|
fontWeight: 500,
|
|
193
193
|
textColor: '#000000',
|
|
194
194
|
keyFromUser: false,
|
|
195
|
-
showAddressCommunity:
|
|
195
|
+
showAddressCommunity: false,
|
|
196
196
|
})
|
|
197
197
|
const navbarBgColor = computed(() => {
|
|
198
198
|
return props.backgroundType === 'color' ? props.backColor : ''
|