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
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
dataVal,
|
|
5
|
+
statusDataVal,
|
|
6
|
+
statusShow
|
|
7
|
+
} from "@/utils/AttrTools";
|
|
8
|
+
import brand from "./brand";
|
|
9
|
+
import tab from "./tab";
|
|
10
|
+
|
|
11
|
+
export default (data, gValue, gColor, oldData={})=>{
|
|
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: 'bodyPaddingStatus',
|
|
24
|
+
value: statusDataVal({data, key:'bodyPaddingStatus', fields:['bodyPadding'],gValue}),
|
|
25
|
+
labelInline:true,
|
|
26
|
+
list: [
|
|
27
|
+
{label: '默认', value: 'D'},
|
|
28
|
+
{label: '自定义', value: 'C'},
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{ele: 'group_start'},
|
|
32
|
+
{
|
|
33
|
+
label: '',
|
|
34
|
+
ele: 'xd-margin-padding',
|
|
35
|
+
groupKey:'style',
|
|
36
|
+
valueKey: 'bodyPadding',
|
|
37
|
+
hidden:!statusShow({data, key: 'bodyPaddingStatus', fields:['bodyPadding'], gValue}),
|
|
38
|
+
value: dataVal({
|
|
39
|
+
data,
|
|
40
|
+
key:'bodyPadding',
|
|
41
|
+
dValue:[0],
|
|
42
|
+
gValue,
|
|
43
|
+
isPM: true,
|
|
44
|
+
isCPM: true,
|
|
45
|
+
}),
|
|
46
|
+
setting: {
|
|
47
|
+
type: 'margin',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
{ele: 'group_end'},
|
|
51
|
+
{
|
|
52
|
+
label: '背景',
|
|
53
|
+
ele: 'xd-radio',
|
|
54
|
+
groupKey: 'style',
|
|
55
|
+
valueKey: 'contentStyleStatus',
|
|
56
|
+
value: statusDataVal({data, key: 'contentStyleStatus', fields:['contentBoxBgc','background'], gValue}),
|
|
57
|
+
labelInline:true,
|
|
58
|
+
list: [
|
|
59
|
+
{label: '默认', value: 'D'},
|
|
60
|
+
{label: '自定义', value: 'C'},
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
{ele: 'group_start'},
|
|
64
|
+
{
|
|
65
|
+
label: '',
|
|
66
|
+
ele: 'xd-color',
|
|
67
|
+
groupKey:'style',
|
|
68
|
+
valueKey: 'contentBoxBgc',
|
|
69
|
+
value: dataVal({data, key:'contentBoxBgc', dValue:'rgba(0,0,0,0)', gValue}),
|
|
70
|
+
hidden: !statusShow({data, key: 'contentStyleStatus', fields:['contentBoxBgc','background'], gValue}),
|
|
71
|
+
placeholder: '请选择背景颜色',
|
|
72
|
+
classNmae: 'input80',
|
|
73
|
+
setting: {
|
|
74
|
+
showAlpha: true
|
|
75
|
+
},
|
|
76
|
+
inline: false,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: '',
|
|
80
|
+
ele: 'xd-upload',
|
|
81
|
+
valueKey: 'background',
|
|
82
|
+
groupKey: 'style',
|
|
83
|
+
value: dataVal({data, key:'background', dValue:{}, gValue}),
|
|
84
|
+
defaultValue: dataVal({data, key:'background', dValue:{}, gValue}),
|
|
85
|
+
hidden: !statusShow({data, key: 'contentStyleStatus', fields:['contentBoxBgc','background'], gValue}),
|
|
86
|
+
slot: true,
|
|
87
|
+
oneWidth: 200,
|
|
88
|
+
oneHeight: 356,
|
|
89
|
+
elinputClassName: 'input40',
|
|
90
|
+
tipsformet: '<span style="font-size: 12px;color: #999">上传文件格式:@imageType@,不超过@size@MB,建议尺寸为:750*1334</span>',
|
|
91
|
+
type: ['jpg', 'png', 'jpeg', 'gif'],
|
|
92
|
+
styleType: 'one',
|
|
93
|
+
uploadType: 'aliyun',
|
|
94
|
+
size: 5,
|
|
95
|
+
action: 'action',
|
|
96
|
+
sort: true,
|
|
97
|
+
},
|
|
98
|
+
{ele: 'group_end'},
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
{
|
|
102
|
+
ele: 'title',
|
|
103
|
+
label: '内容区',
|
|
104
|
+
size: 'small',
|
|
105
|
+
groupKey:'style',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
label: '内容区背景',
|
|
109
|
+
ele: 'xd-radio',
|
|
110
|
+
groupKey: 'style',
|
|
111
|
+
valueKey: 'contBgColorStatus',
|
|
112
|
+
value: statusDataVal({data, key: 'contBgColorStatus', fields:['contBgColor'], gValue}),
|
|
113
|
+
labelInline:true,
|
|
114
|
+
list: [
|
|
115
|
+
{label: '默认', value: 'D'},
|
|
116
|
+
{label: '自定义', value: 'C'},
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
{ele: 'group_start'},
|
|
120
|
+
{
|
|
121
|
+
label: '',
|
|
122
|
+
ele: 'xd-color',
|
|
123
|
+
groupKey:'style',
|
|
124
|
+
valueKey: 'contBgColor',
|
|
125
|
+
value: dataVal({data, key:'contBgColor', dValue:'rgba(0,0,0,0)', gValue}),
|
|
126
|
+
hidden: !statusShow({data, key: 'contBgColorStatus', fields:['contBgColor'], gValue}),
|
|
127
|
+
placeholder: '请选择背景颜色',
|
|
128
|
+
classNmae: 'input80',
|
|
129
|
+
setting: {
|
|
130
|
+
showAlpha: true
|
|
131
|
+
},
|
|
132
|
+
inline: false,
|
|
133
|
+
},
|
|
134
|
+
{ele: 'group_end'},
|
|
135
|
+
|
|
136
|
+
{
|
|
137
|
+
label: '内容内边距',
|
|
138
|
+
ele: 'xd-radio',
|
|
139
|
+
groupKey: 'style',
|
|
140
|
+
valueKey: 'listPaddingStatus',
|
|
141
|
+
value: statusDataVal({data, key: 'listPaddingStatus', fields:['listPadding'], gValue}),
|
|
142
|
+
labelInline:true,
|
|
143
|
+
list: [
|
|
144
|
+
{label: '默认', value: 'D'},
|
|
145
|
+
{label: '自定义', value: 'C'},
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
{ele: 'group_start'},
|
|
149
|
+
{
|
|
150
|
+
label: '',
|
|
151
|
+
ele: 'xd-margin-padding',
|
|
152
|
+
groupKey:'style',
|
|
153
|
+
valueKey: 'listPadding',
|
|
154
|
+
value: dataVal({
|
|
155
|
+
data,
|
|
156
|
+
key:'listPadding',
|
|
157
|
+
dValue:[gValue.isAdd && gValue.isFirst?0:24],
|
|
158
|
+
gValue,
|
|
159
|
+
isPM: true,
|
|
160
|
+
}),
|
|
161
|
+
hidden: !statusShow({data, key: 'listPaddingStatus', fields:['listPadding'], gValue}),
|
|
162
|
+
labelInline:true,
|
|
163
|
+
setting: {
|
|
164
|
+
type: 'margin',
|
|
165
|
+
},
|
|
166
|
+
inline: false,
|
|
167
|
+
},
|
|
168
|
+
{ele: 'group_end'},
|
|
169
|
+
{
|
|
170
|
+
label: '内容外边距',
|
|
171
|
+
ele: 'xd-radio',
|
|
172
|
+
groupKey: 'style',
|
|
173
|
+
valueKey: 'listMarginStatus',
|
|
174
|
+
value: statusDataVal({data, key: 'listMarginStatus', fields:['listMargin'], gValue}),
|
|
175
|
+
labelInline:true,
|
|
176
|
+
list: [
|
|
177
|
+
{label: '默认', value: 'D'},
|
|
178
|
+
{label: '自定义', value: 'C'},
|
|
179
|
+
]
|
|
180
|
+
},
|
|
181
|
+
{ele: 'group_start'},
|
|
182
|
+
{
|
|
183
|
+
label: '',
|
|
184
|
+
ele: 'xd-margin-padding',
|
|
185
|
+
groupKey:'style',
|
|
186
|
+
valueKey: 'listMargin',
|
|
187
|
+
value: dataVal({
|
|
188
|
+
data,
|
|
189
|
+
key:'listMargin',
|
|
190
|
+
dValue:[0],
|
|
191
|
+
gValue,
|
|
192
|
+
isPM: true,
|
|
193
|
+
}),
|
|
194
|
+
hidden: !statusShow({data, key: 'listMarginStatus', fields:['listMargin'], gValue}),
|
|
195
|
+
labelInline:true,
|
|
196
|
+
setting: {
|
|
197
|
+
type: 'margin',
|
|
198
|
+
},
|
|
199
|
+
inline: false,
|
|
200
|
+
},
|
|
201
|
+
{ele: 'group_end'},
|
|
202
|
+
{
|
|
203
|
+
label: '内容区圆角',
|
|
204
|
+
ele: 'xd-radio',
|
|
205
|
+
groupKey: 'style',
|
|
206
|
+
valueKey: 'contRadiusStatus',
|
|
207
|
+
value: statusDataVal({data, key:'contRadiusStatus',cValue:'N', fields:['contRadius'],gValue}),
|
|
208
|
+
labelInline:true,
|
|
209
|
+
list: [
|
|
210
|
+
{label: '默认', value: 'D'},
|
|
211
|
+
{label: '无圆角', value: 'N'},
|
|
212
|
+
{label: '自定义', value: 'C'},
|
|
213
|
+
]
|
|
214
|
+
},
|
|
215
|
+
{ele: 'group_start'},
|
|
216
|
+
{
|
|
217
|
+
label: '',
|
|
218
|
+
ele: 'xd-site-select-list',
|
|
219
|
+
labelInline: true,
|
|
220
|
+
valueKey: 'contRadius',
|
|
221
|
+
value: dataVal({data, key:'contRadius', dValue:'10', gValue}),
|
|
222
|
+
hidden: !statusShow({data, key: 'contRadiusStatus', fields:['contRadius'], gValue}),
|
|
223
|
+
placeholder: '请选择导航是否设置圆角',
|
|
224
|
+
multiple: false,
|
|
225
|
+
className: 'input80',
|
|
226
|
+
groupKey:'style',
|
|
227
|
+
handleCustom({action, data}) {
|
|
228
|
+
XdBus.getParentApi('getOptionsSettingList')({
|
|
229
|
+
setting_id: 'edtix_style_radius',
|
|
230
|
+
key: Date.now()
|
|
231
|
+
})
|
|
232
|
+
.then(res => {
|
|
233
|
+
res.list = res.list.filter(item=>{
|
|
234
|
+
return item.label !== '无';
|
|
235
|
+
});
|
|
236
|
+
data.cb(res.list)
|
|
237
|
+
})
|
|
238
|
+
.catch(error => {
|
|
239
|
+
console.error(error);
|
|
240
|
+
});
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
{ele: 'group_end'},
|
|
244
|
+
|
|
245
|
+
...tab(data, gValue, gColor, oldData),
|
|
246
|
+
...brand(data, gValue, gColor, oldData),
|
|
247
|
+
|
|
248
|
+
].filter(i=>i);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|