@tplc/business 0.0.56 → 0.0.58
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,32 @@
|
|
|
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.0.58](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.55...v0.0.58) (2024-11-06)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
9
|
+
|
|
10
|
+
* **release:** 0.0.56 ([4b3f70b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/4b3f70bab6b9ff6dcf5a6d356a8f864f386098f9))
|
|
11
|
+
* **release:** 0.0.57 ([b4f53b9](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b4f53b98b178a4b09821553e1bac961f17a4bf62))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### ✨ Features | 新功能
|
|
15
|
+
|
|
16
|
+
* banner兼容圆角 ([57bc054](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/57bc0542bf1e38188d6d00caff5b0c9209f5b2da))
|
|
17
|
+
* mine/search ([e8d34fc](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e8d34fc0182fe71de8d9abedb323ff49ee68720d))
|
|
18
|
+
* shadow ([d2de6bf](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d2de6bf135619c73db1a6a1cc027b1ba94002228))
|
|
19
|
+
* version 0.0.56 ([3a13a45](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/3a13a4574d37d9f1b53b42c36ce5601498d6f2c6))
|
|
20
|
+
* 丰富grid ([e306107](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e306107d2964146f047862b5c3e7e5f8a368ae81))
|
|
21
|
+
* 晚上布局 ([d33d983](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d33d983b87e56e63633c3233b3608ca1c3006956))
|
|
22
|
+
* 暂定提交 ([c0a390b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/c0a390bc08031181cd63f4c44e88229f7e737b2d))
|
|
23
|
+
|
|
24
|
+
### [0.0.57](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.56...v0.0.57) (2024-11-03)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### ✨ Features | 新功能
|
|
28
|
+
|
|
29
|
+
* version 0.0.56 ([3a13a45](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/3a13a4574d37d9f1b53b42c36ce5601498d6f2c6))
|
|
30
|
+
|
|
5
31
|
### [0.0.56](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.55...v0.0.56) (2024-11-03)
|
|
6
32
|
|
|
7
33
|
|
|
@@ -1,60 +1,55 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<lcb-block v-bind="$props"
|
|
3
|
-
<view
|
|
4
|
-
class="flex flex-col flex-justify-center items-center"
|
|
5
|
-
@click="onClick(item)"
|
|
6
|
-
v-for="item in iconList"
|
|
7
|
-
:key="item.id"
|
|
8
|
-
>
|
|
2
|
+
<lcb-block v-bind="$props">
|
|
3
|
+
<view class="flex justify-between">
|
|
9
4
|
<view
|
|
10
|
-
class="
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}"
|
|
15
|
-
@click="onClick"
|
|
5
|
+
class="flex flex-col flex-justify-center items-center"
|
|
6
|
+
@click="onClick(item)"
|
|
7
|
+
v-for="item in items"
|
|
8
|
+
:key="item.iconTitle"
|
|
16
9
|
>
|
|
17
|
-
<view v-if="item.iconType === 0">
|
|
18
|
-
<wd-icon
|
|
19
|
-
class-prefix="lcb"
|
|
20
|
-
v-bind="{
|
|
21
|
-
name: item.iconName || '',
|
|
22
|
-
size: transformValueUnit(iconSize),
|
|
23
|
-
color: iconColor,
|
|
24
|
-
}"
|
|
25
|
-
/>
|
|
26
|
-
</view>
|
|
27
10
|
<view
|
|
28
|
-
|
|
29
|
-
class="bg-no-repeat bg-contain"
|
|
11
|
+
class="position-relative"
|
|
30
12
|
:style="{
|
|
31
13
|
height: transformValueUnit(iconSize),
|
|
32
14
|
width: transformValueUnit(iconSize),
|
|
33
|
-
color: iconColor,
|
|
34
|
-
backgroundImage: `url('${item.iconUpload}')`,
|
|
35
15
|
}"
|
|
36
|
-
|
|
16
|
+
>
|
|
17
|
+
<wd-badge :modelValue="dataInfo[item.countKey || ''] || 0" :max="99">
|
|
18
|
+
<wd-icon
|
|
19
|
+
v-if="item.iconType === 0"
|
|
20
|
+
class-prefix="lcb"
|
|
21
|
+
v-bind="{
|
|
22
|
+
name: item.iconName || '',
|
|
23
|
+
size: transformValueUnit(iconSize),
|
|
24
|
+
color: iconColor,
|
|
25
|
+
}"
|
|
26
|
+
/>
|
|
27
|
+
|
|
28
|
+
<wd-img
|
|
29
|
+
v-if="item.iconType === 1"
|
|
30
|
+
:height="transformValueUnit(iconSize)"
|
|
31
|
+
:width="transformValueUnit(iconSize)"
|
|
32
|
+
:src="item.iconUpload"
|
|
33
|
+
/>
|
|
34
|
+
</wd-badge>
|
|
35
|
+
</view>
|
|
37
36
|
<view
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
marginTop: transformValueUnit((textSize || 0) / 3),
|
|
48
|
-
}"
|
|
49
|
-
>
|
|
50
|
-
{{ item.iconTitle }}
|
|
37
|
+
class="flex flex-justify-between text-center"
|
|
38
|
+
:style="{
|
|
39
|
+
color: textColor,
|
|
40
|
+
fontSize: transformValueUnit(textSize),
|
|
41
|
+
marginTop: transformValueUnit((textSize || 0) / 3),
|
|
42
|
+
}"
|
|
43
|
+
>
|
|
44
|
+
{{ item.iconTitle }}
|
|
45
|
+
</view>
|
|
51
46
|
</view>
|
|
52
47
|
</view>
|
|
53
48
|
</lcb-block>
|
|
54
49
|
</template>
|
|
55
50
|
|
|
56
51
|
<script setup lang="ts">
|
|
57
|
-
import {
|
|
52
|
+
import { ref, watch } from 'vue'
|
|
58
53
|
import { LcbUserOrderProps, IIconList } from './types'
|
|
59
54
|
import { transformValueUnit } from '../../utils/transform'
|
|
60
55
|
defineOptions({
|
|
@@ -65,7 +60,7 @@ defineOptions({
|
|
|
65
60
|
styleIsolation: 'shared',
|
|
66
61
|
},
|
|
67
62
|
})
|
|
68
|
-
const onClick = (item:
|
|
63
|
+
const onClick = (item: IIconList) => {
|
|
69
64
|
uni.navigateTo({
|
|
70
65
|
url: `/pages/order/index?status=${item.status}`,
|
|
71
66
|
})
|
|
@@ -75,25 +70,17 @@ const props = withDefaults(defineProps<LcbUserOrderProps>(), {
|
|
|
75
70
|
paddingHorizontal: 0,
|
|
76
71
|
blurSize: 5,
|
|
77
72
|
})
|
|
78
|
-
const
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
list.push({
|
|
86
|
-
id: i,
|
|
87
|
-
iconType: props['iconType' + item],
|
|
88
|
-
iconTitle: props['iconTitle' + item],
|
|
89
|
-
iconName: props['iconName' + item],
|
|
90
|
-
iconUpload: props['iconUpload' + item],
|
|
91
|
-
status: item,
|
|
92
|
-
})
|
|
73
|
+
const dataInfo = ref<Record<string, any>>({})
|
|
74
|
+
watch(
|
|
75
|
+
() => props.dataUrl,
|
|
76
|
+
async (url) => {
|
|
77
|
+
if (url) {
|
|
78
|
+
const { data } = await uni.$lcb.http.post(url)
|
|
79
|
+
dataInfo.value = data as Record<string, any>
|
|
93
80
|
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
81
|
+
},
|
|
82
|
+
{ immediate: true },
|
|
83
|
+
)
|
|
97
84
|
</script>
|
|
98
85
|
|
|
99
86
|
<style lang="scss" scoped></style>
|
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
export interface IIconList {
|
|
2
|
-
|
|
3
|
-
iconType: number
|
|
2
|
+
iconType: 0 | 1
|
|
4
3
|
iconTitle?: string
|
|
5
4
|
iconName?: string
|
|
6
5
|
iconUpload?: string
|
|
7
|
-
status?:
|
|
6
|
+
status?: string
|
|
7
|
+
countKey?: string
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export interface LcbUserOrderProps {
|
|
11
|
-
|
|
11
|
+
dataUrl?: string
|
|
12
12
|
marginTop?: number
|
|
13
13
|
marginBottom?: number
|
|
14
14
|
marginHorizontal?: number
|
|
15
|
-
// marginLeft?: number
|
|
16
|
-
// marginRight?: number
|
|
17
|
-
// paddingTop?: number
|
|
18
|
-
// paddingBottom?: number
|
|
19
|
-
// paddingLeft?: number
|
|
20
|
-
// paddingRight?: number
|
|
21
15
|
paddingVertical?: number
|
|
22
16
|
paddingHorizontal?: number
|
|
23
17
|
backgroundColor?: string
|
|
@@ -30,42 +24,5 @@ export interface LcbUserOrderProps {
|
|
|
30
24
|
shadowColor?: string
|
|
31
25
|
shadowSize?: number
|
|
32
26
|
blurSize?: number
|
|
33
|
-
|
|
34
|
-
iconTitle0?: string
|
|
35
|
-
iconType0?: 0 | 1
|
|
36
|
-
iconName0?: string
|
|
37
|
-
iconUpload0?: string
|
|
38
|
-
|
|
39
|
-
iconTitle1?: string
|
|
40
|
-
iconType1?: 0 | 1
|
|
41
|
-
iconName1?: string
|
|
42
|
-
iconUpload1?: string
|
|
43
|
-
iconShow1?: boolean
|
|
44
|
-
|
|
45
|
-
iconTitle2?: string
|
|
46
|
-
iconType2?: 0 | 1
|
|
47
|
-
iconName2?: string
|
|
48
|
-
iconUpload2?: string
|
|
49
|
-
iconShow2?: boolean
|
|
50
|
-
|
|
51
|
-
iconTitle3?: string
|
|
52
|
-
iconType3?: 0 | 1
|
|
53
|
-
iconName3?: string
|
|
54
|
-
iconUpload3?: string
|
|
55
|
-
iconShow3?: boolean
|
|
56
|
-
|
|
57
|
-
iconTitle4?: string
|
|
58
|
-
iconType4?: 0 | 1
|
|
59
|
-
iconName4?: string
|
|
60
|
-
iconUpload4?: string
|
|
61
|
-
iconShow4?: boolean
|
|
62
|
-
|
|
63
|
-
iconTitle5?: string
|
|
64
|
-
iconType5?: 0 | 1
|
|
65
|
-
iconName5?: string
|
|
66
|
-
iconUpload5?: string
|
|
67
|
-
iconTitle?: string
|
|
68
|
-
iconType?: 0 | 1
|
|
69
|
-
iconName?: string
|
|
70
|
-
iconUpload?: string
|
|
27
|
+
items: IIconList[]
|
|
71
28
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
export interface IIconList {
|
|
2
|
-
|
|
3
|
-
iconType: number
|
|
2
|
+
iconType: 0 | 1
|
|
4
3
|
iconTitle?: string
|
|
5
4
|
iconName?: string
|
|
6
5
|
iconUpload?: string
|
|
7
|
-
status?:
|
|
6
|
+
status?: string
|
|
7
|
+
countKey?: string
|
|
8
8
|
}
|
|
9
9
|
export interface LcbUserOrderProps {
|
|
10
|
+
dataUrl?: string
|
|
10
11
|
marginTop?: number
|
|
11
12
|
marginBottom?: number
|
|
12
13
|
marginHorizontal?: number
|
|
@@ -22,36 +23,5 @@ export interface LcbUserOrderProps {
|
|
|
22
23
|
shadowColor?: string
|
|
23
24
|
shadowSize?: number
|
|
24
25
|
blurSize?: number
|
|
25
|
-
|
|
26
|
-
iconType0?: 0 | 1
|
|
27
|
-
iconName0?: string
|
|
28
|
-
iconUpload0?: string
|
|
29
|
-
iconTitle1?: string
|
|
30
|
-
iconType1?: 0 | 1
|
|
31
|
-
iconName1?: string
|
|
32
|
-
iconUpload1?: string
|
|
33
|
-
iconShow1?: boolean
|
|
34
|
-
iconTitle2?: string
|
|
35
|
-
iconType2?: 0 | 1
|
|
36
|
-
iconName2?: string
|
|
37
|
-
iconUpload2?: string
|
|
38
|
-
iconShow2?: boolean
|
|
39
|
-
iconTitle3?: string
|
|
40
|
-
iconType3?: 0 | 1
|
|
41
|
-
iconName3?: string
|
|
42
|
-
iconUpload3?: string
|
|
43
|
-
iconShow3?: boolean
|
|
44
|
-
iconTitle4?: string
|
|
45
|
-
iconType4?: 0 | 1
|
|
46
|
-
iconName4?: string
|
|
47
|
-
iconUpload4?: string
|
|
48
|
-
iconShow4?: boolean
|
|
49
|
-
iconTitle5?: string
|
|
50
|
-
iconType5?: 0 | 1
|
|
51
|
-
iconName5?: string
|
|
52
|
-
iconUpload5?: string
|
|
53
|
-
iconTitle?: string
|
|
54
|
-
iconType?: 0 | 1
|
|
55
|
-
iconName?: string
|
|
56
|
-
iconUpload?: string
|
|
26
|
+
items: IIconList[]
|
|
57
27
|
}
|