jufubao-base 1.0.195 → 1.0.196-beta101

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 (26) hide show
  1. package/commands.js +1 -1
  2. package/package.json +1 -1
  3. package/src/ICONS.js +1128 -0
  4. package/src/components/JfbBaseAddress/Attr.js +109 -1
  5. package/src/components/JfbBaseAddress/JfbBaseAddress.vue +153 -77
  6. package/src/components/JfbBaseAddress/XdTfkItem.vue +117 -0
  7. package/src/components/JfbBaseFastLink/Attr.js +24 -8
  8. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +37 -21
  9. package/src/components/JfbBaseFooter/Attr.js +141 -75
  10. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +50 -15
  11. package/src/components/JfbBaseOrderDetail/Attr.js +147 -65
  12. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +96 -46
  13. package/src/components/JfbBaseOrderList/Attr.js +59 -2
  14. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +139 -92
  15. package/src/components/JfbBaseOrderList/Mock.js +3 -0
  16. package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +267 -0
  17. package/src/components/JfbBasePoster/Attr.js +8 -0
  18. package/src/components/JfbBasePoster/JfbBasePoster.vue +3 -0
  19. package/src/components/JfbBaseUserCenter/Attr.js +308 -52
  20. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +138 -31
  21. package/src/components/JfbBaseUserInfo/Attr.js +194 -33
  22. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +80 -44
  23. package/src/components/JfbBaseUserOrder/Attr.js +322 -28
  24. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +205 -54
  25. package/src/components/JfbBaseWallet/Attr.js +376 -8
  26. package/src/components/JfbBaseWallet/JfbBaseWallet.vue +185 -49
@@ -1,11 +1,30 @@
1
1
  'use strict';
2
2
 
3
+ function oloTonNewBorAndSha(type,width,color, style=''){
4
+ if(type === 'Y') {
5
+ let def = {
6
+ type: 'Y',
7
+ value: {
8
+ width: width,
9
+ color:color,
10
+ }
11
+ }
12
+ if(style) def.value.style = style;
13
+ return def
14
+ }
15
+ return {
16
+ type: 'N',
17
+ value:null,
18
+ }
19
+ }
20
+
3
21
  /**
4
22
  * @description 当表单组件中有联动操作时候,使用方法进行返回
5
23
  */
6
24
  export default {
7
25
  style: [],
8
26
  content:(data)=>{
27
+ let defAddBtnBorder = oloTonNewBorAndSha()
9
28
  return [
10
29
  {
11
30
  label: '',
@@ -24,15 +43,26 @@ export default {
24
43
  className: 'input80',
25
44
  rules: [
26
45
  {
27
- required: true,
46
+ required: false,
28
47
  validator: (rule, value, callback) => {
29
48
  value = value.trim();
49
+ if(value.length === 0) return callback()
30
50
  if (value.length < 1 || value.length > 4) callback('卡券自定义名称长度为:1-4字符');
31
51
  else callback()
32
52
  },
33
53
  trigger: 'blur'
34
54
  }
35
55
  ],
56
+ notice: '卡券自定义名称设置,默认值:<span style="color:red">卡券</span>,长度为:1-4字符',
57
+ inline: false,
58
+ },
59
+
60
+ //style
61
+ {
62
+ ele: 'title',
63
+ label: '基础设置',
64
+ size: 'small',
65
+ groupKey:'style',
36
66
  },
37
67
  {
38
68
  label: '卡券文字颜色:',
@@ -42,13 +72,8 @@ export default {
42
72
  value: data['cardNameColor'] || null,
43
73
  placeholder: '请选择卡券文字颜色',
44
74
  classNmae: 'input80',
45
- },
46
-
47
- {
48
- ele: 'title',
49
- label: '整体风格',
50
- size: 'small',
51
- groupKey:'style',
75
+ hidden:true,
76
+ labelInline:true,
52
77
  },
53
78
  {
54
79
  label: '背景颜色:',
@@ -58,6 +83,7 @@ export default {
58
83
  value: data['bodyBackgroundColor'] || null,
59
84
  placeholder: '请选择背景颜色',
60
85
  classNmae: 'input80',
86
+ labelInline:true,
61
87
  },
62
88
  {
63
89
  label: '圆角设置:',
@@ -66,6 +92,7 @@ export default {
66
92
  groupKey:'style',
67
93
  value: data['bodyRadius'],
68
94
  placeholder: '请选择圆角设置',
95
+ labelInline:true,
69
96
  multiple: false,
70
97
  className: 'input80',
71
98
  handleCustom({action, data}) {
@@ -79,13 +106,13 @@ export default {
79
106
  },
80
107
  },
81
108
  {
82
- label: '间距:',
109
+ label: '行间距:',
83
110
  ele: 'el-input',
84
111
  type: 'number',
85
112
  valueKey: 'padding',
86
113
  groupKey:'style',
87
114
  value: data.padding || '',
88
- placeholder: '请输入间距',
115
+ placeholder: '请输入行间距',
89
116
  className: 'input60',
90
117
  inline: false,
91
118
  notice: '设置间距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
@@ -104,7 +131,7 @@ export default {
104
131
  notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
105
132
  },
106
133
  {
107
- label: '填充:',
134
+ label: '外填充:',
108
135
  ele: 'xd-margin-padding',
109
136
  valueKey: 'bodyPadding',
110
137
  groupKey:'style',
@@ -114,54 +141,107 @@ export default {
114
141
  },
115
142
  placeholder: '请设置外边距',
116
143
  inline: false,
117
- notice: '设置填充值,<span style="color: red">单位:像素</span>。默认值:0像素',
144
+ notice: '设置外填充,<span style="color: red">单位:像素</span>。默认值:0像素',
145
+ },
146
+ {
147
+ label: '标题边距设置:',
148
+ ele: 'xd-margin-padding',
149
+ valueKey: 'titleMargin',
150
+ groupKey:'style',
151
+ value: data['titleMargin'] || null,
152
+ setting: {
153
+ type: 'padding',
154
+ },
155
+ placeholder: '请设置标题边距',
156
+ inline: false,
157
+ notice: '设置标题边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
118
158
  },
119
159
  {
120
160
  ele: 'title',
121
- label: '内容区域风格',
161
+ label: `我的${data['cardName'] || '卡券'}设置`,
122
162
  size: 'small',
123
163
  groupKey:'style',
124
164
  },
125
165
  {
126
- label: '背景颜色:',
127
- ele: 'xd-color',
128
- valueKey: 'backgroundColor',
166
+ label: "标题样式设置",
167
+ ele: "xd-text-and-bgc",
129
168
  groupKey:'style',
130
- value: data['backgroundColor'] || null,
131
- placeholder: '请选择背景颜色',
132
- classNmae: 'input80',
169
+ valueKey: 'titleStyle',
170
+ value: data['titleStyle'] || null,
171
+ setting: {
172
+ fontSize: true,
173
+ color: true,
174
+ bgColor: false,
175
+ weight: true,
176
+ selected:false
177
+ },
178
+ handleCustom({action, data}) {
179
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
180
+ .then(res => {
181
+ data.cb(res.list)
182
+ })
183
+ .catch(error => {
184
+ console.error(error);
185
+ data.cb([])
186
+ });
187
+ },
133
188
  },
134
189
  {
135
- label: '按钮背景颜色:',
136
- ele: 'xd-color',
137
- valueKey: 'btnBgColor',
190
+ ele: 'title',
191
+ label: `添加${data['cardName'] || '卡券'}设置`,
192
+ size: 'small',
138
193
  groupKey:'style',
139
- value: data['btnBgColor'] || null,
140
- placeholder: '请选择按钮背景颜色',
141
- classNmae: 'input80',
142
194
  },
143
195
  {
144
- label: '按钮文字颜色:',
145
- ele: 'xd-color',
146
- valueKey: 'btnTextColor',
196
+ label: '是否展示ICON:',
197
+ ele: 'xd-radio',
198
+ valueKey: 'isShowICONBtn',
199
+ value: data['isShowICONBtn'] || 'N',
147
200
  groupKey:'style',
148
- value: data['btnTextColor'] || null,
149
- placeholder: '请选择按钮文字颜色',
150
- classNmae: 'input80',
201
+ multiple: false,
202
+ labelInline:true,
203
+ className: 'input80',
204
+ list: [
205
+ {label: '展示', value: 'Y'},
206
+ {label: '隐藏', value: 'N'},
207
+ ]
151
208
  },
152
209
  {
153
- label: '按钮文字大小:',
210
+ label: "文字样式设置",
211
+ ele: "xd-text-and-bgc",
212
+ groupKey:'style',
213
+ valueKey: 'addBtnStyle',
214
+ value: data['addBtnStyle'] || null,
215
+ setting: {
216
+ fontSize: true,
217
+ color: true,
218
+ bgColor: false,
219
+ weight: true,
220
+ selected:false
221
+ },
222
+ handleCustom({action, data}) {
223
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
224
+ .then(res => {
225
+ data.cb(res.list)
226
+ })
227
+ .catch(error => {
228
+ console.error(error);
229
+ data.cb([])
230
+ });
231
+ },
232
+ },
233
+ {
234
+ label: '圆角设置:',
235
+ labelInline:true,
154
236
  ele: 'xd-site-select-list',
155
- valueKey: 'btnFontSize',
237
+ valueKey: 'addBtnRadius',
156
238
  groupKey:'style',
157
- value: data['btnFontSize'] || '',
158
- placeholder: '请选择按钮文字大小',
239
+ value: data['addBtnRadius'] || '40',
240
+ placeholder: '请选择圆角设置',
159
241
  multiple: false,
160
242
  className: 'input80',
161
243
  handleCustom({action, data}) {
162
- XdBus.getParentApi('getOptionsSettingList')({
163
- setting_id: 'edtix_style_font_size'
164
- })
244
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
165
245
  .then(res => {
166
246
  data.cb(res.list)
167
247
  })
@@ -170,12 +250,56 @@ export default {
170
250
  });
171
251
  },
172
252
  },
173
-
253
+ {
254
+ label: '背景颜色:',
255
+ ele: 'xd-color',
256
+ valueKey: 'addBtnBgColor',
257
+ groupKey:'style',
258
+ value: data['addBtnBgColor'] || null,
259
+ placeholder: '请选择背景颜色',
260
+ classNmae: 'input80',
261
+ labelInline:true,
262
+ },
263
+ {
264
+ label: '投影设置:',
265
+ ele: 'xd-shadow',
266
+ groupKey:'style',
267
+ valueKey: 'addBtnShadow',
268
+ value: data['addBtnShadow'] || '',
269
+ labelInline:true,
270
+ setting: {
271
+ selected: 'N'
272
+ },
273
+ handleCustom({action, data}) {
274
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
275
+ .then(res => {
276
+ data.cb(res.list)
277
+ })
278
+ .catch(error => {
279
+ console.error(error);
280
+ data.cb([])
281
+ });
282
+ },
283
+ },
284
+ {
285
+ label: '边框设置:',
286
+ ele: 'xd-border',
287
+ groupKey:'style',
288
+ valueKey: 'addBtnBorder',
289
+ labelInline:true,
290
+ setting: {
291
+ isDef: true,
292
+ selected: 'D',
293
+ },
294
+ value: data['addBtnBorder'] || {},
295
+ },
296
+ //=====属性已废弃(不能删除,已隐藏)====
174
297
  {
175
298
  ele: 'title',
176
299
  label: '边框设置',
177
300
  size: 'small',
178
301
  groupKey:'style',
302
+ hidden: true
179
303
  },
180
304
  {
181
305
  label: '是否有边框:',
@@ -186,6 +310,7 @@ export default {
186
310
  placeholder: '请选择是否有边框',
187
311
  multiple: false,
188
312
  className: 'input80',
313
+ hidden: true,
189
314
  list: [
190
315
  {label: '是', value: 'Y'},
191
316
  {label: '否', value: 'N'},
@@ -199,6 +324,7 @@ export default {
199
324
  value: data['is_border_c'] || '',
200
325
  placeholder: '请选择边框颜色',
201
326
  classNmae: 'input80',
327
+ hidden: true
202
328
  },
203
329
  data['is_border'] === 'Y' && {
204
330
  label: '边框大小:',
@@ -209,14 +335,38 @@ export default {
209
335
  value: data['is_border_w'] || '',
210
336
  placeholder: '请输入边框颜色',
211
337
  className: 'input80',
338
+ hidden: true
339
+ },
340
+ //=====属性已废弃(不能删除,已隐藏)====
341
+
342
+
343
+ {
344
+ ele: 'title',
345
+ label: `内容基础设置`,
346
+ size: 'small',
347
+ groupKey:'style',
212
348
  },
213
349
  {
214
- label: '内容圆角设置:',
350
+ label: '填充:',
351
+ ele: 'xd-margin-padding',
352
+ valueKey: 'contentPadding',
353
+ groupKey:'style',
354
+ value: data['contentPadding'] || null,
355
+ setting: {
356
+ type: 'padding',
357
+ },
358
+ placeholder: '请设填充',
359
+ inline: false,
360
+ notice: '设置填充值,<span style="color: red">单位:像素</span>。默认值:<span style="color:red">40</span>像素',
361
+ },
362
+ {
363
+ label: '圆角设置:',
215
364
  ele: 'xd-site-select-list',
216
365
  valueKey: 'radius',
217
366
  groupKey:'style',
218
367
  value: data['radius'] || '10',
219
368
  placeholder: '请选择内容圆角设置',
369
+ labelInline:true,
220
370
  multiple: false,
221
371
  className: 'input80',
222
372
  handleCustom({action, data}) {
@@ -229,6 +379,121 @@ export default {
229
379
  });
230
380
  },
231
381
  },
382
+ {
383
+ label: '背景颜色:',
384
+ ele: 'xd-color',
385
+ valueKey: 'backgroundColor',
386
+ groupKey:'style',
387
+ value: data['backgroundColor'] || null,
388
+ placeholder: '请选择背景颜色',
389
+ classNmae: 'input80',
390
+ labelInline:true,
391
+ },
392
+ {
393
+ label: '投影设置:',
394
+ ele: 'xd-shadow',
395
+ groupKey:'style',
396
+ valueKey: 'contShadow',
397
+ labelInline:true,
398
+ value: data['contShadow'] || '',
399
+ setting: {
400
+ selected: 'N'
401
+ },
402
+ handleCustom({action, data}) {
403
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
404
+ .then(res => {
405
+ data.cb(res.list)
406
+ })
407
+ .catch(error => {
408
+ console.error(error);
409
+ data.cb([])
410
+ });
411
+ },
412
+ },
413
+ {
414
+ label: '边框设置:',
415
+ ele: 'xd-border',
416
+ groupKey:'style',
417
+ valueKey: 'contBorder',
418
+ value: data['contBorder'] || {},
419
+ labelInline:true,
420
+ setting: {
421
+ selected:'N'
422
+ },
423
+ },
424
+ {
425
+ ele: 'title',
426
+ label: `进入我的${data['cardName'] || '卡券'}设置`,
427
+ size: 'small',
428
+ groupKey:'style',
429
+ },
430
+ {
431
+ label: '圆角设置:',
432
+ labelInline:true,
433
+ ele: 'xd-site-select-list',
434
+ valueKey: 'btnRadius',
435
+ value: data['btnRadius'] || '40',
436
+ groupKey:'style',
437
+ placeholder: '请选择圆角设置',
438
+ multiple: false,
439
+ className: 'input60',
440
+ handleCustom({action, data}) {
441
+ XdBus.getParentApi('getOptionsSettingList')({
442
+ setting_id: 'edtix_style_radius',
443
+ key: Date.now()
444
+ })
445
+ .then(res => {
446
+ data.cb(res.list)
447
+ })
448
+ .catch(error => {
449
+ console.error(error);
450
+ });
451
+ },
452
+ },
453
+ {
454
+ label: '背景颜色:',
455
+ ele: 'xd-color',
456
+ valueKey: 'btnBgColor',
457
+ groupKey:'style',
458
+ value: data['btnBgColor'] || null,
459
+ placeholder: '请选择背景颜色',
460
+ classNmae: 'input80',
461
+ labelInline:true,
462
+ },
463
+ {
464
+ label: '文字颜色:',
465
+ ele: 'xd-color',
466
+ valueKey: 'btnTextColor',
467
+ groupKey:'style',
468
+ value: data['btnTextColor'] || null,
469
+ placeholder: '请选择文字颜色',
470
+ classNmae: 'input80',
471
+ labelInline:true,
472
+ },
473
+ {
474
+ label: '文字大小:',
475
+ ele: 'xd-site-select-list',
476
+ valueKey: 'btnFontSize',
477
+ groupKey:'style',
478
+ value: data['btnFontSize'] || '',
479
+ placeholder: '请选择文字大小',
480
+ multiple: false,
481
+ className: 'input80',
482
+ handleCustom({action, data}) {
483
+ XdBus.getParentApi('getOptionsSettingList')({
484
+ setting_id: 'edtix_style_font_size'
485
+ })
486
+ .then(res => {
487
+ data.cb(res.list)
488
+ })
489
+ .catch(error => {
490
+ console.error(error);
491
+ });
492
+ },
493
+ },
494
+
495
+
496
+
232
497
  {
233
498
  label: '添加卡券路径:',
234
499
  ele: 'xd-select-pages-path',
@@ -236,43 +501,34 @@ export default {
236
501
  groupKey:'advanced',
237
502
  placeholder: '请选择添加卡券路径',
238
503
  value: data['add_url'] || null,
504
+ className: 'input100',
239
505
  setting: {
240
506
  router: XdBus.getParentApi('getPagesTree'),
241
507
  },
242
- rules: [
243
- {required: true, message: '请选择添加卡券路径', trigger: 'change'},
244
- ],
245
- inline: false,
246
508
  },
247
509
  {
248
510
  label: '设置支付密码路径:',
249
511
  ele: 'xd-select-pages-path',
250
512
  valueKey: 'pwd_url',
251
513
  groupKey:'advanced',
514
+ className: 'input100',
252
515
  placeholder: '请选择设置支付密码路径',
253
516
  value: data['pwd_url'] || null,
254
517
  setting: {
255
518
  router: XdBus.getParentApi('getPagesTree'),
256
519
  },
257
- rules: [
258
- {required: true, message: '请选择设置支付密码路径', trigger: 'change'},
259
- ],
260
- inline: false,
261
520
  },
262
521
  {
263
522
  label: '进入我的票券路径:',
264
523
  ele: 'xd-select-pages-path',
265
524
  valueKey: 'card_url',
266
525
  groupKey:'advanced',
526
+ className: 'input100',
267
527
  placeholder: '请选择进入我的票券路径',
268
528
  value: data['card_url'] || null,
269
529
  setting: {
270
530
  router: XdBus.getParentApi('getPagesTree'),
271
531
  },
272
- rules: [
273
- {required: true, message: '请选择进入我的票券路径', trigger: 'change'},
274
- ],
275
- inline: false,
276
532
  },
277
533
  {
278
534
  label: '',