jufubao-mall 2.0.31-beta104 → 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 +33 -9
- 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(){
|
|
@@ -424,16 +423,41 @@
|
|
|
424
423
|
if(item.business_code) extParams.xnamespace = item.business_code;
|
|
425
424
|
this.handleLink(item.redirect_type, item.redirect_data, extParams);
|
|
426
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
|
+
},
|
|
427
434
|
handleLink(redirect_type, redirect_data, otherParams = {}){
|
|
428
435
|
var item = {redirect_type};
|
|
429
436
|
if(redirect_type === 'INN'){
|
|
430
437
|
try{
|
|
431
438
|
let rData = JSON.parse(redirect_data);
|
|
432
|
-
let
|
|
439
|
+
let app = rData.all.app;
|
|
433
440
|
let app_code = rData.all.app.aopen_app_code;
|
|
434
441
|
let app_type= rData.all.app.appType;
|
|
435
442
|
let rParams = rData.params || {};
|
|
436
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
|
+
|
|
437
461
|
for(let key in rParams){
|
|
438
462
|
if(Array.isArray(rParams[key])){
|
|
439
463
|
let cur = rParams[key];
|
|
@@ -459,7 +483,7 @@
|
|
|
459
483
|
page: value,
|
|
460
484
|
app_code: app_code
|
|
461
485
|
}
|
|
462
|
-
|
|
486
|
+
|
|
463
487
|
let redirect_params = this.$xdUniHelper.jsonToParams({...otherParams, ...rParams});
|
|
464
488
|
item.redirect_params = redirect_params ? `${redirect_params}&${customParams}` : customParams;
|
|
465
489
|
item.redirect_data = JSON.stringify(redirectData);
|
|
@@ -543,7 +567,7 @@
|
|
|
543
567
|
this.cateIndex = index;
|
|
544
568
|
this.loadCateIndex = index;
|
|
545
569
|
let curCate = this.categoryList[index];
|
|
546
|
-
|
|
570
|
+
this.prodScrollIntoView = null;
|
|
547
571
|
//是否最后一个分类
|
|
548
572
|
if(this.cateIndex === this.categoryList.length - 1){
|
|
549
573
|
await this.loadPreCateProduct(index);
|
|
@@ -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'];
|