@tplc/business 0.3.4 → 0.3.6
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,10 @@
|
|
|
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.6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.5...v0.3.6) (2025-01-15)
|
|
6
|
+
|
|
7
|
+
### [0.3.5](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.4...v0.3.5) (2025-01-15)
|
|
8
|
+
|
|
5
9
|
### [0.3.4](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.3...v0.3.4) (2025-01-15)
|
|
6
10
|
|
|
7
11
|
### [0.3.3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.90...v0.3.3) (2025-01-15)
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
</wd-popover>
|
|
14
14
|
<IconActionView v-bind="item" v-else @refresh="$emit('refresh')" />
|
|
15
15
|
</block>
|
|
16
|
-
<view class="flex-1"></view>
|
|
16
|
+
<view class="flex-1" v-if="iconList?.length"></view>
|
|
17
17
|
<BtnViews :button-list="buttonList" @refresh="emits('refresh')" :size="size" />
|
|
18
18
|
</view>
|
|
19
19
|
<wd-message-box />
|
|
@@ -65,10 +65,3 @@ function link({ item }: { item: IPageBtn }) {
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
</script>
|
|
68
|
-
<style lang="scss" scoped>
|
|
69
|
-
.page-btn-view {
|
|
70
|
-
:deep(.wd-button.is-medium) {
|
|
71
|
-
min-width: auto !important;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
</style>
|
|
@@ -21,31 +21,30 @@
|
|
|
21
21
|
"
|
|
22
22
|
class="mt-3"
|
|
23
23
|
>
|
|
24
|
-
<lcb-operation-actions
|
|
24
|
+
<lcb-operation-actions
|
|
25
|
+
:size="size"
|
|
26
|
+
:button-list="modelValue.buttonList"
|
|
27
|
+
@refresh="onRefresh"
|
|
28
|
+
/>
|
|
25
29
|
</view>
|
|
26
30
|
</view>
|
|
27
31
|
</wd-popup>
|
|
28
32
|
</template>
|
|
29
33
|
|
|
30
34
|
<script setup lang="ts">
|
|
31
|
-
import { useMessage } from '@tplc/wot'
|
|
32
|
-
import { UserLevelRightsList } from '../../api'
|
|
33
|
-
import type { IPageBtn, PageBtnProps } from '../../api'
|
|
34
35
|
import mpHtml from 'mp-html/src/uni-app/components/mp-html/mp-html.vue'
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
const message = useMessage()
|
|
36
|
+
import { ref, watch } from 'vue'
|
|
37
|
+
import { UserLevelRightsList } from '../../api'
|
|
38
38
|
const show = ref(false)
|
|
39
39
|
defineProps<{
|
|
40
40
|
hiddenDrawdown?: boolean
|
|
41
41
|
currentLevelFlag?: boolean
|
|
42
|
-
size?:
|
|
42
|
+
size?: 'small' | 'medium' | 'large'
|
|
43
43
|
}>()
|
|
44
44
|
const modelValue = defineModel<UserLevelRightsList>()
|
|
45
45
|
watch(
|
|
46
46
|
() => modelValue.value,
|
|
47
47
|
(val) => {
|
|
48
|
-
console.log(modelValue.value, 'modelValue')
|
|
49
48
|
if (val) show.value = true
|
|
50
49
|
},
|
|
51
50
|
)
|
|
@@ -55,59 +54,9 @@ const onClose = () => {
|
|
|
55
54
|
show.value = false
|
|
56
55
|
modelValue.value = undefined
|
|
57
56
|
}
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
plain: item.styleContent?.buttonType?.includes?.('Hollow'),
|
|
62
|
-
size: 'small',
|
|
63
|
-
...item.buttonProps,
|
|
64
|
-
} as ButtonProps
|
|
65
|
-
}
|
|
66
|
-
async function link({ item }: { item: IPageBtn }) {
|
|
67
|
-
if (item.popUpFlag) {
|
|
68
|
-
message
|
|
69
|
-
.confirm({
|
|
70
|
-
msg: item.popUpTip,
|
|
71
|
-
title: item.content,
|
|
72
|
-
})
|
|
73
|
-
.then(async () => {
|
|
74
|
-
if (item.buttonType === 1) {
|
|
75
|
-
await uni.$lcb.http.post(item.requestUrl, item.requestParam)
|
|
76
|
-
emits('refresh')
|
|
77
|
-
}
|
|
78
|
-
})
|
|
79
|
-
.catch(console.log)
|
|
80
|
-
} else if (item.jumpType === 2) {
|
|
81
|
-
uni.navigateTo({
|
|
82
|
-
url: item.jumpUrl,
|
|
83
|
-
})
|
|
84
|
-
// 再次支付
|
|
85
|
-
} else if (item.buttonKey === 'orderPaymentBtn') {
|
|
86
|
-
const {
|
|
87
|
-
data: { paymentParams },
|
|
88
|
-
} = await uni.$lcb.http.post<any>(item.requestUrl, {
|
|
89
|
-
...item.requestParam,
|
|
90
|
-
paymentPlatform: 'wechat',
|
|
91
|
-
paymentType: 'JSAPI',
|
|
92
|
-
})
|
|
93
|
-
uni.requestPayment({
|
|
94
|
-
provider: 'wxpay',
|
|
95
|
-
...paymentParams,
|
|
96
|
-
success: () => {
|
|
97
|
-
uni.showToast({
|
|
98
|
-
title: '支付成功',
|
|
99
|
-
icon: 'success',
|
|
100
|
-
})
|
|
101
|
-
emits('refresh')
|
|
102
|
-
},
|
|
103
|
-
fail: () => {
|
|
104
|
-
uni.showToast({
|
|
105
|
-
title: '支付取消',
|
|
106
|
-
icon: 'none',
|
|
107
|
-
})
|
|
108
|
-
},
|
|
109
|
-
})
|
|
110
|
-
}
|
|
57
|
+
const onRefresh = () => {
|
|
58
|
+
onClose()
|
|
59
|
+
emits('refresh')
|
|
111
60
|
}
|
|
112
61
|
</script>
|
|
113
62
|
<style lang="scss" scoped>
|
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { UserLevelRightsList } from '../../api'
|
|
2
|
-
import type { PageBtnProps } from '../../api'
|
|
3
2
|
declare let __VLS_typeProps: {
|
|
4
3
|
hiddenDrawdown?: boolean
|
|
5
4
|
currentLevelFlag?: boolean
|
|
6
|
-
size?:
|
|
5
|
+
size?: 'small' | 'medium' | 'large'
|
|
7
6
|
}
|
|
8
7
|
type __VLS_PublicProps = {
|
|
9
8
|
modelValue?: UserLevelRightsList
|