@tplc/business 0.3.81 → 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 CHANGED
@@ -2,6 +2,14 @@
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
+
5
13
  ### [0.3.81](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.79...v0.3.81) (2025-03-13)
6
14
 
7
15
 
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <view @click="emits('click')">
2
+ <lcb-action-view v-bind="link">
3
3
  <view
4
4
  class="font-bold leading-none"
5
5
  :style="{
@@ -18,7 +18,7 @@
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>
@@ -93,28 +93,28 @@
93
93
  v-bind="$props"
94
94
  :title="valuesCardText"
95
95
  valueKey="walletAmount"
96
- @click="navigateTo('/pages-sub/walletAccount/index')"
96
+ :link="valuesCardLink"
97
97
  />
98
98
  <Nums
99
99
  v-if="coupons == true"
100
100
  v-bind="$props"
101
101
  :title="couponsText"
102
102
  valueKey="voucherCount"
103
- @click="navigateTo('/pages-sub/mine/coupon')"
103
+ :link="couponsLink"
104
104
  />
105
105
  <Nums
106
106
  v-if="presales == true"
107
107
  v-bind="$props"
108
108
  :title="presalesText"
109
109
  valueKey="voucherCount"
110
- @click="navigateTo('/pages-sub/mine/advanceTicket')"
110
+ :link="presalesLink"
111
111
  />
112
112
  <Nums
113
113
  v-if="memberPoints == true"
114
114
  v-bind="$props"
115
115
  :title="memberPointsText"
116
116
  valueKey="usePoint"
117
- @click="navigateTo('/pages-sub/vip/points')"
117
+ :link="memberPointsLink"
118
118
  />
119
119
  </view>
120
120
  </lcb-block>
@@ -158,6 +158,22 @@ withDefaults(defineProps<LcbUserTopProps>(), {
158
158
  presalesText: '预售券',
159
159
  memberPointsText: '会员积分',
160
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
+ }),
161
177
  })
162
178
  const padTop = computed(() => {
163
179
  return addUnit(statusBarHeight || 0)
@@ -177,11 +193,6 @@ const toEdit = () => {
177
193
  url: uni.$lcb.internalPages.userEdit,
178
194
  })
179
195
  }
180
- const navigateTo = (url) => {
181
- uni.navigateTo({
182
- url,
183
- })
184
- }
185
196
  </script>
186
197
  <style lang="scss" scoped>
187
198
  .userPlace {
@@ -38,6 +38,10 @@ export interface LcbUserTopProps extends LcbBlockProps {
38
38
  presalesText?: string
39
39
  memberPointsText?: string
40
40
  titleMarginTop?: number
41
+ valuesCardLink?: LcbActionViewProps
42
+ couponsLink?: LcbActionViewProps
43
+ presalesLink?: LcbActionViewProps
44
+ memberPointsLink?: LcbActionViewProps
41
45
  }
42
46
 
43
47
  export interface NumsItemProps {
@@ -49,4 +53,5 @@ export interface NumsItemProps {
49
53
  title?: string
50
54
  valueKey: string
51
55
  titleMarginTop?: number
56
+ link?: LcbActionViewProps
52
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.3.81",
3
+ "version": "0.3.82",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -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
  >
@@ -22,6 +22,22 @@ declare const _default: import('vue').DefineComponent<
22
22
  presalesText: string
23
23
  memberPointsText: string
24
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
+ }
25
41
  }
26
42
  >,
27
43
  {},
@@ -57,6 +73,22 @@ declare const _default: import('vue').DefineComponent<
57
73
  presalesText: string
58
74
  memberPointsText: string
59
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
+ }
60
92
  }
61
93
  >
62
94
  >
@@ -81,6 +113,10 @@ declare const _default: import('vue').DefineComponent<
81
113
  couponsText: string
82
114
  presalesText: string
83
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
84
120
  },
85
121
  {}
86
122
  >
@@ -35,6 +35,10 @@ export interface LcbUserTopProps extends LcbBlockProps {
35
35
  presalesText?: string
36
36
  memberPointsText?: string
37
37
  titleMarginTop?: number
38
+ valuesCardLink?: LcbActionViewProps
39
+ couponsLink?: LcbActionViewProps
40
+ presalesLink?: LcbActionViewProps
41
+ memberPointsLink?: LcbActionViewProps
38
42
  }
39
43
  export interface NumsItemProps {
40
44
  numsSize?: number
@@ -45,4 +49,5 @@ export interface NumsItemProps {
45
49
  title?: string
46
50
  valueKey: string
47
51
  titleMarginTop?: number
52
+ link?: LcbActionViewProps
48
53
  }