jufubao-base 1.0.187-beta2 → 1.0.187-beta3
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/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +4 -1
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +17 -5
- package/src/components/JfbBaseFastLink/XdFastNav.vue +1 -2
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +4 -4
- package/src/components/JfbBaseOrderDetail/Api.js +1 -0
- package/src/components/JfbBaseOrderDetail/Attr.js +140 -0
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +108 -27
- package/src/components/JfbBaseOrderList/Attr.js +36 -2
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +22 -6
- package/src/components/JfbBaseOrderList/Mock.js +3 -0
- package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +28 -7
- package/src/components/JfbBasePhoneCollect/Attr.js +945 -411
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +307 -27
- package/src/components/JfbBasePhoneLogin/Attr.js +893 -405
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +609 -253
- package/src/components/JfbBaseSuccess/Attr.js +1 -1
- package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetail.vue +4 -1
- package/src/components/JfbBaseWallet/Attr.js +4 -1
package/package.json
CHANGED
|
@@ -391,8 +391,11 @@ export default {
|
|
|
391
391
|
//外站配置地址
|
|
392
392
|
if(entry.redirect_type === 'URL') {
|
|
393
393
|
if(regHttp.test(entry.redirect_data['path']) || regSp.test(entry.redirect_data['path'])) {
|
|
394
|
+
let urlPath = entry.redirect_data['path'];
|
|
395
|
+
if(urlPath.indexOf('?') === -1) urlPath = `${urlPath}?x-common=${nsp}&vs=${new Date().getTime()}`;
|
|
396
|
+
else urlPath = `${urlPath}&x-common=${nsp}&vs=${new Date().getTime()}`;
|
|
394
397
|
this.$xdUniHelper.redirectTo({
|
|
395
|
-
url
|
|
398
|
+
url:urlPath
|
|
396
399
|
}, false)
|
|
397
400
|
}
|
|
398
401
|
else {
|
|
@@ -706,7 +706,7 @@ export default {
|
|
|
706
706
|
*/
|
|
707
707
|
handleBindLogin(item , entry) {
|
|
708
708
|
//卡券登录
|
|
709
|
-
if (this.tabIndex === 1||this.tabIndex === 2) {
|
|
709
|
+
if (this.tabIndex === 1 || this.tabIndex === 2) {
|
|
710
710
|
if (item["is_valid"] !== "Y") {
|
|
711
711
|
return;
|
|
712
712
|
}
|
|
@@ -719,6 +719,7 @@ export default {
|
|
|
719
719
|
}, false);
|
|
720
720
|
return
|
|
721
721
|
}
|
|
722
|
+
|
|
722
723
|
jfbRootExec("loginEntryCardBind", {
|
|
723
724
|
vm: this,
|
|
724
725
|
data: { card_number: item["card_number"] },
|
|
@@ -736,7 +737,6 @@ export default {
|
|
|
736
737
|
if (this.$configProject.isPreview) {
|
|
737
738
|
console.log("handleBindLogin", "预览模式不跳转", this.inCallback);
|
|
738
739
|
}
|
|
739
|
-
|
|
740
740
|
else {
|
|
741
741
|
this.handleClick(entry);
|
|
742
742
|
}
|
|
@@ -775,7 +775,15 @@ export default {
|
|
|
775
775
|
},
|
|
776
776
|
|
|
777
777
|
handleClick(entry){
|
|
778
|
-
if (this.$configProject['isPreview']) return
|
|
778
|
+
if (this.$configProject['isPreview']) return;
|
|
779
|
+
|
|
780
|
+
//登陆成功,有回调地址返回回调地址
|
|
781
|
+
if(this.inCallbackUrlOrg) {
|
|
782
|
+
this.$xdUniHelper.redirectTo({
|
|
783
|
+
url:this.inCallback
|
|
784
|
+
}, false);
|
|
785
|
+
return;
|
|
786
|
+
}
|
|
779
787
|
|
|
780
788
|
const {dir, path, host, appType} = entry['redirect_data'];
|
|
781
789
|
let regHttp = /^(\/\/|http:\/\/|https:\/\/).+$/;
|
|
@@ -787,8 +795,11 @@ export default {
|
|
|
787
795
|
//外站配置地址
|
|
788
796
|
if(entry.redirect_type === 'URL') {
|
|
789
797
|
if(regHttp.test(entry.redirect_data['path']) || regSp.test(entry.redirect_data['path'])) {
|
|
798
|
+
let urlPath = entry.redirect_data['path'];
|
|
799
|
+
if(urlPath.indexOf('?') === -1) urlPath = `${urlPath}?x-common=${nsp}&vs=${new Date().getTime()}`;
|
|
800
|
+
else urlPath = `${urlPath}&x-common=${nsp}&vs=${new Date().getTime()}`;
|
|
790
801
|
this.$xdUniHelper.redirectTo({
|
|
791
|
-
url
|
|
802
|
+
url:urlPath
|
|
792
803
|
}, false)
|
|
793
804
|
}
|
|
794
805
|
else {
|
|
@@ -845,7 +856,7 @@ export default {
|
|
|
845
856
|
if(options['x-test'] === 'jfb-console') this.showIndex = true;
|
|
846
857
|
this.options = options;
|
|
847
858
|
let { inCallback } = options;
|
|
848
|
-
this.force = inCallback
|
|
859
|
+
this.force = !!inCallback;
|
|
849
860
|
if(!inCallback) this.$storage.remove("inCallback"); //作为入口
|
|
850
861
|
else {
|
|
851
862
|
this.$storage.set("inCallback", inCallback);
|
|
@@ -947,6 +958,7 @@ export default {
|
|
|
947
958
|
this.handleCardInit(this.ajaxCardList, type);
|
|
948
959
|
this.cardPageNum = 1;
|
|
949
960
|
this.$xdHideLoading();
|
|
961
|
+
|
|
950
962
|
})
|
|
951
963
|
.catch(() => this.$xdHideLoading());
|
|
952
964
|
},
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<view v-show="index !== 0" :style="{background: lineColor}"></view>
|
|
31
31
|
</view>
|
|
32
32
|
</view>
|
|
33
|
-
<view class="xd-fast-nave__body-mask" v-if="
|
|
33
|
+
<view class="xd-fast-nave__body-mask" v-if="0&&!close" @click="close=true"></view>
|
|
34
34
|
</view>
|
|
35
35
|
</view>
|
|
36
36
|
</template>
|
|
@@ -112,7 +112,6 @@
|
|
|
112
112
|
console.warn(item.path);
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
115
|
-
this.close = true;
|
|
116
115
|
this.$xdUniHelper.navigateTo({
|
|
117
116
|
url: item.path
|
|
118
117
|
},false);
|
|
@@ -93,12 +93,12 @@
|
|
|
93
93
|
created() {
|
|
94
94
|
this.view = this.$configProject.isPreview;
|
|
95
95
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
){
|
|
96
|
+
//非预览模式
|
|
97
|
+
//#ifdef H5
|
|
98
|
+
if (!this.$configProject.isPreview){
|
|
100
99
|
this.baseUrl = this.projectAttr['deploy_dir']
|
|
101
100
|
}
|
|
101
|
+
//#endif
|
|
102
102
|
|
|
103
103
|
//设置高度
|
|
104
104
|
if(this.$configProject.isPreview) {
|
|
@@ -485,6 +485,146 @@ export default {
|
|
|
485
485
|
},
|
|
486
486
|
inline: false,
|
|
487
487
|
},
|
|
488
|
+
|
|
489
|
+
// 废弃 - 隐藏
|
|
490
|
+
{
|
|
491
|
+
label: '是否有投影:',
|
|
492
|
+
ele: 'xd-radio',
|
|
493
|
+
groupKey:'style',
|
|
494
|
+
valueKey: 'is_shadow',
|
|
495
|
+
value: data['is_shadow'] || 'N',
|
|
496
|
+
placeholder: '请选择是否投影',
|
|
497
|
+
multiple: false,
|
|
498
|
+
className: 'input80',
|
|
499
|
+
list: [
|
|
500
|
+
{ label: '是', value: 'Y' },
|
|
501
|
+
{ label: '否', value: 'N' },
|
|
502
|
+
],
|
|
503
|
+
hidden: true,
|
|
504
|
+
},
|
|
505
|
+
data['is_shadow'] === 'Y' && {
|
|
506
|
+
label: '投影颜色:',
|
|
507
|
+
ele: 'xd-color',
|
|
508
|
+
groupKey:'style',
|
|
509
|
+
valueKey: 'is_shadow_bg',
|
|
510
|
+
value: data['is_shadow_bg'] || '',
|
|
511
|
+
placeholder: '请选择投影颜色',
|
|
512
|
+
classNmae: 'input80',
|
|
513
|
+
hidden: true,
|
|
514
|
+
},
|
|
515
|
+
data['is_shadow'] === 'Y' && {
|
|
516
|
+
label: '投影范围:',
|
|
517
|
+
ele: 'xd-site-select-list',
|
|
518
|
+
valueKey: 'is_shadow_w',
|
|
519
|
+
groupKey:'style',
|
|
520
|
+
value: data['is_shadow_w'] || '10',
|
|
521
|
+
placeholder: '请选择投影范围',
|
|
522
|
+
multiple: false,
|
|
523
|
+
className: 'input80',
|
|
524
|
+
handleCustom({ action, data }) {
|
|
525
|
+
XdBus.getParentApi('getOptionsSettingList')({
|
|
526
|
+
setting_id: 'edtix_style_radius',
|
|
527
|
+
key: Date.now()
|
|
528
|
+
})
|
|
529
|
+
.then(res => {
|
|
530
|
+
data.cb(res.list)
|
|
531
|
+
})
|
|
532
|
+
.catch(error => {
|
|
533
|
+
console.error(error);
|
|
534
|
+
});
|
|
535
|
+
},
|
|
536
|
+
hidden: true,
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
label: '是否有边框:',
|
|
540
|
+
ele: 'xd-radio',
|
|
541
|
+
valueKey: 'is_border',
|
|
542
|
+
value: data['is_border'] || 'N',
|
|
543
|
+
groupKey:'style',
|
|
544
|
+
placeholder: '请选择是否有边框',
|
|
545
|
+
multiple: false,
|
|
546
|
+
className: 'input80',
|
|
547
|
+
list: [
|
|
548
|
+
{ label: '是', value: 'Y' },
|
|
549
|
+
{ label: '否', value: 'N' },
|
|
550
|
+
],
|
|
551
|
+
hidden: true,
|
|
552
|
+
},
|
|
553
|
+
data['is_border'] === 'Y' && {
|
|
554
|
+
label: '边框颜色:',
|
|
555
|
+
ele: 'xd-color',
|
|
556
|
+
groupKey:'style',
|
|
557
|
+
valueKey: 'is_border_c',
|
|
558
|
+
value: data['is_border_c'] || '',
|
|
559
|
+
placeholder: '请选择边框颜色',
|
|
560
|
+
className: 'input80',
|
|
561
|
+
hidden: true,
|
|
562
|
+
},
|
|
563
|
+
data['is_border'] === 'Y' && {
|
|
564
|
+
label: '边框大小:',
|
|
565
|
+
groupKey:'style',
|
|
566
|
+
ele: 'el-input',
|
|
567
|
+
type: 'number',
|
|
568
|
+
valueKey: 'is_border_w',
|
|
569
|
+
value: data['is_border_w'] || '',
|
|
570
|
+
placeholder: '请输入边框颜色',
|
|
571
|
+
className: 'input80',
|
|
572
|
+
hidden: true,
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
label: '是否展开票券信息:',
|
|
576
|
+
ele: 'xd-radio',
|
|
577
|
+
valueKey: 'is_open',
|
|
578
|
+
value: data['is_open'] || 'N',
|
|
579
|
+
groupKey:'content',
|
|
580
|
+
placeholder: '请选择是否展开票券信息',
|
|
581
|
+
multiple: false,
|
|
582
|
+
className: 'input80',
|
|
583
|
+
list: [
|
|
584
|
+
{ label: '展开', value: 'Y' },
|
|
585
|
+
{ label: '收起', value: 'N' },
|
|
586
|
+
]
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
label: '是否显示商品信息:',
|
|
590
|
+
ele: 'xd-radio',
|
|
591
|
+
valueKey: 'is_show_product',
|
|
592
|
+
groupKey:'content',
|
|
593
|
+
value:data['is_show_product'] || 'Y',
|
|
594
|
+
placeholder: '请选择',
|
|
595
|
+
list: [
|
|
596
|
+
{"label": "是", "value": "Y"},
|
|
597
|
+
{"label": "否", "value": "N"},
|
|
598
|
+
],
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
label: '是否展开商品详情:',
|
|
602
|
+
ele: 'xd-radio',
|
|
603
|
+
valueKey: 'is_show_all_detail',
|
|
604
|
+
value: data['is_show_all_detail'] || 'N',
|
|
605
|
+
groupKey:'content',
|
|
606
|
+
placeholder: '请选择是否展开商品详情',
|
|
607
|
+
multiple: false,
|
|
608
|
+
className: 'input80',
|
|
609
|
+
list: [
|
|
610
|
+
{ label: '展开', value: 'Y' },
|
|
611
|
+
{ label: '收起', value: 'N' },
|
|
612
|
+
]
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
label: '提货码展示/隐藏:',
|
|
616
|
+
ele: 'xd-radio',
|
|
617
|
+
valueKey: 'is_show',
|
|
618
|
+
value: data['is_show'] || '1',
|
|
619
|
+
groupKey:'content',
|
|
620
|
+
placeholder: '请选择提货码展示/隐藏',
|
|
621
|
+
multiple: false,
|
|
622
|
+
className: 'input80',
|
|
623
|
+
list: [
|
|
624
|
+
{ label: '显示', value: '1' },
|
|
625
|
+
{ label: '隐藏', value: '0' },
|
|
626
|
+
]
|
|
627
|
+
},
|
|
488
628
|
].filter(i=>i)
|
|
489
629
|
},
|
|
490
630
|
}
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
class="jfb-base-order-detail__body-card jfb-base-order-detail__body-cashier"
|
|
266
266
|
>
|
|
267
267
|
<view class="jfb-base-order-detail__body-cashier-text">{{info.codes[0].show_type === "qrcode" ? "二维码" : "条形码" }}</view>
|
|
268
|
-
<view style="position: relative">
|
|
268
|
+
<view v-if="showPreviewCode" style="position: relative">
|
|
269
269
|
<image
|
|
270
270
|
:style="{
|
|
271
271
|
height: info.codes[0].show_type === 'qrcode' ? '50vw' : '25vw',
|
|
@@ -568,20 +568,18 @@
|
|
|
568
568
|
></view>
|
|
569
569
|
</view>
|
|
570
570
|
<view v-if="info.pay_info.cards && info.pay_info.cards.length > 0">
|
|
571
|
-
<view class="jfb-base-order-detail__body-show" v-if="!showPayCard">
|
|
571
|
+
<view @click="showPayCard = true" class="jfb-base-order-detail__body-show" v-if="!showPayCard">
|
|
572
572
|
<text>使用 {{ info.pay_info.cards.length }} 张票券 展开</text>
|
|
573
573
|
<xd-font-icon
|
|
574
574
|
style="margin-left: 8rpx"
|
|
575
|
-
@click="showPayCard = true"
|
|
576
575
|
size="28"
|
|
577
576
|
icon="iconxia_down"
|
|
578
577
|
></xd-font-icon>
|
|
579
578
|
</view>
|
|
580
|
-
<view class="jfb-base-order-detail__body-show" v-else>
|
|
579
|
+
<view @click="showPayCard = false" class="jfb-base-order-detail__body-show" v-else>
|
|
581
580
|
<text>使用{{ info.pay_info.cards.length }}张票券 收起</text>
|
|
582
581
|
<xd-font-icon
|
|
583
582
|
style="margin-left: 8rpx"
|
|
584
|
-
@click="showPayCard = false"
|
|
585
583
|
size="28"
|
|
586
584
|
icon="iconshang_up"
|
|
587
585
|
></xd-font-icon>
|
|
@@ -665,8 +663,26 @@
|
|
|
665
663
|
<view class="jfb-base-order-detail__body-shop-title">
|
|
666
664
|
<view :style="{ background: mainColor }"></view>
|
|
667
665
|
<view>商品详情</view>
|
|
666
|
+
<view @click="showAllProductDetail=!showAllProductDetail" v-if="!showAllProductDetail" class="jfb-base-order-detail__body-product-show">
|
|
667
|
+
<text> 展开</text>
|
|
668
|
+
<xd-font-icon
|
|
669
|
+
style="margin-left: 8rpx"
|
|
670
|
+
size="28"
|
|
671
|
+
icon="iconxia_down"
|
|
672
|
+
></xd-font-icon>
|
|
673
|
+
</view>
|
|
674
|
+
<view @click="showAllProductDetail=!showAllProductDetail" v-if="showAllProductDetail" class="jfb-base-order-detail__body-product-show">
|
|
675
|
+
<text> 收起</text>
|
|
676
|
+
<xd-font-icon
|
|
677
|
+
style="margin-left: 8rpx"
|
|
678
|
+
size="28"
|
|
679
|
+
icon="iconxia_down"
|
|
680
|
+
></xd-font-icon>
|
|
681
|
+
</view>
|
|
682
|
+
</view>
|
|
683
|
+
<view class="jfb-base-order-detail__body-html" v-if="showAllProductDetail">
|
|
684
|
+
<view v-html="info.productDetail"></view>
|
|
668
685
|
</view>
|
|
669
|
-
<view v-html="info.productDetail"></view>
|
|
670
686
|
</view>
|
|
671
687
|
<view
|
|
672
688
|
v-if="info.custom_content"
|
|
@@ -695,7 +711,7 @@
|
|
|
695
711
|
:style="prod_bottom"
|
|
696
712
|
v-if="info.buttons && info.buttons.length > 0"
|
|
697
713
|
>
|
|
698
|
-
<view :style="[bottomBoxStyle]">
|
|
714
|
+
<view :style="[bottomBoxStyle]" class="btn_wrap">
|
|
699
715
|
<view v-for="(item, index) in info.buttons" :key="index">
|
|
700
716
|
<view
|
|
701
717
|
style="display: flex; align-items: center"
|
|
@@ -836,14 +852,19 @@ export default {
|
|
|
836
852
|
backgroundColor: "",
|
|
837
853
|
padding: 0,
|
|
838
854
|
|
|
855
|
+
//投影
|
|
856
|
+
is_shadow: "Y",
|
|
857
|
+
is_shadow_bg: 0,
|
|
858
|
+
is_shadow_w: 0,
|
|
859
|
+
|
|
860
|
+
//边框
|
|
861
|
+
is_border: "Y",
|
|
862
|
+
is_border_w: 0,
|
|
863
|
+
is_border_c: "",
|
|
864
|
+
|
|
839
865
|
|
|
840
866
|
//其他
|
|
841
|
-
margin: {
|
|
842
|
-
top: 0,
|
|
843
|
-
left: 0,
|
|
844
|
-
right: 0,
|
|
845
|
-
bottom: 0,
|
|
846
|
-
},
|
|
867
|
+
margin: {},
|
|
847
868
|
is_hot: "Y",
|
|
848
869
|
logo: "",
|
|
849
870
|
lineHeight: 20,
|
|
@@ -855,6 +876,12 @@ export default {
|
|
|
855
876
|
bottomPadding: "",
|
|
856
877
|
bottomBgColor: "",
|
|
857
878
|
bottomBtnHeight: "",
|
|
879
|
+
is_open: '',
|
|
880
|
+
is_show: '',
|
|
881
|
+
showAllProductDetail: false,
|
|
882
|
+
is_show_all_detail: '',
|
|
883
|
+
showPreviewCode: true,
|
|
884
|
+
is_show_product: "",
|
|
858
885
|
};
|
|
859
886
|
},
|
|
860
887
|
watch: {
|
|
@@ -940,13 +967,15 @@ export default {
|
|
|
940
967
|
this.getCountDown();
|
|
941
968
|
}
|
|
942
969
|
},
|
|
943
|
-
getOrderDetail() {
|
|
970
|
+
getOrderDetail() {
|
|
944
971
|
jfbRootExec("getBaseOrderDetail", {
|
|
945
972
|
vm: this,
|
|
946
973
|
data: {
|
|
947
974
|
main_order_id: this.main_order_id,
|
|
948
975
|
custom_content_page_id: this.pageAttr.page_id,
|
|
949
976
|
custom_content_container_id: this.cid,
|
|
977
|
+
is_show_jhd_code: Number(this.is_show),
|
|
978
|
+
is_show_product: this.is_show_product === "Y" ? 1 : 0,
|
|
950
979
|
},
|
|
951
980
|
})
|
|
952
981
|
.then((res) => {
|
|
@@ -1073,7 +1102,7 @@ export default {
|
|
|
1073
1102
|
}
|
|
1074
1103
|
|
|
1075
1104
|
//增加删除订单按钮
|
|
1076
|
-
if(this.is_show_delete_order
|
|
1105
|
+
if(this.is_show_delete_order === 'Y') {
|
|
1077
1106
|
let pay = (res.buttons||[]).filter(item => item.action === 'pay');
|
|
1078
1107
|
let del = [{action:'delete', text:'删除订单', type: 'info'}];
|
|
1079
1108
|
if(pay.length === 1) del = []
|
|
@@ -1086,11 +1115,12 @@ export default {
|
|
|
1086
1115
|
}
|
|
1087
1116
|
|
|
1088
1117
|
if (res.product) {
|
|
1089
|
-
|
|
1118
|
+
try {
|
|
1119
|
+
jfbRootExec("getBaseProductDetail", {
|
|
1090
1120
|
vm: this,
|
|
1091
1121
|
data: {
|
|
1092
|
-
xnamespace:
|
|
1093
|
-
product_id:
|
|
1122
|
+
xnamespace: res.product.business_code,
|
|
1123
|
+
product_id: res.product.product_id,
|
|
1094
1124
|
},
|
|
1095
1125
|
})
|
|
1096
1126
|
.then((result) => {
|
|
@@ -1103,6 +1133,11 @@ export default {
|
|
|
1103
1133
|
.catch((err) => {
|
|
1104
1134
|
console.log(err, "err");
|
|
1105
1135
|
});
|
|
1136
|
+
} catch (error) {
|
|
1137
|
+
console.log(error,'apapapa');
|
|
1138
|
+
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1106
1141
|
}
|
|
1107
1142
|
else {
|
|
1108
1143
|
this.info = res;
|
|
@@ -1134,23 +1169,48 @@ export default {
|
|
|
1134
1169
|
this.brandTextColor = getContainerPropsValue(container, "content.brandTextColor", this.mainColor);
|
|
1135
1170
|
this.padding = getContainerPropsValue(container, "content.padding", 20);
|
|
1136
1171
|
|
|
1172
|
+
this.is_shadow = getContainerPropsValue(container, "content.is_shadow", "N");
|
|
1173
|
+
this.is_shadow_bg = getContainerPropsValue(container, "content.is_shadow_bg", "#fff");
|
|
1174
|
+
this.is_shadow_w = getContainerPropsValue(container, "content.is_shadow_w", "10");
|
|
1175
|
+
|
|
1176
|
+
this.is_border = getContainerPropsValue(container, "content.is_border", "N");
|
|
1177
|
+
this.is_border_c = getContainerPropsValue(container, "content.is_border_c", "#fff");
|
|
1178
|
+
this.is_border_w = getContainerPropsValue(container, "content.is_border_w", 2);
|
|
1179
|
+
|
|
1137
1180
|
this.is_hot = getContainerPropsValue(container, "content.is_hot", "Y");
|
|
1138
1181
|
this.viewStatus = getContainerPropsValue(container, "content.viewStatus", "mall");
|
|
1139
1182
|
this.is_show_support_shop = getContainerPropsValue(container, "content.is_show_support_shop", "N");
|
|
1140
1183
|
this.is_show_delete_order = getContainerPropsValue(container, "content.is_show_delete_order", "N");
|
|
1141
1184
|
this.lineHeight = getContainerPropsValue(container, "content.lineHeight", 20);
|
|
1142
1185
|
let sectionShadow = getContainerPropsValue(container, "content.sectionShadow", "");
|
|
1143
|
-
|
|
1144
|
-
this.
|
|
1145
|
-
|
|
1186
|
+
this.sectionShadow = this.getShadowCompatibleOldStyle(sectionShadow, {
|
|
1187
|
+
type: this.is_shadow,
|
|
1188
|
+
width: this.is_shadow_w,
|
|
1189
|
+
color: this.is_shadow_bg,
|
|
1190
|
+
})
|
|
1146
1191
|
let sectionBorder = getContainerPropsValue(container, "content.sectionBorder", "");
|
|
1147
|
-
|
|
1148
|
-
this.
|
|
1149
|
-
|
|
1192
|
+
this.sectionBorder = this.getBorderCompatibleOldStyle(sectionBorder, {
|
|
1193
|
+
type: this.is_border,
|
|
1194
|
+
width: this.is_border_w,
|
|
1195
|
+
color: this.is_border_c,
|
|
1196
|
+
})
|
|
1150
1197
|
this.bottomBtnRadius = getContainerPropsValue(container, "content.bottomBtnRadius", 0);
|
|
1151
1198
|
this.bottomPadding = getContainerPropsValue(container, "content.bottomPadding", {});
|
|
1152
1199
|
this.bottomBgColor = getContainerPropsValue(container, "content.bottomBgColor", "#ffffff");
|
|
1153
1200
|
this.bottomBtnHeight = getContainerPropsValue(container, "content.bottomBtnHeight", 60);
|
|
1201
|
+
this.is_open = getContainerPropsValue(container, "content.is_open", "N");
|
|
1202
|
+
this.is_show = getContainerPropsValue(container, "content.is_show", '1');
|
|
1203
|
+
this.showPayCard = this.is_open==='Y'
|
|
1204
|
+
this.is_show_all_detail = getContainerPropsValue(container, "content.is_show_all_detail", "N");
|
|
1205
|
+
this.is_show_product = getContainerPropsValue(container, "content.is_show_product", "Y");
|
|
1206
|
+
this.showAllProductDetail = this.is_show_all_detail==='Y'
|
|
1207
|
+
if(this.isPreview) {
|
|
1208
|
+
if(this.is_show==='0') {
|
|
1209
|
+
this.showPreviewCode = false;
|
|
1210
|
+
} else {
|
|
1211
|
+
this.showPreviewCode = true;
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1154
1214
|
},
|
|
1155
1215
|
getCountDown() {
|
|
1156
1216
|
this.timer = setInterval(() => {
|
|
@@ -1797,12 +1857,33 @@ export default {
|
|
|
1797
1857
|
justify-content: flex-end;
|
|
1798
1858
|
align-items: center;
|
|
1799
1859
|
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1860
|
+
.btn_wrap{
|
|
1861
|
+
display: flex;
|
|
1862
|
+
& > view {
|
|
1863
|
+
margin-left: unit(20, rpx);
|
|
1864
|
+
font-size: @xd-font-size-lg;
|
|
1865
|
+
}
|
|
1803
1866
|
}
|
|
1804
1867
|
}
|
|
1805
1868
|
|
|
1869
|
+
&-product {
|
|
1870
|
+
&-show {
|
|
1871
|
+
display: flex;
|
|
1872
|
+
justify-content: center;
|
|
1873
|
+
align-items: center;
|
|
1874
|
+
padding: unit(16, rpx);
|
|
1875
|
+
border-radius: unit(4, rpx);
|
|
1876
|
+
color: #999999;
|
|
1877
|
+
font-size: unit(24, rpx);
|
|
1878
|
+
margin-left:10px
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1882
|
+
&-html {
|
|
1883
|
+
padding: unit(20, rpx) 0;
|
|
1884
|
+
color: #999;
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1806
1887
|
}
|
|
1807
1888
|
.dialog_password{
|
|
1808
1889
|
text-align: center;
|
|
@@ -96,11 +96,38 @@ export default {
|
|
|
96
96
|
inline: false,
|
|
97
97
|
notice: '间距设置,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
98
98
|
},
|
|
99
|
+
{
|
|
100
|
+
label: "投影设置:",
|
|
101
|
+
ele: "xd-shadow",
|
|
102
|
+
valueKey: "sectionShadow",
|
|
103
|
+
value: data.sectionShadow || {},
|
|
104
|
+
groupKey:'style',
|
|
105
|
+
handleCustom({action, data}) {
|
|
106
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
107
|
+
.then(res => {
|
|
108
|
+
data.cb(res.list)
|
|
109
|
+
})
|
|
110
|
+
.catch(error => {
|
|
111
|
+
console.error(error);
|
|
112
|
+
data.cb([])
|
|
113
|
+
});
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
label: '边框设置:',
|
|
118
|
+
ele: 'xd-border',
|
|
119
|
+
valueKey: 'sectionBorder',
|
|
120
|
+
groupKey:'style',
|
|
121
|
+
value: data.sectionBorder || {},
|
|
122
|
+
placeholder: '请选择边框设置',
|
|
123
|
+
inline: false,
|
|
124
|
+
},
|
|
99
125
|
{
|
|
100
126
|
ele: 'title',
|
|
101
127
|
label: '投影设置',
|
|
102
128
|
size: 'small',
|
|
103
129
|
groupKey:'style',
|
|
130
|
+
hidden: true,
|
|
104
131
|
},
|
|
105
132
|
{
|
|
106
133
|
label: '是否有投影:',
|
|
@@ -114,7 +141,8 @@ export default {
|
|
|
114
141
|
list: [
|
|
115
142
|
{label: '是', value: 'Y'},
|
|
116
143
|
{label: '否', value: 'N'},
|
|
117
|
-
]
|
|
144
|
+
],
|
|
145
|
+
hidden: true,
|
|
118
146
|
},
|
|
119
147
|
data['is_shadow'] === 'Y' && {
|
|
120
148
|
label: '投影颜色:',
|
|
@@ -124,6 +152,7 @@ export default {
|
|
|
124
152
|
value: data['is_shadow_bg'] || '',
|
|
125
153
|
placeholder: '请选择投影颜色',
|
|
126
154
|
classNmae: 'input80',
|
|
155
|
+
hidden: true,
|
|
127
156
|
},
|
|
128
157
|
data['is_shadow'] === 'Y' && {
|
|
129
158
|
label: '投影范围:',
|
|
@@ -146,12 +175,14 @@ export default {
|
|
|
146
175
|
console.error(error);
|
|
147
176
|
});
|
|
148
177
|
},
|
|
178
|
+
hidden: true,
|
|
149
179
|
},
|
|
150
180
|
{
|
|
151
181
|
ele: 'title',
|
|
152
182
|
label: '边框设置',
|
|
153
183
|
size: 'small',
|
|
154
184
|
groupKey:'style',
|
|
185
|
+
hidden: true,
|
|
155
186
|
},
|
|
156
187
|
{
|
|
157
188
|
label: '是否有边框:',
|
|
@@ -165,7 +196,8 @@ export default {
|
|
|
165
196
|
list: [
|
|
166
197
|
{label: '是', value: 'Y'},
|
|
167
198
|
{label: '否', value: 'N'},
|
|
168
|
-
]
|
|
199
|
+
],
|
|
200
|
+
hidden: true,
|
|
169
201
|
},
|
|
170
202
|
data['is_border'] === 'Y' && {
|
|
171
203
|
label: '边框颜色:',
|
|
@@ -175,6 +207,7 @@ export default {
|
|
|
175
207
|
value: data['is_border_c'] || '',
|
|
176
208
|
placeholder: '请选择边框颜色',
|
|
177
209
|
classNmae: 'input80',
|
|
210
|
+
hidden: true,
|
|
178
211
|
},
|
|
179
212
|
data['is_border'] === 'Y' && {
|
|
180
213
|
label: '边框大小:',
|
|
@@ -185,6 +218,7 @@ export default {
|
|
|
185
218
|
value: data['is_border_w'] || '',
|
|
186
219
|
placeholder: '请输入边框大小',
|
|
187
220
|
className: 'input80',
|
|
221
|
+
hidden: true,
|
|
188
222
|
},
|
|
189
223
|
{
|
|
190
224
|
label: '内容圆角设置:',
|