jufubao-mall 2.0.35-beta4 → 2.0.35-beta6

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.
@@ -8,7 +8,6 @@ export default {
8
8
  style: [],
9
9
  advanced: [],
10
10
  content: (data, gValue, gColor, oldData={})=>{
11
- debugger
12
11
  console.log(data['row_num'],"data['row_num']");
13
12
 
14
13
  let defContShadow = oldTonNewBorAndSha(
@@ -108,7 +108,7 @@
108
108
  v-for="item in nearbyShopList"
109
109
  :key="item.key"
110
110
  :id="`scroll-${item.resource_shop_id}`"
111
- @click.shop="handleToEvent(item, 'shop')"
111
+ @click.stop="handleToEvent(item, 'shop')"
112
112
  >
113
113
  <view class="shop_list-item-title">
114
114
  <view class="title">
@@ -1,103 +0,0 @@
1
- 'use strict';
2
-
3
- export default (data)=>{
4
- let isCityFilter = 'N',
5
- allBrandPath =null,
6
- onlineBrandPath =null,
7
- offlineBrandPath =null;
8
-
9
- if(['Y','N'].includes(data['isCityFilter'])) {
10
- isCityFilter = data['isCityFilter']
11
- }
12
- if(data['allBrandPath'] !== undefined) {
13
- allBrandPath = data['allBrandPath']
14
- }
15
- if(data['onlineBrandPath'] !== undefined) {
16
- onlineBrandPath = data['onlineBrandPath']
17
- }
18
- if(data['offlineBrandPath'] !== undefined) {
19
- offlineBrandPath = data['offlineBrandPath']
20
- }
21
- return [
22
- {
23
- label: '城市筛选',
24
- ele: 'xd-radio',
25
- valueKey: 'isCityFilter',
26
- groupKey:'advanced',
27
- value: isCityFilter,
28
- placeholder: '请选择是否开启城市筛选',
29
- multiple: false,
30
- labelInline:true,
31
- list: [
32
- {label: '开启', value: 'Y'},
33
- {label: '禁用', value: 'N'},
34
- ]
35
- },
36
-
37
-
38
- {
39
- label: '全部品牌',
40
- ele: 'xd-select-pages-path',
41
- valueKey: 'allBrandPath',
42
- placeholder: '请选择全部品牌跳转地址',
43
- groupKey:'advanced',
44
- labelInline: true,
45
- className: 'input100',
46
- value: allBrandPath,
47
- setting: {
48
- mode: 'new',
49
- router: XdBus.getParentApi('getPagesTree'),
50
- },
51
- },
52
- {
53
- label: '线上品牌',
54
- ele: 'xd-select-pages-path',
55
- valueKey: 'onlineBrandPath',
56
- placeholder: '请选择线上品牌跳转地址',
57
- labelInline: true,
58
- className: 'input100',
59
- value: onlineBrandPath,
60
- groupKey: 'advanced',
61
- setting: {
62
- mode: 'new',
63
- router: XdBus.getParentApi('getPagesTree'),
64
- },
65
- },
66
- {
67
- label: '线下品牌',
68
- ele: 'xd-select-pages-path',
69
- valueKey: 'offlineBrandPath',
70
- placeholder: '请选择线下品牌跳转地址',
71
- labelInline: true,
72
- className: 'input100',
73
- value: offlineBrandPath,
74
- setting: {
75
- mode: 'new',
76
- router: XdBus.getParentApi('getPagesTree'),
77
- },
78
- groupKey: 'advanced',
79
- },
80
-
81
- {
82
- label: '版本号:',
83
- ele: 'el-input',
84
- type: 'text',
85
- groupKey: 'advanced',
86
- valueKey: 'version',
87
- value: 'v2.0',
88
- hidden: true,
89
- },
90
- {
91
- label: '过滤引用模版字段:',
92
- ele: 'el-input',
93
- type: 'text',
94
- groupKey: 'advanced',
95
- valueKey: 'refFilterKey',
96
- value: '[]',
97
- hidden: true,
98
- },
99
-
100
-
101
- ]
102
- }
103
-
@@ -1,452 +0,0 @@
1
- 'use strict';
2
-
3
- import {
4
- dataVal,
5
- statusDataVal,
6
- statusShow,
7
- clone,
8
- cRaBorShadow,
9
- isDefStatus,
10
- oldTonNewBorAndSha
11
- } from "@/utils/AttrTools";
12
-
13
- export default (datas, gValue, gColor, oldData={})=>{
14
- let data = clone(datas);
15
- let listLayout = 'slide';
16
- if(data['listLayout'] !== undefined) listLayout = data['listLayout'];
17
-
18
- let defContBorder = oldTonNewBorAndSha(data.itemBorder, data.is_border,data.is_border_w ,data.is_border_c,'solid');
19
- if(defContBorder.type === 'Y' && data.is_border ==='Y') {
20
- data.is_border = 'N'
21
- }
22
-
23
- let defContShadow = oldTonNewBorAndSha(data.itemShadow, data.is_shadow,data.is_shadow_w ,data.is_shadow_bg,'solid');
24
- if(defContShadow.type === 'Y' && data.is_shadow ==='Y') {
25
- data.is_shadow = 'N'
26
- }
27
-
28
- debugger
29
-
30
- return [
31
- {
32
- ele: 'title',
33
- label: '品牌样式',
34
- size: 'small',
35
- groupKey:'style',
36
- },
37
- {
38
- label: '品牌间距',
39
- ele: 'xd-radio',
40
- groupKey: 'style',
41
- valueKey: 'paddingStatus',
42
- value: statusDataVal({data, key:'paddingStatus', fields:['padding','rowSpacing'],gValue}),
43
- labelInline:true,
44
- list: [
45
- {label: '默认', value: 'D'},
46
- {label: '自定义', value: 'C'},
47
- ]
48
- },
49
- {ele: 'group_start'},
50
- {
51
- label: "列间距",
52
- groupKey: 'style',
53
- ele: 'xd-slider',
54
- valueKey: "padding",
55
- value: dataVal({data, key:'padding', dValue:32, gValue}),
56
- hidden: !statusShow({data, key: 'paddingStatus', fields:['padding','rowSpacing'], gValue}),
57
- className: "input80",
58
- labelInline: true,
59
- setting:{
60
- min: 0,//最小值
61
- max: 96, //最小值
62
- step:1, //步长
63
- showStops:false,//显示间断点
64
- showInput:false,//显示输入框
65
- }
66
- },
67
- {
68
- label: "行间距",
69
- groupKey: 'style',
70
- ele: 'xd-slider',
71
- valueKey: "rowSpacing",
72
- value: dataVal({data, key:'rowSpacing', dValue:gValue.isAdd && gValue.isFirst ?12: 10, gValue}),
73
- hidden: listLayout === 'slide' || !statusShow({data, key: 'paddingStatus', fields:['padding','rowSpacing'], gValue}),
74
- className: "input80",
75
- labelInline: true,
76
- setting:{
77
- min: 0,//最小值
78
- max: 96, //最小值
79
- step:1, //步长
80
- showStops:false,//显示间断点
81
- }
82
- },
83
- {ele: 'group_end'},
84
- {
85
- label: '品牌图大小',
86
- ele: 'xd-radio',
87
- groupKey: 'style',
88
- valueKey: 'bindSizeStatus',
89
- value: statusDataVal({data, key: 'bindSizeStatus', fields:['bindSize'], gValue}),
90
- labelInline:true,
91
- list: [
92
- {label: '默认', value: 'D'},
93
- {label: '自定义', value: 'C'},
94
- ]
95
- },
96
- {ele: 'group_start'},
97
- {
98
- label: "",
99
- groupKey: 'style',
100
- ele: 'xd-slider',
101
- valueKey: "bindSize",
102
- value: dataVal({data, key:'bindSize', dValue: gValue.isAdd && gValue.isFirst ? bindSize: 68, gValue}),
103
- hidden: !statusShow({data, key: 'bindSizeStatus', fields:['bindSize'], gValue}),
104
- className: "input100",
105
- labelInline: true,
106
- setting:{
107
- min: 50,//最小值
108
- max: 90, //最小值
109
- step:1, //步长
110
- showStops:false,//显示间断点
111
- showInput:false,//显示输入框
112
- }
113
- },
114
- {ele: 'group_end'},
115
- {
116
- label: '品牌文字',
117
- ele: 'xd-radio',
118
- groupKey: 'style',
119
- valueKey: 'listTitleStatus',
120
- value: statusDataVal({data, key:'listTitleStatus', fields:['listTitle'],gValue}),
121
- labelInline:true,
122
- list: [
123
- {label: '默认', value: 'D'},
124
- {label: '自定义', value: 'C'},
125
- ]
126
- },
127
- {ele: 'group_start'},
128
- {
129
- label: "",
130
- ele: "xd-font",
131
- valueKey: "listTitle",
132
- value: dataVal({data, key:'listTitle', dValue:{}, gValue}),
133
- hidden: !statusShow({data, key: 'listTitleStatus', fields:['listTitle'], gValue}),
134
- groupKey:'style',
135
- setting: {
136
- color:true,
137
- fontSize: true,
138
- weight: true,
139
- decoration: false,
140
- icon: false,
141
- style:false,
142
- align:false,
143
- lineHeight: false,
144
- isEmpty: true,
145
- default:{
146
- color:'#777',
147
- fontSize:'24rpx',
148
- style:'normal',
149
- }
150
- },
151
- handleCustom({action, data}) {
152
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
153
- .then(res => {
154
- data.cb(res.list)
155
- })
156
- .catch(error => {
157
- data.cb([])
158
- console.error(error);
159
- });
160
- },
161
-
162
- },
163
- {ele: 'group_end'},
164
- {
165
- label: '品牌背景',
166
- ele: 'xd-radio',
167
- groupKey: 'style',
168
- valueKey: 'backgroundColorStatus',
169
- value: statusDataVal({data, key:'backgroundColorStatus', fields:['backgroundColor'],gValue}),
170
- labelInline:true,
171
- list: [
172
- {label: '默认', value: 'D'},
173
- {label: '自定义', value: 'C'},
174
- ]
175
- },
176
- {ele: 'group_start'},
177
- {
178
- label: '',
179
- ele: 'xd-color',
180
- valueKey: 'backgroundColor',
181
- value: dataVal({data, key:'backgroundColor', dValue:{}, gValue}),
182
- hidden: !statusShow({data, key: 'backgroundColorStatus', fields:['backgroundColor'], gValue}),
183
- placeholder: '请选择品牌背景',
184
- classNmae: 'input60',
185
- groupKey: 'style',
186
- labelInline: true,
187
- setting: {
188
- showAlpha: true
189
- }
190
- },
191
- {ele: 'group_end'},
192
- {
193
- label: '背景圆角',
194
- ele: 'xd-radio',
195
- groupKey: 'style',
196
- valueKey: 'newRadiusStatus',
197
- value: statusDataVal({data, key:'newRadiusStatus',cValue: 'N', fields:['newRadius'],gValue}),
198
- labelInline:true,
199
- list: [
200
- {label: '默认', value: 'D'},
201
- {label: '无圆角', value: 'N'},
202
- {label: '自定义', value: 'C'},
203
- ]
204
- },
205
- {ele: 'group_start'},
206
- {
207
- label: '',
208
- ele: 'xd-site-select-list',
209
- labelInline: true,
210
- valueKey: 'newRadius',
211
- value: dataVal({data, key:'newRadius', dValue:'10', gValue}),
212
- hidden: !statusShow({data, key: 'newRadiusStatus', fields:['newRadius'], gValue}),
213
- placeholder: '请选择更多圆角',
214
- multiple: false,
215
- className: 'input80',
216
- groupKey:'style',
217
- handleCustom({action, data}) {
218
- XdBus.getParentApi('getOptionsSettingList')({
219
- setting_id: 'edtix_style_radius',
220
- key: Date.now()
221
- })
222
- .then(res => {
223
- debugger
224
- res.list = res.list.filter(item=>{
225
- return item.label !== '无';
226
- });
227
- data.cb(res.list)
228
- })
229
- .catch(error => {
230
- console.error(error);
231
- });
232
- },
233
- },
234
- {ele: 'group_end'},
235
- {
236
- label: '品牌圆角',
237
- ele: 'xd-radio',
238
- groupKey: 'style',
239
- valueKey: 'iconNewRadiusStatus',
240
- value: statusDataVal({data, key:'iconNewRadiusStatus',cValue: 'N', fields:['iconNewRadius'],gValue}),
241
- labelInline:true,
242
- list: [
243
- {label: '默认', value: 'D'},
244
- {label: '无圆角', value: 'N'},
245
- {label: '自定义', value: 'C'},
246
- ]
247
- },
248
- {ele: 'group_start'},
249
- {
250
- label: '',
251
- ele: 'xd-site-select-list',
252
- labelInline: true,
253
- valueKey: 'iconNewRadius',
254
- value: dataVal({data, key:'iconNewRadius', dValue:'10', gValue}),
255
- hidden: !statusShow({data, key: 'iconNewRadiusStatus', fields:['iconNewRadius'], gValue}),
256
- placeholder: '请选择更多圆角',
257
- multiple: false,
258
- className: 'input80',
259
- groupKey:'style',
260
- handleCustom({action, data}) {
261
- XdBus.getParentApi('getOptionsSettingList')({
262
- setting_id: 'edtix_style_radius',
263
- key: Date.now()
264
- })
265
- .then(res => {
266
- debugger
267
- res.list = res.list.filter(item=>{
268
- return item.label !== '无';
269
- });
270
- data.cb(res.list)
271
- })
272
- .catch(error => {
273
- console.error(error);
274
- });
275
- },
276
- },
277
- {ele: 'group_end'},
278
- {
279
- label: '品牌描边',
280
- ele: 'xd-border',
281
- groupKey:'style',
282
- valueKey: 'itemBorder',
283
- value: defContBorder,
284
- labelInline: true,
285
- className: 'input100',
286
- setting: {
287
- selected: defContBorder.type,//设置默认选中项
288
- isRadio: true,//启用editx默认
289
- isDef: true, //启动默认选项
290
- //==设置默认值==
291
- color: '#fff',
292
- width: '0',
293
- style: 'solid'
294
- //==设置默认值==
295
- },
296
- },
297
- {
298
- label: '品牌投影',
299
- ele: 'xd-shadow',
300
- labelInline: true,
301
- groupKey:'style',
302
- valueKey: 'itemShadow',
303
- value: defContShadow,
304
- className: 'input100',
305
- setting: {
306
- selected: defContShadow.type,
307
- isRadio:true,
308
- isDef: true,
309
- default: {
310
- color:'rgba(0,0,0,0.1)',
311
- width:'10',
312
- }
313
- },
314
- handleCustom({action, data}) {
315
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
316
- .then(res => {
317
- res.list = res.list.filter(item=>{
318
- return item.label !== '无';
319
- });
320
- data.cb(res.list)
321
- })
322
- .catch(error => {
323
- console.error(error);
324
- data.cb([])
325
- });
326
- },
327
- },
328
-
329
-
330
- //废弃样式(不可删除)
331
- {
332
- label: '是否有投影:',
333
- ele: 'xd-radio',
334
- valueKey: 'is_shadow',
335
- value: data['is_shadow'] || 'N',
336
- placeholder: '请选择是否投影',
337
- multiple: false,
338
- className: 'input80',
339
- groupKey: 'style',
340
- hidden:true,
341
- list: [
342
- {label: '是', value: 'Y'},
343
- {label: '否', value: 'N'},
344
- ]
345
- },
346
- {
347
- label: '投影颜色:',
348
- ele: 'xd-color',
349
- valueKey: 'is_shadow_bg',
350
- value: data['is_shadow_bg'] || '',
351
- placeholder: '请选择投影颜色',
352
- classNmae: 'input80',
353
- groupKey: 'style',
354
- hidden:true,
355
- },
356
- {
357
- label: '投影范围:',
358
- ele: 'xd-site-select-list',
359
- valueKey: 'is_shadow_w',
360
- value: data['is_shadow_w'] || '10',
361
- placeholder: '请选择投影范围',
362
- multiple: false,
363
- hidden:true,
364
- groupKey: 'style',
365
- className: 'input80',
366
- handleCustom({action, data}) {
367
- XdBus.getParentApi('getOptionsSettingList')({
368
- setting_id: 'edtix_style_radius',
369
- key: Date.now()
370
- })
371
- .then(res => {
372
- data.cb(res.list)
373
- })
374
- .catch(error => {
375
- console.error(error);
376
- });
377
- },
378
- },
379
- {
380
- label: '是否有边框:',
381
- ele: 'xd-radio',
382
- valueKey: 'is_border',
383
- value: data['is_border'] || 'N',
384
- placeholder: '请选择是否有边框',
385
- groupKey: 'style',
386
- multiple: false,
387
- hidden:true,
388
- className: 'input80',
389
- list: [
390
- {label: '是', value: 'Y'},
391
- {label: '否', value: 'N'},
392
- ]
393
- },
394
- {
395
- label: '边框颜色:',
396
- ele: 'xd-color',
397
- hidden:true,
398
- valueKey: 'is_border_c',
399
- value: data['is_border_c'] || '',
400
- placeholder: '请选择边框颜色',
401
- classNmae: 'input80',
402
- groupKey: 'style',
403
- },
404
- {
405
- label: '边框大小:',
406
- ele: 'el-input',
407
- hidden:true,
408
- type: 'number',
409
- valueKey: 'is_border_w',
410
- value: data['is_border_w'] || '',
411
- placeholder: '请输入边框颜色',
412
- className: 'input80',
413
- groupKey: 'style',
414
- },
415
- {
416
- label: "图标圆角设置:",
417
- groupKey: 'style',
418
- ele: 'xd-slider',
419
- valueKey: "iconRadius",
420
- value: data['iconRadius'] === undefined?0:data['iconRadius'],
421
- className: "input80",
422
- labelInline: true,
423
- hidden:true,
424
- setting:{
425
- min: 0,//最小值
426
- max: 100, //最小值
427
- step:1, //步长
428
- showStops:false,//显示间断点
429
- showInput:false,//显示输入框
430
- }
431
- },
432
- {
433
- label: "圆角设置:",
434
- groupKey: 'style',
435
- ele: 'xd-slider',
436
- valueKey: "radius",
437
- value: data['radius'] === undefined?10:data['radius'],
438
- className: "input80",
439
- labelInline: true,
440
- hidden:true,
441
- setting:{
442
- min: 0,//最小值
443
- max: 150, //最小值
444
- step:1, //步长
445
- showStops:false,//显示间断点
446
- showInput:false,//显示输入框
447
- }
448
- },
449
- //废弃样式(不可删除)
450
- ].filter(i=>i)
451
- }
452
-