@tplc/business 0.3.31 → 0.3.32

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,8 @@
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.32](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.31...v0.3.32) (2025-02-10)
6
+
5
7
  ### [0.3.31](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.30...v0.3.31) (2025-02-10)
6
8
 
7
9
 
@@ -14,7 +14,12 @@
14
14
  width: transformValueUnit(iconSize),
15
15
  }"
16
16
  >
17
- <wd-badge :modelValue="basicInfo?.orderStatusCount?.[item.status || ''] || 0" :max="99">
17
+ <wd-badge
18
+ :modelValue="
19
+ basicInfo?.orderStatusCount?.[item.status || ''] || dataInfo[item.countKey || ''] || 0
20
+ "
21
+ :max="99"
22
+ >
18
23
  <wd-icon
19
24
  v-if="item.iconType === 0"
20
25
  class-prefix="lcb"
@@ -49,7 +54,7 @@
49
54
  </template>
50
55
 
51
56
  <script setup lang="ts">
52
- import { inject } from 'vue'
57
+ import { inject, ref, watch } from 'vue'
53
58
  import { LcbUserOrderProps, IIconList } from './types'
54
59
  import { transformValueUnit } from '../../utils/transform'
55
60
  import { USER_BASIC_INFO } from '../../constants'
@@ -67,22 +72,22 @@ const onClick = (item: IIconList) => {
67
72
  url: `${uni.$lcb.internalPages.orderList}?orderStatus=${item.status}`,
68
73
  })
69
74
  }
70
- withDefaults(defineProps<LcbUserOrderProps>(), {
75
+ const props = withDefaults(defineProps<LcbUserOrderProps>(), {
71
76
  paddingVertical: 0,
72
77
  paddingHorizontal: 0,
73
78
  blurSize: 5,
74
79
  })
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
- // )
80
+ const dataInfo = ref<Record<string, any>>({})
81
+ watch(
82
+ () => props.dataUrl,
83
+ async (url) => {
84
+ if (url) {
85
+ const { data } = await uni.$lcb.http.post(url)
86
+ dataInfo.value = data as Record<string, any>
87
+ }
88
+ },
89
+ { immediate: true },
90
+ )
86
91
  </script>
87
92
 
88
93
  <style lang="scss" scoped></style>
@@ -7,7 +7,7 @@
7
7
  color: numsColor,
8
8
  }"
9
9
  >
10
- {{ basicInfo[valueKey] || 0 }}
10
+ {{ (basicInfo?.[valueKey] || 0).toLocaleString() }}
11
11
  </view>
12
12
  <view
13
13
  class="mt-15rpx"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.3.31",
3
+ "version": "0.3.32",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],