@tplc/business 0.3.67 → 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 +14 -0
- package/components/lcb-action-view/lcb-action-view.vue +0 -1
- package/components/lcb-banner-block/lcb-banner-block.vue +1 -1
- package/components/lcb-calendar-search/lcb-calendar-search.vue +4 -3
- package/components/lcb-city-select/api/index.ts +2 -0
- package/components/lcb-city-select/components/lcb-city-letter/index.vue +3 -1
- package/components/lcb-city-select/components/lcb-city-list/index.vue +4 -4
- package/components/lcb-city-select/lcb-city-select.vue +5 -2
- package/components/lcb-home-search/lcb-home-search.vue +5 -3
- package/components/lcb-list/components/SelectTagView/index.vue +0 -1
- package/components/lcb-list/components/TagSelect/index.vue +0 -1
- package/components/lcb-notice/lcb-notice.vue +1 -1
- package/components/lcb-product-item/components/ItemValue.vue +5 -1
- package/components/lcb-vip/components/InfoDialog/index.vue +0 -1
- 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,20 @@
|
|
|
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
|
+
|
|
12
|
+
### [0.3.68](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.67...v0.3.68) (2025-03-02)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### ✨ Features | 新功能
|
|
16
|
+
|
|
17
|
+
* 修改图片策略 ([471609c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/471609ca404f2b2d9a8930fca81c2376b30a3ffa))
|
|
18
|
+
|
|
5
19
|
### [0.3.67](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.61...v0.3.67) (2025-03-02)
|
|
6
20
|
|
|
7
21
|
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
/>
|
|
51
51
|
<lcb-action-view
|
|
52
52
|
v-bind="link"
|
|
53
|
-
custom-class="!p-24rpx !text-30rpx text-
|
|
53
|
+
custom-class="!p-24rpx !text-30rpx text-[var(--content-color)] !flex justify-between items-center"
|
|
54
54
|
>
|
|
55
55
|
<view>{{ title }}</view>
|
|
56
56
|
<wd-icon class-prefix="lcb" name="a-xingzhuang103" size="30rpx" color="#666" />
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<lcb-block v-bind="$props" customClass="flex items-center !bg-white">
|
|
3
3
|
<view
|
|
4
|
-
class="flex flex-1 text-
|
|
4
|
+
class="flex flex-1 text-[var(--content-color)] rounded-16rpx bg-#F5F5F7 h-78rpx flex items-center px-3 text-[28rpx]"
|
|
5
5
|
>
|
|
6
6
|
<lcb-city-select :location="userLocation" v-model="addressCity">
|
|
7
7
|
<view class="max-w-13 truncate">{{ addressCity?.addr || '全国' }}</view>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<view class="flex-1 flex items-center gap-2">
|
|
25
25
|
<wd-icon name="search" size="34rpx" color="#999999" />
|
|
26
26
|
<input
|
|
27
|
-
class="text-
|
|
27
|
+
class="text-[var(--content-color)]"
|
|
28
28
|
:placeholder="placeholder"
|
|
29
29
|
:value="form.keywords"
|
|
30
30
|
@blur="onSearch"
|
|
@@ -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
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
class="w-4 h-4 mr-1"
|
|
15
15
|
v-if="item.categoryName.includes('热门')"
|
|
16
16
|
/>
|
|
17
|
-
<view class="text-3 text-
|
|
17
|
+
<view class="text-3 text-[var(--content-color)] font-500">
|
|
18
18
|
{{ item.hint || item.categoryName }}
|
|
19
19
|
</view>
|
|
20
20
|
</view>
|
|
@@ -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">
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
<view v-if="!list.length" class="mt-3">
|
|
13
13
|
<view v-if="historyList.length">
|
|
14
14
|
<view class="flex justify-between items-center">
|
|
15
|
-
<view class="text-28rpx text-
|
|
15
|
+
<view class="text-28rpx text-[var(--content-color)] font-500x">历史搜索</view>
|
|
16
16
|
<wd-icon name="delete" size="30rpx" color="#999" @click="onClear" />
|
|
17
17
|
</view>
|
|
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
|
|
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
>
|
|
13
13
|
<view class="flex flex-col h-full">
|
|
14
14
|
<view class="top-search">
|
|
15
|
-
<view class="text-28rpx text-
|
|
15
|
+
<view class="text-28rpx text-[var(--content-color)] text-center mt-28rpx mb-2 font-500">
|
|
16
|
+
选择所在地区
|
|
17
|
+
</view>
|
|
16
18
|
<wd-icon
|
|
17
19
|
custom-class="absolute top-0 right-0 mt-28rpx mr-5"
|
|
18
20
|
name="close-circle"
|
|
@@ -110,8 +112,9 @@ watch(
|
|
|
110
112
|
if (val && !modelValue.value) {
|
|
111
113
|
modelValue.value = {
|
|
112
114
|
addressInfo: val.addressInfo,
|
|
113
|
-
addr: val.cityName,
|
|
115
|
+
addr: val.showName || val.cityName,
|
|
114
116
|
cityId: val.cityId,
|
|
117
|
+
areaId: val.areaId,
|
|
115
118
|
} as ChildHotAddress
|
|
116
119
|
}
|
|
117
120
|
},
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
backgroundColor: `rgba(255,255, 255, ${opacity})`,
|
|
28
28
|
}"
|
|
29
29
|
>
|
|
30
|
-
<view class="flex items-center justify-center text-
|
|
30
|
+
<view class="flex items-center justify-center text-[var(--content-color)] gap-16rpx">
|
|
31
31
|
<lcb-city-select :location="userLocation" v-model="addressCity">
|
|
32
32
|
<view class="flex items-center gap-16rpx">
|
|
33
33
|
<view class="text-30rpx max-w-13 truncate">
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}"
|
|
49
49
|
/>
|
|
50
50
|
<input
|
|
51
|
-
class="text-
|
|
51
|
+
class="text-[var(--content-color)] text-28rpx flex-1 mr-3"
|
|
52
52
|
:placeholder="placeholder"
|
|
53
53
|
v-model="form.keywords"
|
|
54
54
|
/>
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
src="https://ddll-lycs.oss-cn-hangzhou.aliyuncs.com/default/1/20240914164707/%E5%BD%A2%E7%8A%B6%2095%402x.png"
|
|
61
61
|
v-else
|
|
62
62
|
/>
|
|
63
|
-
<view class="text-26rpx text-
|
|
63
|
+
<view class="text-26rpx text-[var(--content-color)] mt-12rpx">
|
|
64
64
|
{{ locationIng ? translate('定位中...') : translate('当前位置') }}
|
|
65
65
|
</view>
|
|
66
66
|
</view>
|
|
@@ -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
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
</wd-notice-bar>
|
|
30
30
|
</lcb-block>
|
|
31
31
|
<wd-popup v-model="popup.show" position="bottom" custom-class="!bg-transparent" closable>
|
|
32
|
-
<view class="text-
|
|
32
|
+
<view class="text-[var(--content-color)] px-3 pb-3 box-border bg-#fff rounded-t-20rpx">
|
|
33
33
|
<view class="py-3 text-center font-500 text-4">{{ popup.item.title || '公告' }}</view>
|
|
34
34
|
<view class="min-h-30vh max-h-50vh overflow-y-auto text-28rpx">
|
|
35
35
|
{{ popup.item.adContent }}
|
|
@@ -324,7 +324,11 @@ const value = computed(() => {
|
|
|
324
324
|
/>
|
|
325
325
|
</slot>
|
|
326
326
|
<slot :value="value" v-if="prop === 'userName'" name="userName">
|
|
327
|
-
<view
|
|
327
|
+
<view
|
|
328
|
+
:class="className"
|
|
329
|
+
:style="style"
|
|
330
|
+
class="text-20rpx text-[var(--content-color)] truncate"
|
|
331
|
+
>
|
|
328
332
|
{{ value }}
|
|
329
333
|
</view>
|
|
330
334
|
</slot>
|
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
|