jufubao-mall 2.0.31-beta102 → 2.0.31-beta103
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
CHANGED
|
@@ -51,11 +51,14 @@
|
|
|
51
51
|
>
|
|
52
52
|
<view class="product_scroll_inner" :style="rightNavStyleComp">
|
|
53
53
|
<view v-if="!hasTop" style="height: 24rpx;"></view>
|
|
54
|
-
<view class="product_group" v-for="cate in categoryList" :key="cate.category_id"
|
|
54
|
+
<view class="product_group" v-for="(cate, index) in categoryList" :key="cate.category_id"
|
|
55
55
|
:id="getID(cate)"
|
|
56
56
|
:data-next="cate.nextHeight"
|
|
57
57
|
>
|
|
58
|
-
<view v-if="
|
|
58
|
+
<view v-if="$configProject['isPreview'] && index===0" class="group_ad">
|
|
59
|
+
<image mode="widthFix" src="https://sandbox-img.jufubao.cn/uploads/20251209/3a84bbc1f93fa3b41f62b2c04a83a2c4.png?x-oss-process=style/size3&ver=1766743768"></image>
|
|
60
|
+
</view>
|
|
61
|
+
<view v-else-if="cate.navigation && cate.navigation.ad_image_url" class="group_ad" @click="handleAdClick(cate)">
|
|
59
62
|
<image mode="widthFix" :src="getServiceUrl(cate.navigation.ad_image_url)"></image>
|
|
60
63
|
</view>
|
|
61
64
|
<view v-else class="group_title">{{cate.category_name}}</view>
|
|
@@ -78,7 +81,7 @@
|
|
|
78
81
|
</view>
|
|
79
82
|
</view>
|
|
80
83
|
<view v-else>
|
|
81
|
-
<xd-no-data>暂无数据</xd-no-data>
|
|
84
|
+
<xd-no-data :scaleSize="2">暂无数据</xd-no-data>
|
|
82
85
|
</view>
|
|
83
86
|
</view>
|
|
84
87
|
</view>
|
|
@@ -309,7 +312,7 @@
|
|
|
309
312
|
this.template_id = gCPVal(container, 'template_id', '');
|
|
310
313
|
this.bodyPadding = gCPVal(container,'bodyPadding', [0], {sKey:'bodyPaddingStatus',fields:['bodyPadding'],isPMR: true});
|
|
311
314
|
this.navTopMargin = gCPVal(container,'navTopMargin', [0], {sKey:'navTopMarginStatus',fields:['navTopMargin'],isPMR: true});
|
|
312
|
-
this.navTopPadding = gCPVal(container,'navTopPadding', [{top: 16,left:
|
|
315
|
+
this.navTopPadding = gCPVal(container,'navTopPadding', [{top: 16,left: 12, bottom: 16, right: 12}], {sKey:'navTopPaddingStatus',isPMR: true});
|
|
313
316
|
this.navTopBg = gCPVal(container,'navTopBg', '#FFFFFF', {sKey:'navTopBgStatus'});
|
|
314
317
|
this.navTopImgSize = gCPVal(container,'navTopImgSize', 120, {sKey:'navTopImgSizeStatus'});
|
|
315
318
|
this.navTopItemPadding = gCPVal(container,'navTopItemPadding', 0, {sKey:'navTopItemPaddingStatus'});
|
|
@@ -379,9 +382,12 @@
|
|
|
379
382
|
handleToDetail(sub, parent){
|
|
380
383
|
console.log('handleToDetail', sub, parent);
|
|
381
384
|
let navObj = parent.navigation;
|
|
385
|
+
let extParams = {};
|
|
386
|
+
if(navObj.business_code) extParams.xnamespace = navObj.business_code;
|
|
382
387
|
if(navObj.data_source === 'product_category'){
|
|
383
388
|
//商品分类
|
|
384
|
-
|
|
389
|
+
extParams.category_id = sub.id;
|
|
390
|
+
this.handleLink(navObj.redirect_type, navObj.redirect_data, extParams);
|
|
385
391
|
}else if(navObj.data_source === 'product_brand'){
|
|
386
392
|
//品牌
|
|
387
393
|
let redirect_type, redirect_data;
|
|
@@ -398,18 +404,24 @@
|
|
|
398
404
|
redirect_type = navObj.offline_redirect_type;
|
|
399
405
|
redirect_data = navObj.offline_redirect_data;
|
|
400
406
|
}
|
|
401
|
-
|
|
407
|
+
extParams.brand_id = sub.id;
|
|
408
|
+
if(navObj.data_json && navObj.data_json.brand_type) extParams.brand_type = navObj.data_json.brand_type;
|
|
409
|
+
this.handleLink(redirect_type, redirect_data, extParams);
|
|
402
410
|
}else if(navObj.data_source === 'custom'){
|
|
403
411
|
//自定义
|
|
404
|
-
this.handleLink(sub.redirect_type, sub.redirect_data);
|
|
412
|
+
this.handleLink(sub.redirect_type, sub.redirect_data, extParams);
|
|
405
413
|
}
|
|
406
414
|
},
|
|
407
415
|
handleAdClick(parent){
|
|
408
416
|
let navObj = parent.navigation;
|
|
409
|
-
|
|
417
|
+
let extParams = {};
|
|
418
|
+
if(navObj.business_code) extParams.xnamespace = navObj.business_code;
|
|
419
|
+
this.handleLink(navObj.ad_redirect_type, navObj.ad_redirect_data, extParams);
|
|
410
420
|
},
|
|
411
421
|
handleTopClick(item){
|
|
412
|
-
|
|
422
|
+
let extParams = {};
|
|
423
|
+
if(item.business_code) extParams.xnamespace = item.business_code;
|
|
424
|
+
this.handleLink(item.redirect_type, item.redirect_data, extParams);
|
|
413
425
|
},
|
|
414
426
|
handleLink(redirect_type, redirect_data, otherParams = {}){
|
|
415
427
|
var item = {redirect_type};
|
|
@@ -420,6 +432,27 @@
|
|
|
420
432
|
let app_code = rData.all.app.aopen_app_code;
|
|
421
433
|
let app_type= rData.all.app.appType;
|
|
422
434
|
let rParams = rData.params || {};
|
|
435
|
+
|
|
436
|
+
for(let key in rParams){
|
|
437
|
+
if(Array.isArray(rParams[key])){
|
|
438
|
+
let cur = rParams[key];
|
|
439
|
+
let pStr = "";
|
|
440
|
+
for(let iKey in cur){
|
|
441
|
+
if(typeof cur[iKey] === 'string' || typeof cur[iKey] === 'number'){
|
|
442
|
+
pStr += `${cur[iKey]},`;
|
|
443
|
+
}else if(typeof cur[iKey] === 'object' && cur[iKey].value){
|
|
444
|
+
pStr += `${cur[iKey].value},`;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
rParams[key] = pStr;
|
|
448
|
+
}
|
|
449
|
+
if(typeof rParams[key] === 'object'){
|
|
450
|
+
if(rParams[key].value){
|
|
451
|
+
rParams[key] = rParams[key].value;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
|
|
423
456
|
let customParams = rData.customParams || "";
|
|
424
457
|
let redirectData = {
|
|
425
458
|
page: value,
|
|
@@ -703,6 +736,11 @@
|
|
|
703
736
|
},
|
|
704
737
|
onJfbShow(options) {
|
|
705
738
|
console.log('event.onJfbShow', options)
|
|
739
|
+
this.categoryList = [];
|
|
740
|
+
this.cateIndex = 0;
|
|
741
|
+
this.loadCateIndex = 0;
|
|
742
|
+
this.pointerScroll = true;
|
|
743
|
+
this.onJfbLoad(options);
|
|
706
744
|
},
|
|
707
745
|
onJfbHide(options) {
|
|
708
746
|
console.log('event.onJfbHide', options)
|
|
@@ -729,19 +767,19 @@
|
|
|
729
767
|
box-sizing: border-box;
|
|
730
768
|
.nav_top{
|
|
731
769
|
background-color: #FFFFFF;
|
|
732
|
-
padding: 16rpx
|
|
770
|
+
padding: 16rpx 12rpx;
|
|
733
771
|
.cate_item{
|
|
734
|
-
margin: 8rpx
|
|
735
|
-
&:nth-child(5n){
|
|
736
|
-
|
|
737
|
-
}
|
|
772
|
+
margin: 8rpx 12rpx;
|
|
773
|
+
// &:nth-child(5n){
|
|
774
|
+
// margin-right: 0;
|
|
775
|
+
// }
|
|
738
776
|
}
|
|
739
777
|
}
|
|
740
778
|
.nav_main{
|
|
741
779
|
display: flex;
|
|
742
780
|
box-sizing: border-box;
|
|
743
781
|
.left_nav{
|
|
744
|
-
width:
|
|
782
|
+
width: 152rpx;
|
|
745
783
|
background-color: #F8F8F8;
|
|
746
784
|
font-size: 24rpx;
|
|
747
785
|
color: #333333;
|
|
@@ -793,10 +831,17 @@
|
|
|
793
831
|
}
|
|
794
832
|
.group_ad{
|
|
795
833
|
width: 100%;
|
|
834
|
+
border-radius: 16rpx 16rpx 0 0;
|
|
835
|
+
overflow: hidden;
|
|
796
836
|
image{
|
|
797
837
|
width: 100%;
|
|
798
838
|
display: block;
|
|
799
839
|
}
|
|
840
|
+
|
|
841
|
+
& + .product_list{
|
|
842
|
+
border-top-left-radius: 0;
|
|
843
|
+
border-top-right-radius: 0;
|
|
844
|
+
}
|
|
800
845
|
}
|
|
801
846
|
.product_list{
|
|
802
847
|
background: #FFFFFF;
|
|
@@ -812,12 +857,13 @@
|
|
|
812
857
|
}
|
|
813
858
|
}
|
|
814
859
|
.cate_item{
|
|
815
|
-
margin: 20rpx
|
|
816
|
-
&:nth-child(3n){
|
|
817
|
-
|
|
818
|
-
}
|
|
860
|
+
margin: 20rpx 26rpx;
|
|
861
|
+
// &:nth-child(3n){
|
|
862
|
+
// margin-right: 0;
|
|
863
|
+
// }
|
|
819
864
|
.cate_img{
|
|
820
865
|
box-shadow: 0 0 6rpx rgba(0, 0, 0, 0.08);
|
|
866
|
+
border-radius: 16rpx;
|
|
821
867
|
}
|
|
822
868
|
.cate_name{
|
|
823
869
|
margin-top: 10rpx;
|
|
@@ -95,5 +95,14 @@ export default function (data, gValue,gColor,oldData){
|
|
|
95
95
|
});
|
|
96
96
|
},
|
|
97
97
|
},
|
|
98
|
+
{
|
|
99
|
+
label: '版本号:',
|
|
100
|
+
ele: 'el-input',
|
|
101
|
+
type: 'text',
|
|
102
|
+
groupKey: 'content',
|
|
103
|
+
valueKey: 'version',
|
|
104
|
+
value: 'v2.0',
|
|
105
|
+
hidden: true,
|
|
106
|
+
},
|
|
98
107
|
].filter(i=>i);
|
|
99
108
|
}
|