jufubao-base 1.0.134-beta1 → 1.0.134-beta4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.134-beta1",
3
+ "version": "1.0.134-beta4",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -46,7 +46,6 @@
46
46
  </xd-form>
47
47
  <xd-button class="confirm_btn" width="540rpx" type="primary" @click="handleBindCard">确定</xd-button>
48
48
  <view class="warm_tip">温馨提示:如果只有密码,无需输入票券号</view>
49
- {{backUrl}}
50
49
  </view>
51
50
  </view>
52
51
  </template>
@@ -91,8 +91,7 @@
91
91
  "
92
92
  class="jfb-base-success__body-card jfb-base-success__body-cashier"
93
93
  >
94
- <view class="jfb-base-success__body-cashier-text"
95
- >{{info.codes[0].show_type === "qrcode" ? "二维码" : "条形码" }}</view>
94
+ <view class="jfb-base-success__body-cashier-text">{{info.codes[0].show_type === "qrcode" ? "二维码" : "条形码" }}</view>
96
95
  <view style="position: relative">
97
96
  <image
98
97
  :style="{
@@ -103,9 +102,12 @@
103
102
  ></image>
104
103
  <image v-if="info.codes[0].logo&&info.codes[0].show_type === 'qrcode'" class="logo-icon" :src="info.codes[0].logo"></image>
105
104
  </view>
106
- <view v-if="info.codes[0].can_read_password" class="jfb-base-success__body-cashier-password" @click="showPassword = true">
107
- {{ showPassword ? info.codes[0].can_read_code : "查看密码" }}
108
- </view>
105
+ <view
106
+ v-if="info.codes[0].can_read_password"
107
+ class="jfb-base-success__body-cashier-password"
108
+ @click="showPassword = true"
109
+ :style="{borderRadius: jfbListRadius + 'rpx', color:btnTextColor, backgroundColor:btnBgColor, borderColor:btnBorderColor}"
110
+ >{{ showPassword ? info.codes[0].can_read_code : "查看密码" }}</view>
109
111
  <view v-else class="jfb-base-success__body-cashier-text">{{ info.codes[0].can_read_code }}</view>
110
112
  <view v-if="info.codes[0].refund_tip_text" style="color:red;font-size:24rpx;text-align:center;margin-top:10rpx">{{info.codes[0].refund_tip_text}}</view>
111
113
  <view
@@ -598,7 +600,7 @@ export default {
598
600
  }
599
601
 
600
602
  //设置码状态
601
- //info.codes = [info.codes[3]]
603
+ info.codes = [info.codes[0]]
602
604
  info.codes =
603
605
  info.codes &&
604
606
  info.codes.map((item) => {
@@ -55,6 +55,14 @@ module.exports = {
55
55
  "password": "",
56
56
  "can_read_password": "",
57
57
  "show_type": "url"
58
+ },
59
+ {
60
+ "code": "https://sandbox-website-05.jufubao.cn/apply/system/card/detail?card_number=101001000007228",
61
+ "can_read_code": "https://sandbox-website-05.jufubao.cn/apply/system/card/detail?card_number=101001000007228",
62
+ "code_url": "//sandbox-img.jufubao.cn/uploads/20230531/aed3f3d2d6932c6bc31b065c7ede7fb7.png",
63
+ "password": "10004",
64
+ "can_read_password": "密码:10004",
65
+ "show_type": "qrcode-pass"
58
66
  }
59
67
  ],
60
68
  "custom_content":{
@@ -11,6 +11,7 @@ export default {
11
11
  label: '更改分类label(可排序):',
12
12
  ele: 'xd-set-sort-label',
13
13
  valueKey: 'newLabel',
14
+ groupKey:'content',
14
15
  value: data['newLabel'] || null,
15
16
  disabled: false,
16
17
  defaultValue: data['newLabel'],
@@ -20,7 +21,7 @@ export default {
20
21
  label: "票券",
21
22
  value: 'card',
22
23
  sort: 1
23
- },
24
+ },
24
25
  {
25
26
  icon: "iconyuanbao",
26
27
  label: "元宝",
@@ -39,36 +40,41 @@ export default {
39
40
  label: '是否展示票券入口:',
40
41
  ele: 'xd-radio',
41
42
  valueKey: 'isCard',
43
+ groupKey:'content',
42
44
  value: data['isCard'] || 'Y',
43
45
  list: [
44
46
  { "label": "是", "value": 'Y' },
45
47
  { "label": "否", "value": 'N' },
46
48
  ]
47
49
  },
48
- {
49
- label: '票券跳转路径:',
50
- ele: 'xd-select-pages-path',
51
- valueKey: 'cardPath',
52
- value: data['cardPath'] || {},
53
- setting: {
54
- router: XdBus.getParentApi('getPagesTree')
55
- },
56
- inline: false,
57
- },
50
+
58
51
  {
59
52
  label: '是否展示元宝入口:',
60
53
  ele: 'xd-radio',
61
54
  valueKey: 'isYuanbao',
55
+ groupKey:'content',
62
56
  value: data['isYuanbao'] || 'Y',
63
57
  list: [
64
58
  { "label": "是", "value": 'Y' },
65
59
  { "label": "否", "value": 'N' },
66
60
  ]
67
61
  },
62
+ {
63
+ label: '是否展示积分入口:',
64
+ ele: 'xd-radio',
65
+ valueKey: 'isIntegral',
66
+ groupKey:'content',
67
+ value: data['isIntegral'] || 'Y',
68
+ list: [
69
+ { "label": "是", "value": 'Y' },
70
+ { "label": "否", "value": 'N' },
71
+ ]
72
+ },
68
73
  {
69
74
  label: '元宝跳转路径:',
70
75
  ele: 'xd-select-pages-path',
71
76
  valueKey: 'yuanbaoPath',
77
+ groupKey:'advanced',
72
78
  value: data['yuanbaoPath'] || {},
73
79
  setting: {
74
80
  router: XdBus.getParentApi('getPagesTree')
@@ -76,18 +82,20 @@ export default {
76
82
  inline: false,
77
83
  },
78
84
  {
79
- label: '是否展示积分入口:',
80
- ele: 'xd-radio',
81
- valueKey: 'isIntegral',
82
- value: data['isIntegral'] || 'Y',
83
- list: [
84
- { "label": "是", "value": 'Y' },
85
- { "label": "否", "value": 'N' },
86
- ]
85
+ label: '票券跳转路径:',
86
+ ele: 'xd-select-pages-path',
87
+ valueKey: 'cardPath',
88
+ groupKey:'advanced',
89
+ value: data['cardPath'] || {},
90
+ setting: {
91
+ router: XdBus.getParentApi('getPagesTree')
92
+ },
93
+ inline: false,
87
94
  },
88
95
  {
89
96
  label: '积分跳转路径:',
90
97
  ele: 'xd-select-pages-path',
98
+ groupKey:'advanced',
91
99
  valueKey: 'integralPath',
92
100
  value: data['integralPath'] || {},
93
101
  setting: {
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description 当表单组件中有联动操作时候,使用方法进行返回
5
+ */
6
+ export default {
7
+ style: [],
8
+ content: (data) => {
9
+ return [].filter(i=>i)
10
+ },
11
+ advanced: [],
12
+ };
@@ -1,18 +1,30 @@
1
1
  'use strict';
2
2
 
3
3
 
4
+ //@AttrImport
5
+ import Attr from "./Attr";
6
+ //@EndAttrImport
7
+
4
8
 
5
9
  export default {
6
10
  data() {
7
11
  return {
8
12
  //#ifdef H5
9
13
 
14
+ //@AttrData
15
+ Attr:{}, //对外开发编辑属性
16
+ //@EndAttrData
17
+
10
18
  // #endif
11
19
  cssRoot: 'jfb-base-wallet-detail'
12
20
  }
13
21
  },
14
22
  created() {
15
23
 
24
+ //@AttrDataCreated
25
+ this.Attr = this.$xdUniHelper.customClone(Attr);
26
+ //@EndAttrDataCreated
27
+
16
28
 
17
29
  },
18
30
  }
@@ -11,15 +11,17 @@ export default {
11
11
  label: '钱包详情跳转路径:',
12
12
  ele: 'xd-select-pages-path',
13
13
  valueKey: 'walletDetailPath',
14
+ groupKey:'advanced',
14
15
  value: data['walletDetailPath'] || {},
15
16
  setting: {
16
17
  router: XdBus.getParentApi('getPagesTree')
17
18
  },
18
19
  inline: false,
19
- },
20
+ },
20
21
  {
21
22
  label: '账单详情跳转路径:',
22
23
  ele: 'xd-select-pages-path',
24
+ groupKey:'advanced',
23
25
  valueKey: 'billDetailPath',
24
26
  value: data['billDetailPath'] || {},
25
27
  setting: {
@@ -11,16 +11,18 @@ export default {
11
11
  label: '账单详情跳转路径:',
12
12
  ele: 'xd-select-pages-path',
13
13
  valueKey: 'billDetailPath',
14
+ groupKey:'advanced',
14
15
  value: data['billDetailPath'] || {},
15
16
  setting: {
16
17
  router: XdBus.getParentApi('getPagesTree')
17
18
  },
18
19
  inline: false,
19
- },
20
+ },
20
21
  {
21
22
  label: '有效期列表跳转路径:',
22
23
  ele: 'xd-select-pages-path',
23
24
  valueKey: 'effectivePath',
25
+ groupKey:'advanced',
24
26
  value: data['effectivePath'] || {},
25
27
  setting: {
26
28
  router: XdBus.getParentApi('getPagesTree')