jufubao-base 1.0.287 → 1.0.289-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.
- package/get.package.path.js +2 -2
- package/package.json +1 -1
- package/src/components/CusCouponChose/CusCouponChose.vue +1027 -0
- package/src/components/CusCouponItem/CusCouponItem.vue +298 -0
- package/src/components/CusEnter/CusEnter.vue +360 -0
- package/src/components/CusPoster/CusPoster.vue +212 -0
- package/src/components/CusPoster/CusSwiperDot.vue +234 -0
- package/src/components/CusProduct/CusProduct.vue +372 -0
- package/src/components/CusShops/CusShops.vue +518 -0
- package/src/components/CusSwiperDot/CusSwiperDot.vue +234 -0
- package/src/components/CusTab/CusTab.vue +411 -0
- package/src/components/CusVideo/CusVideo.vue +170 -0
- package/src/components/JfbBaseCard/JfbBaseCard.vue +6 -0
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +6 -0
- package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +6 -0
- package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +6 -0
- package/src/components/JfbBaseChangeCompany/Api.js +18 -0
- package/src/components/JfbBaseChangeCompany/Attr.js +18 -0
- package/src/components/JfbBaseChangeCompany/JfbBaseChangeCompany.vue +201 -0
- package/src/components/JfbBaseChangeCompany/JfbBaseChangeCompanyLess.less +79 -0
- package/src/components/JfbBaseChangeCompany/JfbBaseChangeCompanyMixin.js +30 -0
- package/src/components/JfbBaseChangeCompany/Mock.js +7 -0
- package/src/components/JfbBaseChangeCompany/cusAttr/advanced.js +24 -0
- package/src/components/JfbBaseChangeCompany/cusAttr/content.js +27 -0
- package/src/components/JfbBaseChangeCompany/cusAttr/style.js +127 -0
- package/src/components/JfbBaseChoseCompany/Api.js +33 -0
- package/src/components/JfbBaseChoseCompany/Attr.js +18 -0
- package/src/components/JfbBaseChoseCompany/JfbBaseChoseCompany.vue +350 -0
- package/src/components/JfbBaseChoseCompany/JfbBaseChoseCompanyLess.less +79 -0
- package/src/components/JfbBaseChoseCompany/JfbBaseChoseCompanyMixin.js +30 -0
- package/src/components/JfbBaseChoseCompany/Mock.js +9 -0
- package/src/components/JfbBaseChoseCompany/cusAttr/advanced.js +24 -0
- package/src/components/JfbBaseChoseCompany/cusAttr/content.js +69 -0
- package/src/components/JfbBaseChoseCompany/cusAttr/style.js +327 -0
- package/src/components/JfbBaseFooter/Attr.js +10 -155
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +96 -43
- package/src/components/JfbBaseFooter/cusAttr/advanced.js +12 -0
- package/src/components/JfbBaseFooter/cusAttr/content.js +446 -0
- package/src/components/JfbBaseFooter/cusAttr/style.js +7 -0
- package/src/components/JfbBaseFooter/cusAttr/tools.js +17 -0
- package/src/components/JfbBaseNotice/JfbBaseNotice.vue +2 -3
- package/src/components/JfbBaseOrderList/Mock.js +1 -1
- package/src/components/JfbBaseTfkSearch/Api.js +15 -0
- package/src/components/JfbBaseTfkSearch/CustomList.vue +10 -0
- package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +247 -7
- package/src/components/JfbBaseTfkSearch/XdQueryFilter.vue +354 -0
- package/src/components/JfbBaseTfkSearch/XdQuerySort.vue +192 -0
- package/src/components/JfbBaseUserInfo/Attr.js +12 -0
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +8 -2
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetail.vue +3 -0
- package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffective.vue +3 -0
- package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndex.vue +17 -7
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +6 -2
- package/src/mixins/componentsMixins.js +363 -55
- package/src/mixins/posterMixins.js +27 -199
- package/src/mixins/productCompMixins.js +252 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
import {
|
|
3
|
+
dataVal,
|
|
4
|
+
statusDataVal,
|
|
5
|
+
statusShow
|
|
6
|
+
} from "@/utils/AttrTools";
|
|
7
|
+
|
|
8
|
+
export default (data, gValue, gColor, oldData) => {
|
|
9
|
+
return [
|
|
10
|
+
{
|
|
11
|
+
ele: 'title',
|
|
12
|
+
label: '基础',
|
|
13
|
+
size: 'small',
|
|
14
|
+
groupKey: 'content',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
label: '选择企业',
|
|
18
|
+
ele: 'xd-radio',
|
|
19
|
+
groupKey: 'content',
|
|
20
|
+
valueKey: 'titleStatus',
|
|
21
|
+
value: statusDataVal({ data, key: 'titleStatus', fields: ['title'], gValue }),
|
|
22
|
+
labelInline: true,
|
|
23
|
+
list: [
|
|
24
|
+
{ label: '默认', value: 'D' },
|
|
25
|
+
{ label: '自定义', value: 'C' },
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{ ele: 'group_start' },
|
|
29
|
+
{
|
|
30
|
+
label: '',
|
|
31
|
+
ele: 'el-input',
|
|
32
|
+
type: 'text',
|
|
33
|
+
valueKey: 'title',
|
|
34
|
+
labelInline: true,
|
|
35
|
+
value: dataVal({ data, key: 'title', dValue: '', gValue }),
|
|
36
|
+
hidden: !statusShow({ data, key: 'titleStatus', fields: ['title'], gValue }),
|
|
37
|
+
groupKey: 'content',
|
|
38
|
+
placeholder: '请输入提示内容',
|
|
39
|
+
className: 'input80',
|
|
40
|
+
},
|
|
41
|
+
{ ele: 'group_end' },
|
|
42
|
+
{
|
|
43
|
+
label: '添加企业',
|
|
44
|
+
ele: 'xd-radio',
|
|
45
|
+
groupKey: 'content',
|
|
46
|
+
valueKey: 'addTitleStatus',
|
|
47
|
+
value: statusDataVal({ data, key: 'addTitleStatus', fields: ['addTitle'], gValue }),
|
|
48
|
+
labelInline: true,
|
|
49
|
+
list: [
|
|
50
|
+
{ label: '默认', value: 'D' },
|
|
51
|
+
{ label: '自定义', value: 'C' },
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{ ele: 'group_start' },
|
|
55
|
+
{
|
|
56
|
+
label: '',
|
|
57
|
+
ele: 'el-input',
|
|
58
|
+
type: 'text',
|
|
59
|
+
valueKey: 'addTitle',
|
|
60
|
+
labelInline: true,
|
|
61
|
+
value: dataVal({ data, key: 'addTitle', dValue: '', gValue }),
|
|
62
|
+
hidden: !statusShow({ data, key: 'addTitleStatus', fields: ['addTitle'], gValue }),
|
|
63
|
+
groupKey: 'content',
|
|
64
|
+
placeholder: '请输入提示内容',
|
|
65
|
+
className: 'input80',
|
|
66
|
+
},
|
|
67
|
+
{ ele: 'group_end' },
|
|
68
|
+
]
|
|
69
|
+
}
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
import {
|
|
3
|
+
dataVal,
|
|
4
|
+
statusDataVal,
|
|
5
|
+
statusShow,
|
|
6
|
+
cRaBorShadow
|
|
7
|
+
} from "@/utils/AttrTools";
|
|
8
|
+
|
|
9
|
+
export default (data, gValue, gColor, oldData) => {
|
|
10
|
+
let defListBorder = cRaBorShadow(data, 'listBorder', {}, gValue);
|
|
11
|
+
let defListShadow = cRaBorShadow(data, 'listShadow', { old: ['is_shadow', 'is_shadow_w', 'is_shadow_bg'] }, gValue);
|
|
12
|
+
return [
|
|
13
|
+
{
|
|
14
|
+
ele: 'title',
|
|
15
|
+
label: '内容区',
|
|
16
|
+
size: 'small',
|
|
17
|
+
groupKey: 'style',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
label: '内边距',
|
|
21
|
+
ele: 'xd-radio',
|
|
22
|
+
groupKey: 'style',
|
|
23
|
+
valueKey: 'contentPaddingStatus',
|
|
24
|
+
value: statusDataVal({ data, key: 'contentPaddingStatus', fields: ['contentPadding'], gValue }),
|
|
25
|
+
labelInline: true,
|
|
26
|
+
list: [
|
|
27
|
+
{ label: '默认', value: 'D' },
|
|
28
|
+
{ label: '自定义', value: 'C' },
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{ ele: 'group_start' },
|
|
32
|
+
{
|
|
33
|
+
label: '',
|
|
34
|
+
groupKey: 'style',
|
|
35
|
+
ele: 'xd-margin-padding',
|
|
36
|
+
valueKey: 'contentPadding',
|
|
37
|
+
value: dataVal({
|
|
38
|
+
data,
|
|
39
|
+
key: 'contentPadding',
|
|
40
|
+
dValue: { top: 36, bottom: 0, left: 20, right: 20 },
|
|
41
|
+
gValue,
|
|
42
|
+
isPM: true,
|
|
43
|
+
}),
|
|
44
|
+
setting: {
|
|
45
|
+
type: 'padding',
|
|
46
|
+
},
|
|
47
|
+
placeholder: '请填充设置',
|
|
48
|
+
hidden: !statusShow({ data, key: 'contentPaddingStatus', fields: ['contentPadding'], gValue }),
|
|
49
|
+
},
|
|
50
|
+
{ ele: 'group_end' },
|
|
51
|
+
{
|
|
52
|
+
ele: 'title',
|
|
53
|
+
label: '企业列表样式',
|
|
54
|
+
size: 'small',
|
|
55
|
+
groupKey: 'style',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
label: '内边距',
|
|
59
|
+
ele: 'xd-radio',
|
|
60
|
+
groupKey: 'style',
|
|
61
|
+
valueKey: 'listPaddingStatus',
|
|
62
|
+
value: statusDataVal({ data, key: 'listPaddingStatus', fields: ['listPadding'], gValue }),
|
|
63
|
+
labelInline: true,
|
|
64
|
+
list: [
|
|
65
|
+
{ label: '默认', value: 'D' },
|
|
66
|
+
{ label: '自定义', value: 'C' },
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
{ ele: 'group_start' },
|
|
70
|
+
{
|
|
71
|
+
label: '',
|
|
72
|
+
groupKey: 'style',
|
|
73
|
+
ele: 'xd-margin-padding',
|
|
74
|
+
valueKey: 'listPadding',
|
|
75
|
+
value: dataVal({
|
|
76
|
+
data,
|
|
77
|
+
key: 'listPadding',
|
|
78
|
+
dValue: { top: 40, bottom: 40, left: 32, right: 32 },
|
|
79
|
+
gValue,
|
|
80
|
+
isPM: true,
|
|
81
|
+
}),
|
|
82
|
+
setting: {
|
|
83
|
+
type: 'padding',
|
|
84
|
+
},
|
|
85
|
+
placeholder: '请填充设置',
|
|
86
|
+
hidden: !statusShow({ data, key: 'listPaddingStatus', fields: ['listPadding'], gValue }),
|
|
87
|
+
},
|
|
88
|
+
{ ele: 'group_end' },
|
|
89
|
+
{
|
|
90
|
+
label: '行间距',
|
|
91
|
+
ele: 'xd-radio',
|
|
92
|
+
groupKey: 'style',
|
|
93
|
+
valueKey: 'listSpacingStatus',
|
|
94
|
+
value: statusDataVal({ data, key: 'listSpacingStatus', fields: ['listSpacing'], gValue }),
|
|
95
|
+
labelInline: true,
|
|
96
|
+
list: [
|
|
97
|
+
{ label: '默认', value: 'D' },
|
|
98
|
+
{ label: '自定义', value: 'C' },
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
{ ele: 'group_start' },
|
|
102
|
+
{
|
|
103
|
+
label: "间距",
|
|
104
|
+
groupKey: 'style',
|
|
105
|
+
ele: 'xd-slider',
|
|
106
|
+
valueKey: "listSpacing",
|
|
107
|
+
value: dataVal({ data, key: 'listSpacing', dValue: '24', gValue }),
|
|
108
|
+
hidden: !statusShow({ data, key: 'listSpacingStatus', fields: ['listSpacing'], gValue }),
|
|
109
|
+
className: "input100",
|
|
110
|
+
labelInline: true,
|
|
111
|
+
setting: {
|
|
112
|
+
min: 0,
|
|
113
|
+
max: 100,
|
|
114
|
+
step: 1,
|
|
115
|
+
showStops: false,
|
|
116
|
+
showInput: false,
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{ ele: 'group_end' },
|
|
120
|
+
{
|
|
121
|
+
label: '圆角',
|
|
122
|
+
ele: 'xd-radio',
|
|
123
|
+
groupKey: 'style',
|
|
124
|
+
valueKey: 'listRadiusStatus',
|
|
125
|
+
value: statusDataVal({ data, key: 'listRadiusStatus', fields: ['listRadius'], gValue }),
|
|
126
|
+
labelInline: true,
|
|
127
|
+
list: [
|
|
128
|
+
{ label: '默认', value: 'D' },
|
|
129
|
+
{ label: '无圆角', value: 'N' },
|
|
130
|
+
{ label: '自定义', value: 'C' },
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
{ ele: 'group_start' },
|
|
134
|
+
{
|
|
135
|
+
label: "",
|
|
136
|
+
ele: 'xd-site-select-list',
|
|
137
|
+
valueKey: 'listRadius',
|
|
138
|
+
groupKey: 'style',
|
|
139
|
+
value: dataVal({
|
|
140
|
+
data,
|
|
141
|
+
key: 'listRadius',
|
|
142
|
+
dValue: '8',
|
|
143
|
+
gValue,
|
|
144
|
+
}),
|
|
145
|
+
placeholder: '请选择内容圆角设置',
|
|
146
|
+
multiple: false,
|
|
147
|
+
hidden: !statusShow({ data, key: 'listRadiusStatus', fields: ['listRadius'], gValue }),
|
|
148
|
+
className: 'input80',
|
|
149
|
+
handleCustom({ action, data }) {
|
|
150
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
|
|
151
|
+
.then(res => {
|
|
152
|
+
data.cb(res.list)
|
|
153
|
+
})
|
|
154
|
+
.catch(error => {
|
|
155
|
+
console.error(error);
|
|
156
|
+
});
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
{ ele: 'group_end' },
|
|
160
|
+
{
|
|
161
|
+
label: '描边',
|
|
162
|
+
ele: 'xd-border',
|
|
163
|
+
labelInline: true,
|
|
164
|
+
groupKey: 'style',
|
|
165
|
+
valueKey: 'listBorder',
|
|
166
|
+
value: defListBorder,
|
|
167
|
+
setting: {
|
|
168
|
+
selected: defListBorder.type,
|
|
169
|
+
isRadio: true,//启用editx默认
|
|
170
|
+
isDef: true, //启动默认选项
|
|
171
|
+
//==设置默认值==
|
|
172
|
+
color: '#e5e5e5',
|
|
173
|
+
width: '0',
|
|
174
|
+
style: 'solid'
|
|
175
|
+
//==设置默认值==
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
label: '投影',
|
|
180
|
+
ele: 'xd-shadow',
|
|
181
|
+
labelInline: true,
|
|
182
|
+
groupKey: 'style',
|
|
183
|
+
valueKey: 'listShadow',
|
|
184
|
+
value: defListShadow,
|
|
185
|
+
className: 'input100',
|
|
186
|
+
setting: {
|
|
187
|
+
selected: defListShadow.type,
|
|
188
|
+
isRadio: true,
|
|
189
|
+
isDef: true,
|
|
190
|
+
default: {
|
|
191
|
+
color: 'rgba(0,0,0,.05)',
|
|
192
|
+
width: '10',
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
handleCustom({ action, data }) {
|
|
196
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
|
|
197
|
+
.then(res => {
|
|
198
|
+
res.list = res.list.filter(item => {
|
|
199
|
+
return item.label !== '无';
|
|
200
|
+
});
|
|
201
|
+
data.cb(res.list)
|
|
202
|
+
})
|
|
203
|
+
.catch(error => {
|
|
204
|
+
console.error(error);
|
|
205
|
+
data.cb([])
|
|
206
|
+
});
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
label: '文字',
|
|
211
|
+
ele: 'xd-radio',
|
|
212
|
+
groupKey: 'style',
|
|
213
|
+
valueKey: 'listFontStyleStatus',
|
|
214
|
+
value: statusDataVal({ data, key: 'listFontStyleStatus', fields: ['listFontStyle'], gValue }),
|
|
215
|
+
labelInline: true,
|
|
216
|
+
list: [
|
|
217
|
+
{ label: '默认', value: 'D' },
|
|
218
|
+
{ label: '自定义', value: 'C' },
|
|
219
|
+
]
|
|
220
|
+
},
|
|
221
|
+
{ ele: 'group_start' },
|
|
222
|
+
{
|
|
223
|
+
label: '',
|
|
224
|
+
ele: 'xd-text-and-bgc',
|
|
225
|
+
groupKey: 'style',
|
|
226
|
+
valueKey: 'listFontStyle',
|
|
227
|
+
value: dataVal({ data, key: 'listFontStyle', dValue: null, gValue }),
|
|
228
|
+
hidden: !statusShow({ data, key: 'listFontStyleStatus', fields: ['listFontStyle'], gValue }),
|
|
229
|
+
setting: {
|
|
230
|
+
fontSize: false,
|
|
231
|
+
weight: false,
|
|
232
|
+
selected: false,
|
|
233
|
+
bgColor: false,
|
|
234
|
+
default: {
|
|
235
|
+
color: '#333',
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
handleCustom({ action, data }) {
|
|
239
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
|
|
240
|
+
.then(res => {
|
|
241
|
+
data.cb(res.list)
|
|
242
|
+
})
|
|
243
|
+
.catch(error => {
|
|
244
|
+
console.error(error);
|
|
245
|
+
data.cb([])
|
|
246
|
+
});
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
{ ele: 'group_end' },
|
|
250
|
+
{
|
|
251
|
+
ele: 'title',
|
|
252
|
+
label: '添加企业样式',
|
|
253
|
+
size: 'small',
|
|
254
|
+
groupKey: 'style',
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
label: '背景',
|
|
258
|
+
ele: 'xd-radio',
|
|
259
|
+
groupKey: 'style',
|
|
260
|
+
valueKey: 'addBackgroundStatus',
|
|
261
|
+
value: statusDataVal({ data, key: 'addBackgroundStatus', fields: ['addBackground'], gValue }),
|
|
262
|
+
labelInline: true,
|
|
263
|
+
list: [
|
|
264
|
+
{ label: '默认', value: 'D' },
|
|
265
|
+
{ label: '自定义', value: 'C' },
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
{ ele: 'group_start' },
|
|
269
|
+
{
|
|
270
|
+
label: '背景颜色',
|
|
271
|
+
ele: 'xd-color',
|
|
272
|
+
labelInline: true,
|
|
273
|
+
valueKey: 'addBackground',
|
|
274
|
+
value: dataVal({ data, key: 'addBackground', dValue: '#F8F8F8', gValue }),
|
|
275
|
+
hidden: !statusShow({ data, key: 'addBackgroundStatus', fields: ['addBackground'], gValue }),
|
|
276
|
+
placeholder: '请选择背景颜色',
|
|
277
|
+
className: 'input80',
|
|
278
|
+
groupKey: 'style',
|
|
279
|
+
setting: {
|
|
280
|
+
showAlpha: true
|
|
281
|
+
},
|
|
282
|
+
},
|
|
283
|
+
{ ele: 'group_end' },
|
|
284
|
+
{
|
|
285
|
+
label: '文字颜色',
|
|
286
|
+
ele: 'xd-radio',
|
|
287
|
+
groupKey: 'style',
|
|
288
|
+
valueKey: 'addFontStyleStatus',
|
|
289
|
+
value: statusDataVal({ data, key: 'addFontStyleStatus', fields: ['addFontStyle'], gValue }),
|
|
290
|
+
labelInline: true,
|
|
291
|
+
list: [
|
|
292
|
+
{ label: '默认', value: 'D' },
|
|
293
|
+
{ label: '自定义', value: 'C' },
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
{ ele: 'group_start' },
|
|
297
|
+
{
|
|
298
|
+
label: '',
|
|
299
|
+
ele: 'xd-text-and-bgc',
|
|
300
|
+
groupKey: 'style',
|
|
301
|
+
valueKey: 'addFontStyle',
|
|
302
|
+
value: dataVal({ data, key: 'addFontStyle', dValue: {}, gValue }),
|
|
303
|
+
hidden: !statusShow({ data, key: 'addFontStyleStatus', fields: ['addFontStyle'], gValue }),
|
|
304
|
+
setting: {
|
|
305
|
+
fontSize: false,
|
|
306
|
+
weight: false,
|
|
307
|
+
bgColor: false,
|
|
308
|
+
selected: false,
|
|
309
|
+
default: {
|
|
310
|
+
color: '#999999',
|
|
311
|
+
},
|
|
312
|
+
isBorder: false,
|
|
313
|
+
},
|
|
314
|
+
handleCustom({ action, data }) {
|
|
315
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
|
|
316
|
+
.then(res => {
|
|
317
|
+
data.cb(res.list)
|
|
318
|
+
})
|
|
319
|
+
.catch(error => {
|
|
320
|
+
console.error(error);
|
|
321
|
+
data.cb([])
|
|
322
|
+
});
|
|
323
|
+
},
|
|
324
|
+
},
|
|
325
|
+
{ ele: 'group_end' },
|
|
326
|
+
]
|
|
327
|
+
}
|
|
@@ -1,163 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import style from "./cusAttr/style";
|
|
4
|
+
import advanced from "./cusAttr/advanced";
|
|
5
|
+
import content from "./cusAttr/content";
|
|
3
6
|
|
|
4
7
|
export default {
|
|
5
8
|
style: [],
|
|
6
|
-
|
|
7
|
-
content:(data)=>{
|
|
8
|
-
let footerSettingImage = [];
|
|
9
|
-
let footerSetting = [];
|
|
10
|
-
if(data['footerSettingImage'] && data['footerSettingImage'].length > 0 ) {
|
|
11
|
-
footerSettingImage = data['footerSettingImage'];
|
|
12
|
-
}
|
|
13
|
-
if(data['footer-setting'] && data['footer-setting'].length > 0){
|
|
14
|
-
footerSetting = data['footer-setting'];
|
|
15
|
-
footerSetting.map((item,index)=>{
|
|
16
|
-
if(!footerSettingImage[index]) footerSettingImage[index] = {};
|
|
17
|
-
footerSettingImage[index] = Object.assign({},JSON.parse(JSON.stringify(item)),footerSettingImage[index])
|
|
18
|
-
})
|
|
19
|
-
}
|
|
9
|
+
content: (data, gValue, gColor, oldData={}) => {
|
|
20
10
|
return [
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
groupKey: 'advanced',
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
label: '背景图设置:',
|
|
29
|
-
ele: 'xd-upload',
|
|
30
|
-
valueKey: 'backgroundImage',
|
|
31
|
-
groupKey:'content',
|
|
32
|
-
value: data.backgroundImage || {},
|
|
33
|
-
defaultValue: data.backgroundImage || null,
|
|
34
|
-
slot: true,
|
|
35
|
-
oneWidth: 375,
|
|
36
|
-
oneHeight: 55,
|
|
37
|
-
elinputClassName: 'input40',
|
|
38
|
-
tipsformet: '上传文件格式:@imageType@,不超过@size@MB。建议尺寸:<span style="color:red">750*110</span>像素',
|
|
39
|
-
type: ['jpg', 'png', 'jpeg'],
|
|
40
|
-
styleType: 'one',
|
|
41
|
-
uploadType: 'aliyun',
|
|
42
|
-
size: .5,
|
|
43
|
-
action: 'action',
|
|
44
|
-
sort: true,
|
|
45
|
-
maxlen: 1,
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
label: '背景颜色:',
|
|
49
|
-
ele: 'xd-color',
|
|
50
|
-
valueKey: 'bgColor',
|
|
51
|
-
groupKey:'content',
|
|
52
|
-
value: data['bgColor'] || '',
|
|
53
|
-
placeholder: '请选择背景颜色',
|
|
54
|
-
setting: {
|
|
55
|
-
isAlpha: false
|
|
56
|
-
},
|
|
57
|
-
classNmae: 'input80',
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
label: '边框颜色:',
|
|
61
|
-
ele: 'xd-color',
|
|
62
|
-
valueKey: 'borderColor',
|
|
63
|
-
groupKey:'content',
|
|
64
|
-
value: data['borderColor'] || '',
|
|
65
|
-
placeholder: '请选择边框颜色',
|
|
66
|
-
setting: {
|
|
67
|
-
isAlpha: false
|
|
68
|
-
},
|
|
69
|
-
classNmae: 'input80',
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
label: '菜单文字颜色:',
|
|
73
|
-
ele: 'xd-color',
|
|
74
|
-
valueKey: 'color',
|
|
75
|
-
groupKey:'content',
|
|
76
|
-
value: data['color'] || '',
|
|
77
|
-
setting: {
|
|
78
|
-
isAlpha: false
|
|
79
|
-
},
|
|
80
|
-
placeholder: '请选择菜单文字颜色',
|
|
81
|
-
classNmae: 'input80',
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
label: '菜单文字选中颜色:',
|
|
85
|
-
ele: 'xd-color',
|
|
86
|
-
valueKey: 'selectedColor',
|
|
87
|
-
groupKey:'content',
|
|
88
|
-
setting: {
|
|
89
|
-
isAlpha: false
|
|
90
|
-
},
|
|
91
|
-
value:data['selectedColor'] || '',
|
|
92
|
-
placeholder: '请选择菜单文字选中颜色',
|
|
93
|
-
classNmae: 'input80',
|
|
94
|
-
},
|
|
95
|
-
footerSetting.length > 0 && {
|
|
96
|
-
label: '菜单图片配置:',
|
|
97
|
-
ele: 'xd-footer-setting',
|
|
98
|
-
valueKey: 'footerSettingImage',
|
|
99
|
-
groupKey:'content',
|
|
100
|
-
value: footerSettingImage,
|
|
101
|
-
setting: {
|
|
102
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
103
|
-
hideAdd: true,
|
|
104
|
-
showField: {
|
|
105
|
-
path: false,
|
|
106
|
-
icon: false,
|
|
107
|
-
notice: false,
|
|
108
|
-
image: true,
|
|
109
|
-
actImage: true
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
handleCustom({action,data}){
|
|
113
|
-
if(action === 'number') {
|
|
114
|
-
XdBus.getParentApi('getOptionsNoticeNumber')()
|
|
115
|
-
.then(res => {
|
|
116
|
-
data.cb(res.list)
|
|
117
|
-
})
|
|
118
|
-
.catch();
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
|
|
123
|
-
{
|
|
124
|
-
label: '菜单配置:',
|
|
125
|
-
ele: 'xd-footer-setting',
|
|
126
|
-
valueKey: 'footer-setting',
|
|
127
|
-
groupKey:'advanced',
|
|
128
|
-
value: footerSetting,
|
|
129
|
-
setting: {
|
|
130
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
131
|
-
icons:ICONS,
|
|
132
|
-
showField: {
|
|
133
|
-
path: true,
|
|
134
|
-
icon: true,
|
|
135
|
-
notice: true,
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
handleCustom({action,data}){
|
|
139
|
-
console.log(`handleCustom.${action}`, data);
|
|
140
|
-
if(action === 'number') {
|
|
141
|
-
XdBus.getParentApi('getOptionsNoticeNumber')()
|
|
142
|
-
.then(res => {
|
|
143
|
-
data.cb(res.list)
|
|
144
|
-
})
|
|
145
|
-
.catch();
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
inline: false,
|
|
149
|
-
notice: '设置底部菜单的链接地址1、标题(最多<sapn style="color: red">五个汉字</sapn>)、ICON图标(<a href="https://www.iconfont.cn/manage/index?spm=a313x.7781069.1998910419.db775f1f3&manage_type=myprojects&projectId=3378319&keyword=&project_type=&page=" style="color: blue" target="_blank">ICONFONT库</a>)、ICON大小(单位:<sapn style="color: red">像素</sapn>)和是否有消息数量显示(无数量显示可以不填写)',
|
|
150
|
-
rules: [
|
|
151
|
-
{required: true, message: '请添加内容', trigger: 'change'},
|
|
152
|
-
],
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
label: '',
|
|
156
|
-
ele: 'slot',
|
|
157
|
-
slot: 'is_reference',
|
|
158
|
-
groupKey: 'advanced',
|
|
159
|
-
},
|
|
160
|
-
].filter(i=>i);
|
|
11
|
+
...content(data, gValue, gColor, oldData),
|
|
12
|
+
...style(data, gValue, gColor, oldData),
|
|
13
|
+
...advanced(data, gValue, gColor,oldData ),
|
|
14
|
+
].filter(i => i)
|
|
161
15
|
},
|
|
16
|
+
advanced: [],
|
|
162
17
|
};
|
|
163
18
|
|