@tplc/business 0.2.53 → 0.2.56
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,41 @@
|
|
|
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.2.56](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.53...v0.2.56) (2025-01-03)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
9
|
+
|
|
10
|
+
* **release:** 0.2.54 ([0e50489](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0e5048983ebc7b98802b57fbf7b0abe128567206))
|
|
11
|
+
* **release:** 0.2.55 ([8639fd2](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/8639fd2ccd4611729f3d84b8c008a76b700320ac))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### ✨ Features | 新功能
|
|
15
|
+
|
|
16
|
+
* nav 如果页面俩层以上支持home ([0d9607a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0d9607aab7406ec0baeefd00b6434ba53d2ff11d))
|
|
17
|
+
* 修改city选择字段 ([f07078f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/f07078fe0ad2bd0f7406202ab784a2714838ac02))
|
|
18
|
+
* 图片尺寸 ([1450d12](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1450d126ee919f47df16f74dd4d170ef30c38e32))
|
|
19
|
+
* 城市选择显示详细地址信息 ([e81331f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e81331f9b303d14468cb659a1b8b7cf16b299dc9))
|
|
20
|
+
|
|
21
|
+
### [0.2.55](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.54...v0.2.55) (2025-01-02)
|
|
22
|
+
|
|
23
|
+
### [0.2.54](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.50...v0.2.54) (2025-01-02)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
27
|
+
|
|
28
|
+
* **release:** 0.2.51 ([4077050](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/40770500dbd47f5032e197089eefc802540bd8d0))
|
|
29
|
+
* **release:** 0.2.52 ([7fe16e9](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7fe16e9ec73f051c887af60bfe894c4dcae51ee9))
|
|
30
|
+
* **release:** 0.2.53 ([70acc28](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/70acc282222053ca8bd81bc9e5896954c9492ad1))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### ✨ Features | 新功能
|
|
34
|
+
|
|
35
|
+
* home-search cityName ([265572a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/265572a3c7b2dc5a9ff203129551df0ec2a6dd20))
|
|
36
|
+
* 兼容location ([cfeae91](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/cfeae9129e034ecec8055d930255894bfa05ebd9))
|
|
37
|
+
* 图片尺寸 ([1450d12](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1450d126ee919f47df16f74dd4d170ef30c38e32))
|
|
38
|
+
* 城市选择显示详细地址信息 ([e81331f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e81331f9b303d14468cb659a1b8b7cf16b299dc9))
|
|
39
|
+
|
|
5
40
|
### [0.2.53](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.52...v0.2.53) (2025-01-02)
|
|
6
41
|
|
|
7
42
|
### [0.2.52](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.51...v0.2.52) (2025-01-02)
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
<!-- eslint-disable vue/valid-v-for -->
|
|
1
2
|
<template>
|
|
2
3
|
<view class="h-full pb-3" v-if="letterList.length">
|
|
3
4
|
<wd-index-bar ref="indexBarRef">
|
|
@@ -23,20 +24,21 @@
|
|
|
23
24
|
:class="item.categoryName.includes('字母') ? 'grid-cols-8' : 'grid-cols-4'"
|
|
24
25
|
>
|
|
25
26
|
<view
|
|
26
|
-
class="address-tag"
|
|
27
|
+
class="flex justify-center items-center address-tag"
|
|
27
28
|
:class="{
|
|
28
29
|
'current-address': modelValue && modelValue.cityId === city.cityId,
|
|
29
30
|
[city.className || '']: true,
|
|
30
31
|
}"
|
|
31
32
|
v-for="city in item.childHotAddress"
|
|
32
|
-
:key="city.addr"
|
|
33
33
|
@click="onAddrClick(city, item.categoryName.includes('字母'))"
|
|
34
34
|
:style="{
|
|
35
35
|
fontSize: city.addr.length > 4 ? '20rpx' : '24rpx',
|
|
36
36
|
}"
|
|
37
37
|
>
|
|
38
|
-
<
|
|
39
|
-
|
|
38
|
+
<view class="tag-view">
|
|
39
|
+
<wd-icon v-if="city.icon" :name="city.icon" class="mr-0.5" />
|
|
40
|
+
{{ city.addr }}
|
|
41
|
+
</view>
|
|
40
42
|
</view>
|
|
41
43
|
</view>
|
|
42
44
|
<view
|
|
@@ -126,12 +128,16 @@ const onAddrClick = (city: ChildHotAddress, letter = false) => {
|
|
|
126
128
|
indexBarRef.value?.scrollToIndex(city.addr)
|
|
127
129
|
return
|
|
128
130
|
}
|
|
129
|
-
|
|
131
|
+
const currentCity = {
|
|
132
|
+
...city,
|
|
133
|
+
className: '',
|
|
134
|
+
}
|
|
135
|
+
modelValue.value = currentCity
|
|
130
136
|
historyAddress.value = historyAddress.value.filter((item) => item.cityId !== city.cityId)
|
|
131
137
|
if (historyAddress.value.length === 8) {
|
|
132
|
-
historyAddress.value = [
|
|
138
|
+
historyAddress.value = [currentCity, ...historyAddress.value.slice(0, 7)]
|
|
133
139
|
} else {
|
|
134
|
-
historyAddress.value = [
|
|
140
|
+
historyAddress.value = [currentCity, ...historyAddress.value]
|
|
135
141
|
}
|
|
136
142
|
}
|
|
137
143
|
const indexBars = computed<HotAddress[]>(() => {
|
|
@@ -156,15 +162,23 @@ const indexBars = computed<HotAddress[]>(() => {
|
|
|
156
162
|
|
|
157
163
|
.address-tag {
|
|
158
164
|
background: #f7f7f7;
|
|
159
|
-
height:
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
justify-content: center;
|
|
163
|
-
padding: 0 16rpx;
|
|
165
|
+
height: 62rpx;
|
|
166
|
+
padding: 0rpx 16rpx;
|
|
167
|
+
box-sizing: border-box;
|
|
164
168
|
border-radius: 10rpx;
|
|
165
169
|
font-size: 24rpx;
|
|
166
170
|
text-align: center;
|
|
167
171
|
overflow: hidden;
|
|
172
|
+
line-height: 30rpx;
|
|
173
|
+
}
|
|
174
|
+
.tag-view {
|
|
175
|
+
display: -webkit-box;
|
|
176
|
+
overflow: hidden;
|
|
177
|
+
text-overflow: ellipsis;
|
|
178
|
+
-webkit-line-clamp: 2;
|
|
179
|
+
line-clamp: 2;
|
|
180
|
+
-webkit-box-orient: vertical;
|
|
181
|
+
box-sizing: border-box;
|
|
168
182
|
}
|
|
169
183
|
|
|
170
184
|
.current-address {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<view class="navbar-left z-1">
|
|
28
28
|
<!-- 返回按钮 -->
|
|
29
29
|
<view
|
|
30
|
-
v-if="styleGroup === 3 && capsuleList.length"
|
|
30
|
+
v-if="(styleGroup === 3 || moreThanTwoPages()) && capsuleList.length"
|
|
31
31
|
class="navbar-capsule flex justify-center items-center"
|
|
32
32
|
:class="[capsuleMode]"
|
|
33
33
|
>
|
|
@@ -132,6 +132,11 @@ const isLastPage = () => {
|
|
|
132
132
|
const pages = getCurrentPages()
|
|
133
133
|
return pages.length === 1
|
|
134
134
|
}
|
|
135
|
+
// 超过俩个页面
|
|
136
|
+
const moreThanTwoPages = () => {
|
|
137
|
+
const pages = getCurrentPages()
|
|
138
|
+
return pages.length > 2
|
|
139
|
+
}
|
|
135
140
|
|
|
136
141
|
// 透明度
|
|
137
142
|
const navbarBgOpacity = computed(() => {
|
|
@@ -170,6 +175,13 @@ const capsuleList = computed(() => {
|
|
|
170
175
|
action: 'back',
|
|
171
176
|
})
|
|
172
177
|
}
|
|
178
|
+
/** 如果超过俩个的层级的话并且支持返回 */
|
|
179
|
+
if (moreThanTwoPages()) {
|
|
180
|
+
list.push({
|
|
181
|
+
icon: 'home',
|
|
182
|
+
action: 'home',
|
|
183
|
+
})
|
|
184
|
+
}
|
|
173
185
|
|
|
174
186
|
return [...list, ...(props.capsules || [])] as ICapsule[]
|
|
175
187
|
})
|
|
@@ -297,8 +309,8 @@ const toBack = () => {
|
|
|
297
309
|
}
|
|
298
310
|
|
|
299
311
|
.dark {
|
|
300
|
-
border-color: rgba(255, 255, 255, 0.25);
|
|
301
|
-
background-color: rgba(0, 0, 0, 0.15);
|
|
312
|
+
border-color: rgba(255, 255, 255, 0.25) !important;
|
|
313
|
+
background-color: rgba(0, 0, 0, 0.15) !important;
|
|
302
314
|
color: #fff;
|
|
303
315
|
> view {
|
|
304
316
|
position: relative;
|
|
@@ -103,7 +103,7 @@ const value = computed(() => {
|
|
|
103
103
|
<view :class="`relative ${className}`" :style="style">
|
|
104
104
|
<wd-img :src="value" mode="aspectFill" width="100%" height="100%" />
|
|
105
105
|
<!-- imgBottomIcon -->
|
|
106
|
-
<view class="absolute bottom-0 left-0 w-full
|
|
106
|
+
<view class="absolute bottom-0 left-0 w-full" v-if="itemProps.imgBottomIcon">
|
|
107
107
|
<wd-img
|
|
108
108
|
:src="itemProps.imgBottomIcon"
|
|
109
109
|
custom-class="block"
|
|
@@ -113,7 +113,7 @@ const value = computed(() => {
|
|
|
113
113
|
/>
|
|
114
114
|
</view>
|
|
115
115
|
<!-- imgCornerIcon -->
|
|
116
|
-
<view class="absolute top-0 left-0 h-8
|
|
116
|
+
<view class="absolute top-0 left-0 h-8" v-if="itemProps.imgCornerIcon">
|
|
117
117
|
<wd-img
|
|
118
118
|
:src="itemProps.imgCornerIcon"
|
|
119
119
|
width="auto"
|