jufubao-base 1.0.186 → 1.0.187-beta3

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.
Files changed (34) hide show
  1. package/package.json +1 -1
  2. package/src/ICONS.js +1128 -0
  3. package/src/components/JfbBaseAddress/Attr.js +109 -1
  4. package/src/components/JfbBaseAddress/JfbBaseAddress.vue +153 -77
  5. package/src/components/JfbBaseAddress/XdTfkItem.vue +117 -0
  6. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +4 -1
  7. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +17 -5
  8. package/src/components/JfbBaseFastLink/Attr.js +22 -6
  9. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +35 -20
  10. package/src/components/JfbBaseFastLink/XdFastNav.vue +1 -2
  11. package/src/components/JfbBaseFooter/Attr.js +141 -75
  12. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +50 -15
  13. package/src/components/JfbBaseOrderDetail/Api.js +1 -0
  14. package/src/components/JfbBaseOrderDetail/Attr.js +201 -65
  15. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +168 -57
  16. package/src/components/JfbBaseOrderList/Attr.js +59 -2
  17. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +139 -92
  18. package/src/components/JfbBaseOrderList/Mock.js +3 -0
  19. package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +267 -0
  20. package/src/components/JfbBasePhoneCollect/Attr.js +945 -411
  21. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +307 -27
  22. package/src/components/JfbBasePhoneLogin/Attr.js +893 -405
  23. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +609 -253
  24. package/src/components/JfbBaseSuccess/Attr.js +1 -1
  25. package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetail.vue +4 -1
  26. package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +0 -1
  27. package/src/components/JfbBaseUserCenter/Attr.js +240 -48
  28. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +101 -30
  29. package/src/components/JfbBaseUserInfo/Attr.js +179 -30
  30. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +80 -44
  31. package/src/components/JfbBaseUserOrder/Attr.js +291 -25
  32. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +172 -54
  33. package/src/components/JfbBaseWallet/Attr.js +344 -3
  34. package/src/components/JfbBaseWallet/JfbBaseWallet.vue +173 -49
@@ -37,7 +37,7 @@ export default {
37
37
  ele: 'xd-radio',
38
38
  valueKey: 'is_show_product',
39
39
  groupKey:'content',
40
- value:data['is_show_product']|| '',
40
+ value:data['is_show_product'] || 'Y',
41
41
  placeholder: '请选择',
42
42
  list: [
43
43
  {"label": "是", "value": "Y"},
@@ -457,8 +457,11 @@
457
457
  //外站配置地址
458
458
  if(entry.redirect_type === 'URL') {
459
459
  if(regHttp.test(entry.redirect_data['path']) || regSp.test(entry.redirect_data['path'])) {
460
+ let urlPath = entry.redirect_data['path'];
461
+ if(urlPath.indexOf('?') === -1) urlPath = `${urlPath}?x-common=${nsp}&vs=${new Date().getTime()}`;
462
+ else urlPath = `${urlPath}&x-common=${nsp}&vs=${new Date().getTime()}`;
460
463
  this.$xdUniHelper.redirectTo({
461
- url:`${entry.redirect_data['path']}?x-common=${nsp}&vs=${new Date().getTime()}${cardPathStr}`
464
+ url:urlPath
462
465
  }, false)
463
466
  }
464
467
  else {
@@ -167,7 +167,6 @@
167
167
  ],
168
168
  data() {
169
169
  return {
170
- // hideMask: true,
171
170
  menuType: "card", // card, coupon
172
171
  loadingList: true,
173
172
  cardList: [],
@@ -24,15 +24,26 @@ export default {
24
24
  className: 'input80',
25
25
  rules: [
26
26
  {
27
- required: true,
27
+ required: false,
28
28
  validator: (rule, value, callback) => {
29
29
  value = value.trim();
30
+ if(value.length === 0) return callback()
30
31
  if (value.length < 1 || value.length > 4) callback('卡券自定义名称长度为:1-4字符');
31
32
  else callback()
32
33
  },
33
34
  trigger: 'blur'
34
35
  }
35
36
  ],
37
+ notice: '卡券自定义名称设置,默认值:<span style="color:red">卡券</span>,长度为:1-4字符',
38
+ inline: false,
39
+ },
40
+
41
+ //style
42
+ {
43
+ ele: 'title',
44
+ label: '轮廓设置',
45
+ size: 'small',
46
+ groupKey:'style',
36
47
  },
37
48
  {
38
49
  label: '卡券文字颜色:',
@@ -42,13 +53,7 @@ export default {
42
53
  value: data['cardNameColor'] || null,
43
54
  placeholder: '请选择卡券文字颜色',
44
55
  classNmae: 'input80',
45
- },
46
-
47
- {
48
- ele: 'title',
49
- label: '整体风格',
50
- size: 'small',
51
- groupKey:'style',
56
+ hidden:true,
52
57
  },
53
58
  {
54
59
  label: '背景颜色:',
@@ -79,13 +84,13 @@ export default {
79
84
  },
80
85
  },
81
86
  {
82
- label: '间距:',
87
+ label: '行间距:',
83
88
  ele: 'el-input',
84
89
  type: 'number',
85
90
  valueKey: 'padding',
86
91
  groupKey:'style',
87
92
  value: data.padding || '',
88
- placeholder: '请输入间距',
93
+ placeholder: '请输入行间距',
89
94
  className: 'input60',
90
95
  inline: false,
91
96
  notice: '设置间距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
@@ -118,10 +123,160 @@ export default {
118
123
  },
119
124
  {
120
125
  ele: 'title',
121
- label: '内容区域风格',
126
+ label: '标题设置',
127
+ size: 'small',
128
+ groupKey:'style',
129
+ },
130
+ {
131
+ label: "标题样式设置",
132
+ ele: "xd-text-and-bgc",
133
+ groupKey:'style',
134
+ valueKey: 'titleStyle',
135
+ value: data['titleStyle'] || null,
136
+ setting: {
137
+ fontSize: true,
138
+ color: true,
139
+ bgColor: false,
140
+ weight: true,
141
+ selected:false
142
+ },
143
+ handleCustom({action, data}) {
144
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
145
+ .then(res => {
146
+ data.cb(res.list)
147
+ })
148
+ .catch(error => {
149
+ console.error(error);
150
+ data.cb([])
151
+ });
152
+ },
153
+ },
154
+ {
155
+ ele: 'title',
156
+ label: `添加${data['cardName'] || '卡券'}设置`,
157
+ size: 'small',
158
+ groupKey:'style',
159
+ },
160
+ {
161
+ label: "文字样式设置",
162
+ ele: "xd-text-and-bgc",
163
+ groupKey:'style',
164
+ valueKey: 'addBtnStyle',
165
+ value: data['addBtnStyle'] || null,
166
+ setting: {
167
+ fontSize: true,
168
+ color: true,
169
+ bgColor: false,
170
+ weight: true,
171
+ selected:false
172
+ },
173
+ handleCustom({action, data}) {
174
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
175
+ .then(res => {
176
+ data.cb(res.list)
177
+ })
178
+ .catch(error => {
179
+ console.error(error);
180
+ data.cb([])
181
+ });
182
+ },
183
+ },
184
+ {
185
+ label: '圆角设置:',
186
+ ele: 'xd-site-select-list',
187
+ valueKey: 'addBtnRadius',
188
+ groupKey:'style',
189
+ value: data['addBtnRadius'] || '40',
190
+ placeholder: '请选择圆角设置',
191
+ multiple: false,
192
+ className: 'input80',
193
+ handleCustom({action, data}) {
194
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
195
+ .then(res => {
196
+ data.cb(res.list)
197
+ })
198
+ .catch(error => {
199
+ console.error(error);
200
+ });
201
+ },
202
+ },
203
+ {
204
+ label: '背景颜色:',
205
+ ele: 'xd-color',
206
+ valueKey: 'addBtnBgColor',
207
+ groupKey:'style',
208
+ value: data['addBtnBgColor'] || null,
209
+ placeholder: '请选择背景颜色',
210
+ classNmae: 'input80',
211
+ },
212
+ {
213
+ label: '投影设置:',
214
+ ele: 'xd-shadow',
215
+ groupKey:'style',
216
+ valueKey: 'addBtnShadow',
217
+ value: data['addBtnShadow'] || '',
218
+ setting: {
219
+ selected: 'N'
220
+ },
221
+ handleCustom({action, data}) {
222
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
223
+ .then(res => {
224
+ data.cb(res.list)
225
+ })
226
+ .catch(error => {
227
+ console.error(error);
228
+ data.cb([])
229
+ });
230
+ },
231
+ },
232
+ {
233
+ label: '边框设置:',
234
+ ele: 'xd-border',
235
+ groupKey:'style',
236
+ valueKey: 'addBtnBorder',
237
+ value: data['addBtnBorder'] || {},
238
+ setting: {
239
+ selected:'N'
240
+ },
241
+ },
242
+ {
243
+ ele: 'title',
244
+ label: `进入我的${data['cardName'] || '卡券'}设置`,
122
245
  size: 'small',
123
246
  groupKey:'style',
124
247
  },
248
+ {
249
+ label: '填充:',
250
+ ele: 'xd-margin-padding',
251
+ valueKey: 'contentPadding',
252
+ groupKey:'style',
253
+ value: data['contentPadding'] || null,
254
+ setting: {
255
+ type: 'padding',
256
+ },
257
+ placeholder: '请设填充',
258
+ inline: false,
259
+ notice: '设置填充值,<span style="color: red">单位:像素</span>。默认值:<span style="color:red">40</span>像素',
260
+ },
261
+ {
262
+ label: '圆角设置:',
263
+ ele: 'xd-site-select-list',
264
+ valueKey: 'radius',
265
+ groupKey:'style',
266
+ value: data['radius'] || '10',
267
+ placeholder: '请选择内容圆角设置',
268
+ multiple: false,
269
+ className: 'input80',
270
+ handleCustom({action, data}) {
271
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
272
+ .then(res => {
273
+ data.cb(res.list)
274
+ })
275
+ .catch(error => {
276
+ console.error(error);
277
+ });
278
+ },
279
+ },
125
280
  {
126
281
  label: '背景颜色:',
127
282
  ele: 'xd-color',
@@ -132,30 +287,88 @@ export default {
132
287
  classNmae: 'input80',
133
288
  },
134
289
  {
135
- label: '按钮背景颜色:',
290
+ label: '投影设置:',
291
+ ele: 'xd-shadow',
292
+ groupKey:'style',
293
+ valueKey: 'contShadow',
294
+ value: data['contShadow'] || '',
295
+ setting: {
296
+ selected: 'N'
297
+ },
298
+ handleCustom({action, data}) {
299
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
300
+ .then(res => {
301
+ data.cb(res.list)
302
+ })
303
+ .catch(error => {
304
+ console.error(error);
305
+ data.cb([])
306
+ });
307
+ },
308
+ },
309
+ {
310
+ label: '边框设置:',
311
+ ele: 'xd-border',
312
+ groupKey:'style',
313
+ valueKey: 'contBorder',
314
+ value: data['contBorder'] || {},
315
+ setting: {
316
+ selected:'N'
317
+ },
318
+ },
319
+ {
320
+ ele: 'title',
321
+ label: `进入我的${data['cardName'] || '卡券'}按钮样式设置`,
322
+ size: 'small',
323
+ groupKey:'style',
324
+ },
325
+ {
326
+ label: '圆角设置:',
327
+ ele: 'xd-site-select-list',
328
+ valueKey: 'btnRadius',
329
+ value: data['btnRadius'] || '40',
330
+ groupKey:'style',
331
+ placeholder: '请选择圆角设置',
332
+ multiple: false,
333
+ className: 'input60',
334
+ handleCustom({action, data}) {
335
+ XdBus.getParentApi('getOptionsSettingList')({
336
+ setting_id: 'edtix_style_radius',
337
+ key: Date.now()
338
+ })
339
+ .then(res => {
340
+ data.cb(res.list)
341
+ })
342
+ .catch(error => {
343
+ console.error(error);
344
+ });
345
+ },
346
+ },
347
+ {
348
+ label: '背景颜色:',
136
349
  ele: 'xd-color',
137
350
  valueKey: 'btnBgColor',
138
351
  groupKey:'style',
139
352
  value: data['btnBgColor'] || null,
140
- placeholder: '请选择按钮背景颜色',
353
+ placeholder: '请选择背景颜色',
141
354
  classNmae: 'input80',
142
355
  },
143
356
  {
144
- label: '按钮文字颜色:',
357
+ label: '文字颜色:',
145
358
  ele: 'xd-color',
146
359
  valueKey: 'btnTextColor',
147
360
  groupKey:'style',
148
361
  value: data['btnTextColor'] || null,
149
- placeholder: '请选择按钮文字颜色',
362
+ placeholder: '请选择文字颜色',
150
363
  classNmae: 'input80',
151
364
  },
152
365
  {
153
- label: '按钮文字大小:',
366
+ label: '文字大小:',
154
367
  ele: 'xd-site-select-list',
155
368
  valueKey: 'btnFontSize',
156
369
  groupKey:'style',
157
370
  value: data['btnFontSize'] || '',
158
- placeholder: '请选择按钮文字大小',
371
+ placeholder: '请选择文字大小',
159
372
  multiple: false,
160
373
  className: 'input80',
161
374
  handleCustom({action, data}) {
@@ -171,11 +384,13 @@ export default {
171
384
  },
172
385
  },
173
386
 
387
+ //=====属性已废弃(不能删除,已隐藏)====
174
388
  {
175
389
  ele: 'title',
176
390
  label: '边框设置',
177
391
  size: 'small',
178
392
  groupKey:'style',
393
+ hidden: true
179
394
  },
180
395
  {
181
396
  label: '是否有边框:',
@@ -186,6 +401,7 @@ export default {
186
401
  placeholder: '请选择是否有边框',
187
402
  multiple: false,
188
403
  className: 'input80',
404
+ hidden: true,
189
405
  list: [
190
406
  {label: '是', value: 'Y'},
191
407
  {label: '否', value: 'N'},
@@ -199,6 +415,7 @@ export default {
199
415
  value: data['is_border_c'] || '',
200
416
  placeholder: '请选择边框颜色',
201
417
  classNmae: 'input80',
418
+ hidden: true
202
419
  },
203
420
  data['is_border'] === 'Y' && {
204
421
  label: '边框大小:',
@@ -209,26 +426,10 @@ export default {
209
426
  value: data['is_border_w'] || '',
210
427
  placeholder: '请输入边框颜色',
211
428
  className: 'input80',
429
+ hidden: true
212
430
  },
213
- {
214
- label: '内容圆角设置:',
215
- ele: 'xd-site-select-list',
216
- valueKey: 'radius',
217
- groupKey:'style',
218
- value: data['radius'] || '10',
219
- placeholder: '请选择内容圆角设置',
220
- multiple: false,
221
- className: 'input80',
222
- handleCustom({action, data}) {
223
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
224
- .then(res => {
225
- data.cb(res.list)
226
- })
227
- .catch(error => {
228
- console.error(error);
229
- });
230
- },
231
- },
431
+ //=====属性已废弃(不能删除,已隐藏)====
432
+
232
433
  {
233
434
  label: '添加卡券路径:',
234
435
  ele: 'xd-select-pages-path',
@@ -236,43 +437,34 @@ export default {
236
437
  groupKey:'advanced',
237
438
  placeholder: '请选择添加卡券路径',
238
439
  value: data['add_url'] || null,
440
+ className: 'input100',
239
441
  setting: {
240
442
  router: XdBus.getParentApi('getPagesTree'),
241
443
  },
242
- rules: [
243
- {required: true, message: '请选择添加卡券路径', trigger: 'change'},
244
- ],
245
- inline: false,
246
444
  },
247
445
  {
248
446
  label: '设置支付密码路径:',
249
447
  ele: 'xd-select-pages-path',
250
448
  valueKey: 'pwd_url',
251
449
  groupKey:'advanced',
450
+ className: 'input100',
252
451
  placeholder: '请选择设置支付密码路径',
253
452
  value: data['pwd_url'] || null,
254
453
  setting: {
255
454
  router: XdBus.getParentApi('getPagesTree'),
256
455
  },
257
- rules: [
258
- {required: true, message: '请选择设置支付密码路径', trigger: 'change'},
259
- ],
260
- inline: false,
261
456
  },
262
457
  {
263
458
  label: '进入我的票券路径:',
264
459
  ele: 'xd-select-pages-path',
265
460
  valueKey: 'card_url',
266
461
  groupKey:'advanced',
462
+ className: 'input100',
267
463
  placeholder: '请选择进入我的票券路径',
268
464
  value: data['card_url'] || null,
269
465
  setting: {
270
466
  router: XdBus.getParentApi('getPagesTree'),
271
467
  },
272
- rules: [
273
- {required: true, message: '请选择进入我的票券路径', trigger: 'change'},
274
- ],
275
- inline: false,
276
468
  },
277
469
  {
278
470
  label: '',
@@ -18,8 +18,8 @@
18
18
  <view class="user-center-box" :style="{padding: outMargin}">
19
19
  <view :style="{borderRadius: bodyRadius + 'rpx', backgroundColor:bodyBackgroundColor, padding:outPadding}">
20
20
  <view class="my-card-add__btn">
21
- <view :style="{color: cardNameColor}">我的{{cardName}}</view>
22
- <view :style="{borderColor:btnBoxColor || mainColor,color:btnBoxColor || mainColor}" @click="handleToLink(add_url)">添加{{cardName}}</view>
21
+ <view :style="[titleStyleComp]">我的{{cardName}}</view>
22
+ <view :style="[addBtnStyleComp]" @click="handleToLink(add_url)">添加{{cardName}}</view>
23
23
  </view>
24
24
  <view
25
25
  class="my-card-add__link"
@@ -27,7 +27,9 @@
27
27
  borderRadius: radius + 'rpx',
28
28
  background: backgroundColor,
29
29
  border: borderBox,
30
- marginTop: padding + 'rpx'
30
+ marginTop: rowSpacing + 'rpx',
31
+ padding:contentPaddingComp,
32
+ boxShadow: contShadow
31
33
  }"
32
34
  >
33
35
  <view class="my-card-add__link-num" v-if="0">
@@ -42,7 +44,8 @@
42
44
  :style="{
43
45
  color:btnTextColor,
44
46
  background:btnBgColor,
45
- fontSize: btnFontSize + 'rpx'
47
+ fontSize: btnFontSize + 'rpx',
48
+ borderRadius:btnRadius + 'rpx',
46
49
  }"
47
50
  @click="handleToLink(card_url)"
48
51
  >
@@ -86,38 +89,91 @@
86
89
  return str
87
90
  },
88
91
  borderBox() {
89
- if (this.is_border === 'Y') return `${this.is_border_w}rpx solid ${this.is_border_c}`;
92
+ if (this.is_border === 'Y') return `${this.is_border_w}rpx ${this.is_border_s} ${this.is_border_c}`;
90
93
  else return '0';
91
94
  },
95
+ titleStyleComp(){
96
+ return {
97
+ fontSize: this.titleStyle.fontSize || '28rpx',
98
+ color: `${this.titleStyle.color || '#333'}`,
99
+ fontWeight: `${this.titleStyle.fontWeight || 'normal'}`,
100
+ }
101
+ },
102
+ addBtnStyleComp(){
103
+ let border = {};
104
+ if(this.addBtnBorder && this.addBtnBorder.type === 'Y') {
105
+ let value = this.addBtnBorder.value ||{};
106
+ if(value.width) border['borderWidth'] = value.width + 'rpx';
107
+ if(value.color) border['borderColor'] = value.color;
108
+ if(value.style) border['borderStyle'] = value.style;
109
+ }
110
+ let addBtnShadow = {};
111
+ if(this.addBtnShadow && this.addBtnShadow.type === 'Y') {
112
+ let value = this.addBtnShadow.value || {};
113
+ if(value.color && value.width) {
114
+ addBtnShadow['boxShadow'] = `0 0 ${value.width}rpx ${value.color}`
115
+ }
116
+ }
117
+ return {
118
+ color: this.addBtnStyle.color || this.mainColor,
119
+ fontSize: this.addBtnStyle.fontSize || '26rpx',
120
+ fontWeight: this.addBtnStyle.fontWeight || 'normal',
121
+ borderColor: this.mainColor,
122
+ borderWidth: '2rpx',
123
+ borderStyle:'solid',
124
+ backgroundColor: this.addBtnBgColor || 'rgba(0,0,0,0)',
125
+ borderRadius:this.addBtnRadius + 'rpx',
126
+ ...border,
127
+ ...addBtnShadow
128
+ }
129
+ },
130
+ contentPaddingComp(){
131
+ let str = `${this.checkValue(this.contentPadding.top, 40)}rpx`;
132
+ str = `${str} ${this.checkValue(this.contentPadding.right, 40)}rpx`;
133
+ str = `${str} ${this.checkValue(this.contentPadding.bottom, 40)}rpx`;
134
+ str = `${str} ${this.checkValue(this.contentPadding.left, 40)}rpx`;
135
+ return str
136
+ }
92
137
  },
93
138
  data() {
94
139
  return {
95
140
  add_url: '',
96
141
  pwd_url: '',
97
142
  card_url:'',
98
- cardName: '',
143
+ cardName: '卡券',
144
+ bodyPadding: {},
145
+ bodyRadius: 0,
146
+ bodyBackgroundColor: 'rgba(0,0,0,0)',
147
+ bodyMargin:{},
148
+ rowSpacing: 20,
149
+
150
+ //title
151
+ titleStyle:{},
152
+
153
+ //添加按钮
154
+ addBtnBgColor:'rgba(0,0,0,0)',
155
+ addBtnStyle:{},
156
+ addBtnBorder:{},
157
+ addBtnShadow:{},
158
+ addBtnRadius: '40',
99
159
 
100
- //基础
101
- color: '#333',
160
+ //进入
161
+ contentPadding:{},
102
162
  backgroundColor: 'rgba(0,0,0,0)',
103
163
  radius: 0,
104
- padding: 20,
164
+ contShadow:'0 0 0 rgba(0,0,0,0)',
165
+
166
+ //进入按钮样式
105
167
  btnBgColor: '',
106
168
  btnTextColor: '',
107
169
  btnFontSize: 24,
170
+ btnRadius:'40',
108
171
 
109
172
  //边框
110
173
  is_border: 'Y',
111
174
  is_border_w: 0,
112
175
  is_border_c: '',
113
176
 
114
- //整体
115
- bodyPadding: {},
116
- bodyRadius: 0,
117
- bodyBackgroundColor: 'rgba(0,0,0,0)',
118
- bodyMargin:{},
119
- cardNameColor: '#333',
120
- btnBoxColor:'',
121
177
  }
122
178
  },
123
179
  watch: {
@@ -131,6 +187,7 @@
131
187
  },
132
188
  methods: {
133
189
  handleToLink(path, type) {
190
+ if (this.$configProject['isPreview']) return;
134
191
  if(!path) {
135
192
  console.warn(`跳转地址不存在`)
136
193
  }
@@ -144,33 +201,51 @@
144
201
  * @param container {object} 业务组件对象自己
145
202
  */
146
203
  init(container) {
147
-
148
- //整体
204
+ this.cardName = getContainerPropsValue(container, 'content.cardName', '卡券');
149
205
  this.bodyMargin = getContainerPropsValue(container, 'content.bodyMargin', {});
150
206
  this.bodyRadius = getContainerPropsValue(container, 'content.bodyRadius', 0);
151
207
  this.bodyBackgroundColor = getContainerPropsValue(container, 'content.bodyBackgroundColor', 'rgba(0,0,0,0)');
152
208
  this.bodyPadding = getContainerPropsValue(container, 'content.bodyPadding', {});
209
+ this.rowSpacing = getContainerPropsValue(container, 'content.padding', 20);
153
210
 
154
- //基础
211
+ //标题
212
+ this.titleStyle = getContainerPropsValue(container, 'content.titleStyle', {});
213
+
214
+ //添加按钮
215
+ this.addBtnBgColor = getContainerPropsValue(container, 'content.addBtnBgColor', 'rgba(0,0,0,0)');
216
+ this.addBtnStyle = getContainerPropsValue(container, 'content.addBtnStyle', {});
217
+ this.addBtnBorder = getContainerPropsValue(container, 'content.addBtnBorder', {});
218
+ this.addBtnRadius = getContainerPropsValue(container, 'content.addBtnRadius', '40');
219
+ this.addBtnShadow = getContainerPropsValue(container, 'content.addBtnShadow', {});
220
+
221
+ //进入
222
+ this.contentPadding = getContainerPropsValue(container, 'content.contentPadding', {});
155
223
  this.radius = getContainerPropsValue(container, 'content.radius', 0);
156
224
  this.color = getContainerPropsValue(container, 'content.textColor', '#333');
157
225
  this.backgroundColor = getContainerPropsValue(container, 'content.backgroundColor', '#f8f8f8');
158
- this.padding = getContainerPropsValue(container, 'content.padding', 20);
159
- this.btnBgColor = getContainerPropsValue(container, 'content.btnBgColor', this.mainGradient);
226
+ this.contShadow = this.getXdShadow({width:20, color:'rgba(0,0,0,0)'},getContainerPropsValue(container, 'content.contShadow', {}))
227
+
228
+ //进入按钮
229
+ this.btnBgColor = getContainerPropsValue(container, 'content.btnBgColor', this.mainGradient||this.mainColor);
160
230
  this.btnTextColor = getContainerPropsValue(container, 'content.btnTextColor', '#fff');
161
231
  this.btnFontSize = getContainerPropsValue(container, 'content.btnFontSize',26);
162
- this.cardNameColor = getContainerPropsValue(container, 'content.cardNameColor','#333');
163
- this.btnBoxColor = getContainerPropsValue(container, 'content.cardNameColor','');
232
+ this.btnRadius = getContainerPropsValue(container, 'content.btnRadius','40');
233
+ this.contBorder = getContainerPropsValue(container, 'content.contBorder', {});
164
234
  this.is_border = getContainerPropsValue(container, 'content.is_border', 'N');
165
235
  this.is_border_c = getContainerPropsValue(container, 'content.is_border_c', '#fff');
166
236
  this.is_border_w = getContainerPropsValue(container, 'content.is_border_w', 2);
237
+ this.is_border_s = 'solid';
238
+ if(this.contBorder.type === 'Y') {
239
+ this.is_border = 'Y';
240
+ if(this.contBorder.value && this.contBorder.value.width) this.is_border_w = this.contBorder.value.width;
241
+ if(this.contBorder.value && this.contBorder.value.color) this.is_border_c = this.contBorder.value.color;
242
+ if(this.contBorder.value && this.contBorder.value.style) this.is_border_s = this.contBorder.value.style;
167
243
 
168
- //其他
244
+ }
245
+ //链接
169
246
  this.add_url = getContainerPropsValue(container, 'content.add_url', {value: ''}).value;
170
247
  this.pwd_url = getContainerPropsValue(container, 'content.pwd_url', {value: ''}).value;
171
248
  this.card_url = getContainerPropsValue(container, 'content.card_url', {value: ''}).value;
172
- this.cardName = getContainerPropsValue(container, 'content.cardName', '卡券');
173
-
174
249
  },
175
250
  }
176
251
  }
@@ -197,9 +272,6 @@
197
272
  width: unit(200, rpx);
198
273
  height: unit(60, rpx);
199
274
  line-height: unit(60, rpx);
200
- border-radius: unit(30, rpx);
201
- border: 1px solid #FF5733;
202
- color: #FF5733;
203
275
  text-align: center;
204
276
  }
205
277
  }
@@ -235,7 +307,6 @@
235
307
  height: unit(80, rpx);
236
308
  line-height: unit(80, rpx);
237
309
  border-radius: unit(100, rpx);
238
- font-size: unit(24, rpx);
239
310
  text-align: center;
240
311
  margin-top: unit(30, rpx);
241
312
  }