jufubao-mall 2.0.32-beta8 → 2.0.33

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 (28) hide show
  1. package/package.json +1 -1
  2. package/src/components/CusCouponChose/CusCouponChose.vue +13 -10
  3. package/src/components/CusEnter/CusEnter.vue +1 -9
  4. package/src/components/CusPoster/CusPoster.vue +62 -17
  5. package/src/components/CusProduct/CusProduct.vue +184 -576
  6. package/src/components/CusShops/CusShops.vue +209 -409
  7. package/src/components/CusTab/CusTab.vue +22 -159
  8. package/src/components/JfbMallProductInfo/cusAttr/content.js +0 -2
  9. package/src/components/JfbMallProductList/Attr.js +0 -1
  10. package/src/components/JfbMallProductList/JfbMallProductList.vue +1 -7
  11. package/src/components/JfbMallProductList/XdCateV1.vue +1 -0
  12. package/src/components/JfbMallShop/JfbMallShop.vue +1 -1
  13. package/src/components/JfbMallShop/cusAttr/content.js +1 -1
  14. package/src/components/SkeProduct/SkeProduct.vue +3 -88
  15. package/src/components/CusListItem/CusListItem.vue +0 -141
  16. package/src/components/CusPrice/CusPrice.vue +0 -391
  17. package/src/components/CusVipList/CusVipList.vue +0 -169
  18. package/src/components/JfbMallNetworkMedia/Api.js +0 -94
  19. package/src/components/JfbMallNetworkMedia/Attr.js +0 -20
  20. package/src/components/JfbMallNetworkMedia/JfbMallNetworkMedia.vue +0 -1167
  21. package/src/components/JfbMallNetworkMedia/JfbMallNetworkMediaLess.less +0 -80
  22. package/src/components/JfbMallNetworkMedia/JfbMallNetworkMediaMixin.js +0 -30
  23. package/src/components/JfbMallNetworkMedia/Mock.js +0 -372
  24. package/src/components/JfbMallNetworkMedia/cusAttr/advanced.js +0 -60
  25. package/src/components/JfbMallNetworkMedia/cusAttr/content.js +0 -230
  26. package/src/components/JfbMallNetworkMedia/cusAttr/font.js +0 -123
  27. package/src/components/JfbMallNetworkMedia/cusAttr/icon.js +0 -257
  28. package/src/components/JfbMallNetworkMedia/cusAttr/style.js +0 -12
@@ -1,230 +0,0 @@
1
- 'use strict';
2
- import {
3
- dataVal ,
4
- statusShow,
5
- statusDataVal,
6
- customVal,
7
- cusDisabled ,
8
- getCustomAttr,
9
- isArray,
10
- isObject
11
- } from "@/utils/AttrTools";
12
- import IConList from "@/ICONS"
13
-
14
- export default (data, gValue,gColor,oldData)=>{
15
- let categoryParentType = dataVal({data, key:'categoryParentType', dValue:'root', gValue});
16
- let navStyle = 'line-6-8-s';
17
- if(data['navStyle']) navStyle = data['navStyle'];
18
- return[
19
- {
20
- ele: 'title',
21
- label: '基础',
22
- size: 'small',
23
- groupKey:'content',
24
- },
25
- {
26
- label: "业务线",
27
- ele: "xd-choose-namespace",
28
- valueKey: "xnamespace",
29
- groupKey:'content',
30
- placeholder: '请选择业务线',
31
- notice:'空继承上级业务线',
32
- inline: false,
33
- labelInline:true,
34
- value: dataVal({data, key:'xnamespace', dValue:null, gValue}),
35
- className: 'input100',
36
- handleCustom: (cb) => {
37
- XdBus.getParentApi('getOptionsNamespaces')()
38
- .then(res => {
39
- cb(res.list)
40
- })
41
- .catch();
42
- }
43
- },
44
- {
45
- ele: 'title',
46
- label: '组件样式',
47
- size: 'small',
48
- groupKey:'content',
49
- },
50
- {
51
- label: "分类样式",
52
- ele: "xd-style-image",
53
- groupKey: 'content',
54
- valueKey: "navStyle",
55
- value: navStyle,
56
- labelInline:true,
57
- cusStyle:{marginBottom: '0'},
58
- className: 'input100',
59
- handleCustom(cusRes) {
60
- XdBus.getParentApi('getCompStylesOptions')({
61
- layout_ids: '5EJjDL8ZCqNePO9Q5ATRH',
62
- key: Date.now(),
63
- filter: false
64
- })
65
- .then(res => {
66
- cusRes.data.cb(res)
67
- })
68
- .catch(error => {
69
- console.error(error);
70
- });
71
- },
72
- },
73
- 0&&{
74
- label: '分类标签',
75
- ele: 'xd-site-select-list',
76
- valueKey: 'navMarketTag',
77
- value: dataVal({data, key:'navMarketTag', dValue:[], gValue}),
78
- placeholder: '请选择分类标签,支持多个',
79
- groupKey:'content',
80
- labelInline: true,
81
- className: 'input100',
82
- setting:{multiple: true},
83
- handleCustom({action, data}) {
84
- XdBus.getParentApi('getBoardOptions')(
85
- {server:'product-public',fn:'product',path:'p1'},
86
- {key: Date.now(),category_tag:1}
87
- )
88
- .then(res => {
89
- data.cb(res.category_tag || [])
90
- })
91
- .catch(error => {
92
- data.cb([])
93
- console.error(error);
94
- });
95
- },
96
- },
97
- {
98
- label: '父级分类',
99
- ele: 'xd-radio',
100
- groupKey: 'content',
101
- valueKey: 'categoryParentType',
102
- value: categoryParentType,
103
- labelInline:true,
104
- className: 'input100',
105
- list: [
106
- {label: '根目录', value: 'root'},
107
- {label: '自定义', value: 'child'},
108
- ],
109
- notice:'展示指定父级分类下的子级分类',
110
- inline: false
111
- },
112
- {ele: 'group_start'},
113
- {
114
- label: '',
115
- ele: 'el-input',
116
- type: 'number',
117
- labelInline: true,
118
- valueKey: 'categoryParent',
119
- cusStyle: {
120
- paddingLeft: '90px'
121
- },
122
- value: dataVal({data, key:'categoryParent', dValue:'', gValue}),
123
- groupKey:'content',
124
- className: 'input100',
125
- hidden: categoryParentType === 'root',
126
- rules: [
127
- {
128
- validator: (rule, value, callback) => {
129
- if(categoryParentType === 'root') callback();
130
- else {
131
- if(!value) callback('请输入父级分类ID');
132
- else callback()
133
- }
134
- },
135
- message: '请输入父级分类ID',
136
- trigger: ['blur', 'change'],
137
- required: true,
138
- }
139
- ],
140
- },
141
- {ele: 'group_end'},
142
- {
143
- ele: 'title',
144
- label: '展示内容',
145
- size: 'small',
146
- groupKey:'content',
147
- },
148
- {
149
- label: '底部首页',
150
- ele: 'xd-cus-switch',
151
- valueKey: 'showIndex',
152
- value: data['showIndex'] || 'Y',
153
- className: 'input100',
154
- labelInline:true,
155
- groupKey:'content',
156
- setting: {
157
- isBackType: 'string'
158
- },
159
- },
160
- {ele: 'group_start'},
161
- {
162
- label: "",
163
- ele: "xd-icon-select",
164
- valueKey: "showIndexIcon",
165
- value: data.showIndexIcon || 'iconshouye1',
166
- hidden: data.showIndex !== 'Y',
167
- list: IConList,
168
- labelInline: true,
169
- className: 'input80',
170
- groupKey: "content",
171
- },
172
- {ele: 'group_end'},
173
- {
174
- label: '立即购买',
175
- ele: 'xd-cus-switch',
176
- valueKey: 'nowBuy',
177
- value: 'Y',
178
- disabled: true,
179
- className: 'input100',
180
- labelInline:true,
181
- groupKey:'content',
182
- setting: {
183
- isBackType: 'string'
184
- },
185
- },
186
- {ele: 'group_start'},
187
- {
188
- label: '',
189
- ele: 'el-input',
190
- type: 'text',
191
- valueKey: 'nowBuyText',
192
- labelInline:true,
193
- value: data['nowBuyText'] || '',
194
- hidden: data.nowBuy!=='Y',
195
- groupKey:'content',
196
- placeholder: '按钮文字,默认“立即充值”',
197
- className: 'input80',
198
- },
199
- {ele: 'group_end'},
200
- {
201
- label: '划线价',
202
- ele: 'xd-cus-switch',
203
- valueKey: 'isShowDiscount',
204
- value: data['isShowDiscount'] || 'Y',
205
- className: 'input100',
206
- labelInline:true,
207
- groupKey:'content',
208
- setting: {
209
- isBackType: 'string'
210
- },
211
- },
212
- {ele: 'group_start'},
213
- {
214
- label: '',
215
- ele: 'el-input',
216
- type: 'number',
217
- valueKey: 'differ',
218
- labelInline:true,
219
- value: data['differ'] || '',
220
- hidden: data.isShowDiscount!=='Y',
221
- groupKey:'content',
222
- placeholder: '价差,默认值:1',
223
- className: 'input80',
224
- notice: '划线价取市场价,市场价-售价差值大于等于设置值时展示',
225
- inline: false
226
- },
227
- {ele: 'group_end'},
228
-
229
- ]
230
- }
@@ -1,123 +0,0 @@
1
- 'use strict';
2
-
3
- import {dataVal, isObject, statusDataVal, statusShow} from "@/utils/AttrTools";
4
-
5
- export default (data, gValue, gColor, oldData)=>{
6
- let navStyle = 'line-6-8-s';
7
- if(data['navStyle']) navStyle = data['navStyle'];
8
- return [
9
- {
10
- ele: 'title',
11
- label: '分类-文字区样式',
12
- size: 'small',
13
- groupKey:'style',
14
- },
15
- {
16
- label: '导航背景',
17
- ele: 'xd-radio',
18
- groupKey: 'style',
19
- valueKey: 'titleBgColorStatus',
20
- value: statusDataVal({data, key:'titleBgColorStatus', fields:['titleBgColor'],gValue}),
21
- labelInline:true,
22
- list: [
23
- {label: '默认', value: 'D'},
24
- {label: '自定义', value: 'C'},
25
- ]
26
- },
27
- {ele: 'group_start'},
28
- {
29
- label: '',
30
- ele: 'xd-color',
31
- valueKey: 'titleBgColor',
32
- groupKey:'style',
33
- value: dataVal({data, key:'titleBgColor', dValue:'#fff', gValue}),
34
- hidden: !statusShow({data, key: 'titleBgColorStatus', fields:['titleBgColor'], gValue}),
35
- classNmae: 'input80',
36
- setting: {
37
- showAlpha: true
38
- },
39
- },
40
- {ele: 'group_end'},
41
- {
42
- label: '导航间距',
43
- ele: 'xd-radio',
44
- groupKey: 'style',
45
- valueKey: 'fontSpStatus',
46
- value: statusDataVal({data, key:'fontSpStatus', fields:['fontSp'],gValue}),
47
- labelInline:true,
48
- list: [
49
- {label: '默认', value: 'D'},
50
- {label: '自定义', value: 'C'},
51
- ]
52
- },
53
- {ele: 'group_start'},
54
- {
55
- label: "",
56
- groupKey: 'style',
57
- ele: 'xd-slider',
58
- valueKey: "fontSp",
59
- value: dataVal({data, key:'fontSp', dValue:16, gValue}),
60
- hidden: !statusShow({data, key: 'fontSpStatus', fields:['fontSp'], gValue}),
61
- className: "input80",
62
- labelInline: true,
63
- setting:{
64
- min: 1,//最小值
65
- max: 64, //最小值
66
- step:1, //步长
67
- showStops:false,//显示间断点
68
- showInput:false,//显示输入框
69
- },
70
- },
71
- {ele: 'group_end'},
72
-
73
- {
74
- label: '名称样式',
75
- ele: 'xd-radio',
76
- groupKey: 'style',
77
- valueKey: 'titleStyleStatus',
78
- value: statusDataVal({data, key:'titleStyleStatus', fields:['titleStyle','titleColor'],gValue}),
79
- labelInline:true,
80
- list: [
81
- {label: '默认', value: 'D'},
82
- {label: '自定义', value: 'C'},
83
- ]
84
- },
85
- {ele: 'group_start'},
86
- {
87
- label: '',
88
- ele: 'xd-text-and-bgc',
89
- groupKey:'style',
90
- valueKey: 'titleStyle',
91
- value: dataVal({data, key:'titleStyle', dValue:{}, gValue}),
92
- hidden: !statusShow({data, key: 'titleStyleStatus', fields:['titleStyle'], gValue}) ,
93
- setting: {
94
- fontSize: true,
95
- weight:true,
96
- bgColor: navStyle === 'tags',
97
- selected:true,
98
- default:{
99
- color: '#333',
100
- fontSize: '28',
101
- bgColor:'#fff',
102
- fontWeight:'400',
103
- actFontSize: '28',
104
- actColor: gColor.mainColor,
105
- actFontWeight:'400',
106
- actBgColor: '#fff'
107
- }
108
- },
109
- handleCustom({action, data}) {
110
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
111
- .then(res => {
112
- data.cb(res.list)
113
- })
114
- .catch(error => {
115
- console.error(error);
116
- data.cb([])
117
- });
118
- },
119
- },
120
- {ele: 'group_end'},
121
-
122
- ].filter(i=>i)
123
- }
@@ -1,257 +0,0 @@
1
- 'use strict';
2
-
3
- import {cRaBorShadow, dataVal, statusDataVal, statusShow} from "@/utils/AttrTools";
4
-
5
- export default (data, gValue, gColor, oldData)=>{
6
- let level2Name = {
7
- fontSize: '24',
8
- actFontSize: '24',
9
- color: '#333',
10
- actColor: gColor.mainColor,
11
- bgColor:'',
12
- actBgColor:'',
13
- fontWeight: 'normal',
14
- actFontWeight: 'normal',
15
- borderStyle:'solid',
16
- borderColor: 'rgba(0,0,0,0)',
17
- borderWidth: 0,
18
- borderActStyle:'solid',
19
- borderActColor: 'rgba(0,0,0,0)',
20
- borderActWidth: 0,
21
- }
22
- let subTitleIconBorder = cRaBorShadow( data, 'subTitleIconBorder', {dValue:'N'},gValue);
23
- return [
24
- {
25
- ele: 'title',
26
- label: '分类-图标区样式',
27
- size: 'small',
28
- groupKey:'style',
29
- },
30
-
31
- {
32
- label: '导航背景',
33
- ele: 'xd-radio',
34
- groupKey: 'style',
35
- valueKey: 'level2BgcColorStatus',
36
- value: statusDataVal({data, key:'level2BgcColorStatus', fields:['level2BgcColor'],gValue}),
37
- labelInline:true,
38
- list: [
39
- {label: '默认', value: 'D'},
40
- {label: '自定义', value: 'C'},
41
- ]
42
- },
43
- {ele: 'group_start'},
44
- {
45
- label: '',
46
- ele: 'xd-color',
47
- valueKey: 'level2BgcColor',
48
- groupKey:'style',
49
- value: dataVal({data, key:'level2BgcColor', dValue:'#fff', gValue}),
50
- hidden: !statusShow({data, key: 'level2BgcColorStatus', fields:['level2BgcColor'], gValue}),
51
- classNmae: 'input80',
52
- setting: {
53
- showAlpha: true
54
- },
55
- },
56
- {ele: 'group_end'},
57
- {
58
- label: '选中图描边',
59
- ele: 'xd-border',
60
- groupKey:'style',
61
- valueKey: 'subTitleIconBorder',
62
- value: subTitleIconBorder,
63
- labelInline: true,
64
- className: 'input100',
65
- setting: {
66
- selected: subTitleIconBorder.type,//设置默认选中项
67
- isRadio: true,//启用editx默认
68
- isDef: true, //启动默认选项
69
- //==设置默认值==
70
- color: gColor.mainColor,
71
- width: '2',
72
- style: 'solid'
73
- //==设置默认值==
74
- },
75
- },
76
- {
77
- label: '图标圆角',
78
- ele: 'xd-radio',
79
- groupKey: 'style',
80
- valueKey: 'subTitleRadiusStatus',
81
- value: statusDataVal({data, key:'subTitleRadiusStatus', fields:['subTitleRadius'],gValue}),
82
- labelInline:true,
83
- list: [
84
- {label: '默认', value: 'D'},
85
- {label: '无圆角', value: 'N'},
86
- {label: '自定义', value: 'C'},
87
- ]
88
- },
89
- {ele: 'group_start'},
90
- {
91
- label: '',
92
- ele: 'xd-site-select-list',
93
- labelInline: true,
94
- valueKey: 'subTitleRadius',
95
- value: dataVal({data, key:'subTitleRadius', dValue:'40rpx', gValue}),
96
- hidden: !statusShow({data, key: 'subTitleRadiusStatus', fields:['subTitleRadius'], gValue}),
97
- placeholder: '请选择图标圆角',
98
- multiple: false,
99
- className: 'input80',
100
- groupKey:'style',
101
-
102
- handleCustom({action, data}) {
103
- XdBus.getParentApi('getOptionsSettingList')({
104
- setting_id: 'edtix_style_radius',
105
- key: Date.now()
106
- })
107
- .then(res => {
108
- let list = (res.list || [])
109
- .map(item=>{
110
- return {
111
- ...item,
112
- value: item.value + 'rpx',
113
- }
114
- })
115
- .filter(item=>{
116
- return item.label !== '无'
117
- })
118
- .concat([{label:'圆角',value: '50%'}]);
119
- data.cb(list)
120
- })
121
- .catch(error => {
122
- console.error(error);
123
- });
124
- },
125
- },
126
- {ele: 'group_end'},
127
- {
128
- label: '图标大小',
129
- ele: 'xd-radio',
130
- groupKey: 'style',
131
- valueKey: 'iconWdithStatus',
132
- value: statusDataVal({data, key:'iconWdithStatus', fields:['iconWdith'],gValue}),
133
- labelInline:true,
134
- list: [
135
- {label: '默认', value: 'D'},
136
- {label: '自定义', value: 'C'},
137
- ]
138
- },
139
- {ele: 'group_start'},
140
- {
141
- label: "",
142
- groupKey: 'style',
143
- ele: 'xd-slider',
144
- valueKey: "iconWdith",
145
- value: dataVal({data, key:'iconWdith', dValue:96, gValue}),
146
- hidden: !statusShow({data, key: 'iconWdithStatus', fields:['iconWdith'], gValue}),
147
- className: "input80",
148
- labelInline: true,
149
- setting:{
150
- min: 50,//最小值
151
- max: 96, //最小值
152
- step:1, //步长
153
- showStops:false,//显示间断点
154
- showInput:false,//显示输入框
155
- },
156
- },
157
- {ele: 'group_end'},
158
- {
159
- label: '图标间距',
160
- ele: 'xd-radio',
161
- groupKey: 'style',
162
- valueKey: 'iconImageSpStatus',
163
- value: statusDataVal({data, key:'iconImageSpStatus', fields:['iconImageSp'],gValue}),
164
- labelInline:true,
165
- list: [
166
- {label: '默认', value: 'D'},
167
- {label: '自定义', value: 'C'},
168
- ]
169
- },
170
- {ele: 'group_start'},
171
- {
172
- label: "",
173
- groupKey: 'style',
174
- ele: 'xd-slider',
175
- valueKey: "iconImageSp",
176
- value: dataVal({data, key:'iconImageSp', dValue:16, gValue}),
177
- hidden: !statusShow({data, key: 'iconImageSpStatus', fields:['iconImageSp'], gValue}),
178
- className: "input80",
179
- labelInline: true,
180
- setting:{
181
- min: 1,//最小值
182
- max: 64, //最小值
183
- step:1, //步长
184
- showStops:false,//显示间断点
185
- showInput:false,//显示输入框
186
- },
187
- },
188
- {ele: 'group_end'},
189
- {
190
- label: '图标背景',
191
- ele: 'xd-radio',
192
- groupKey: 'style',
193
- valueKey: 'iconBgColorStatus',
194
- value: statusDataVal({data, key:'iconBgColorStatus', fields:['iconBgColor'],gValue}),
195
- labelInline:true,
196
- list: [
197
- {label: '默认', value: 'D'},
198
- {label: '自定义', value: 'C'},
199
- ]
200
- },
201
- {ele: 'group_start'},
202
- {
203
- label: '',
204
- ele: 'xd-color',
205
- valueKey: 'iconBgColor',
206
- groupKey:'style',
207
- value: dataVal({data, key:'iconBgColor', dValue:'#f8f8f8', gValue}),
208
- hidden: !statusShow({data, key: 'iconBgColorStatus', fields:['iconBgColor'], gValue}),
209
- classNmae: 'input80',
210
- setting: {
211
- showAlpha: true
212
- },
213
- },
214
- {ele: 'group_end'},
215
-
216
- {
217
- label: '名称样式',
218
- ele: 'xd-radio',
219
- groupKey: 'style',
220
- valueKey: 'level2NameStatus',
221
- value: statusDataVal({data, key:'level2NameStatus', fields:['level2Name'],gValue}),
222
- labelInline:true,
223
- list: [
224
- {label: '默认', value: 'D'},
225
- {label: '自定义', value: 'C'},
226
- ]
227
- },
228
- {ele: 'group_start'},
229
- {
230
- label: '',
231
- ele: 'xd-text-and-bgc',
232
- groupKey:'style',
233
- valueKey: 'level2Name',
234
- value: dataVal({data, key:'level2Name', dValue:'{}', gValue}),
235
- hidden: !statusShow({data, key: 'level2NameStatus', fields:['level2Name'], gValue}),
236
- setting: {
237
- fontSize: true,
238
- weight:false,
239
- bgColor:true,
240
- selected:true,
241
- isBorder:false,
242
- default: level2Name
243
- },
244
- handleCustom({action, data}) {
245
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
246
- .then(res => {
247
- data.cb(res.list)
248
- })
249
- .catch(error => {
250
- console.error(error);
251
- data.cb([])
252
- });
253
- },
254
- },
255
- {ele: 'group_end'},
256
- ].filter(i=>i)
257
- }
@@ -1,12 +0,0 @@
1
- 'use strict';
2
-
3
- import font from "./font";
4
- import icon from "./icon";
5
-
6
- export default function (data, gValue, gColor, oldData) {
7
- return [
8
- ...font(data, gValue, gColor, oldData),
9
- ...icon(data, gValue, gColor, oldData),
10
- ]
11
- }
12
-