@tplc/business 0.3.30 → 0.3.31
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 +7 -0
- package/components/lcb-user-order/lcb-user-order.vue +16 -14
- package/components/lcb-user-top/Nums/index.vue +4 -1
- package/components/lcb-user-top/lcb-user-top.vue +4 -0
- package/components/lcb-user-top/types.ts +1 -0
- package/constants.ts +2 -0
- package/package.json +1 -1
- package/types/components/lcb-user-top/types.d.ts +1 -0
- package/types/constants.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.31](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.30...v0.3.31) (2025-02-10)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 修改过滤字段 ([0b0b10d](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0b0b10daa2ad61a9797be3c1cb3b86f653ad60e6))
|
|
11
|
+
|
|
5
12
|
### [0.3.30](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.29...v0.3.30) (2025-02-10)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
width: transformValueUnit(iconSize),
|
|
15
15
|
}"
|
|
16
16
|
>
|
|
17
|
-
<wd-badge :modelValue="
|
|
17
|
+
<wd-badge :modelValue="basicInfo?.orderStatusCount?.[item.status || ''] || 0" :max="99">
|
|
18
18
|
<wd-icon
|
|
19
19
|
v-if="item.iconType === 0"
|
|
20
20
|
class-prefix="lcb"
|
|
@@ -49,9 +49,10 @@
|
|
|
49
49
|
</template>
|
|
50
50
|
|
|
51
51
|
<script setup lang="ts">
|
|
52
|
-
import {
|
|
52
|
+
import { inject } from 'vue'
|
|
53
53
|
import { LcbUserOrderProps, IIconList } from './types'
|
|
54
54
|
import { transformValueUnit } from '../../utils/transform'
|
|
55
|
+
import { USER_BASIC_INFO } from '../../constants'
|
|
55
56
|
defineOptions({
|
|
56
57
|
name: 'LcbUserOrder',
|
|
57
58
|
options: {
|
|
@@ -60,27 +61,28 @@ defineOptions({
|
|
|
60
61
|
styleIsolation: 'shared',
|
|
61
62
|
},
|
|
62
63
|
})
|
|
64
|
+
const basicInfo = inject(USER_BASIC_INFO, {}) as { orderStatusCount: Record<string, number> }
|
|
63
65
|
const onClick = (item: IIconList) => {
|
|
64
66
|
uni.navigateTo({
|
|
65
67
|
url: `${uni.$lcb.internalPages.orderList}?orderStatus=${item.status}`,
|
|
66
68
|
})
|
|
67
69
|
}
|
|
68
|
-
|
|
70
|
+
withDefaults(defineProps<LcbUserOrderProps>(), {
|
|
69
71
|
paddingVertical: 0,
|
|
70
72
|
paddingHorizontal: 0,
|
|
71
73
|
blurSize: 5,
|
|
72
74
|
})
|
|
73
|
-
const dataInfo = ref<Record<string, any>>({})
|
|
74
|
-
watch(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
)
|
|
75
|
+
// const dataInfo = ref<Record<string, any>>({})
|
|
76
|
+
// watch(
|
|
77
|
+
// () => props.dataUrl,
|
|
78
|
+
// async (url) => {
|
|
79
|
+
// if (url) {
|
|
80
|
+
// const { data } = await uni.$lcb.http.post(url)
|
|
81
|
+
// dataInfo.value = data as Record<string, any>
|
|
82
|
+
// }
|
|
83
|
+
// },
|
|
84
|
+
// { immediate: true },
|
|
85
|
+
// )
|
|
84
86
|
</script>
|
|
85
87
|
|
|
86
88
|
<style lang="scss" scoped></style>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
color: numsColor,
|
|
8
8
|
}"
|
|
9
9
|
>
|
|
10
|
-
0
|
|
10
|
+
{{ basicInfo[valueKey] || 0 }}
|
|
11
11
|
</view>
|
|
12
12
|
<view
|
|
13
13
|
class="mt-15rpx"
|
|
@@ -24,7 +24,10 @@
|
|
|
24
24
|
<script setup lang="ts">
|
|
25
25
|
import { NumsItemProps } from '../types'
|
|
26
26
|
import { transformValueUnit } from '../../../utils/transform'
|
|
27
|
+
import { USER_BASIC_INFO } from '../../../constants'
|
|
28
|
+
import { inject } from 'vue'
|
|
27
29
|
|
|
28
30
|
defineProps<NumsItemProps>()
|
|
29
31
|
const emits = defineEmits(['click'])
|
|
32
|
+
const basicInfo = inject(USER_BASIC_INFO, {})
|
|
30
33
|
</script>
|
|
@@ -94,24 +94,28 @@
|
|
|
94
94
|
v-if="valuesCard == true"
|
|
95
95
|
v-bind="$props"
|
|
96
96
|
title="储值卡"
|
|
97
|
+
valueKey="walletAmount"
|
|
97
98
|
@click="navigateTo('/pages-sub/walletAccount/index')"
|
|
98
99
|
/>
|
|
99
100
|
<Nums
|
|
100
101
|
v-if="coupons == true"
|
|
101
102
|
v-bind="$props"
|
|
102
103
|
title="优惠券"
|
|
104
|
+
valueKey="voucherCount"
|
|
103
105
|
@click="navigateTo('/pages-sub/mine/coupon')"
|
|
104
106
|
/>
|
|
105
107
|
<Nums
|
|
106
108
|
v-if="presales == true"
|
|
107
109
|
v-bind="$props"
|
|
108
110
|
title="预售券"
|
|
111
|
+
valueKey="voucherCount"
|
|
109
112
|
@click="navigateTo('/pages-sub/mine/advanceTicket')"
|
|
110
113
|
/>
|
|
111
114
|
<Nums
|
|
112
115
|
v-if="memberPoints == true"
|
|
113
116
|
v-bind="$props"
|
|
114
117
|
title="会员积分"
|
|
118
|
+
valueKey="usePoint"
|
|
115
119
|
@click="navigateTo('/pages-sub/vip/points')"
|
|
116
120
|
/>
|
|
117
121
|
</view>
|
package/constants.ts
CHANGED
package/package.json
CHANGED
package/types/constants.d.ts
CHANGED
|
@@ -5,3 +5,5 @@ export declare const PAGE_PROVIDE_KEY = 'page_provide'
|
|
|
5
5
|
export declare const PAGE_TYPE_PROVIDE_KEY = 'page_type_provide'
|
|
6
6
|
/** 页面锚点 */
|
|
7
7
|
export declare const PAGE_ANCHOR_PROVIDE_KEY = 'page_anchor_provide'
|
|
8
|
+
/** 用户基本信息 */
|
|
9
|
+
export declare const USER_BASIC_INFO = 'user_basic_info'
|