@tplc/business 0.3.68 → 0.3.69
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/components/lcb-calendar-search/lcb-calendar-search.vue +2 -1
- package/components/lcb-city-select/api/index.ts +2 -0
- package/components/lcb-city-select/components/lcb-city-letter/index.vue +2 -0
- package/components/lcb-city-select/components/lcb-city-list/index.vue +3 -3
- package/components/lcb-city-select/lcb-city-select.vue +2 -1
- package/components/lcb-home-search/lcb-home-search.vue +2 -0
- package/hooks/useLocation.api.ts +2 -0
- package/package.json +1 -1
- package/types/components/lcb-city-select/api/index.d.ts +2 -0
- package/types/hooks/useLocation.api.d.ts +2 -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.3.69](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.68...v0.3.69) (2025-03-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 文字颜色改为黑色 ([ca34cf9](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ca34cf962b6f9c886c0ba4bf5f8151b986908f78))
|
|
11
|
+
|
|
5
12
|
### [0.3.68](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.67...v0.3.68) (2025-03-02)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -63,7 +63,7 @@ withDefaults(defineProps<LcbCalendarSearchProps>(), {
|
|
|
63
63
|
|
|
64
64
|
const form = inject(FORM_KEY) as Ref<Record<string, any>>
|
|
65
65
|
const addressCity = ref<LcbAddress | undefined>(
|
|
66
|
-
form.value.cityId ? (form.value as LcbAddress) : undefined,
|
|
66
|
+
form.value.cityId || form.value.areaId ? (form.value as LcbAddress) : undefined,
|
|
67
67
|
)
|
|
68
68
|
const dayRange = ref([
|
|
69
69
|
form.value.startDate ? dayjs(form.value.startDate).valueOf() : dayjs().valueOf(),
|
|
@@ -77,6 +77,7 @@ watch(
|
|
|
77
77
|
(val) => {
|
|
78
78
|
if (val) {
|
|
79
79
|
form.value.cityId = val?.cityId
|
|
80
|
+
form.value.areaId = val?.areaId
|
|
80
81
|
if (val.keywords) {
|
|
81
82
|
form.value.keywords = val.keywords
|
|
82
83
|
}
|
|
@@ -18,6 +18,7 @@ export interface ChildHotAddress {
|
|
|
18
18
|
keywords?: string
|
|
19
19
|
className?: string
|
|
20
20
|
cityId: string
|
|
21
|
+
areaId: string
|
|
21
22
|
longitude?: string
|
|
22
23
|
weightSort?: string
|
|
23
24
|
addressInfo?: string
|
|
@@ -29,6 +30,7 @@ export interface LcbAddress {
|
|
|
29
30
|
categoryName: string
|
|
30
31
|
keywords?: string
|
|
31
32
|
cityId: string
|
|
33
|
+
areaId: string
|
|
32
34
|
hotAddressId: string
|
|
33
35
|
provinceCityName: string
|
|
34
36
|
area: string
|
|
@@ -92,11 +92,13 @@ const locationAddress = computed<HotAddress[]>(() => {
|
|
|
92
92
|
{
|
|
93
93
|
addr: props.location.haveNotCityName || props.location.cityName,
|
|
94
94
|
cityId: props.location.haveNotCityId || props.location.cityId,
|
|
95
|
+
areaId: props.location.areaId,
|
|
95
96
|
icon: 'location',
|
|
96
97
|
},
|
|
97
98
|
{
|
|
98
99
|
addr: props.location.haveNotAddressInfo || props.location.addressInfo,
|
|
99
100
|
cityId: props.location.haveNotCityId || props.location.cityId,
|
|
101
|
+
areaId: props.location.areaId,
|
|
100
102
|
className: 'w-25',
|
|
101
103
|
},
|
|
102
104
|
],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="p-3 box-border h-full overflow-y-auto pt-0">
|
|
3
|
-
<view v-for="item in list" :key="item.cityId" @click="onItemClick(item)">
|
|
3
|
+
<view v-for="item in list" :key="item.areaId || item.cityId" @click="onItemClick(item)">
|
|
4
4
|
<view class="flex mt-3">
|
|
5
5
|
<view class="tag">{{ item.categoryName }}</view>
|
|
6
6
|
<view class="content">
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<view class="flex gap-2 flex-wrap">
|
|
19
19
|
<view
|
|
20
20
|
v-for="item in historyList"
|
|
21
|
-
:key="item.cityId"
|
|
21
|
+
:key="item.areaId || item.cityId"
|
|
22
22
|
@click="emits('click', item)"
|
|
23
23
|
class="history-tag"
|
|
24
24
|
>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
</template>
|
|
39
39
|
|
|
40
40
|
<script setup lang="ts">
|
|
41
|
-
import { inject, Ref
|
|
41
|
+
import { inject, Ref } from 'vue'
|
|
42
42
|
import { LcbAddress } from '../../api'
|
|
43
43
|
import { LcbCityListProps } from './types'
|
|
44
44
|
|
|
@@ -112,8 +112,9 @@ watch(
|
|
|
112
112
|
if (val && !modelValue.value) {
|
|
113
113
|
modelValue.value = {
|
|
114
114
|
addressInfo: val.addressInfo,
|
|
115
|
-
addr: val.cityName,
|
|
115
|
+
addr: val.showName || val.cityName,
|
|
116
116
|
cityId: val.cityId,
|
|
117
|
+
areaId: val.areaId,
|
|
117
118
|
} as ChildHotAddress
|
|
118
119
|
}
|
|
119
120
|
},
|
|
@@ -144,6 +144,7 @@ const form = reactive({
|
|
|
144
144
|
startDate: '',
|
|
145
145
|
endDate: '',
|
|
146
146
|
cityId: '',
|
|
147
|
+
areaId: '',
|
|
147
148
|
addr: '',
|
|
148
149
|
cityName: '',
|
|
149
150
|
})
|
|
@@ -174,6 +175,7 @@ watchEffect(() => {
|
|
|
174
175
|
watchEffect(() => {
|
|
175
176
|
if (addressCity.value) {
|
|
176
177
|
form.cityId = addressCity.value.cityId
|
|
178
|
+
form.areaId = addressCity.value.areaId
|
|
177
179
|
form.addr = addressCity.value.addr
|
|
178
180
|
if (addressCity.value.keywords) {
|
|
179
181
|
form.keywords = addressCity.value.keywords
|
package/hooks/useLocation.api.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export interface UserLocation {
|
|
2
2
|
addressInfo: string
|
|
3
3
|
cityId: string
|
|
4
|
+
areaId: string
|
|
4
5
|
cityName: string
|
|
5
6
|
haveNotCityId: string
|
|
6
7
|
haveNotCityName: string
|
|
7
8
|
haveNotAddressInfo: string
|
|
8
9
|
haveNotTip: string
|
|
10
|
+
showName: string
|
|
9
11
|
}
|
|
10
12
|
export const getUserLocation = (data: { userLongitude: string; userLatitude: string }) =>
|
|
11
13
|
uni.$lcb.http.post<UserLocation>('/hotAddress/userLocation', data)
|
package/package.json
CHANGED
|
@@ -17,6 +17,7 @@ export interface ChildHotAddress {
|
|
|
17
17
|
keywords?: string
|
|
18
18
|
className?: string
|
|
19
19
|
cityId: string
|
|
20
|
+
areaId: string
|
|
20
21
|
longitude?: string
|
|
21
22
|
weightSort?: string
|
|
22
23
|
addressInfo?: string
|
|
@@ -28,6 +29,7 @@ export interface LcbAddress {
|
|
|
28
29
|
categoryName: string
|
|
29
30
|
keywords?: string
|
|
30
31
|
cityId: string
|
|
32
|
+
areaId: string
|
|
31
33
|
hotAddressId: string
|
|
32
34
|
provinceCityName: string
|
|
33
35
|
area: string
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export interface UserLocation {
|
|
2
2
|
addressInfo: string
|
|
3
3
|
cityId: string
|
|
4
|
+
areaId: string
|
|
4
5
|
cityName: string
|
|
5
6
|
haveNotCityId: string
|
|
6
7
|
haveNotCityName: string
|
|
7
8
|
haveNotAddressInfo: string
|
|
8
9
|
haveNotTip: string
|
|
10
|
+
showName: string
|
|
9
11
|
}
|
|
10
12
|
export declare const getUserLocation: (data: {
|
|
11
13
|
userLongitude: string
|