jufubao-mall 2.0.21 → 2.0.23-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/package.json +1 -1
- package/src/components/CusProduct/CusProduct.vue +1 -1
- package/src/components/JfbMallBrandWall/Attr.js +10 -449
- package/src/components/JfbMallBrandWall/JfbMallBrandWall.vue +783 -308
- package/src/components/JfbMallBrandWall/cusAttr/advanced.js +61 -0
- package/src/components/JfbMallBrandWall/cusAttr/brand.js +341 -0
- package/src/components/JfbMallBrandWall/cusAttr/content.js +251 -0
- package/src/components/JfbMallBrandWall/cusAttr/style.js +252 -0
- package/src/components/JfbMallBrandWall/cusAttr/tab.js +471 -0
- package/src/components/JfbMallHomeProductList/JfbMallHomeProductList.vue +3 -1
- package/src/components/JfbMallHomeProductList/cusAttr/content.js +1 -2
- package/src/components/JfbMallNetworkMedia/Api.js +58 -0
- package/src/components/JfbMallNetworkMedia/Attr.js +20 -0
- package/src/components/JfbMallNetworkMedia/JfbMallNetworkMedia.vue +84 -0
- package/src/components/JfbMallNetworkMedia/JfbMallNetworkMediaLess.less +80 -0
- package/src/components/JfbMallNetworkMedia/JfbMallNetworkMediaMixin.js +30 -0
- package/src/components/JfbMallNetworkMedia/Mock.js +13 -0
- package/src/components/JfbMallNetworkMedia/cusAttr/advanced.js +60 -0
- package/src/components/JfbMallNetworkMedia/cusAttr/content.js +125 -0
- package/src/components/JfbMallNetworkMedia/cusAttr/filter.js +333 -0
- package/src/components/JfbMallNetworkMedia/cusAttr/font.js +114 -0
- package/src/components/JfbMallNetworkMedia/cusAttr/icon.js +298 -0
- package/src/components/{JfbMallProductList → JfbMallNetworkMedia/cusAttr}/style.js +15 -50
- package/src/components/JfbMallProductInfo/JfbMallProductInfo.vue +27 -23
- package/src/components/JfbMallProductInfo/cusAttr/content.js +1 -1
- package/src/components/JfbMallProductInfoV2/Api.js +1 -1
- package/src/components/JfbMallProductInfoV2/Attr.js +134 -41
- package/src/components/JfbMallProductInfoV2/JfbMallProductInfoV2.vue +136 -127
- package/src/components/JfbMallProductInfoV2/Mock.js +38 -10
- package/src/components/JfbMallProductList/Api.js +7 -7
- package/src/components/JfbMallProductList/Attr.js +7 -762
- package/src/components/JfbMallProductList/ComFilterQuery.vue +950 -0
- package/src/components/JfbMallProductList/JfbMallProductList.vue +807 -792
- package/src/components/JfbMallProductList/Mock.js +168 -255
- package/src/components/JfbMallProductList/XdCateV1.vue +335 -122
- package/src/components/JfbMallProductList/XdCateV2.vue +144 -76
- package/src/components/JfbMallProductList/XdQueryCommon.vue +189 -0
- package/src/components/JfbMallProductList/XdQueryFilter.vue +94 -76
- package/src/components/JfbMallProductList/XdQuerySort.vue +100 -109
- package/src/components/JfbMallProductList/cateMixins.js +103 -0
- package/src/components/JfbMallProductList/{advanced.js → cusAttr/advanced.js} +12 -4
- package/src/components/JfbMallProductList/cusAttr/content.js +465 -0
- package/src/components/JfbMallProductList/cusAttr/filter.js +333 -0
- package/src/components/JfbMallProductList/cusAttr/font.js +114 -0
- package/src/components/JfbMallProductList/cusAttr/icon.js +298 -0
- package/src/components/JfbMallProductList/cusAttr/style.js +91 -0
- package/src/components/JfbMallRecommendProduct/Attr.js +8 -366
- package/src/components/JfbMallRecommendProduct/JfbMallRecommendProduct.vue +218 -187
- package/src/components/JfbMallRecommendProduct/Mock.js +236 -693
- package/src/components/JfbMallRecommendProduct/cusAttr/advanced.js +79 -0
- package/src/components/JfbMallRecommendProduct/cusAttr/content.js +202 -0
- package/src/components/JfbMallRecommendProduct/cusAttr/style.js +594 -0
- package/src/components/JfbMallResourceShopList/Mock.js +4 -6
- package/src/components/JfbMallTestNormal/JfbMallTestNormal.vue +23 -2
- package/src/components/JfbMallTestNormal/data.js +152 -0
- package/src/mixins/componentsMixins.js +1 -0
- package/src/mixins/productCompMixins.js +29 -19
- package/src/components/JfbMallProductList/PosterAttr.js +0 -327
- package/src/components/JfbMallProductList/ProductAttr.js +0 -164
- package/src/components/JfbMallProductList/XdQueryBrand.vue +0 -150
|
@@ -1,378 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
import ProductAttr from "./ProductAttr";
|
|
3
|
-
|
|
3
|
+
import advanced from "./cusAttr/advanced";
|
|
4
|
+
import content from "./cusAttr/content";
|
|
5
|
+
import style from "./cusAttr/style";
|
|
4
6
|
/**
|
|
5
7
|
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
6
8
|
*/
|
|
7
9
|
export default {
|
|
8
10
|
style: [],
|
|
9
|
-
content: (data) => {
|
|
11
|
+
content: (data, gValue, gColor, oldData={}) => {
|
|
10
12
|
return [
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
valueKey: 'isShowTitle',
|
|
15
|
-
value: data['isShowTitle'] || 'Y',
|
|
16
|
-
groupKey:'content',
|
|
17
|
-
labelInline: true,
|
|
18
|
-
multiple: false,
|
|
19
|
-
list: [
|
|
20
|
-
{label: '展示', value: 'Y'},
|
|
21
|
-
{label: '隐藏', value: 'N'},
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
|
-
data['isShowTitle'] === 'Y' && {
|
|
25
|
-
label: "自定义标题名称",
|
|
26
|
-
ele: "el-input",
|
|
27
|
-
valueKey: "recommendTitle",
|
|
28
|
-
value: data.recommendTitle || "",
|
|
29
|
-
className: "input80",
|
|
30
|
-
groupKey:'content',
|
|
31
|
-
labelInline: true,
|
|
32
|
-
indent: true,
|
|
33
|
-
inline:false,
|
|
34
|
-
notice:'设置自定义标题名称,默认值:<span style="color:red">为您推荐</span>'
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
label: "列表商品标签过滤条件:",
|
|
38
|
-
ele: "xd-check",
|
|
39
|
-
valueKey: "marketTags",
|
|
40
|
-
labelInline: true,
|
|
41
|
-
value: data.marketTags || ['rec'],
|
|
42
|
-
groupKey:'content',
|
|
43
|
-
list: [
|
|
44
|
-
{label: "推荐", value: "rec"},
|
|
45
|
-
{label: "新品", value: "new"},
|
|
46
|
-
{label: "爆款", value: "hot"},
|
|
47
|
-
],
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
//商品配置
|
|
52
|
-
...ProductAttr(data),
|
|
53
|
-
|
|
54
|
-
//style
|
|
55
|
-
{
|
|
56
|
-
label: '边距设置:',
|
|
57
|
-
ele: 'xd-margin-padding',
|
|
58
|
-
groupKey:'style',
|
|
59
|
-
valueKey: 'contMargin',
|
|
60
|
-
value: data['contMargin'] || null,
|
|
61
|
-
setting: {
|
|
62
|
-
type: 'margin',
|
|
63
|
-
},
|
|
64
|
-
inline: false,
|
|
65
|
-
notice: '边距设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">0</span> 像素',
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
ele: 'title',
|
|
69
|
-
label: '标题设置',
|
|
70
|
-
size: 'small',
|
|
71
|
-
groupKey:'style',
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
label: '样式设置:',
|
|
75
|
-
ele: 'xd-text-and-bgc',
|
|
76
|
-
groupKey:'style',
|
|
77
|
-
valueKey: 'titleStyle',
|
|
78
|
-
value: data['titleStyle'] || null,
|
|
79
|
-
setting: {
|
|
80
|
-
fontSize: true,
|
|
81
|
-
weight:true,
|
|
82
|
-
selected: false
|
|
83
|
-
},
|
|
84
|
-
handleCustom({action, data}) {
|
|
85
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
86
|
-
.then(res => {
|
|
87
|
-
data.cb(res.list)
|
|
88
|
-
})
|
|
89
|
-
.catch(error => {
|
|
90
|
-
console.error(error);
|
|
91
|
-
data.cb([])
|
|
92
|
-
});
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
label: '圆角设置:',
|
|
97
|
-
ele: 'xd-site-select-list',
|
|
98
|
-
valueKey: 'titleRadius',
|
|
99
|
-
value: data['titleRadius'] || '0',
|
|
100
|
-
groupKey:'style',
|
|
101
|
-
labelInline: true,
|
|
102
|
-
placeholder: '请选择圆角设置',
|
|
103
|
-
multiple: false,
|
|
104
|
-
className: 'input80',
|
|
105
|
-
handleCustom({action, data}) {
|
|
106
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
107
|
-
.then(res => {
|
|
108
|
-
data.cb(res.list)
|
|
109
|
-
})
|
|
110
|
-
.catch(error => {
|
|
111
|
-
console.error(error);
|
|
112
|
-
});
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
ele: 'title',
|
|
117
|
-
label: '内容设置',
|
|
118
|
-
size: 'small',
|
|
119
|
-
groupKey:'style',
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
label: "列间距:",
|
|
123
|
-
groupKey: 'style',
|
|
124
|
-
ele: 'xd-slider',
|
|
125
|
-
valueKey: "columnSpacing",
|
|
126
|
-
value: data['columnSpacing'] === undefined?20:data['columnSpacing'],
|
|
127
|
-
className: "input80",
|
|
128
|
-
labelInline: true,
|
|
129
|
-
setting:{
|
|
130
|
-
min: 0,//最小值
|
|
131
|
-
max: 100, //最小值
|
|
132
|
-
step:1, //步长
|
|
133
|
-
showStops:false,//显示间断点
|
|
134
|
-
showInput:false,//显示输入框
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
label: "行间距:",
|
|
139
|
-
groupKey: 'style',
|
|
140
|
-
ele: 'xd-slider',
|
|
141
|
-
valueKey: "rowSpacing",
|
|
142
|
-
value: data['rowSpacing'] === undefined?20:data['rowSpacing'],
|
|
143
|
-
className: "input80",
|
|
144
|
-
labelInline: true,
|
|
145
|
-
setting:{
|
|
146
|
-
min: 0,//最小值
|
|
147
|
-
max: 100, //最小值
|
|
148
|
-
step:1, //步长
|
|
149
|
-
showStops:false,//显示间断点
|
|
150
|
-
showInput:false,//显示输入框
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
label: '边距设置:',
|
|
155
|
-
ele: 'xd-margin-padding',
|
|
156
|
-
groupKey:'style',
|
|
157
|
-
valueKey: 'contPadding',
|
|
158
|
-
value: data['contPadding'] || null,
|
|
159
|
-
setting: {
|
|
160
|
-
type: 'margin',
|
|
161
|
-
},
|
|
162
|
-
inline: false,
|
|
163
|
-
notice: '边距设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
ele: 'line',
|
|
167
|
-
label: '商品设置',
|
|
168
|
-
size: 'small',
|
|
169
|
-
groupKey:'style',
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
label: '背景颜色:',
|
|
173
|
-
ele: 'xd-color',
|
|
174
|
-
labelInline: true,
|
|
175
|
-
valueKey: 'contBgColor',
|
|
176
|
-
value: data['contBgColor'] || '',
|
|
177
|
-
placeholder: '请选择背景颜色',
|
|
178
|
-
classNmae: 'input80',
|
|
179
|
-
groupKey:'style',
|
|
180
|
-
inline: false,
|
|
181
|
-
setting: {
|
|
182
|
-
showAlpha: true
|
|
183
|
-
},
|
|
184
|
-
notice: '建议使用浅色色值,切勿使用深色色值'
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
label: '品牌颜色:',
|
|
188
|
-
ele: 'xd-color',
|
|
189
|
-
valueKey: 'brandColor',
|
|
190
|
-
labelInline: true,
|
|
191
|
-
value: data['brandColor'] || '',
|
|
192
|
-
placeholder: '请选择品牌颜色',
|
|
193
|
-
classNmae: 'input80',
|
|
194
|
-
groupKey:'style',
|
|
195
|
-
setting: {
|
|
196
|
-
showAlpha: true
|
|
197
|
-
},
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
label: "商品与信息之间间距:",
|
|
201
|
-
groupKey: 'style',
|
|
202
|
-
ele: 'xd-slider',
|
|
203
|
-
valueKey: "contSpacing",
|
|
204
|
-
value: data['contSpacing'] === undefined?20:data['contSpacing'],
|
|
205
|
-
className: "input80",
|
|
206
|
-
labelInline: true,
|
|
207
|
-
setting:{
|
|
208
|
-
min: 0,//最小值
|
|
209
|
-
max: 100, //最小值
|
|
210
|
-
step:1, //步长
|
|
211
|
-
showStops:false,//显示间断点
|
|
212
|
-
showInput:false,//显示输入框
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
label: '填充设置:',
|
|
217
|
-
ele: 'xd-margin-padding',
|
|
218
|
-
groupKey:'style',
|
|
219
|
-
valueKey: 'itemPadding',
|
|
220
|
-
value: data['itemPadding'] || null,
|
|
221
|
-
setting: {
|
|
222
|
-
type: 'padding',
|
|
223
|
-
},
|
|
224
|
-
inline: false,
|
|
225
|
-
notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
label: "圆角设置:",
|
|
229
|
-
groupKey: 'style',
|
|
230
|
-
ele: 'xd-slider',
|
|
231
|
-
valueKey: "contRadius",
|
|
232
|
-
value: data['contRadius'] === undefined?0:data['contRadius'],
|
|
233
|
-
className: "input80",
|
|
234
|
-
setting:{
|
|
235
|
-
min: 0,
|
|
236
|
-
max: 80,
|
|
237
|
-
step:1,
|
|
238
|
-
showStops:false,
|
|
239
|
-
},
|
|
240
|
-
labelInline: true,
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
label: "图片圆角设置:",
|
|
244
|
-
groupKey: 'style',
|
|
245
|
-
ele: 'xd-slider',
|
|
246
|
-
valueKey: "imageRadius",
|
|
247
|
-
value: data['imageRadius'] === undefined?0:data['imageRadius'],
|
|
248
|
-
className: "input80",
|
|
249
|
-
setting:{
|
|
250
|
-
min: 0,
|
|
251
|
-
max: 80,
|
|
252
|
-
step:1,
|
|
253
|
-
showStops:false,
|
|
254
|
-
},
|
|
255
|
-
labelInline: true,
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
label: '投影设置:',
|
|
259
|
-
ele: 'xd-shadow',
|
|
260
|
-
groupKey:'style',
|
|
261
|
-
labelInline: true,
|
|
262
|
-
valueKey: 'contShadow',
|
|
263
|
-
value: data['contShadow'] || '',
|
|
264
|
-
setting: {
|
|
265
|
-
selected: 'N',
|
|
266
|
-
},
|
|
267
|
-
handleCustom({action, data}) {
|
|
268
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
269
|
-
.then(res => {
|
|
270
|
-
data.cb(res.list)
|
|
271
|
-
})
|
|
272
|
-
.catch(error => {
|
|
273
|
-
console.error(error);
|
|
274
|
-
data.cb([])
|
|
275
|
-
});
|
|
276
|
-
},
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
label: '边框设置:',
|
|
280
|
-
ele: 'xd-border',
|
|
281
|
-
labelInline: true,
|
|
282
|
-
groupKey:'style',
|
|
283
|
-
valueKey: 'contBorder',
|
|
284
|
-
value: data['contBorder'] || '',
|
|
285
|
-
setting: {
|
|
286
|
-
selected:'N'
|
|
287
|
-
},
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
label: '商品名称样式设置:',
|
|
291
|
-
ele: 'xd-text-and-bgc',
|
|
292
|
-
groupKey:'style',
|
|
293
|
-
valueKey: 'contStyle',
|
|
294
|
-
value: data['contStyle'] || null,
|
|
295
|
-
setting: {
|
|
296
|
-
fontSize: true,
|
|
297
|
-
weight:true,
|
|
298
|
-
bgColor:false,
|
|
299
|
-
selected:false,
|
|
300
|
-
default:{
|
|
301
|
-
color: '#333',
|
|
302
|
-
fontSize:'26rpx',
|
|
303
|
-
fontWeight: 'normal'
|
|
304
|
-
},
|
|
305
|
-
},
|
|
306
|
-
handleCustom({action, data}) {
|
|
307
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
308
|
-
.then(res => {
|
|
309
|
-
data.cb(res.list)
|
|
310
|
-
})
|
|
311
|
-
.catch(error => {
|
|
312
|
-
console.error(error);
|
|
313
|
-
data.cb([])
|
|
314
|
-
});
|
|
315
|
-
},
|
|
316
|
-
},
|
|
317
|
-
|
|
318
|
-
{
|
|
319
|
-
label: "选择业务线",
|
|
320
|
-
ele: "xd-choose-namespace",
|
|
321
|
-
valueKey: "xnamespace",
|
|
322
|
-
value: data.xnamespace || null,
|
|
323
|
-
groupKey:'advanced',
|
|
324
|
-
className: 'input60',
|
|
325
|
-
handleCustom: (cb) => {
|
|
326
|
-
XdBus.getParentApi('getOptionsNamespaces')()
|
|
327
|
-
.then(res => {
|
|
328
|
-
cb(res.list)
|
|
329
|
-
})
|
|
330
|
-
.catch();
|
|
331
|
-
}
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
label: '是否开启城市筛选:',
|
|
335
|
-
ele: 'xd-radio',
|
|
336
|
-
valueKey: 'isCityFilter',
|
|
337
|
-
value: data['isCityFilter'] || 'N',
|
|
338
|
-
placeholder: '请选择是否开启城市筛选',
|
|
339
|
-
groupKey:'advanced',
|
|
340
|
-
multiple: false,
|
|
341
|
-
|
|
342
|
-
list: [
|
|
343
|
-
{label: '是', value: 'Y'},
|
|
344
|
-
{label: '否', value: 'N'},
|
|
345
|
-
]
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
label: '是否启用滚动加载功能:',
|
|
349
|
-
ele: 'xd-radio',
|
|
350
|
-
valueKey: 'isUserScrollData',
|
|
351
|
-
value: data['isUserScrollData'] || 'N',
|
|
352
|
-
placeholder: '请选择是否开启城市筛选',
|
|
353
|
-
groupKey:'advanced',
|
|
354
|
-
multiple: false,
|
|
355
|
-
list: [
|
|
356
|
-
{label: '是', value: 'Y'},
|
|
357
|
-
{label: '否', value: 'N'},
|
|
358
|
-
]
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
label: '商品详情跳转路径:',
|
|
362
|
-
ele: 'xd-select-pages-path',
|
|
363
|
-
valueKey: 'productInfoPath',
|
|
364
|
-
placeholder: '请选择详情路径',
|
|
365
|
-
value: data.productInfoPath || null,
|
|
366
|
-
groupKey:'advanced',
|
|
367
|
-
className: 'input100',
|
|
368
|
-
setting: {
|
|
369
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
370
|
-
},
|
|
371
|
-
},
|
|
13
|
+
...content(data, gValue, gColor, oldData),
|
|
14
|
+
...style(data, gValue, gColor, oldData),
|
|
15
|
+
...advanced(data, gValue, gColor, oldData)
|
|
372
16
|
|
|
373
17
|
].filter(i=>i)
|
|
374
18
|
},
|
|
375
|
-
advanced: [
|
|
376
|
-
|
|
377
|
-
],
|
|
19
|
+
advanced: [],
|
|
378
20
|
};
|