jufubao-mall 2.0.31-beta103 → 2.0.31-beta106
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/JfbMallNavigation/JfbMallNavigation.vue +51 -24
- package/src/components/JfbMallNavigation/cusAttr/style.js +1 -1
- package/src/components/JfbMallNewShopList/JfbMallNewShopList.vue +7 -1
- package/src/components/JfbMallProductInfo/cusAttr/content.js +0 -2
- package/src/components/JfbMallResourceShopList/JfbMallResourceShopList.vue +4 -0
package/package.json
CHANGED
|
@@ -186,13 +186,8 @@
|
|
|
186
186
|
},
|
|
187
187
|
topNavItemStyleComp(){
|
|
188
188
|
let itemWidth = this.navTopImgSize;
|
|
189
|
-
let border = this.getBorderCompatibleOldStyle(this.navTopItemBorder, {});
|
|
190
189
|
return {
|
|
191
190
|
width: itemWidth + 'rpx',
|
|
192
|
-
borderRadius: this.navTopItemRadius + 'rpx',
|
|
193
|
-
border,
|
|
194
|
-
boxShadow: this.navTopItemShadow,
|
|
195
|
-
backgroundColor: this.navTopItemBGColor,
|
|
196
191
|
}
|
|
197
192
|
},
|
|
198
193
|
topNavItemImgStyleComp(){
|
|
@@ -200,7 +195,11 @@
|
|
|
200
195
|
let imgW = itemWidth - this.navTopItemPadding * 2;
|
|
201
196
|
return {
|
|
202
197
|
width: imgW + 'rpx',
|
|
203
|
-
height: imgW + 'rpx'
|
|
198
|
+
height: imgW + 'rpx',
|
|
199
|
+
borderRadius: this.navTopItemRadius + 'rpx',
|
|
200
|
+
border: this.getBorderCompatibleOldStyle(this.navTopItemBorder, {}),
|
|
201
|
+
boxShadow: this.navTopItemShadow,
|
|
202
|
+
backgroundColor: this.navTopItemBGColor,
|
|
204
203
|
}
|
|
205
204
|
},
|
|
206
205
|
topNavItemNameStyleComp(){
|
|
@@ -213,10 +212,7 @@
|
|
|
213
212
|
let itemWidth = this.rightNavImgSize;
|
|
214
213
|
return {
|
|
215
214
|
width: itemWidth + 'rpx',
|
|
216
|
-
|
|
217
|
-
border: this.getBorderCompatibleOldStyle(this.rightNavItemBorder, {}),
|
|
218
|
-
boxShadow: this.rightNavItemShadow,
|
|
219
|
-
backgroundColor: this.rightNavItemBGColor,
|
|
215
|
+
|
|
220
216
|
}
|
|
221
217
|
},
|
|
222
218
|
rightNavItemImgStyleComp(){
|
|
@@ -224,7 +220,11 @@
|
|
|
224
220
|
let imgW = itemWidth - this.rightNavItemPadding * 2;
|
|
225
221
|
return {
|
|
226
222
|
width: imgW + 'rpx',
|
|
227
|
-
height: imgW + 'rpx'
|
|
223
|
+
height: imgW + 'rpx',
|
|
224
|
+
borderRadius: this.rightNavItemRadius + 'rpx',
|
|
225
|
+
backgroundColor: this.rightNavItemBGColor,
|
|
226
|
+
boxShadow: this.rightNavItemShadow,
|
|
227
|
+
border: this.getBorderCompatibleOldStyle(this.rightNavItemBorder, {}),
|
|
228
228
|
}
|
|
229
229
|
},
|
|
230
230
|
rightNavItemNameStyleComp(){
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
this.rightNavItemBGColor = gCPVal(container, 'rightNavItemBGColor', '#FFFFFF', {sKey:'rightNavItemBGColorStatus'});
|
|
340
340
|
this.rightNavItemShadow = gCPVal(container, 'rightNavItemShadow', {color: '#eee',width: '0'}, {isShadow: true});
|
|
341
341
|
this.rightNavItemBorder = gCPVal(container, 'rightNavItemBorder', {});
|
|
342
|
-
this.rightNavItemRadius = gCPVal(container,'rightNavItemRadius',
|
|
342
|
+
this.rightNavItemRadius = gCPVal(container,'rightNavItemRadius', 16, {sKey:'rightNavItemRadiusStatus'});
|
|
343
343
|
this.rightNavItemFontColor = gCPVal(container,'rightNavItemFontColor', '#666666', {sKey:'rightNavItemFontStatus', fields: ['rightNavItemFontSize', 'rightNavItemFontColor']});
|
|
344
344
|
this.rightNavItemFontSize = gCPVal(container,'rightNavItemFontSize', 24, {sKey:'rightNavItemFontStatus', fields: ['rightNavItemFontSize', 'rightNavItemFontColor']});
|
|
345
345
|
console.log("this.rightNavItemFontSize", this.rightNavItemFontSize);
|
|
@@ -423,28 +423,53 @@
|
|
|
423
423
|
if(item.business_code) extParams.xnamespace = item.business_code;
|
|
424
424
|
this.handleLink(item.redirect_type, item.redirect_data, extParams);
|
|
425
425
|
},
|
|
426
|
+
isCurSite(app){
|
|
427
|
+
let deploy_dir = this.projectAttr.deploy_dir;
|
|
428
|
+
let host = this.projectAttr.host;
|
|
429
|
+
if(app.dir === deploy_dir && app.host === host){
|
|
430
|
+
return true;
|
|
431
|
+
}
|
|
432
|
+
return false;
|
|
433
|
+
},
|
|
426
434
|
handleLink(redirect_type, redirect_data, otherParams = {}){
|
|
427
435
|
var item = {redirect_type};
|
|
428
436
|
if(redirect_type === 'INN'){
|
|
429
437
|
try{
|
|
430
438
|
let rData = JSON.parse(redirect_data);
|
|
431
|
-
let
|
|
439
|
+
let app = rData.all.app;
|
|
432
440
|
let app_code = rData.all.app.aopen_app_code;
|
|
433
441
|
let app_type= rData.all.app.appType;
|
|
434
442
|
let rParams = rData.params || {};
|
|
435
443
|
|
|
444
|
+
//是否当前站点
|
|
445
|
+
item.app_type = app_type;
|
|
446
|
+
let value = "";
|
|
447
|
+
// #ifdef MP-WEIXIN
|
|
448
|
+
value = rData.all.app.value;
|
|
449
|
+
if(this.isCurSite(app)){
|
|
450
|
+
item.app_type = "";
|
|
451
|
+
}
|
|
452
|
+
// #endif
|
|
453
|
+
// #ifdef H5
|
|
454
|
+
if(this.isCurSite(app)){
|
|
455
|
+
value = rData.all.app.value;
|
|
456
|
+
}else{
|
|
457
|
+
value = `@site_domain@/${app.dir}/` + rData.all.app.value;
|
|
458
|
+
}
|
|
459
|
+
// #endif
|
|
460
|
+
|
|
436
461
|
for(let key in rParams){
|
|
437
462
|
if(Array.isArray(rParams[key])){
|
|
438
463
|
let cur = rParams[key];
|
|
439
464
|
let pStr = "";
|
|
440
465
|
for(let iKey in cur){
|
|
441
466
|
if(typeof cur[iKey] === 'string' || typeof cur[iKey] === 'number'){
|
|
442
|
-
pStr +=
|
|
467
|
+
pStr += `,${cur[iKey]}`;
|
|
443
468
|
}else if(typeof cur[iKey] === 'object' && cur[iKey].value){
|
|
444
|
-
pStr +=
|
|
469
|
+
pStr += `,${cur[iKey].value}`;
|
|
445
470
|
}
|
|
446
471
|
}
|
|
447
|
-
rParams[key] = pStr;
|
|
472
|
+
rParams[key] = pStr.substring(1);
|
|
448
473
|
}
|
|
449
474
|
if(typeof rParams[key] === 'object'){
|
|
450
475
|
if(rParams[key].value){
|
|
@@ -458,7 +483,7 @@
|
|
|
458
483
|
page: value,
|
|
459
484
|
app_code: app_code
|
|
460
485
|
}
|
|
461
|
-
|
|
486
|
+
|
|
462
487
|
let redirect_params = this.$xdUniHelper.jsonToParams({...otherParams, ...rParams});
|
|
463
488
|
item.redirect_params = redirect_params ? `${redirect_params}&${customParams}` : customParams;
|
|
464
489
|
item.redirect_data = JSON.stringify(redirectData);
|
|
@@ -542,15 +567,16 @@
|
|
|
542
567
|
this.cateIndex = index;
|
|
543
568
|
this.loadCateIndex = index;
|
|
544
569
|
let curCate = this.categoryList[index];
|
|
545
|
-
this.prodScrollIntoView =
|
|
570
|
+
this.prodScrollIntoView = null;
|
|
546
571
|
//是否最后一个分类
|
|
547
572
|
if(this.cateIndex === this.categoryList.length - 1){
|
|
548
573
|
await this.loadPreCateProduct(index);
|
|
549
574
|
}
|
|
550
575
|
//当前分类未加载过,则加载当前分类数据
|
|
551
576
|
if(!curCate.loaded){
|
|
552
|
-
this.p_getSubCateList();
|
|
577
|
+
await this.p_getSubCateList();
|
|
553
578
|
}
|
|
579
|
+
this.prodScrollIntoView = this.getID(curCate);
|
|
554
580
|
setTimeout(()=>{
|
|
555
581
|
this.pointerScroll = true;
|
|
556
582
|
}, 500)
|
|
@@ -736,11 +762,11 @@
|
|
|
736
762
|
},
|
|
737
763
|
onJfbShow(options) {
|
|
738
764
|
console.log('event.onJfbShow', options)
|
|
739
|
-
this.categoryList = [];
|
|
740
|
-
this.cateIndex = 0;
|
|
741
|
-
this.loadCateIndex = 0;
|
|
742
|
-
this.pointerScroll = true;
|
|
743
|
-
this.onJfbLoad(options);
|
|
765
|
+
// this.categoryList = [];
|
|
766
|
+
// this.cateIndex = 0;
|
|
767
|
+
// this.loadCateIndex = 0;
|
|
768
|
+
// this.pointerScroll = true;
|
|
769
|
+
// this.onJfbLoad(options);
|
|
744
770
|
},
|
|
745
771
|
onJfbHide(options) {
|
|
746
772
|
console.log('event.onJfbHide', options)
|
|
@@ -886,6 +912,7 @@
|
|
|
886
912
|
align-items: center;
|
|
887
913
|
padding: 12rpx;
|
|
888
914
|
box-sizing: border-box;
|
|
915
|
+
overflow: hidden;
|
|
889
916
|
image{
|
|
890
917
|
width: 100%;
|
|
891
918
|
height: 100%;
|
|
@@ -854,7 +854,7 @@ export default function (data={},gValue={},gColor={},oldData) {
|
|
|
854
854
|
ele: 'xd-site-select-list',
|
|
855
855
|
labelInline: true,
|
|
856
856
|
valueKey: 'rightNavItemRadius',
|
|
857
|
-
value: dataVal({data, key:'rightNavItemRadius', dValue:'
|
|
857
|
+
value: dataVal({data, key:'rightNavItemRadius', dValue:'16', gValue}),
|
|
858
858
|
hidden: !statusShow({data, key: 'rightNavItemRadiusStatus', fields:['rightNavItemRadius'], gValue}),
|
|
859
859
|
placeholder: '请选择图标是否设置圆角',
|
|
860
860
|
multiple: false,
|
|
@@ -524,7 +524,13 @@
|
|
|
524
524
|
data: data
|
|
525
525
|
})
|
|
526
526
|
.then(res => {
|
|
527
|
-
this.searchFilterList = res.items || []
|
|
527
|
+
this.searchFilterList = (res.items || []).map(item => {
|
|
528
|
+
item.options = item.options.map(it=>{
|
|
529
|
+
it.value = it.value + '';
|
|
530
|
+
return it;
|
|
531
|
+
});
|
|
532
|
+
return item;
|
|
533
|
+
});
|
|
528
534
|
this.$xdHideLoading();
|
|
529
535
|
})
|
|
530
536
|
.catch(err => {
|
|
@@ -284,8 +284,6 @@ export default (data, gValue, gColor, oldData) => {
|
|
|
284
284
|
type: 'notice', //normal,notice,privacy
|
|
285
285
|
isNew: true,
|
|
286
286
|
},
|
|
287
|
-
notice: '商品详情里头部显示的固定内容',
|
|
288
|
-
inline: false,
|
|
289
287
|
handleCustom({ action, data }) {
|
|
290
288
|
if (data && data.params) {
|
|
291
289
|
//当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
|
|
@@ -499,6 +499,10 @@
|
|
|
499
499
|
this.$set(this.searchFilterParams, 'brand', options['brand_ids'].split(','));
|
|
500
500
|
delete options['brand_ids'];
|
|
501
501
|
}
|
|
502
|
+
if(options['brand_id']){
|
|
503
|
+
this.brand_id = options['brand_id'];
|
|
504
|
+
delete options['brand_id'];
|
|
505
|
+
}
|
|
502
506
|
if(options['shop_category_ids']) {
|
|
503
507
|
this.$set(this.searchFilterParams, 'shop', options['shop_category_ids'].split(','));
|
|
504
508
|
delete options['shop_category_ids'];
|