@tplc/business 0.0.59 → 0.0.61

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,21 @@
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.61](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.27...v0.0.61) (2024-11-20)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * wd-qr-code ts global ([70bb8fe](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/70bb8fe820d27a5a8d769ac0bfc4087a020d5835))
11
+
12
+ ### [0.0.60](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.59...v0.0.60) (2024-11-20)
13
+
14
+
15
+ ### ✨ Features | 新功能
16
+
17
+ * add wd-qr-code ([83196b5](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/83196b5294a8936b33eafe312cf203a3de531a8c))
18
+ * 暂时提交qrcode ([6139d1f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/6139d1f5f551a992277ffca11a09758cab9d2a2c))
19
+
5
20
  ### [0.0.59](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.58...v0.0.59) (2024-11-19)
6
21
 
7
22
 
@@ -72,14 +72,15 @@
72
72
  <Search v-if="styleGroup === 2 && titleLocation === 'center'" :back="back" />
73
73
  <Title v-bind="titleProps" v-else-if="styleGroup === 2 || titleLocation === 'center'" />
74
74
  </view>
75
- <!-- </template> -->
76
75
  </view>
77
76
  </view>
77
+ <!-- 常规默认底部弹一个高度的gap -->
78
+ <lcb-gap v-if="topStyle === 1" :height="88" safe-area-top />
78
79
  </template>
79
80
 
80
81
  <script setup lang="ts">
81
82
  import { addUnit } from '@tplc/wot/components/common/util'
82
- import { computed, ref } from 'vue'
83
+ import { computed } from 'vue'
83
84
  import { ICapsule, NavProps } from './types'
84
85
  import Title from './Title/index.vue'
85
86
  import Search from './Search/index.vue'
@@ -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,9 @@ export interface UserLevelRightsList extends ActionView {
28
27
  weightSort: string
29
28
  qrCode: string
30
29
  qrCodeTips: string
30
+ otherConfig: {
31
+ textColor: string
32
+ }
31
33
  }
32
34
  export const currentRightsDetail = () =>
33
- $lcb.http.post<CurrentRightsDetail>('/userLevel/currentRightsDetail')
35
+ uni.$lcb.http.post<CurrentRightsDetail>('/userLevel/currentRightsDetail')
@@ -1,9 +1,15 @@
1
1
  <template>
2
2
  <wd-popup v-model="show" custom-style="background:transparent" @close="show = false" closable>
3
3
  <view class="pop-view flex justify-center flex-col items-center" v-if="data">
4
- <view class="text-4 mb-4">{{ data.userRightsTitle }}</view>
4
+ <view class="text-4 mb-4 font-500">{{ data.userRightsTitle }}</view>
5
5
  <mp-html :content="data.userRightsContent" v-if="data.userRightsContent" />
6
- <wd-img :src="data.qrCode" class="mt-2.5" width="340rpx" height="340rpx" v-if="data.qrCode" />
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 { ref, watch } from 'vue'
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 class="text-3">
3
+ <view
4
+ class="text-3"
5
+ :style="{
6
+ color: current?.otherConfig?.textColor || '#000',
7
+ }"
8
+ >
4
9
  <view class="relative">
5
10
  <wd-img
6
11
  :src="getJsonStrFirstUrl(info.coverImg)"
@@ -12,20 +17,20 @@
12
17
  </view>
13
18
  <view
14
19
  class="absolute leading-4.5 top-156rpx left-4 flex items-center gap-0.5"
15
- @click="$lcb.navigateTo('/pages-subs/vip/points')"
20
+ @click="navigateTo('/pages-subs/vip/points')"
16
21
  >
17
22
  <view>{{ translate('消费积分') }} {{ info.sumPoint }}</view>
18
- <wd-icon classPrefix="lcb" name="xiangyou" size="24rpx" color="#000" />
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"
22
- @click="$lcb.navigateTo('/pages-subs/vip/upgrade-guide')"
27
+ @click="navigateTo('/pages-subs/vip/upgrade-guide')"
23
28
  >
24
29
  <view class="flex-1 truncate">
25
30
  {{ info.upgradeTips }}
26
31
  </view>
27
32
  <view>{{ translate('攻略') }}</view>
28
- <wd-icon classPrefix="lcb" name="xiangyou" size="24rpx" color="#000" />
33
+ <wd-icon classPrefix="lcb" name="xiangyou" size="24rpx" />
29
34
  </view>
30
35
  </view>
31
36
  <lcb-img-nav
@@ -52,7 +57,6 @@ import { getJsonStrFirstUrl, transformValueUnit } from '../../utils/transform'
52
57
  import { onMounted, ref } from 'vue'
53
58
  import { CurrentRightsDetail, currentRightsDetail, UserLevelRightsList } from './api'
54
59
  import { useTranslate } from '@tplc/wot'
55
- import { $lcb } from 'index'
56
60
  import InfoDialog from './components/InfoDialog/index.vue'
57
61
  const { translate } = useTranslate()
58
62
  defineOptions({
@@ -65,7 +69,7 @@ defineOptions({
65
69
  })
66
70
  withDefaults(defineProps<LcbVipProps>(), {
67
71
  cardHeight: 340,
68
- itemIconSize: 84,
72
+ itemIconSize: 48,
69
73
  itemNum: 5,
70
74
  itemTextColor: '#fff',
71
75
  itemTextSize: 24,
@@ -73,6 +77,10 @@ withDefaults(defineProps<LcbVipProps>(), {
73
77
  const info = ref<CurrentRightsDetail>()
74
78
  const current = ref<UserLevelRightsList>()
75
79
  const onItemClick = (item: UserLevelRightsList) => {
80
+ if (item.userRightsConfigId === '0') {
81
+ navigateTo('/pages-subs/vip/rights')
82
+ return
83
+ }
76
84
  current.value = item
77
85
  }
78
86
 
@@ -80,6 +88,9 @@ onMounted(async () => {
80
88
  const { data } = await currentRightsDetail()
81
89
  info.value = data
82
90
  })
91
+ const navigateTo = (url: string) => {
92
+ uni.$lcb.navigateTo(url)
93
+ }
83
94
  </script>
84
95
 
85
96
  <style lang="scss" scoped></style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.0.59",
3
+ "version": "0.0.61",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -11,13 +11,14 @@
11
11
  },
12
12
  "peerDependencies": {
13
13
  "vue": ">=3.2.47",
14
- "@tplc/wot": "0.1.25"
14
+ "@tplc/wot": "0.1.27"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18",
18
18
  "pnpm": ">=7.30"
19
19
  },
20
20
  "dependencies": {
21
+ "mp-html": "^2.5.0",
21
22
  "qs": "6.5.3",
22
23
  "uview-plus": "^3.3.9"
23
24
  },
@@ -25,6 +25,9 @@ export interface UserLevelRightsList extends ActionView {
25
25
  weightSort: string
26
26
  qrCode: string
27
27
  qrCodeTips: string
28
+ otherConfig: {
29
+ textColor: string
30
+ }
28
31
  }
29
32
  export declare const currentRightsDetail: () => Promise<
30
33
  import('../../../action').IResData<CurrentRightsDetail>
package/types/index.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import { LcbGlobal } from './action'
2
- export declare const $lcb: LcbGlobal
3
- declare const _default: {
4
- install: (Vue: any) => void
5
- }
6
- export default _default