@tplc/business 0.3.51 → 0.3.53
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 +15 -0
- package/components/lcb-action-view/lcb-action-view.vue +24 -4
- package/components/lcb-action-view/types.ts +4 -1
- package/components/lcb-map/lcb-map.vue +1 -26
- package/package.json +1 -1
- package/types/components/lcb-action-view/lcb-action-view.vue.d.ts +1 -1
- package/types/components/lcb-action-view/types.d.ts +4 -1
- package/types/components/lcb-calendar/lcb-calendar.vue.d.ts +1 -1
- package/types/components/lcb-img-nav/lcb-img-nav.vue.d.ts +2 -2
- package/types/components/lcb-notice/lcb-notice.vue.d.ts +1 -1
- package/types/components/lcb-operation-actions/BtnViews.vue.d.ts +1 -1
- package/types/components/lcb-operation-actions/lcb-operation-actions.vue.d.ts +1 -1
- package/types/components/lcb-user-top/lcb-user-top.vue.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
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.53](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.52...v0.3.53) (2025-02-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 二维码权限 ([93bc3ff](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/93bc3ff12f3b8db6b6a2e50355ce90501b362d86))
|
|
11
|
+
|
|
12
|
+
### [0.3.52](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.51...v0.3.52) (2025-02-17)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### ✨ Features | 新功能
|
|
16
|
+
|
|
17
|
+
* 同步字段 ([b34ceb2](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b34ceb2c7d7bea820c31ebdfd0a98d8971647e09))
|
|
18
|
+
* 比例尺调整 ([835e7c2](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/835e7c23faa7dea09697d9446c8a2ea1afa8bd42))
|
|
19
|
+
|
|
5
20
|
### [0.3.51](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.50...v0.3.51) (2025-02-14)
|
|
6
21
|
|
|
7
22
|
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
</button>
|
|
13
13
|
<wd-popup
|
|
14
14
|
v-model="show"
|
|
15
|
-
:safe-area-inset-bottom="
|
|
15
|
+
:safe-area-inset-bottom="position === 'bottom'"
|
|
16
16
|
closable
|
|
17
17
|
:position="position"
|
|
18
|
-
v-if="props.jumpType
|
|
18
|
+
v-if="[14, 141].includes(props.jumpType || 0)"
|
|
19
19
|
:custom-class="position === 'bottom' ? '!rounded-t-20rpx' : '!rounded-20rpx'"
|
|
20
20
|
>
|
|
21
21
|
<view
|
|
@@ -24,12 +24,20 @@
|
|
|
24
24
|
width: position === 'bottom' ? '100vw' : '90vw',
|
|
25
25
|
}"
|
|
26
26
|
>
|
|
27
|
-
<view class="title">
|
|
27
|
+
<view class="title" v-if="title">
|
|
28
28
|
{{ title }}
|
|
29
29
|
</view>
|
|
30
|
-
<view class="p-3 max-h-50vh overflow-y-auto">
|
|
30
|
+
<view class="p-3 max-h-50vh overflow-y-auto" v-if="content">
|
|
31
31
|
<mp-html :content="content" />
|
|
32
32
|
</view>
|
|
33
|
+
<view v-if="jumpType === 141" class="pt-6 pb-5 box-border flex-col-center gap-3">
|
|
34
|
+
<wd-qr-code :value="jumpUrl" :canvas-id="`id_${jumpUrl}`" :size="160" />
|
|
35
|
+
<view class="flex items-center justify-center gap-2">
|
|
36
|
+
<view class="text-3.5">{{ jumpUrl }}</view>
|
|
37
|
+
<!-- 复制 -->
|
|
38
|
+
<wd-button type="text" @click="onCopy(jumpUrl)">{{ translate('复制') }}</wd-button>
|
|
39
|
+
</view>
|
|
40
|
+
</view>
|
|
33
41
|
</view>
|
|
34
42
|
</wd-popup>
|
|
35
43
|
<SharePopup v-model="showPoster" :params="requestParam" />
|
|
@@ -42,6 +50,8 @@ import { uploadFile } from '../../hooks/useUpload'
|
|
|
42
50
|
import mpHtml from 'mp-html/src/uni-app/components/mp-html/mp-html.vue'
|
|
43
51
|
import { getFinalUrl, onPageScrollSelector } from '../../utils/utils'
|
|
44
52
|
import SharePopup from '../lcb-nav/SharePopup/index.vue'
|
|
53
|
+
import { useTranslate } from '@tplc/wot'
|
|
54
|
+
const { translate } = useTranslate()
|
|
45
55
|
defineOptions({
|
|
46
56
|
name: 'LcbActionView',
|
|
47
57
|
options: {
|
|
@@ -183,6 +193,9 @@ const onActionClick = async () => {
|
|
|
183
193
|
case 106:
|
|
184
194
|
showPoster.value = true
|
|
185
195
|
break
|
|
196
|
+
case 141:
|
|
197
|
+
show.value = true
|
|
198
|
+
break
|
|
186
199
|
default:
|
|
187
200
|
emits('click')
|
|
188
201
|
break
|
|
@@ -203,6 +216,12 @@ const onChooseAvatar = async (e) => {
|
|
|
203
216
|
},
|
|
204
217
|
})
|
|
205
218
|
}
|
|
219
|
+
const onCopy = (data?: string) => {
|
|
220
|
+
if (!data) return
|
|
221
|
+
uni.setClipboardData({
|
|
222
|
+
data,
|
|
223
|
+
})
|
|
224
|
+
}
|
|
206
225
|
</script>
|
|
207
226
|
|
|
208
227
|
<style lang="scss" scoped>
|
|
@@ -211,6 +230,7 @@ const onChooseAvatar = async (e) => {
|
|
|
211
230
|
border: none;
|
|
212
231
|
padding: 0;
|
|
213
232
|
margin: 0;
|
|
233
|
+
margin: 0;
|
|
214
234
|
color: inherit;
|
|
215
235
|
font-size: inherit;
|
|
216
236
|
// display: inline-block;
|
|
@@ -13,7 +13,7 @@ export type LcbActionViewProps = {
|
|
|
13
13
|
* 13: 退出登录 14: 小程序弹框 16: 小程序锚点 17 网络请求 21: 新窗口跳到页面 22: 切换TAB页 23: 重启进入某页面
|
|
14
14
|
* 24: 回到上一层 25: 关闭当前页面 26: 关闭当前窗口 30: 拨打电话
|
|
15
15
|
* 88: 授权手机号 101 用户头像 102 分享 103 意见反馈 104 打开授权设置页
|
|
16
|
-
* 105 查看地图 106 查看地图
|
|
16
|
+
* 105 查看地图 106 查看地图 141 二维码
|
|
17
17
|
*/
|
|
18
18
|
jumpType?:
|
|
19
19
|
| 1
|
|
@@ -69,4 +69,7 @@ export type LcbActionViewProps = {
|
|
|
69
69
|
jumpType: 106
|
|
70
70
|
requestParam?: Record<string, any>
|
|
71
71
|
}
|
|
72
|
+
| {
|
|
73
|
+
jumpType: 141
|
|
74
|
+
}
|
|
72
75
|
)
|
|
@@ -83,26 +83,6 @@ const { proxy } = getCurrentInstance()!
|
|
|
83
83
|
const mapContext = ref<UniApp.MapContext>()
|
|
84
84
|
const { userLatLon, getLocation } = useLocation()
|
|
85
85
|
const props = defineProps<LcbListProps & LcbListInfo>()
|
|
86
|
-
const scaleRadius: Record<string, number> = {
|
|
87
|
-
3: 1_000_000,
|
|
88
|
-
4: 500_000,
|
|
89
|
-
5: 200_000,
|
|
90
|
-
6: 100_000,
|
|
91
|
-
7: 50_000,
|
|
92
|
-
8: 25_000,
|
|
93
|
-
9: 20_000,
|
|
94
|
-
10: 10_000,
|
|
95
|
-
11: 5_000,
|
|
96
|
-
12: 2_000,
|
|
97
|
-
13: 1_000,
|
|
98
|
-
14: 500,
|
|
99
|
-
15: 200,
|
|
100
|
-
16: 100,
|
|
101
|
-
17: 50,
|
|
102
|
-
18: 20,
|
|
103
|
-
19: 10,
|
|
104
|
-
20: 5,
|
|
105
|
-
}
|
|
106
86
|
const themeColor = inject('theme-color', '#3875FF')
|
|
107
87
|
const callout: MapMarker['callout'] = {
|
|
108
88
|
content: '腾讯总部大楼',
|
|
@@ -111,7 +91,6 @@ const callout: MapMarker['callout'] = {
|
|
|
111
91
|
fontSize: 14,
|
|
112
92
|
textAlign: 'center',
|
|
113
93
|
borderRadius: 4,
|
|
114
|
-
|
|
115
94
|
borderWidth: 1,
|
|
116
95
|
borderColor: themeColor,
|
|
117
96
|
bgColor: '#ffffff',
|
|
@@ -135,7 +114,7 @@ const getData = debounce(() => {
|
|
|
135
114
|
})) as {
|
|
136
115
|
data: MapItem[]
|
|
137
116
|
}
|
|
138
|
-
list.value = data
|
|
117
|
+
list.value = data as any
|
|
139
118
|
getCurrentData(data)
|
|
140
119
|
},
|
|
141
120
|
})
|
|
@@ -149,8 +128,6 @@ watch(
|
|
|
149
128
|
form.value.mapLongitude = val.longitude
|
|
150
129
|
form.value.userLongitude = val.longitude
|
|
151
130
|
form.value.userLatitude = val.latitude
|
|
152
|
-
form.value.scale = 14
|
|
153
|
-
form.value.mapViewRadius = scaleRadius[14]
|
|
154
131
|
},
|
|
155
132
|
{
|
|
156
133
|
immediate: true,
|
|
@@ -169,10 +146,8 @@ const onRegionChange = (e: {
|
|
|
169
146
|
}
|
|
170
147
|
}) => {
|
|
171
148
|
if (e.type === 'end') {
|
|
172
|
-
form.value.scale = e.detail.scale
|
|
173
149
|
form.value.mapLatitude = e.detail.centerLocation.latitude
|
|
174
150
|
form.value.mapLongitude = e.detail.centerLocation.longitude
|
|
175
|
-
form.value.mapViewRadius = scaleRadius[parseInt(String(e.detail.scale))]
|
|
176
151
|
}
|
|
177
152
|
}
|
|
178
153
|
const onCurrentChange = (p: number) => {
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@ export type LcbActionViewProps = {
|
|
|
12
12
|
* 13: 退出登录 14: 小程序弹框 16: 小程序锚点 17 网络请求 21: 新窗口跳到页面 22: 切换TAB页 23: 重启进入某页面
|
|
13
13
|
* 24: 回到上一层 25: 关闭当前页面 26: 关闭当前窗口 30: 拨打电话
|
|
14
14
|
* 88: 授权手机号 101 用户头像 102 分享 103 意见反馈 104 打开授权设置页
|
|
15
|
-
* 105 查看地图 106 查看地图
|
|
15
|
+
* 105 查看地图 106 查看地图 141 二维码
|
|
16
16
|
*/
|
|
17
17
|
jumpType?:
|
|
18
18
|
| 1
|
|
@@ -66,4 +66,7 @@ export type LcbActionViewProps = {
|
|
|
66
66
|
jumpType: 106
|
|
67
67
|
requestParam?: Record<string, any>
|
|
68
68
|
}
|
|
69
|
+
| {
|
|
70
|
+
jumpType: 141
|
|
71
|
+
}
|
|
69
72
|
)
|
|
@@ -65,8 +65,8 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
65
65
|
{
|
|
66
66
|
'update:modelValue': (modelValue: number[]) => void
|
|
67
67
|
confirm: (...args: any[]) => void
|
|
68
|
-
open: (...args: any[]) => void
|
|
69
68
|
cancel: (...args: any[]) => void
|
|
69
|
+
open: (...args: any[]) => void
|
|
70
70
|
},
|
|
71
71
|
string,
|
|
72
72
|
import('vue').PublicProps,
|
|
@@ -56,10 +56,10 @@ declare const _default: import('vue').DefineComponent<
|
|
|
56
56
|
onClick?: ((...args: any[]) => any) | undefined
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
|
-
paddingHorizontal: number
|
|
60
|
-
paddingVertical: number
|
|
61
59
|
iconSize: number
|
|
62
60
|
iconColor: string
|
|
61
|
+
paddingHorizontal: number
|
|
62
|
+
paddingVertical: number
|
|
63
63
|
textColor: string
|
|
64
64
|
pictureDistribution: 3 | 4 | 5
|
|
65
65
|
iconRadius: number
|
|
@@ -42,10 +42,10 @@ declare const _default: import('vue').DefineComponent<
|
|
|
42
42
|
{
|
|
43
43
|
backgroundColor: string
|
|
44
44
|
color: string
|
|
45
|
+
iconSize: number
|
|
45
46
|
direction: import('@tplc/wot/types/components/wd-notice-bar/types').NoticeBarScrollDirection
|
|
46
47
|
paddingVertical: number
|
|
47
48
|
borderColor: string
|
|
48
|
-
iconSize: number
|
|
49
49
|
speed: number
|
|
50
50
|
rightArrow: boolean
|
|
51
51
|
},
|
|
@@ -13,8 +13,8 @@ declare const _default: import('vue').DefineComponent<
|
|
|
13
13
|
import('vue').ComponentOptionsMixin,
|
|
14
14
|
import('vue').ComponentOptionsMixin,
|
|
15
15
|
{
|
|
16
|
-
refresh: (...args: any[]) => void
|
|
17
16
|
cancel: (...args: any[]) => void
|
|
17
|
+
refresh: (...args: any[]) => void
|
|
18
18
|
},
|
|
19
19
|
string,
|
|
20
20
|
import('vue').PublicProps,
|
|
@@ -8,8 +8,8 @@ declare const _default: import('vue').DefineComponent<
|
|
|
8
8
|
import('vue').ComponentOptionsMixin,
|
|
9
9
|
import('vue').ComponentOptionsMixin,
|
|
10
10
|
{
|
|
11
|
-
refresh: (...args: any[]) => void
|
|
12
11
|
cancel: (...args: any[]) => void
|
|
12
|
+
refresh: (...args: any[]) => void
|
|
13
13
|
},
|
|
14
14
|
string,
|
|
15
15
|
import('vue').PublicProps,
|
|
@@ -54,11 +54,11 @@ declare const _default: import('vue').DefineComponent<
|
|
|
54
54
|
>
|
|
55
55
|
>,
|
|
56
56
|
{
|
|
57
|
+
iconName: string
|
|
57
58
|
paddingTop: number
|
|
58
59
|
paddingBottom: number
|
|
59
60
|
paddingLeft: number
|
|
60
61
|
paddingRight: number
|
|
61
|
-
iconName: string
|
|
62
62
|
textColor: string
|
|
63
63
|
iconType: 0 | 1
|
|
64
64
|
textSize: number
|