jufubao-base 1.0.181-beta6 → 1.0.181-beta7

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.181-beta6",
3
+ "version": "1.0.181-beta7",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -30,6 +30,15 @@ export default {
30
30
  { required: true, message: '请上传图片', trigger: ['blur', 'change'] },
31
31
  ]
32
32
  },
33
+ {
34
+ label: '可领取背景颜色:',
35
+ ele: 'xd-color',
36
+ valueKey: 'canReceiveBgColor',
37
+ value: data['canReceiveBgColor'] || '',
38
+ groupKey: "style",
39
+ placeholder: '请输入可领取背景颜色',
40
+ classNmae: 'input80',
41
+ },
33
42
  {
34
43
  label: '不可领取背景图:', //label
35
44
  ele: 'xd-upload', //package 名称
@@ -53,6 +62,15 @@ export default {
53
62
  { required: true, message: '请上传图片', trigger: ['blur', 'change'] },
54
63
  ]
55
64
  },
65
+ {
66
+ label: '不可领取背景颜色:',
67
+ ele: 'xd-color',
68
+ valueKey: 'cannotReceiveBgColor',
69
+ value: data['cannotReceiveBgColor'] || '',
70
+ groupKey: "style",
71
+ placeholder: '请输入不可领取背景颜色',
72
+ classNmae: 'input80',
73
+ },
56
74
  {
57
75
  label: '按钮背景图:', //label
58
76
  ele: 'xd-upload', //package 名称
@@ -119,7 +137,7 @@ export default {
119
137
  ele: 'xd-color',
120
138
  valueKey: 'btnColor',
121
139
  value: data['btnColor'] || '',
122
- groupKey: "content",
140
+ groupKey: "style",
123
141
  placeholder: '请输入按钮文字颜色',
124
142
  classNmae: 'input80',
125
143
  },
@@ -15,13 +15,24 @@
15
15
  >
16
16
  </view>
17
17
  <!-- #endif -->
18
- <view :style="bgStyle" class="jfb-base-card-receive-cover__body">
19
- <view v-if="status==='N'" class="content" :style="contentBgStyle">
20
- <view class="content-info">{{ greeting }}</view>
18
+ <view
19
+ :style="{
20
+ height: layoutInfo.bodyMinHeightRpx + 'rpx',
21
+ background: status === 'N' ? canReceiveBgColor : cannotReceiveBgColor,
22
+ }"
23
+ >
24
+ <view class="jfb-base-card-receive-cover__body" :style="bgStyle">
25
+ <view v-if="status === 'N'" class="content" :style="contentBgStyle">
26
+ <view class="content-info">{{ greeting }}</view>
27
+ </view>
28
+ <view
29
+ v-if="status === 'N'"
30
+ class="btn"
31
+ @click="handleToReceive"
32
+ :style="btnBgStyle"
33
+ >{{ status === "T" ? "链接已失效" : "立即领取" }}</view
34
+ >
21
35
  </view>
22
- <view v-if="status==='N'" class="btn" @click="handleToReceive" :style="btnBgStyle">{{
23
- status === "T" ? "链接已失效" : "立即领取"
24
- }}</view>
25
36
  </view>
26
37
  </view>
27
38
  </template>
@@ -52,6 +63,8 @@ export default {
52
63
  status: "N",
53
64
  cannotReceiveBg: "",
54
65
  canReceiveBg: "",
66
+ cannotReceiveBgColor: "",
67
+ canReceiveBgColor: "",
55
68
  };
56
69
  },
57
70
  computed: {
@@ -59,7 +72,10 @@ export default {
59
72
  let status = this.status;
60
73
  return {
61
74
  height: this.layoutInfo.bodyMinHeightRpx + "rpx",
62
- backgroundImage: status==='N' ? `url(${this.canReceiveBg})` : `url(${this.cannotReceiveBg})`,
75
+ backgroundImage:
76
+ status === "N"
77
+ ? `url(${this.canReceiveBg})`
78
+ : `url(${this.cannotReceiveBg})`,
63
79
  backgroundSize: "100% 100%",
64
80
  };
65
81
  },
@@ -128,6 +144,11 @@ export default {
128
144
  path: "",
129
145
  }
130
146
  ).path;
147
+ this.canReceiveBgColor = getContainerPropsValue(
148
+ container,
149
+ "content.canReceiveBgColor",
150
+ "#000"
151
+ );
131
152
  this.cannotReceiveBg = getContainerPropsValue(
132
153
  container,
133
154
  "content.cannotReceiveBg",
@@ -135,6 +156,11 @@ export default {
135
156
  path: "",
136
157
  }
137
158
  ).path;
159
+ this.cannotReceiveBgColor = getContainerPropsValue(
160
+ container,
161
+ "content.cannotReceiveBgColor",
162
+ "#000"
163
+ );
138
164
  this.receive_get_url = getContainerPropsValue(
139
165
  container,
140
166
  "content.receive_get_url",