@tplc/business 0.3.80 → 0.3.82
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 +22 -0
- package/components/lcb-user-top/Nums/index.vue +3 -4
- package/components/lcb-user-top/lcb-user-top.vue +35 -15
- package/components/lcb-user-top/types.ts +16 -0
- package/package.json +1 -1
- package/types/components/lcb-user-top/Nums/index.vue.d.ts +2 -6
- package/types/components/lcb-user-top/lcb-user-top.vue.d.ts +51 -0
- package/types/components/lcb-user-top/types.d.ts +15 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
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.82](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.81...v0.3.82) (2025-03-14)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 新增user-top ([e27c79b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e27c79b9deb38a9a02278ff58d0ca3fd050884c3))
|
|
11
|
+
* 新增连接配置 ([e9d3083](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e9d3083755d765b8f350cf85e948222a96db816c))
|
|
12
|
+
|
|
13
|
+
### [0.3.81](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.79...v0.3.81) (2025-03-13)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
17
|
+
|
|
18
|
+
* **release:** 0.3.80 ([89ab989](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/89ab9898a722b8c131459299af898198213889c9))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### ✨ Features | 新功能
|
|
22
|
+
|
|
23
|
+
* title 新增logo ([ae2f22e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ae2f22eec1fbbe91f4f7e7d3d4953581b64cdc6c))
|
|
24
|
+
* 新增fab ([2cea98b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2cea98b0049aacb674019dd35a49f2a5049f3d2d))
|
|
25
|
+
* 新增数据 ([29d0146](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/29d0146c82a3fa01f2268c1084804c74f92399fd))
|
|
26
|
+
|
|
5
27
|
### [0.3.80](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.78...v0.3.80) (2025-03-12)
|
|
6
28
|
|
|
7
29
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view
|
|
2
|
+
<lcb-action-view v-bind="link">
|
|
3
3
|
<view
|
|
4
4
|
class="font-bold leading-none"
|
|
5
5
|
:style="{
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
{{ (basicInfo?.[valueKey] || 0).toLocaleString() }}
|
|
11
11
|
</view>
|
|
12
12
|
<view
|
|
13
|
-
class="mt-15rpx"
|
|
14
13
|
:style="{
|
|
15
14
|
fontSize: transformValueUnit(titleSize),
|
|
16
15
|
color: titleColor,
|
|
16
|
+
marginTop: transformValueUnit(titleMarginTop),
|
|
17
17
|
}"
|
|
18
18
|
>
|
|
19
19
|
{{ title }}
|
|
20
20
|
</view>
|
|
21
|
-
</view>
|
|
21
|
+
</lcb-action-view>
|
|
22
22
|
</template>
|
|
23
23
|
|
|
24
24
|
<script setup lang="ts">
|
|
@@ -28,6 +28,5 @@ import { USER_BASIC_INFO } from '../../../constants'
|
|
|
28
28
|
import { inject } from 'vue'
|
|
29
29
|
|
|
30
30
|
defineProps<NumsItemProps>()
|
|
31
|
-
const emits = defineEmits(['click'])
|
|
32
31
|
const basicInfo = inject(USER_BASIC_INFO, {})
|
|
33
32
|
</script>
|
|
@@ -77,40 +77,44 @@
|
|
|
77
77
|
</view>
|
|
78
78
|
<view
|
|
79
79
|
v-if="valuesCard == true || coupons == true || presales == true || memberPoints == true"
|
|
80
|
-
class="flex flex-justify-between text-center"
|
|
80
|
+
class="flex flex-justify-between text-center bg-no-repeat"
|
|
81
81
|
:style="{
|
|
82
82
|
color: textColor,
|
|
83
83
|
marginTop: transformValueUnit(numsMarginTop),
|
|
84
|
-
padding:
|
|
84
|
+
padding: `${transformValueUnit(numsPadTB || 0)} ${transformValueUnit(numsPadLR || 0)}`,
|
|
85
|
+
backgroundImage: numsBackgroundImage ? `url(${numsBackgroundImage})` : '',
|
|
86
|
+
borderRadius: transformValueUnit(numsBorderRadius || 0),
|
|
87
|
+
backgroundSize: '100% 100%',
|
|
88
|
+
backgroundColor: numsBackgroundColor,
|
|
85
89
|
}"
|
|
86
90
|
>
|
|
87
91
|
<Nums
|
|
88
92
|
v-if="valuesCard == true"
|
|
89
93
|
v-bind="$props"
|
|
90
|
-
title="
|
|
94
|
+
:title="valuesCardText"
|
|
91
95
|
valueKey="walletAmount"
|
|
92
|
-
|
|
96
|
+
:link="valuesCardLink"
|
|
93
97
|
/>
|
|
94
98
|
<Nums
|
|
95
99
|
v-if="coupons == true"
|
|
96
100
|
v-bind="$props"
|
|
97
|
-
title="
|
|
101
|
+
:title="couponsText"
|
|
98
102
|
valueKey="voucherCount"
|
|
99
|
-
|
|
103
|
+
:link="couponsLink"
|
|
100
104
|
/>
|
|
101
105
|
<Nums
|
|
102
106
|
v-if="presales == true"
|
|
103
107
|
v-bind="$props"
|
|
104
|
-
title="
|
|
108
|
+
:title="presalesText"
|
|
105
109
|
valueKey="voucherCount"
|
|
106
|
-
|
|
110
|
+
:link="presalesLink"
|
|
107
111
|
/>
|
|
108
112
|
<Nums
|
|
109
113
|
v-if="memberPoints == true"
|
|
110
114
|
v-bind="$props"
|
|
111
|
-
title="
|
|
115
|
+
:title="memberPointsText"
|
|
112
116
|
valueKey="usePoint"
|
|
113
|
-
|
|
117
|
+
:link="memberPointsLink"
|
|
114
118
|
/>
|
|
115
119
|
</view>
|
|
116
120
|
</lcb-block>
|
|
@@ -149,6 +153,27 @@ withDefaults(defineProps<LcbUserTopProps>(), {
|
|
|
149
153
|
editText: '编辑资料',
|
|
150
154
|
editSize: 28,
|
|
151
155
|
rightIconSize: 28,
|
|
156
|
+
valuesCardText: '储值卡',
|
|
157
|
+
couponsText: '优惠券',
|
|
158
|
+
presalesText: '预售券',
|
|
159
|
+
memberPointsText: '会员积分',
|
|
160
|
+
titleMarginTop: 15,
|
|
161
|
+
valuesCardLink: () => ({
|
|
162
|
+
jumpType: 2,
|
|
163
|
+
jumpUrl: '/pages-sub/walletAccount/index',
|
|
164
|
+
}),
|
|
165
|
+
couponsLink: () => ({
|
|
166
|
+
jumpType: 2,
|
|
167
|
+
jumpUrl: '/pages-sub/mine/coupon',
|
|
168
|
+
}),
|
|
169
|
+
presalesLink: () => ({
|
|
170
|
+
jumpType: 2,
|
|
171
|
+
jumpUrl: '/pages-sub/mine/advanceTicket',
|
|
172
|
+
}),
|
|
173
|
+
memberPointsLink: () => ({
|
|
174
|
+
jumpType: 2,
|
|
175
|
+
jumpUrl: '/pages-sub/vip/points',
|
|
176
|
+
}),
|
|
152
177
|
})
|
|
153
178
|
const padTop = computed(() => {
|
|
154
179
|
return addUnit(statusBarHeight || 0)
|
|
@@ -168,11 +193,6 @@ const toEdit = () => {
|
|
|
168
193
|
url: uni.$lcb.internalPages.userEdit,
|
|
169
194
|
})
|
|
170
195
|
}
|
|
171
|
-
const navigateTo = (url) => {
|
|
172
|
-
uni.navigateTo({
|
|
173
|
-
url,
|
|
174
|
-
})
|
|
175
|
-
}
|
|
176
196
|
</script>
|
|
177
197
|
<style lang="scss" scoped>
|
|
178
198
|
.userPlace {
|
|
@@ -28,6 +28,20 @@ export interface LcbUserTopProps extends LcbBlockProps {
|
|
|
28
28
|
numsPadLR?: number
|
|
29
29
|
rightIconSize?: number
|
|
30
30
|
rightIconLink?: LcbActionViewProps
|
|
31
|
+
|
|
32
|
+
numsBackgroundImage?: string
|
|
33
|
+
numsBorderRadius?: number
|
|
34
|
+
numsPadTB?: number
|
|
35
|
+
numsBackgroundColor?: string
|
|
36
|
+
valuesCardText?: string
|
|
37
|
+
couponsText?: string
|
|
38
|
+
presalesText?: string
|
|
39
|
+
memberPointsText?: string
|
|
40
|
+
titleMarginTop?: number
|
|
41
|
+
valuesCardLink?: LcbActionViewProps
|
|
42
|
+
couponsLink?: LcbActionViewProps
|
|
43
|
+
presalesLink?: LcbActionViewProps
|
|
44
|
+
memberPointsLink?: LcbActionViewProps
|
|
31
45
|
}
|
|
32
46
|
|
|
33
47
|
export interface NumsItemProps {
|
|
@@ -38,4 +52,6 @@ export interface NumsItemProps {
|
|
|
38
52
|
value?: number
|
|
39
53
|
title?: string
|
|
40
54
|
valueKey: string
|
|
55
|
+
titleMarginTop?: number
|
|
56
|
+
link?: LcbActionViewProps
|
|
41
57
|
}
|
package/package.json
CHANGED
|
@@ -7,14 +7,10 @@ declare const _default: import('vue').DefineComponent<
|
|
|
7
7
|
{},
|
|
8
8
|
import('vue').ComponentOptionsMixin,
|
|
9
9
|
import('vue').ComponentOptionsMixin,
|
|
10
|
-
{
|
|
11
|
-
click: (...args: any[]) => void
|
|
12
|
-
},
|
|
10
|
+
{},
|
|
13
11
|
string,
|
|
14
12
|
import('vue').PublicProps,
|
|
15
|
-
Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<NumsItemProps
|
|
16
|
-
onClick?: ((...args: any[]) => any) | undefined
|
|
17
|
-
},
|
|
13
|
+
Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<NumsItemProps>>>,
|
|
18
14
|
{},
|
|
19
15
|
{}
|
|
20
16
|
>
|
|
@@ -17,6 +17,27 @@ declare const _default: import('vue').DefineComponent<
|
|
|
17
17
|
editText: string
|
|
18
18
|
editSize: number
|
|
19
19
|
rightIconSize: number
|
|
20
|
+
valuesCardText: string
|
|
21
|
+
couponsText: string
|
|
22
|
+
presalesText: string
|
|
23
|
+
memberPointsText: string
|
|
24
|
+
titleMarginTop: number
|
|
25
|
+
valuesCardLink: () => {
|
|
26
|
+
jumpType: number
|
|
27
|
+
jumpUrl: string
|
|
28
|
+
}
|
|
29
|
+
couponsLink: () => {
|
|
30
|
+
jumpType: number
|
|
31
|
+
jumpUrl: string
|
|
32
|
+
}
|
|
33
|
+
presalesLink: () => {
|
|
34
|
+
jumpType: number
|
|
35
|
+
jumpUrl: string
|
|
36
|
+
}
|
|
37
|
+
memberPointsLink: () => {
|
|
38
|
+
jumpType: number
|
|
39
|
+
jumpUrl: string
|
|
40
|
+
}
|
|
20
41
|
}
|
|
21
42
|
>,
|
|
22
43
|
{},
|
|
@@ -47,6 +68,27 @@ declare const _default: import('vue').DefineComponent<
|
|
|
47
68
|
editText: string
|
|
48
69
|
editSize: number
|
|
49
70
|
rightIconSize: number
|
|
71
|
+
valuesCardText: string
|
|
72
|
+
couponsText: string
|
|
73
|
+
presalesText: string
|
|
74
|
+
memberPointsText: string
|
|
75
|
+
titleMarginTop: number
|
|
76
|
+
valuesCardLink: () => {
|
|
77
|
+
jumpType: number
|
|
78
|
+
jumpUrl: string
|
|
79
|
+
}
|
|
80
|
+
couponsLink: () => {
|
|
81
|
+
jumpType: number
|
|
82
|
+
jumpUrl: string
|
|
83
|
+
}
|
|
84
|
+
presalesLink: () => {
|
|
85
|
+
jumpType: number
|
|
86
|
+
jumpUrl: string
|
|
87
|
+
}
|
|
88
|
+
memberPointsLink: () => {
|
|
89
|
+
jumpType: number
|
|
90
|
+
jumpUrl: string
|
|
91
|
+
}
|
|
50
92
|
}
|
|
51
93
|
>
|
|
52
94
|
>
|
|
@@ -62,10 +104,19 @@ declare const _default: import('vue').DefineComponent<
|
|
|
62
104
|
textSize: number
|
|
63
105
|
photoRound: boolean
|
|
64
106
|
photoSize: number
|
|
107
|
+
titleMarginTop: number
|
|
65
108
|
moreIcon: boolean
|
|
66
109
|
editText: string
|
|
67
110
|
editSize: number
|
|
68
111
|
rightIconSize: number
|
|
112
|
+
valuesCardText: string
|
|
113
|
+
couponsText: string
|
|
114
|
+
presalesText: string
|
|
115
|
+
memberPointsText: string
|
|
116
|
+
valuesCardLink: import('../lcb-action-view/types').LcbActionViewProps
|
|
117
|
+
couponsLink: import('../lcb-action-view/types').LcbActionViewProps
|
|
118
|
+
presalesLink: import('../lcb-action-view/types').LcbActionViewProps
|
|
119
|
+
memberPointsLink: import('../lcb-action-view/types').LcbActionViewProps
|
|
69
120
|
},
|
|
70
121
|
{}
|
|
71
122
|
>
|
|
@@ -26,6 +26,19 @@ export interface LcbUserTopProps extends LcbBlockProps {
|
|
|
26
26
|
numsPadLR?: number
|
|
27
27
|
rightIconSize?: number
|
|
28
28
|
rightIconLink?: LcbActionViewProps
|
|
29
|
+
numsBackgroundImage?: string
|
|
30
|
+
numsBorderRadius?: number
|
|
31
|
+
numsPadTB?: number
|
|
32
|
+
numsBackgroundColor?: string
|
|
33
|
+
valuesCardText?: string
|
|
34
|
+
couponsText?: string
|
|
35
|
+
presalesText?: string
|
|
36
|
+
memberPointsText?: string
|
|
37
|
+
titleMarginTop?: number
|
|
38
|
+
valuesCardLink?: LcbActionViewProps
|
|
39
|
+
couponsLink?: LcbActionViewProps
|
|
40
|
+
presalesLink?: LcbActionViewProps
|
|
41
|
+
memberPointsLink?: LcbActionViewProps
|
|
29
42
|
}
|
|
30
43
|
export interface NumsItemProps {
|
|
31
44
|
numsSize?: number
|
|
@@ -35,4 +48,6 @@ export interface NumsItemProps {
|
|
|
35
48
|
value?: number
|
|
36
49
|
title?: string
|
|
37
50
|
valueKey: string
|
|
51
|
+
titleMarginTop?: number
|
|
52
|
+
link?: LcbActionViewProps
|
|
38
53
|
}
|