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
@@ -1,4 +1,5 @@
1
1
  'use strict';
2
+ import ICONS from '@/ICONS'
2
3
 
3
4
  /**
4
5
  * @description 当表单组件中有联动操作时候,使用方法进行返回
@@ -13,6 +14,69 @@ export default {
13
14
  slot: 'is_reference_title',
14
15
  groupKey:'advanced',
15
16
  },
17
+ {
18
+ label: '我的订单自定义名称:',
19
+ ele: 'el-input',
20
+ type: 'text',
21
+ valueKey: 'myOrderName',
22
+ groupKey:'content',
23
+ value: data['myOrderName'] || '',
24
+ placeholder: '请输入我的订单自定义名称',
25
+ className: 'input80',
26
+ rules: [
27
+ {
28
+ required: false,
29
+ validator: (rule, value, callback) => {
30
+ value = value.trim();
31
+ if(value.length === 0) return callback()
32
+ if (value.length < 1 || value.length > 4) callback('我的订单自定义名称长度为:1-4字符');
33
+ else callback()
34
+ },
35
+ trigger: 'blur'
36
+ }
37
+ ],
38
+ notice: '我的订单自定义名称设置,默认值:<span style="color:red">我的订单</span>,长度为:1-4字符',
39
+ inline: false,
40
+ },
41
+ {
42
+ label: '是否售后订单:',
43
+ ele: 'xd-radio',
44
+ valueKey: 'isShowBtn',
45
+ value: data['isShowBtn'] || 'Y',
46
+ placeholder: '请选择是否售后订单',
47
+ groupKey:'content',
48
+ multiple: false,
49
+ className: 'input80',
50
+ list: [
51
+ {label: '是', value: 'Y'},
52
+ {label: '否', value: 'N'},
53
+ ]
54
+ },
55
+ data['isShowBtn'] === 'Y' && {
56
+ label: '售后订单自定义名称:',
57
+ ele: 'el-input',
58
+ type: 'text',
59
+ valueKey: 'afterBuyName',
60
+ groupKey:'content',
61
+ value: data['afterBuyName'] || '',
62
+ placeholder: '请输入售后订单自定义名称',
63
+ className: 'input80',
64
+ rules: [
65
+ {
66
+ required: false,
67
+ validator: (rule, value, callback) => {
68
+ value = value.trim();
69
+ if(value.length === 0) return callback()
70
+ if (value.length < 1 || value.length > 4) callback('售后订单自定义名称长度为:1-4字符');
71
+ else callback()
72
+ },
73
+ trigger: 'blur'
74
+ }
75
+ ],
76
+ notice: '售后订单自定义名称设置,默认值:<span style="color:red">售后订单</span>,长度为:1-4字符',
77
+ inline: false,
78
+ },
79
+
16
80
  {
17
81
  label: '设置订单状态:',
18
82
  ele: 'xd-order-setting',
@@ -21,6 +85,7 @@ export default {
21
85
  value: data['orderTypeList'] || null,
22
86
  setting: {
23
87
  router: XdBus.getParentApi('getPagesTree'),
88
+ icons:ICONS,
24
89
  },
25
90
  handleCustom({action, data}) {
26
91
  if (action === 'number') {
@@ -39,6 +104,25 @@ export default {
39
104
  {required: true, message: '设置订单配置错误!请检查配置', trigger: 'change'},
40
105
  ],
41
106
  },
107
+ {
108
+ label: '行间距:',
109
+ ele: 'el-input',
110
+ type: 'number',
111
+ valueKey: 'spacing',
112
+ groupKey:'style',
113
+ value: data.spacing || '',
114
+ placeholder: '请输入行间距',
115
+ className: 'input60',
116
+ inline: false,
117
+ notice: '设置间距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
118
+ },
119
+
120
+ {
121
+ ele: 'title',
122
+ label: '轮廓样式设置',
123
+ size: 'small',
124
+ groupKey:'style',
125
+ },
42
126
  {
43
127
  label: '背景颜色:',
44
128
  ele: 'xd-color',
@@ -68,19 +152,7 @@ export default {
68
152
  },
69
153
  },
70
154
  {
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
- {
83
- label: '外边距:',
155
+ label: '边距:',
84
156
  ele: 'xd-margin-padding',
85
157
  valueKey: 'bodyMargin',
86
158
  groupKey:'style',
@@ -105,6 +177,37 @@ export default {
105
177
  inline: false,
106
178
  notice: '设置填充,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
107
179
  },
180
+
181
+ {
182
+ ele: 'title',
183
+ label: '标题设置',
184
+ size: 'small',
185
+ groupKey:'style',
186
+ },
187
+ {
188
+ label: "标题样式设置",
189
+ ele: "xd-text-and-bgc",
190
+ groupKey:'style',
191
+ valueKey: 'titleStyle',
192
+ value: data['titleStyle'] || null,
193
+ setting: {
194
+ fontSize: true,
195
+ color: true,
196
+ bgColor: false,
197
+ weight: true,
198
+ selected:false
199
+ },
200
+ handleCustom({action, data}) {
201
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
202
+ .then(res => {
203
+ data.cb(res.list)
204
+ })
205
+ .catch(error => {
206
+ console.error(error);
207
+ data.cb([])
208
+ });
209
+ },
210
+ },
108
211
  {
109
212
  label: '标题样式颜色:',
110
213
  ele: 'xd-color',
@@ -113,32 +216,117 @@ export default {
113
216
  value: data['cardNameColor'] || null,
114
217
  placeholder: '请选择标题样式颜色',
115
218
  classNmae: 'input60',
219
+ hidden:true,
116
220
  },
117
221
 
118
222
  {
119
223
  ele: 'title',
120
- label: '内容样式设置',
224
+ label: `售后订单按钮样式设置`,
121
225
  size: 'small',
122
226
  groupKey:'style',
123
227
  },
124
228
  {
125
- label: '文字颜色:',
126
- ele: 'xd-color',
229
+ label: "文字样式设置",
230
+ ele: "xd-text-and-bgc",
127
231
  groupKey:'style',
128
- valueKey: 'textColor',
129
- value: data['textColor'] || '',
130
- placeholder: '请选择文字颜色',
131
- classNmae: 'input80',
232
+ valueKey: 'addBtnStyle',
233
+ value: data['addBtnStyle'] || null,
234
+ setting: {
235
+ fontSize: true,
236
+ color: true,
237
+ bgColor: false,
238
+ weight: true,
239
+ selected:false
240
+ },
241
+ handleCustom({action, data}) {
242
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
243
+ .then(res => {
244
+ data.cb(res.list)
245
+ })
246
+ .catch(error => {
247
+ console.error(error);
248
+ data.cb([])
249
+ });
250
+ },
132
251
  },
133
252
  {
134
- label: 'ICON颜色:',
253
+ label: '圆角设置:',
254
+ ele: 'xd-site-select-list',
255
+ valueKey: 'addBtnRadius',
256
+ groupKey:'style',
257
+ value: data['addBtnRadius'] || '40',
258
+ placeholder: '请选择圆角设置',
259
+ multiple: false,
260
+ className: 'input80',
261
+ handleCustom({action, data}) {
262
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
263
+ .then(res => {
264
+ data.cb(res.list)
265
+ })
266
+ .catch(error => {
267
+ console.error(error);
268
+ });
269
+ },
270
+ },
271
+ {
272
+ label: '背景颜色:',
135
273
  ele: 'xd-color',
136
- valueKey: 'iconColor',
274
+ valueKey: 'addBtnBgColor',
137
275
  groupKey:'style',
138
- value: data['iconColor'] || '',
139
- placeholder: '请选择ICON颜色',
276
+ value: data['addBtnBgColor'] || null,
277
+ placeholder: '请选择背景颜色',
140
278
  classNmae: 'input80',
141
279
  },
280
+ {
281
+ label: '投影设置:',
282
+ ele: 'xd-shadow',
283
+ groupKey:'style',
284
+ valueKey: 'addBtnShadow',
285
+ value: data['addBtnShadow'] || '',
286
+ setting: {
287
+ selected: 'N'
288
+ },
289
+ handleCustom({action, data}) {
290
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
291
+ .then(res => {
292
+ data.cb(res.list)
293
+ })
294
+ .catch(error => {
295
+ console.error(error);
296
+ data.cb([])
297
+ });
298
+ },
299
+ },
300
+ {
301
+ label: '边框设置:',
302
+ ele: 'xd-border',
303
+ groupKey:'style',
304
+ valueKey: 'addBtnBorder',
305
+ value: data['addBtnBorder'] || {},
306
+ setting: {
307
+ selected:'N'
308
+ },
309
+ },
310
+
311
+ {
312
+ ele: 'title',
313
+ label: '列表轮阔样式设置',
314
+ size: 'small',
315
+ groupKey:'style',
316
+ },
317
+ {
318
+ label: '填充:',
319
+ ele: 'xd-margin-padding',
320
+ valueKey: 'contPadding',
321
+ groupKey:'style',
322
+ value: data['contPadding'] || null,
323
+ setting: {
324
+ type: 'padding',
325
+ },
326
+ placeholder: '请设置填充',
327
+ inline: false,
328
+ notice: '设置填充,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">40px 34px 20px 20px</span>像素',
329
+ },
142
330
  {
143
331
  label: '背景颜色:',
144
332
  ele: 'xd-color',
@@ -167,12 +355,87 @@ export default {
167
355
  });
168
356
  },
169
357
  },
358
+ {
359
+ label: '投影设置:',
360
+ ele: 'xd-shadow',
361
+ groupKey:'style',
362
+ valueKey: 'contShadow',
363
+ value: data['contShadow'] || '',
364
+ setting: {
365
+ selected: 'N'
366
+ },
367
+ handleCustom({action, data}) {
368
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
369
+ .then(res => {
370
+ data.cb(res.list)
371
+ })
372
+ .catch(error => {
373
+ console.error(error);
374
+ data.cb([])
375
+ });
376
+ },
377
+ },
378
+ {
379
+ label: '边框设置:',
380
+ ele: 'xd-border',
381
+ groupKey:'style',
382
+ valueKey: 'contBorder',
383
+ value: data['contBorder'] || {},
384
+ setting: {
385
+ selected:'N'
386
+ },
387
+ },
388
+
389
+ {
390
+ ele: 'title',
391
+ label: '列表内容样式设置',
392
+ size: 'small',
393
+ groupKey:'style',
394
+ },
395
+ {
396
+ label: '文字颜色:',
397
+ ele: 'xd-color',
398
+ groupKey:'style',
399
+ valueKey: 'textColor',
400
+ value: data['textColor'] || '',
401
+ placeholder: '请选择文字颜色',
402
+ classNmae: 'input80',
403
+ },
404
+ {
405
+ label: 'ICON颜色:',
406
+ ele: 'xd-color',
407
+ valueKey: 'iconColor',
408
+ groupKey:'style',
409
+ value: data['iconColor'] || '',
410
+ placeholder: '请选择ICON颜色',
411
+ classNmae: 'input80',
412
+ },
413
+
170
414
  {
171
415
  ele: 'title',
172
- label: '内容边框设置',
416
+ label: '数字气泡样式设置',
173
417
  size: 'small',
174
418
  groupKey:'style',
175
419
  },
420
+ {
421
+ label: '数字颜色:',
422
+ ele: 'xd-color',
423
+ groupKey:'style',
424
+ valueKey: 'popColor',
425
+ value: data['popColor'] || '',
426
+ placeholder: '请选择数字颜色',
427
+ classNmae: 'input80',
428
+ },
429
+ {
430
+ label: '气泡背景:',
431
+ ele: 'xd-color',
432
+ valueKey: 'popBgColor',
433
+ groupKey:'style',
434
+ value: data['popBgColor'] || '',
435
+ placeholder: '请选择气泡背景',
436
+ classNmae: 'input80',
437
+ },
438
+
176
439
  {
177
440
  label: '是否有边框:',
178
441
  ele: 'xd-radio',
@@ -181,6 +444,7 @@ export default {
181
444
  placeholder: '请选择是否有边框',
182
445
  groupKey:'style',
183
446
  multiple: false,
447
+ hidden: true,
184
448
  className: 'input80',
185
449
  list: [
186
450
  {label: '是', value: 'Y'},
@@ -191,6 +455,7 @@ export default {
191
455
  label: '边框颜色:',
192
456
  ele: 'xd-color',
193
457
  groupKey:'style',
458
+ hidden: true,
194
459
  valueKey: 'is_border_c',
195
460
  value: data['is_border_c'] || '',
196
461
  placeholder: '请选择边框颜色',
@@ -201,6 +466,7 @@ export default {
201
466
  ele: 'el-input',
202
467
  type: 'number',
203
468
  groupKey:'style',
469
+ hidden: true,
204
470
  valueKey: 'is_border_w',
205
471
  value: data['is_border_w'] || '',
206
472
  placeholder: '请输入边框大小',