jufubao-base 1.0.191 → 1.0.192-beta1

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 (27) 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 +22 -6
  8. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +35 -20
  9. package/src/components/JfbBaseFooter/Attr.js +141 -75
  10. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +50 -15
  11. package/src/components/JfbBaseLogin/Attr.js +3 -9
  12. package/src/components/JfbBaseOrderDetail/Attr.js +147 -65
  13. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +96 -46
  14. package/src/components/JfbBaseOrderList/Attr.js +59 -2
  15. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +139 -92
  16. package/src/components/JfbBaseOrderList/Mock.js +3 -0
  17. package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +267 -0
  18. package/src/components/JfbBasePhoneCollect/Attr.js +3 -15
  19. package/src/components/JfbBasePhoneLogin/Attr.js +3 -14
  20. package/src/components/JfbBaseUserCenter/Attr.js +240 -48
  21. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +101 -30
  22. package/src/components/JfbBaseUserInfo/Attr.js +179 -30
  23. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +80 -44
  24. package/src/components/JfbBaseUserOrder/Attr.js +291 -25
  25. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +172 -54
  26. package/src/components/JfbBaseWallet/Attr.js +340 -2
  27. package/src/components/JfbBaseWallet/JfbBaseWallet.vue +173 -49
@@ -549,12 +549,7 @@ export default {
549
549
  label: '表单容器设置外边距:',
550
550
  ele: "xd-margin-padding",
551
551
  valueKey: 'formMargin',
552
- value: data.formMargin || {
553
- top: 0,
554
- right: 0,
555
- bottom: 0,
556
- left: 0
557
- },
552
+ value: data.formMargin || null,
558
553
  setting: {
559
554
  type: 'margin',
560
555
  },
@@ -715,7 +710,6 @@ export default {
715
710
  });
716
711
  },
717
712
  inline: false,
718
- notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
719
713
  },
720
714
  {
721
715
  ele: 'title',
@@ -748,7 +742,6 @@ export default {
748
742
  });
749
743
  },
750
744
  inline: false,
751
- notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
752
745
  },
753
746
  {
754
747
  label: "内容字体样式设置:",
@@ -771,7 +764,6 @@ export default {
771
764
  });
772
765
  },
773
766
  inline: false,
774
- notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
775
767
  },
776
768
  {
777
769
  ele: 'title',
@@ -804,7 +796,6 @@ export default {
804
796
  });
805
797
  },
806
798
  inline: false,
807
- notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
808
799
  },
809
800
  {
810
801
  label: "获取验证码展示方式:",
@@ -845,7 +836,7 @@ export default {
845
836
  },
846
837
  placeholder: '请设置边距',
847
838
  inline: false,
848
- notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
839
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
849
840
  },
850
841
  {
851
842
  label: "按钮圆角 - 通用",
@@ -896,7 +887,6 @@ export default {
896
887
  });
897
888
  },
898
889
  inline: false,
899
- notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
900
890
  },
901
891
  {
902
892
  label: "隐私条款链接字体设置:",
@@ -920,7 +910,6 @@ export default {
920
910
  });
921
911
  },
922
912
  inline: false,
923
- notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
924
913
  },
925
914
  {
926
915
  label: "选择框垂直对齐方式:",
@@ -952,7 +941,7 @@ export default {
952
941
  },
953
942
  placeholder: '请设置边距',
954
943
  inline: false,
955
- notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
944
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
956
945
  },
957
946
  {
958
947
  ele: 'title',
@@ -984,7 +973,6 @@ export default {
984
973
  });
985
974
  },
986
975
  inline: false,
987
- notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
988
976
  },
989
977
  {
990
978
  label: "跳过垂直对齐方式:",
@@ -538,12 +538,7 @@ export default {
538
538
  label: '表单容器设置外边距:',
539
539
  ele: "xd-margin-padding",
540
540
  valueKey: 'formMargin',
541
- value: data.formMargin || {
542
- top: 0,
543
- right: 0,
544
- bottom: 0,
545
- left: 0
546
- },
541
+ value: data.formMargin || null,
547
542
  setting: {
548
543
  type: 'margin',
549
544
  },
@@ -704,7 +699,6 @@ export default {
704
699
  });
705
700
  },
706
701
  inline: false,
707
- notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
708
702
  },
709
703
  {
710
704
  ele: 'title',
@@ -737,7 +731,6 @@ export default {
737
731
  });
738
732
  },
739
733
  inline: false,
740
- notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
741
734
  },
742
735
  {
743
736
  label: "内容字体样式设置:",
@@ -760,7 +753,6 @@ export default {
760
753
  });
761
754
  },
762
755
  inline: false,
763
- notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
764
756
  },
765
757
  {
766
758
  ele: 'title',
@@ -793,7 +785,6 @@ export default {
793
785
  });
794
786
  },
795
787
  inline: false,
796
- notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
797
788
  },
798
789
  {
799
790
  label: "获取验证码展示方式:",
@@ -834,7 +825,7 @@ export default {
834
825
  },
835
826
  placeholder: '请设置边距',
836
827
  inline: false,
837
- notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
828
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
838
829
  },
839
830
  {
840
831
  label: "按钮圆角 - 通用",
@@ -885,7 +876,6 @@ export default {
885
876
  });
886
877
  },
887
878
  inline: false,
888
- notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
889
879
  },
890
880
  {
891
881
  label: "隐私条款链接字体设置:",
@@ -909,7 +899,6 @@ export default {
909
899
  });
910
900
  },
911
901
  inline: false,
912
- notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
913
902
  },
914
903
  {
915
904
  label: "选择框垂直对齐方式:",
@@ -941,7 +930,7 @@ export default {
941
930
  },
942
931
  placeholder: '请设置边距',
943
932
  inline: false,
944
- notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
933
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
945
934
  },
946
935
  ]
947
936
  }
@@ -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: '',