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