jufubao-base 1.0.197-beta4 → 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 (37) 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/JfbBaseCardEntry/JfbBaseCardEntry.vue +2 -0
  8. package/src/components/JfbBaseCardEntry/Mock.js +1 -0
  9. package/src/components/JfbBaseCardEntry/XdCardNew.vue +21 -4
  10. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +41 -13
  11. package/src/components/JfbBaseFastLink/Attr.js +24 -8
  12. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +37 -21
  13. package/src/components/JfbBaseFooter/Attr.js +141 -75
  14. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +50 -15
  15. package/src/components/JfbBaseHeader/Attr.js +20 -51
  16. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +23 -28
  17. package/src/components/JfbBaseHeaderElephant/Attr.js +8 -0
  18. package/src/components/JfbBaseHeaderElephant/JfbBaseHeaderElephant.vue +33 -5
  19. package/src/components/JfbBaseNotice/Attr.js +26 -0
  20. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +13 -1
  21. package/src/components/JfbBaseOrderDetail/Attr.js +147 -65
  22. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +97 -47
  23. package/src/components/JfbBaseOrderList/Attr.js +59 -2
  24. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +139 -92
  25. package/src/components/JfbBaseOrderList/Mock.js +3 -0
  26. package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +267 -0
  27. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +27 -29
  28. package/src/components/JfbBasePosterBigSmall/getWidthHeight.js +13 -9
  29. package/src/components/JfbBaseUserCenter/Attr.js +297 -52
  30. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +135 -44
  31. package/src/components/JfbBaseUserInfo/Attr.js +227 -88
  32. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +106 -86
  33. package/src/components/JfbBaseUserOrder/Attr.js +332 -30
  34. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +183 -55
  35. package/src/components/JfbBaseWallet/Attr.js +376 -8
  36. package/src/components/JfbBaseWallet/JfbBaseWallet.vue +185 -49
  37. package/src/mixins/componentsMixins.js +210 -35
@@ -1,18 +1,24 @@
1
1
  'use strict';
2
+ import {oldTonNewBorAndSha, checkValue} from '@/utils/AttrTools'
2
3
  import ICONS from "@/ICONS.js"
4
+
3
5
  /**
4
6
  * @description 当表单组件中有联动操作时候,使用方法进行返回
5
7
  */
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
+
16
+ let defContShadow = oldTonNewBorAndSha(data.contShadow, data.is_shadow,data.is_shadow_w ,data.is_shadow_bg);
17
+ if(defContShadow.type === 'Y' && data.is_shadow ==='Y') {
18
+ data.is_shadow = 'N'
19
+ }
20
+
9
21
  return [
10
- {
11
- label: '',
12
- ele: 'slot',
13
- slot: 'is_reference_title',
14
- groupKey:'advanced',
15
- },
16
22
  {
17
23
  label: '内容排版:',
18
24
  ele: 'xd-radio',
@@ -31,19 +37,68 @@ export default {
31
37
  label: "头像右侧内容:",
32
38
  ele: "xd-radio-self",
33
39
  valueKey: "rightContent",
34
- value: data.rightContent,
40
+ value: data.rightContent || {
41
+ type: "logout",
42
+ name: "退出登录",
43
+ icon: "",
44
+ iconName: "",
45
+ },
35
46
  groupKey: "content",
36
47
  setting: {
37
48
  icons: ICONS
38
49
  }
39
50
  },
51
+ // {
52
+ // label: '退出登录自定义名称:',
53
+ // ele: 'el-input',
54
+ // type: 'text',
55
+ // groupKey:'content',
56
+ // valueKey: 'logoutName',
57
+ // value: data['logoutName'] || '',
58
+ // notice: '退出登录自定义名称设置,默认值:<span style="color:red">[退出登录]</span>',
59
+ // inline: false,
60
+ // className: 'input60',
61
+ // },
62
+
40
63
  {
41
- label: '内容文字颜色:',
64
+ ele: 'title',
65
+ label: '基础',
66
+ size: 'small',
67
+ groupKey:'style',
68
+ },
69
+ {
70
+ label: '设置外边距:',
71
+ ele: 'xd-margin-padding',
72
+ valueKey: 'margin',
73
+ groupKey:'style',
74
+ value: data['margin'] || null,
75
+ setting: {
76
+ type: 'margin',
77
+ },
78
+ inline: false,
79
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
80
+ },
81
+ {
82
+ label: '设置填充:',
83
+ groupKey:'style',
84
+ ele: 'xd-margin-padding',
85
+ valueKey: 'padding',
86
+ value: data['padding'] || null,
87
+ setting: {
88
+ type: 'padding',
89
+ },
90
+ placeholder: '设置填充',
91
+ inline: false,
92
+ notice: '设置填充,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
93
+ },
94
+ {
95
+ label: '背景颜色:',
42
96
  ele: 'xd-color',
43
- valueKey: 'textColor',
97
+ valueKey: 'backgroundColor',
44
98
  groupKey:'style',
45
- value: data.textColor || '',
46
- placeholder: '请选择内容文字颜色',
99
+ value: data.backgroundColor || '',
100
+ labelInline:true,
101
+ placeholder: '请选择背景颜色',
47
102
  classNmae: 'input80',
48
103
  },
49
104
  {
@@ -65,26 +120,15 @@ export default {
65
120
  action: 'aliyun',
66
121
  sort: true, //当上传图片列表时候,是否启用排序
67
122
  maxlen: 100, //当上传图片列表时候,最大数量数量
68
- rules: [
69
- { required: true, message: '请上传图片', trigger: ['blur', 'change'] },
70
- ]
71
- },
72
- {
73
- label: '内容背景颜色:',
74
- ele: 'xd-color',
75
- valueKey: 'backgroundColor',
76
- groupKey:'style',
77
- value: data.backgroundColor || '',
78
- placeholder: '请选择内容背景颜色',
79
- classNmae: 'input80',
80
123
  },
81
124
  {
82
- label: '内容圆角设置:',
125
+ label: '圆角设置:',
83
126
  ele: 'xd-site-select-list',
84
127
  valueKey: 'radius',
85
- value: data['radius'] || '',
128
+ value: data['radius'] || '0',
129
+ labelInline:true,
86
130
  groupKey:'style',
87
- placeholder: '请选择内容圆角设置',
131
+ placeholder: '请选择圆角设置',
88
132
  multiple: false,
89
133
  className: 'input60',
90
134
  handleCustom({action, data}) {
@@ -101,31 +145,108 @@ export default {
101
145
  },
102
146
  },
103
147
  {
104
- label: '内容设置外边距:',
105
- ele: 'xd-margin-padding',
106
- valueKey: 'margin',
148
+ label: '投影设置:',
149
+ ele: 'xd-shadow',
107
150
  groupKey:'style',
108
- value: data['margin'] || null,
151
+ valueKey: 'contShadow',
152
+ value: defContShadow,
153
+ labelInline:true,
109
154
  setting: {
110
- type: 'margin',
155
+ selected: defContShadow.type
156
+ },
157
+ handleCustom({action, data}) {
158
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
159
+ .then(res => {
160
+ data.cb(res.list)
161
+ })
162
+ .catch(error => {
163
+ console.error(error);
164
+ data.cb([])
165
+ });
111
166
  },
112
- placeholder: '请设置外边距',
113
- inline: false,
114
- notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
115
167
  },
116
168
  {
117
- label: '内容设置内边距:',
169
+ label: '边框设置:',
170
+ ele: 'xd-border',
118
171
  groupKey:'style',
119
- ele: 'xd-margin-padding',
120
- valueKey: 'padding',
121
- value: data['padding'] || null,
172
+ valueKey: 'contBorder',
173
+ value: defContBorder,
174
+ labelInline:true,
122
175
  setting: {
123
- type: 'padding',
176
+ selected:defContBorder.type
124
177
  },
125
- placeholder: '请设置边距',
126
- inline: false,
127
- notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
128
178
  },
179
+ {
180
+ label: "昵称字体样式设置",
181
+ ele: "xd-text-and-bgc",
182
+ groupKey:'style',
183
+ valueKey: 'nickStyle',
184
+ value: data['nickStyle'] || null,
185
+ setting: {
186
+ fontSize: true,
187
+ color: true,
188
+ bgColor: false,
189
+ weight: true,
190
+ selected:false
191
+ },
192
+ handleCustom({action, data}) {
193
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
194
+ .then(res => {
195
+ data.cb(res.list)
196
+ })
197
+ .catch(error => {
198
+ console.error(error);
199
+ data.cb([])
200
+ });
201
+ },
202
+ },
203
+
204
+ {
205
+ ele: 'title',
206
+ label: '用户图像设置',
207
+ size: 'small',
208
+ groupKey:'style',
209
+ },
210
+ {
211
+ label: '边框颜色:',
212
+ ele: 'xd-color',
213
+ groupKey:'style',
214
+ valueKey: 'imageColor',
215
+ value: data['imageColor'] || '',
216
+ placeholder: '请选择背景颜色',
217
+ classNmae: 'input80',
218
+ labelInline:true,
219
+ },
220
+ {
221
+ label: '圆角设置:',
222
+ ele: 'xd-site-select-list',
223
+ valueKey: 'imageRadius',
224
+ value: data['imageRadius'] || '50%',
225
+ groupKey:'style',
226
+ placeholder: '请选择圆角设置',
227
+ labelInline:true,
228
+ multiple: false,
229
+ className: 'input60',
230
+ handleCustom({action, data}) {
231
+ XdBus.getParentApi('getOptionsSettingList')({
232
+ setting_id: 'edtix_style_radius',
233
+ key: Date.now()
234
+ })
235
+ .then(res => {
236
+ data.cb(res.list.map(item=>{
237
+ return {
238
+ ...item,
239
+ value: item.value + 'rpx'
240
+ }
241
+ }).concat({label: '圆角', value:'50%'}))
242
+ })
243
+ .catch(error => {
244
+ console.error(error);
245
+ });
246
+ },
247
+ },
248
+
249
+ //=====属性已废弃(不能删除,已隐藏)====
129
250
  {
130
251
  ele: 'title',
131
252
  label: '投影设置',
@@ -142,13 +263,13 @@ export default {
142
263
  placeholder: '请选择是否投影',
143
264
  multiple: false,
144
265
  className: 'input80',
266
+ hidden: true,
145
267
  list: [
146
268
  {label: '是', value: 'Y'},
147
269
  {label: '否', value: 'N'},
148
- ],
149
- hidden: true,
270
+ ]
150
271
  },
151
- data['is_shadow'] === 'Y' && {
272
+ {
152
273
  label: '投影颜色:',
153
274
  ele: 'xd-color',
154
275
  valueKey: 'is_shadow_bg',
@@ -158,7 +279,7 @@ export default {
158
279
  classNmae: 'input80',
159
280
  hidden: true,
160
281
  },
161
- data['is_shadow'] === 'Y' && {
282
+ {
162
283
  label: '投影范围:',
163
284
  groupKey:'style',
164
285
  ele: 'xd-site-select-list',
@@ -181,33 +302,8 @@ export default {
181
302
  },
182
303
  hidden: true,
183
304
  },
184
- {
185
- label: "边框阴影设置:",
186
- ele: "xd-shadow",
187
- valueKey: "boxShadow",
188
- value: data['boxShadow'] || null,
189
- groupKey:'style',
190
- handleCustom({action, data}) {
191
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
192
- .then(res => {
193
- data.cb(res.list)
194
- })
195
- .catch(error => {
196
- console.error(error);
197
- data.cb([])
198
- });
199
- },
200
- },
201
- {
202
- label: "边框设置:",
203
- ele: "xd-border",
204
- valueKey: "boxBorder",
205
- value: data['boxBorder'] || null,
206
- groupKey:'style',
207
- setting: {
208
- selected:'N'
209
- },
210
- },
305
+
306
+ //=====属性已废弃(不能删除,已隐藏)====
211
307
  {
212
308
  ele: 'title',
213
309
  label: '边框设置',
@@ -218,6 +314,7 @@ export default {
218
314
  {
219
315
  label: '是否有边框:',
220
316
  ele: 'xd-radio',
317
+ hidden: true,
221
318
  valueKey: 'is_border',
222
319
  groupKey:'style',
223
320
  value: data['is_border'] || 'N',
@@ -227,20 +324,20 @@ export default {
227
324
  list: [
228
325
  {label: '是', value: 'Y'},
229
326
  {label: '否', value: 'N'},
230
- ],
231
- hidden: true,
327
+ ]
232
328
  },
233
- data['is_border'] === 'Y' && {
329
+ {
234
330
  label: '边框颜色:',
331
+ hidden: true,
235
332
  ele: 'xd-color',
236
333
  groupKey:'style',
237
334
  valueKey: 'is_border_c',
238
335
  value: data['is_border_c'] || '',
239
336
  placeholder: '请选择边框颜色',
240
337
  classNmae: 'input80',
241
- hidden: true,
242
338
  },
243
- data['is_border'] === 'Y' && {
339
+ {
340
+ hidden: true,
244
341
  label: '边框大小:',
245
342
  ele: 'el-input',
246
343
  type: 'number',
@@ -249,7 +346,22 @@ export default {
249
346
  value: data['is_border_w'] || '',
250
347
  placeholder: '请输入边框颜色',
251
348
  className: 'input80',
252
- hidden: true,
349
+ },
350
+ //=====属性已废弃(不能删除,已隐藏)====
351
+
352
+ 0&&{
353
+ label: '是否显示设置:',
354
+ ele: 'xd-radio',
355
+ valueKey: 'isSetting',
356
+ value: data['isSetting'] || 'N',
357
+ groupKey:'advanced',
358
+ placeholder: '是否显示设置',
359
+ multiple: false,
360
+ className: 'input80',
361
+ list: [
362
+ {label: '不显示', value: 'N'},
363
+ {label: '显示', value: 'Y'},
364
+ ]
253
365
  },
254
366
  {
255
367
  label: "头像右侧内容配置",
@@ -266,13 +378,37 @@ export default {
266
378
  groupKey: "style",
267
379
  },
268
380
  {
269
- label: "头像右侧内容文字颜色:",
270
- ele: "xd-color",
271
- valueKey: "rightContentTextColor",
272
- value: data.rightContentTextColor || '',
273
- placeholder: '请选择头像右侧内容文字颜色',
274
- groupKey: "style",
381
+ label: "头像右侧内容文字颜色",
382
+ ele: "xd-text-and-bgc",
383
+ groupKey:'style',
384
+ valueKey: 'logoutStyle',
385
+ value: data['logoutStyle'] || null,
386
+ setting: {
387
+ fontSize: true,
388
+ color: true,
389
+ bgColor: false,
390
+ weight: true,
391
+ selected:false
392
+ },
393
+ handleCustom({action, data}) {
394
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
395
+ .then(res => {
396
+ data.cb(res.list)
397
+ })
398
+ .catch(error => {
399
+ console.error(error);
400
+ data.cb([])
401
+ });
402
+ },
275
403
  },
404
+ // {
405
+ // label: "头像右侧内容文字颜色:",
406
+ // ele: "xd-color",
407
+ // valueKey: "rightContentTextColor",
408
+ // value: data.rightContentTextColor || '',
409
+ // placeholder: '请选择头像右侧内容文字颜色',
410
+ // groupKey: "style",
411
+ // },
276
412
  {
277
413
  label: "头像右侧内容内边距配置:",
278
414
  ele: 'xd-margin-padding',
@@ -314,11 +450,14 @@ export default {
314
450
  setting: {
315
451
  router: XdBus.getParentApi('getPagesTree'),
316
452
  },
317
- rules: [
318
- {required: true, message: '请选择编辑地址路径', trigger: 'change'},
319
- ],
320
453
  inline: false,
321
454
  },
455
+ {
456
+ label: '',
457
+ ele: 'slot',
458
+ slot: 'is_reference_title',
459
+ groupKey:'advanced',
460
+ },
322
461
  {
323
462
  label: '',
324
463
  ele: 'slot',