@tplc/business 0.0.59 → 0.0.60
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.0.60](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.59...v0.0.60) (2024-11-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* add wd-qr-code ([83196b5](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/83196b5294a8936b33eafe312cf203a3de531a8c))
|
|
11
|
+
* 暂时提交qrcode ([6139d1f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/6139d1f5f551a992277ffca11a09758cab9d2a2c))
|
|
12
|
+
|
|
5
13
|
### [0.0.59](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.58...v0.0.59) (2024-11-19)
|
|
6
14
|
|
|
7
15
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { $lcb } from 'index'
|
|
2
1
|
import { LcbActionViewProps } from '../../lcb-action-view/types'
|
|
3
2
|
import { ActionView } from '../../../action'
|
|
4
3
|
|
|
@@ -28,6 +27,7 @@ export interface UserLevelRightsList extends ActionView {
|
|
|
28
27
|
weightSort: string
|
|
29
28
|
qrCode: string
|
|
30
29
|
qrCodeTips: string
|
|
30
|
+
otherConfig: string
|
|
31
31
|
}
|
|
32
32
|
export const currentRightsDetail = () =>
|
|
33
|
-
|
|
33
|
+
uni.$lcb.http.post<CurrentRightsDetail>('/userLevel/currentRightsDetail')
|
|
@@ -3,7 +3,13 @@
|
|
|
3
3
|
<view class="pop-view flex justify-center flex-col items-center" v-if="data">
|
|
4
4
|
<view class="text-4 mb-4">{{ data.userRightsTitle }}</view>
|
|
5
5
|
<mp-html :content="data.userRightsContent" v-if="data.userRightsContent" />
|
|
6
|
-
<wd-
|
|
6
|
+
<wd-qr-code
|
|
7
|
+
custom-class="!mt-2.5"
|
|
8
|
+
:size="170"
|
|
9
|
+
canvasId="qrCode"
|
|
10
|
+
:value="data.qrCode"
|
|
11
|
+
v-if="data.qrCode"
|
|
12
|
+
/>
|
|
7
13
|
<view class="text-3 text-#969696 mt-1" v-if="data.qrCodeTips">{{ data.qrCodeTips }}</view>
|
|
8
14
|
<wd-button
|
|
9
15
|
type="primary"
|
|
@@ -22,7 +28,7 @@
|
|
|
22
28
|
import { useTranslate } from '@tplc/wot'
|
|
23
29
|
import { UserLevelRightsList } from '../../api'
|
|
24
30
|
import mpHtml from 'mp-html/src/uni-app/components/mp-html/mp-html.vue'
|
|
25
|
-
import {
|
|
31
|
+
import { watch, ref } from 'vue'
|
|
26
32
|
const { translate } = useTranslate()
|
|
27
33
|
const show = ref(false)
|
|
28
34
|
const props = defineProps<{
|
|
@@ -43,9 +49,9 @@ const onDrawdown = () => {
|
|
|
43
49
|
<style lang="scss" scoped>
|
|
44
50
|
.pop-view {
|
|
45
51
|
width: 606rpx;
|
|
46
|
-
background: #ffffff;
|
|
47
|
-
border-radius: 40rpx;
|
|
48
52
|
padding: 40rpx;
|
|
49
53
|
color: #000000;
|
|
54
|
+
background: #ffffff;
|
|
55
|
+
border-radius: 40rpx;
|
|
50
56
|
}
|
|
51
57
|
</style>
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<lcb-block v-bind="$props" v-if="info">
|
|
3
|
-
<view
|
|
3
|
+
<view
|
|
4
|
+
class="text-3"
|
|
5
|
+
:style="{
|
|
6
|
+
color: config.value.textColor || '#000',
|
|
7
|
+
}"
|
|
8
|
+
>
|
|
4
9
|
<view class="relative">
|
|
5
10
|
<wd-img
|
|
6
11
|
:src="getJsonStrFirstUrl(info.coverImg)"
|
|
@@ -15,7 +20,7 @@
|
|
|
15
20
|
@click="$lcb.navigateTo('/pages-subs/vip/points')"
|
|
16
21
|
>
|
|
17
22
|
<view>{{ translate('消费积分') }} {{ info.sumPoint }}</view>
|
|
18
|
-
<wd-icon classPrefix="lcb" name="xiangyou" size="24rpx"
|
|
23
|
+
<wd-icon classPrefix="lcb" name="xiangyou" size="24rpx" />
|
|
19
24
|
</view>
|
|
20
25
|
<view
|
|
21
26
|
class="absolute text-2.5 w-662rpx leading-8 bottom-2.5 left-2.5 flex items-center gap-0.5"
|
|
@@ -25,7 +30,7 @@
|
|
|
25
30
|
{{ info.upgradeTips }}
|
|
26
31
|
</view>
|
|
27
32
|
<view>{{ translate('攻略') }}</view>
|
|
28
|
-
<wd-icon classPrefix="lcb" name="xiangyou" size="24rpx"
|
|
33
|
+
<wd-icon classPrefix="lcb" name="xiangyou" size="24rpx" />
|
|
29
34
|
</view>
|
|
30
35
|
</view>
|
|
31
36
|
<lcb-img-nav
|
|
@@ -49,10 +54,10 @@
|
|
|
49
54
|
<script setup lang="ts">
|
|
50
55
|
import { LcbVipProps } from './types'
|
|
51
56
|
import { getJsonStrFirstUrl, transformValueUnit } from '../../utils/transform'
|
|
52
|
-
import { onMounted, ref } from 'vue'
|
|
57
|
+
import { computed, onMounted, ref } from 'vue'
|
|
53
58
|
import { CurrentRightsDetail, currentRightsDetail, UserLevelRightsList } from './api'
|
|
54
59
|
import { useTranslate } from '@tplc/wot'
|
|
55
|
-
import { $lcb } from 'index'
|
|
60
|
+
import { $lcb } from '../../index'
|
|
56
61
|
import InfoDialog from './components/InfoDialog/index.vue'
|
|
57
62
|
const { translate } = useTranslate()
|
|
58
63
|
defineOptions({
|
|
@@ -80,6 +85,9 @@ onMounted(async () => {
|
|
|
80
85
|
const { data } = await currentRightsDetail()
|
|
81
86
|
info.value = data
|
|
82
87
|
})
|
|
88
|
+
const config = computed(() => {
|
|
89
|
+
return JSON.parse(current?.value?.otherConfig || '{}')
|
|
90
|
+
})
|
|
83
91
|
</script>
|
|
84
92
|
|
|
85
93
|
<style lang="scss" scoped></style>
|
package/package.json
CHANGED
|
@@ -25,6 +25,7 @@ export interface UserLevelRightsList extends ActionView {
|
|
|
25
25
|
weightSort: string
|
|
26
26
|
qrCode: string
|
|
27
27
|
qrCodeTips: string
|
|
28
|
+
otherConfig: string
|
|
28
29
|
}
|
|
29
30
|
export declare const currentRightsDetail: () => Promise<
|
|
30
31
|
import('../../../action').IResData<CurrentRightsDetail>
|