jufubao-mall 2.0.31-beta101 → 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>
|
|
@@ -128,7 +131,7 @@
|
|
|
128
131
|
topList: [],
|
|
129
132
|
|
|
130
133
|
//面板参数
|
|
131
|
-
template_id: "
|
|
134
|
+
template_id: "",
|
|
132
135
|
layoutStyle: "",
|
|
133
136
|
compStyle: "",
|
|
134
137
|
bodyPadding: {},
|
|
@@ -306,9 +309,10 @@
|
|
|
306
309
|
init(container) {
|
|
307
310
|
this.layoutStyle = gCPVal(container, 'layoutStyle', '1');
|
|
308
311
|
this.compStyle = gCPVal(container, 'compStyle', '1');
|
|
312
|
+
this.template_id = gCPVal(container, 'template_id', '');
|
|
309
313
|
this.bodyPadding = gCPVal(container,'bodyPadding', [0], {sKey:'bodyPaddingStatus',fields:['bodyPadding'],isPMR: true});
|
|
310
314
|
this.navTopMargin = gCPVal(container,'navTopMargin', [0], {sKey:'navTopMarginStatus',fields:['navTopMargin'],isPMR: true});
|
|
311
|
-
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});
|
|
312
316
|
this.navTopBg = gCPVal(container,'navTopBg', '#FFFFFF', {sKey:'navTopBgStatus'});
|
|
313
317
|
this.navTopImgSize = gCPVal(container,'navTopImgSize', 120, {sKey:'navTopImgSizeStatus'});
|
|
314
318
|
this.navTopItemPadding = gCPVal(container,'navTopItemPadding', 0, {sKey:'navTopItemPaddingStatus'});
|
|
@@ -378,9 +382,12 @@
|
|
|
378
382
|
handleToDetail(sub, parent){
|
|
379
383
|
console.log('handleToDetail', sub, parent);
|
|
380
384
|
let navObj = parent.navigation;
|
|
385
|
+
let extParams = {};
|
|
386
|
+
if(navObj.business_code) extParams.xnamespace = navObj.business_code;
|
|
381
387
|
if(navObj.data_source === 'product_category'){
|
|
382
388
|
//商品分类
|
|
383
|
-
|
|
389
|
+
extParams.category_id = sub.id;
|
|
390
|
+
this.handleLink(navObj.redirect_type, navObj.redirect_data, extParams);
|
|
384
391
|
}else if(navObj.data_source === 'product_brand'){
|
|
385
392
|
//品牌
|
|
386
393
|
let redirect_type, redirect_data;
|
|
@@ -397,18 +404,24 @@
|
|
|
397
404
|
redirect_type = navObj.offline_redirect_type;
|
|
398
405
|
redirect_data = navObj.offline_redirect_data;
|
|
399
406
|
}
|
|
400
|
-
|
|
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);
|
|
401
410
|
}else if(navObj.data_source === 'custom'){
|
|
402
411
|
//自定义
|
|
403
|
-
this.handleLink(sub.redirect_type, sub.redirect_data);
|
|
412
|
+
this.handleLink(sub.redirect_type, sub.redirect_data, extParams);
|
|
404
413
|
}
|
|
405
414
|
},
|
|
406
415
|
handleAdClick(parent){
|
|
407
416
|
let navObj = parent.navigation;
|
|
408
|
-
|
|
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);
|
|
409
420
|
},
|
|
410
421
|
handleTopClick(item){
|
|
411
|
-
|
|
422
|
+
let extParams = {};
|
|
423
|
+
if(item.business_code) extParams.xnamespace = item.business_code;
|
|
424
|
+
this.handleLink(item.redirect_type, item.redirect_data, extParams);
|
|
412
425
|
},
|
|
413
426
|
handleLink(redirect_type, redirect_data, otherParams = {}){
|
|
414
427
|
var item = {redirect_type};
|
|
@@ -419,6 +432,27 @@
|
|
|
419
432
|
let app_code = rData.all.app.aopen_app_code;
|
|
420
433
|
let app_type= rData.all.app.appType;
|
|
421
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
|
+
|
|
422
456
|
let customParams = rData.customParams || "";
|
|
423
457
|
let redirectData = {
|
|
424
458
|
page: value,
|
|
@@ -702,6 +736,11 @@
|
|
|
702
736
|
},
|
|
703
737
|
onJfbShow(options) {
|
|
704
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);
|
|
705
744
|
},
|
|
706
745
|
onJfbHide(options) {
|
|
707
746
|
console.log('event.onJfbHide', options)
|
|
@@ -728,19 +767,19 @@
|
|
|
728
767
|
box-sizing: border-box;
|
|
729
768
|
.nav_top{
|
|
730
769
|
background-color: #FFFFFF;
|
|
731
|
-
padding: 16rpx
|
|
770
|
+
padding: 16rpx 12rpx;
|
|
732
771
|
.cate_item{
|
|
733
|
-
margin: 8rpx
|
|
734
|
-
&:nth-child(5n){
|
|
735
|
-
|
|
736
|
-
}
|
|
772
|
+
margin: 8rpx 12rpx;
|
|
773
|
+
// &:nth-child(5n){
|
|
774
|
+
// margin-right: 0;
|
|
775
|
+
// }
|
|
737
776
|
}
|
|
738
777
|
}
|
|
739
778
|
.nav_main{
|
|
740
779
|
display: flex;
|
|
741
780
|
box-sizing: border-box;
|
|
742
781
|
.left_nav{
|
|
743
|
-
width:
|
|
782
|
+
width: 152rpx;
|
|
744
783
|
background-color: #F8F8F8;
|
|
745
784
|
font-size: 24rpx;
|
|
746
785
|
color: #333333;
|
|
@@ -792,10 +831,17 @@
|
|
|
792
831
|
}
|
|
793
832
|
.group_ad{
|
|
794
833
|
width: 100%;
|
|
834
|
+
border-radius: 16rpx 16rpx 0 0;
|
|
835
|
+
overflow: hidden;
|
|
795
836
|
image{
|
|
796
837
|
width: 100%;
|
|
797
838
|
display: block;
|
|
798
839
|
}
|
|
840
|
+
|
|
841
|
+
& + .product_list{
|
|
842
|
+
border-top-left-radius: 0;
|
|
843
|
+
border-top-right-radius: 0;
|
|
844
|
+
}
|
|
799
845
|
}
|
|
800
846
|
.product_list{
|
|
801
847
|
background: #FFFFFF;
|
|
@@ -811,12 +857,13 @@
|
|
|
811
857
|
}
|
|
812
858
|
}
|
|
813
859
|
.cate_item{
|
|
814
|
-
margin: 20rpx
|
|
815
|
-
&:nth-child(3n){
|
|
816
|
-
|
|
817
|
-
}
|
|
860
|
+
margin: 20rpx 26rpx;
|
|
861
|
+
// &:nth-child(3n){
|
|
862
|
+
// margin-right: 0;
|
|
863
|
+
// }
|
|
818
864
|
.cate_img{
|
|
819
865
|
box-shadow: 0 0 6rpx rgba(0, 0, 0, 0.08);
|
|
866
|
+
border-radius: 16rpx;
|
|
820
867
|
}
|
|
821
868
|
.cate_name{
|
|
822
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
|
}
|