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
@@ -7,6 +7,30 @@ export default {
7
7
  style: [],
8
8
  content: (data) => {
9
9
  return [
10
+ {
11
+ label: '我的账户自定义名称:',
12
+ ele: 'el-input',
13
+ type: 'text',
14
+ valueKey: 'accountName',
15
+ groupKey:'content',
16
+ value: data['accountName'] || '',
17
+ placeholder: '请我的账户自定义名称',
18
+ className: 'input80',
19
+ rules: [
20
+ {
21
+ required: false,
22
+ validator: (rule, value, callback) => {
23
+ value = value.trim();
24
+ if(value.length === 0) return callback()
25
+ if (value.length < 2 || value.length > 6) callback('我的账户自定义名称长度为:2-6字符');
26
+ else callback()
27
+ },
28
+ trigger: 'blur'
29
+ }
30
+ ],
31
+ notice: '我的账户自定义名称设置,默认值:<span style="color:red">我的账户</span>,长度为:2-6字符',
32
+ inline: false,
33
+ },
10
34
  {
11
35
  label: '更改分类label(可排序):',
12
36
  ele: 'xd-set-sort-label',
@@ -36,42 +60,386 @@ export default {
36
60
  value: 'score',
37
61
  sort: 3
38
62
  },
39
- ]
63
+ ],
64
+ rules: [
65
+ {
66
+ required: false,
67
+ validator: (rule, value, callback) => {
68
+ let yes = [];
69
+ if(value.length === 0) return callback()
70
+ value.map(item=>{
71
+ if(item.newLabel && (item.newLabel.length < 2 || item.newLabel.length > 4)) {
72
+ yes.push(item.label)
73
+ }
74
+ });
75
+ if (yes.length > 0) callback('分类名称长度为:2-4字符');
76
+ else callback()
77
+ },
78
+ trigger: 'blur'
79
+ }
80
+ ],
81
+ notice: '自定义分类名称长度为:2-4字符',
82
+ inline: false,
40
83
  },
41
84
  {
42
85
  label: '是否展示票券入口:',
86
+ labelInline:true,
43
87
  ele: 'xd-radio',
44
88
  valueKey: 'isCard',
45
89
  groupKey:'content',
46
90
  value: data['isCard'] || 'Y',
47
91
  list: [
48
- { "label": "", "value": 'Y' },
49
- { "label": "", "value": 'N' },
92
+ { "label": "展示", "value": 'Y' },
93
+ { "label": "隐藏", "value": 'N' },
50
94
  ]
51
95
  },
52
-
53
96
  {
54
97
  label: '是否展示元宝入口:',
98
+ labelInline:true,
55
99
  ele: 'xd-radio',
56
100
  valueKey: 'isYuanbao',
57
101
  groupKey:'content',
58
102
  value: data['isYuanbao'] || 'Y',
59
103
  list: [
60
- { "label": "", "value": 'Y' },
61
- { "label": "", "value": 'N' },
104
+ { "label": "展示", "value": 'Y' },
105
+ { "label": "隐藏", "value": 'N' },
62
106
  ]
63
107
  },
64
108
  {
65
109
  label: '是否展示积分入口:',
110
+ labelInline:true,
66
111
  ele: 'xd-radio',
67
112
  valueKey: 'isIntegral',
68
113
  groupKey:'content',
69
114
  value: data['isIntegral'] || 'Y',
70
115
  list: [
71
- { "label": "", "value": 'Y' },
72
- { "label": "", "value": 'N' },
116
+ { "label": "展示", "value": 'Y' },
117
+ { "label": "隐藏", "value": 'N' },
73
118
  ]
74
119
  },
120
+
121
+
122
+ //style
123
+
124
+ {
125
+ ele: 'title',
126
+ label: '基础设置',
127
+ size: 'small',
128
+ groupKey:'style',
129
+ },
130
+ {
131
+ label: '行间距:',
132
+ ele: 'el-input',
133
+ type: 'number',
134
+ labelInline:true,
135
+ valueKey: 'rowSpacing',
136
+ groupKey:'style',
137
+ value: data.rowSpacing|| '',
138
+ placeholder: '请输入行间距',
139
+ className: 'input60',
140
+ inline: false,
141
+ notice: '设置间距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">10</span>像素',
142
+ },
143
+ {
144
+ label: '列间距:',
145
+ ele: 'el-input',
146
+ type: 'number',
147
+ labelInline:true,
148
+ groupKey:'style',
149
+ valueKey: 'columnSpacing',
150
+ value: data['columnSpacing'] || '',
151
+ notice: '列间距设置,单位:像素,默认值:<span style="color:red">36</span> px',
152
+ inline: false,
153
+ className: 'input60',
154
+ },
155
+ {
156
+ label: '外边距:',
157
+ ele: 'xd-margin-padding',
158
+ valueKey: 'bodyMargin',
159
+ groupKey:'style',
160
+ value: data['bodyMargin'] || null,
161
+ setting: {
162
+ type: 'margin',
163
+ },
164
+ placeholder: '请设置外边距',
165
+ inline: false,
166
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
167
+ },
168
+ {
169
+ label: '外填充:',
170
+ ele: 'xd-margin-padding',
171
+ valueKey: 'bodyPadding',
172
+ groupKey:'style',
173
+ value: data['bodyPadding'] || null,
174
+ setting: {
175
+ type: 'padding',
176
+ },
177
+ placeholder: '请设置外填充',
178
+ inline: false,
179
+ notice: '设置填充值,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
180
+ },
181
+ {
182
+ label: '标题边距设置:',
183
+ ele: 'xd-margin-padding',
184
+ valueKey: 'titleMargin',
185
+ groupKey:'style',
186
+ value: data['titleMargin'] || null,
187
+ setting: {
188
+ type: 'padding',
189
+ },
190
+ placeholder: '请设置标题边距',
191
+ inline: false,
192
+ notice: '设置标题边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
193
+ },
194
+ {
195
+ label: '背景颜色:',
196
+ ele: 'xd-color',
197
+ valueKey: 'bodyBgColor',
198
+ groupKey:'style',
199
+ value: data['bodyBgColor'] || null,
200
+ placeholder: '请选择背景颜色',
201
+ labelInline:true,
202
+ classNmae: 'input80',
203
+ },
204
+ {
205
+ label: '圆角设置:',
206
+ ele: 'xd-site-select-list',
207
+ valueKey: 'bodyRadius',
208
+ groupKey:'style',
209
+ value: data['bodyRadius'],
210
+ labelInline:true,
211
+ placeholder: '请选择圆角设置',
212
+ multiple: false,
213
+ className: 'input80',
214
+ handleCustom({action, data}) {
215
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
216
+ .then(res => {
217
+ data.cb(res.list)
218
+ })
219
+ .catch(error => {
220
+ console.error(error);
221
+ });
222
+ },
223
+ },
224
+ {
225
+ ele: 'title',
226
+ label: '我的账号设置',
227
+ size: 'small',
228
+ groupKey:'style',
229
+ },
230
+ {
231
+ label: "样式设置",
232
+ ele: "xd-text-and-bgc",
233
+ groupKey:'style',
234
+ valueKey: 'titleStyle',
235
+ value: data['titleStyle'] || null,
236
+ setting: {
237
+ fontSize: true,
238
+ color: true,
239
+ bgColor: false,
240
+ weight: true,
241
+ selected:false
242
+ },
243
+ handleCustom({action, data}) {
244
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
245
+ .then(res => {
246
+ data.cb(res.list)
247
+ })
248
+ .catch(error => {
249
+ console.error(error);
250
+ data.cb([])
251
+ });
252
+ },
253
+ },
254
+
255
+ {
256
+ ele: 'title',
257
+ label: '轮廓设置',
258
+ size: 'small',
259
+ groupKey:'style',
260
+ },
261
+ {
262
+ label: '填充:',
263
+ ele: 'xd-margin-padding',
264
+ valueKey: 'contPadding',
265
+ groupKey:'style',
266
+ value: data['contPadding'] || null,
267
+ setting: {
268
+ type: 'padding',
269
+ },
270
+ placeholder: '请设置外填充',
271
+ inline: false,
272
+ notice: '设置填充值,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">32px 32px 48px 48px</span>像素',
273
+ },
274
+ {
275
+ label: '背景颜色:',
276
+ ele: 'xd-color',
277
+ valueKey: 'contBgColor',
278
+ groupKey:'style',
279
+ value: data['contBgColor'] || null,
280
+ placeholder: '请选择背景颜色',
281
+ labelInline:true,
282
+ classNmae: 'input80',
283
+ },
284
+ {
285
+ label: '圆角设置:',
286
+ ele: 'xd-site-select-list',
287
+ valueKey: 'contRadius',
288
+ groupKey:'style',
289
+ value: data['contRadius'],
290
+ labelInline:true,
291
+ placeholder: '请选择圆角设置',
292
+ multiple: false,
293
+ className: 'input80',
294
+ handleCustom({action, data}) {
295
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
296
+ .then(res => {
297
+ data.cb(res.list)
298
+ })
299
+ .catch(error => {
300
+ console.error(error);
301
+ });
302
+ },
303
+ },
304
+ {
305
+ label: '投影设置:',
306
+ ele: 'xd-shadow',
307
+ groupKey:'style',
308
+ valueKey: 'contShadow',
309
+ labelInline:true,
310
+ value: data['contShadow'] || '',
311
+ setting: {
312
+ selected: 'N'
313
+ },
314
+ handleCustom({action, data}) {
315
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
316
+ .then(res => {
317
+ data.cb(res.list)
318
+ })
319
+ .catch(error => {
320
+ console.error(error);
321
+ data.cb([])
322
+ });
323
+ },
324
+ },
325
+ {
326
+ label: '边框设置:',
327
+ ele: 'xd-border',
328
+ groupKey:'style',
329
+ valueKey: 'contBorder',
330
+ labelInline:true,
331
+ value: data['contBorder'] || {},
332
+ setting: {
333
+ selected:'N'
334
+ },
335
+ },
336
+
337
+ {
338
+ ele: 'title',
339
+ label: '内容设置',
340
+ size: 'small',
341
+ groupKey:'style',
342
+ },
343
+ {
344
+ label: '填充:',
345
+ ele: 'xd-margin-padding',
346
+ valueKey: 'itemPadding',
347
+ groupKey:'style',
348
+ value: data['itemPadding'] || null,
349
+ setting: {
350
+ type: 'padding',
351
+ },
352
+ placeholder: '请设置外填充',
353
+ inline: false,
354
+ notice: '设置填充值,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20px 20px 0 0</span>像素',
355
+ },
356
+ {
357
+ label: "标题样式设置",
358
+ ele: "xd-text-and-bgc",
359
+ groupKey:'style',
360
+ valueKey: 'itemStyle',
361
+ value: data['itemStyle'] || null,
362
+ setting: {
363
+ fontSize: true,
364
+ color: true,
365
+ bgColor: false,
366
+ weight: true,
367
+ selected:false
368
+ },
369
+ handleCustom({action, data}) {
370
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
371
+ .then(res => {
372
+ data.cb(res.list)
373
+ })
374
+ .catch(error => {
375
+ console.error(error);
376
+ data.cb([])
377
+ });
378
+ },
379
+ },
380
+ {
381
+ label: '背景颜色:',
382
+ ele: 'xd-color',
383
+ valueKey: 'itemBgColor',
384
+ labelInline:true,
385
+ groupKey:'style',
386
+ value: data['itemBgColor'] || null,
387
+ placeholder: '请选择背景颜色',
388
+ classNmae: 'input80',
389
+ },
390
+ {
391
+ label: '圆角设置:',
392
+ ele: 'xd-site-select-list',
393
+ valueKey: 'itemRadius',
394
+ groupKey:'style',
395
+ value: data['itemRadius'],
396
+ labelInline:true,
397
+ placeholder: '请选择圆角设置',
398
+ multiple: false,
399
+ className: 'input80',
400
+ handleCustom({action, data}) {
401
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
402
+ .then(res => {
403
+ data.cb(res.list)
404
+ })
405
+ .catch(error => {
406
+ console.error(error);
407
+ });
408
+ },
409
+ },
410
+ {
411
+ label: '投影设置:',
412
+ ele: 'xd-shadow',
413
+ groupKey:'style',
414
+ labelInline:true,
415
+ valueKey: 'itemShadow',
416
+ value: data['itemShadow'] || '',
417
+ setting: {
418
+ selected: 'N'
419
+ },
420
+ handleCustom({action, data}) {
421
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
422
+ .then(res => {
423
+ data.cb(res.list)
424
+ })
425
+ .catch(error => {
426
+ console.error(error);
427
+ data.cb([])
428
+ });
429
+ },
430
+ },
431
+ {
432
+ label: '边框设置:',
433
+ ele: 'xd-border',
434
+ groupKey:'style',
435
+ labelInline:true,
436
+ valueKey: 'itemBorder',
437
+ value: data['itemBorder'] || {},
438
+ setting: {
439
+ selected:'N'
440
+ },
441
+ },
442
+
75
443
  {
76
444
  label: '元宝跳转路径:',
77
445
  ele: 'xd-select-pages-path',