jufubao-base 1.0.182-beta1 → 1.0.184-beta1
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/JfbBaseAddress/Attr.js +1 -50
- package/src/components/JfbBaseAddress/JfbBaseAddress.vue +68 -120
- package/src/components/JfbBaseCardDelay/Api.js +19 -30
- package/src/components/JfbBaseCardDelay/Attr.js +237 -35
- package/src/components/JfbBaseCardDelay/JfbBaseCardDelay.vue +279 -78
- package/src/components/JfbBaseCardDetailEntry/Attr.js +12 -0
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +14 -0
- package/src/components/JfbBaseCardDetailEntry/Mock.js +1 -1
- package/src/components/JfbBaseCardEntry/Attr.js +121 -0
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +206 -29
- package/src/components/JfbBaseCardGive/Api.js +18 -34
- package/src/components/JfbBaseCardGive/Attr.js +40 -32
- package/src/components/JfbBaseCardGive/JfbBaseCardGive.vue +502 -79
- package/src/components/JfbBaseCardGive/Mock.js +2 -9
- package/src/components/JfbBaseCardReceive/Api.js +10 -36
- package/src/components/JfbBaseCardReceive/Attr.js +9 -39
- package/src/components/JfbBaseCardReceive/JfbBaseCardReceive.vue +403 -80
- package/src/components/JfbBaseCardReceive/Mock.js +1 -7
- package/src/components/JfbBaseCardReceiveCover/Api.js +5 -43
- package/src/components/JfbBaseCardReceiveCover/Attr.js +119 -30
- package/src/components/JfbBaseCardReceiveCover/JfbBaseCardReceiveCover.vue +189 -82
- package/src/components/JfbBaseCardReceiveCover/Mock.js +1 -9
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +1 -1
- package/src/components/JfbBaseOrderDetail/Attr.js +42 -10
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +137 -23
- package/src/components/JfbBaseOrderDetail/Mock.js +5 -0
- package/src/components/JfbBaseOrderList/Attr.js +0 -23
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +86 -117
- package/src/components/JfbBasePay/Attr.js +12 -0
- package/src/components/JfbBasePay/JfbBasePay.vue +18 -12
- 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/JfbBasePosterType/JfbBasePosterType.vue +0 -1
- package/src/components/JfbBaseRechargeOrder/Api.js +11 -0
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +46 -27
- package/src/components/JfbBaseRechargeOrderDetail/Api.js +11 -0
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +142 -13
- package/src/components/JfbBaseRechargeSuccess/Api.js +11 -0
- package/src/components/JfbBaseRechargeSuccess/Attr.js +1 -1
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +6 -3
- package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +0 -1
- package/src/components/JfbBaseAddress/XdTfkItem.vue +0 -117
- package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +0 -246
|
@@ -129,9 +129,6 @@
|
|
|
129
129
|
v-for="(Ditem, Dindex) in info.film_show.detail.items"
|
|
130
130
|
:key="Dindex"
|
|
131
131
|
class="jfb-base-order-detail__body-delivery-bottom-item"
|
|
132
|
-
:style="{
|
|
133
|
-
marginBottom: lineHeight + 'rpx'
|
|
134
|
-
}"
|
|
135
132
|
>
|
|
136
133
|
<view style="width: 130rpx"
|
|
137
134
|
>{{ Ditem.label }} <span v-if="Ditem.label">:</span>
|
|
@@ -217,9 +214,6 @@
|
|
|
217
214
|
v-for="(Ditem, Dindex) in item.info"
|
|
218
215
|
:key="Dindex"
|
|
219
216
|
class="jfb-base-order-detail__body-delivery-bottom-item"
|
|
220
|
-
:style="{
|
|
221
|
-
marginBottom: lineHeight + 'rpx'
|
|
222
|
-
}"
|
|
223
217
|
>
|
|
224
218
|
<view style="width: 130rpx;display: flex;">
|
|
225
219
|
<view v-html="Ditem.label"></view>
|
|
@@ -265,7 +259,7 @@
|
|
|
265
259
|
class="jfb-base-order-detail__body-card jfb-base-order-detail__body-cashier"
|
|
266
260
|
>
|
|
267
261
|
<view class="jfb-base-order-detail__body-cashier-text">{{info.codes[0].show_type === "qrcode" ? "二维码" : "条形码" }}</view>
|
|
268
|
-
<view style="position: relative">
|
|
262
|
+
<view v-if="showPreviewCode" style="position: relative">
|
|
269
263
|
<image
|
|
270
264
|
:style="{
|
|
271
265
|
height: info.codes[0].show_type === 'qrcode' ? '50vw' : '25vw',
|
|
@@ -516,9 +510,6 @@
|
|
|
516
510
|
v-for="(item, index) in info.detail"
|
|
517
511
|
:key="index"
|
|
518
512
|
class="jfb-base-order-detail__body-order"
|
|
519
|
-
:style="{
|
|
520
|
-
marginBottom: lineHeight + 'rpx'
|
|
521
|
-
}"
|
|
522
513
|
>
|
|
523
514
|
<view :style="{ fontWeight: item.style }">
|
|
524
515
|
<view style="display: flex;">
|
|
@@ -550,9 +541,6 @@
|
|
|
550
541
|
<view
|
|
551
542
|
v-if="item.type !== 'line'"
|
|
552
543
|
class="jfb-base-order-detail__body-price"
|
|
553
|
-
:style="{
|
|
554
|
-
marginBottom: lineHeight + 'rpx'
|
|
555
|
-
}"
|
|
556
544
|
>
|
|
557
545
|
<view :style="{ fontWeight: item.style }">{{ item.label }}</view>
|
|
558
546
|
<xd-unit
|
|
@@ -568,20 +556,18 @@
|
|
|
568
556
|
></view>
|
|
569
557
|
</view>
|
|
570
558
|
<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">
|
|
559
|
+
<view @click="showPayCard = true" class="jfb-base-order-detail__body-show" v-if="!showPayCard">
|
|
572
560
|
<text>使用 {{ info.pay_info.cards.length }} 张票券 展开</text>
|
|
573
561
|
<xd-font-icon
|
|
574
562
|
style="margin-left: 8rpx"
|
|
575
|
-
@click="showPayCard = true"
|
|
576
563
|
size="28"
|
|
577
564
|
icon="iconxia_down"
|
|
578
565
|
></xd-font-icon>
|
|
579
566
|
</view>
|
|
580
|
-
<view class="jfb-base-order-detail__body-show" v-else>
|
|
581
|
-
|
|
567
|
+
<view @click="showPayCard = false" class="jfb-base-order-detail__body-show" v-else>
|
|
568
|
+
<text>使用{{ info.pay_info.cards.length }}张票券 收起</text>
|
|
582
569
|
<xd-font-icon
|
|
583
570
|
style="margin-left: 8rpx"
|
|
584
|
-
@click="showPayCard = false"
|
|
585
571
|
size="28"
|
|
586
572
|
icon="iconshang_up"
|
|
587
573
|
></xd-font-icon>
|
|
@@ -594,7 +580,7 @@
|
|
|
594
580
|
:key="index"
|
|
595
581
|
>
|
|
596
582
|
<view>票券:{{ item.card_type_name }}</view>
|
|
597
|
-
<view>
|
|
583
|
+
<view class="list-item">
|
|
598
584
|
<view>编号:{{ item.card_number }}</view>
|
|
599
585
|
<xd-unit
|
|
600
586
|
:fontSize="28"
|
|
@@ -602,6 +588,7 @@
|
|
|
602
588
|
:price="item.card_use_point"
|
|
603
589
|
:unit="item['card_unit']"
|
|
604
590
|
></xd-unit>
|
|
591
|
+
<view v-if="item['card_discount_use_point'] > 0" class="discount">已优惠:{{item['card_discount_use_point']}}</view>
|
|
605
592
|
</view>
|
|
606
593
|
</view>
|
|
607
594
|
</view>
|
|
@@ -628,6 +615,35 @@
|
|
|
628
615
|
</view>
|
|
629
616
|
</view>
|
|
630
617
|
</view>
|
|
618
|
+
<!--旅游模块-->
|
|
619
|
+
<view
|
|
620
|
+
v-if="info.extras &&
|
|
621
|
+
info.extras.travel_booking_info &&
|
|
622
|
+
info.extras.travel_booking_info['travelers'] &&
|
|
623
|
+
info.extras.travel_booking_info['travelers'].length > 0"
|
|
624
|
+
:style="{
|
|
625
|
+
background: backgroundColor,
|
|
626
|
+
border: borderBox,
|
|
627
|
+
borderRadius: radius + 'rpx',
|
|
628
|
+
boxShadow: shadowBox,
|
|
629
|
+
marginBottom: padding + 'rpx',
|
|
630
|
+
}"
|
|
631
|
+
class="jfb-base-order-detail__body-card jfb-base-order-detail__body-booking"
|
|
632
|
+
>
|
|
633
|
+
<view class="jfb-base-order-detail__body-delivery-bottom-title">预订信息</view>
|
|
634
|
+
<view class="jfb-base-order-detail__body-line"></view>
|
|
635
|
+
<view class="jfb-base-order-detail__body-booking-list">
|
|
636
|
+
<view v-for="(item,index) in info.extras.travel_booking_info.travelers" :key="index" class="jfb-base-order-detail__body-booking-list-item">
|
|
637
|
+
<view :style="{color:mainColor,background:bgColor}" class="jfb-base-order-detail__body-booking-list-item-num">游客{{index+1}}</view>
|
|
638
|
+
<view class="jfb-base-order-detail__body-booking-list-item-info">
|
|
639
|
+
<view class="jfb-base-order-detail__body-booking-list-item-info-name">{{item.name}}</view>
|
|
640
|
+
<view v-if="item.id_card_no" class="jfb-base-order-detail__body-booking-list-item-info-item">身份证:{{item.id_card_no}}</view>
|
|
641
|
+
<view v-if="item.mobile" class="jfb-base-order-detail__body-booking-list-item-info-item">手机号:{{item.mobile}}</view>
|
|
642
|
+
</view>
|
|
643
|
+
</view>
|
|
644
|
+
</view>
|
|
645
|
+
</view>
|
|
646
|
+
<!--旅游模块-->
|
|
631
647
|
<view
|
|
632
648
|
v-if="info.productDetail"
|
|
633
649
|
class="jfb-base-order-detail__body-card jfb-base-order-detail__body-shop"
|
|
@@ -635,8 +651,25 @@
|
|
|
635
651
|
<view class="jfb-base-order-detail__body-shop-title">
|
|
636
652
|
<view :style="{ background: mainColor }"></view>
|
|
637
653
|
<view>商品详情</view>
|
|
654
|
+
<view @click="showAllProductDetail=!showAllProductDetail" v-if="!showAllProductDetail" style="color:#999;display:flex;align-items:center;margin-left:10px">
|
|
655
|
+
<text> 展开</text>
|
|
656
|
+
<xd-font-icon
|
|
657
|
+
style="margin-left: 8rpx"
|
|
658
|
+
size="28"
|
|
659
|
+
icon="iconxia_down"
|
|
660
|
+
></xd-font-icon>
|
|
661
|
+
</view>
|
|
662
|
+
<view @click="showAllProductDetail=!showAllProductDetail" v-if="showAllProductDetail" style="color:#999;display:flex;align-items:center;margin-left:10px">
|
|
663
|
+
<text> 收起</text>
|
|
664
|
+
<xd-font-icon
|
|
665
|
+
style="margin-left: 8rpx"
|
|
666
|
+
size="28"
|
|
667
|
+
icon="iconxia_down"
|
|
668
|
+
></xd-font-icon>
|
|
669
|
+
</view>
|
|
670
|
+
</view>
|
|
671
|
+
<view v-if="showAllProductDetail" v-html="info.product_detail">
|
|
638
672
|
</view>
|
|
639
|
-
<view v-html="info.productDetail"></view>
|
|
640
673
|
</view>
|
|
641
674
|
<view
|
|
642
675
|
v-if="info.custom_content"
|
|
@@ -815,9 +848,13 @@ export default {
|
|
|
815
848
|
},
|
|
816
849
|
is_hot: "Y",
|
|
817
850
|
logo: "",
|
|
818
|
-
lineHeight: 20,
|
|
819
851
|
|
|
820
852
|
noticeBgc:'',
|
|
853
|
+
is_open: '',
|
|
854
|
+
is_show: '',
|
|
855
|
+
showAllProductDetail: false,
|
|
856
|
+
is_show_all_detail: '',
|
|
857
|
+
showPreviewCode: true
|
|
821
858
|
};
|
|
822
859
|
},
|
|
823
860
|
watch: {
|
|
@@ -904,11 +941,23 @@ export default {
|
|
|
904
941
|
main_order_id: this.main_order_id,
|
|
905
942
|
custom_content_page_id: this.pageAttr.page_id,
|
|
906
943
|
custom_content_container_id: this.cid,
|
|
944
|
+
is_show_jhd_code: this.is_show
|
|
907
945
|
},
|
|
908
946
|
})
|
|
909
947
|
.then((res) => {
|
|
910
948
|
this.biz_code = res.biz_code;
|
|
911
949
|
this.is_not_show_price = res.is_not_show_price;
|
|
950
|
+
|
|
951
|
+
//旅游模块
|
|
952
|
+
if(res.extras && res.extras.travel_booking_info) {
|
|
953
|
+
try{
|
|
954
|
+
res.extras.travel_booking_info = JSON.parse(res.extras.travel_booking_info)
|
|
955
|
+
}catch(e){
|
|
956
|
+
res.extras.travel_booking_info = {}
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
//预览模块
|
|
912
961
|
if (this.isPreview) {
|
|
913
962
|
switch (this.viewStatus) {
|
|
914
963
|
case "mall":
|
|
@@ -973,6 +1022,12 @@ export default {
|
|
|
973
1022
|
item.card_use_point,
|
|
974
1023
|
100
|
|
975
1024
|
);
|
|
1025
|
+
if(item['card_discount_use_point'] !== undefined && item['card_discount_use_point'] > 0) {
|
|
1026
|
+
item.card_discount_use_point = this.$xdUniHelper.divisionFloatNumber(
|
|
1027
|
+
item.card_discount_use_point,
|
|
1028
|
+
100
|
|
1029
|
+
);
|
|
1030
|
+
}
|
|
976
1031
|
return item;
|
|
977
1032
|
});
|
|
978
1033
|
res.codes =
|
|
@@ -1013,7 +1068,7 @@ export default {
|
|
|
1013
1068
|
}
|
|
1014
1069
|
|
|
1015
1070
|
//增加删除订单按钮
|
|
1016
|
-
if(this.is_show_delete_order
|
|
1071
|
+
if(this.is_show_delete_order === 'Y') {
|
|
1017
1072
|
let pay = (res.buttons||[]).filter(item => item.action === 'pay');
|
|
1018
1073
|
let del = [{action:'delete', text:'删除订单', type: 'info'}];
|
|
1019
1074
|
if(pay.length === 1) del = []
|
|
@@ -1085,7 +1140,18 @@ export default {
|
|
|
1085
1140
|
this.viewStatus = getContainerPropsValue(container, "content.viewStatus", "mall");
|
|
1086
1141
|
this.is_show_support_shop = getContainerPropsValue(container, "content.is_show_support_shop", "N");
|
|
1087
1142
|
this.is_show_delete_order = getContainerPropsValue(container, "content.is_show_delete_order", "N");
|
|
1088
|
-
this.
|
|
1143
|
+
this.is_open = getContainerPropsValue(container, "content.is_open", "N");
|
|
1144
|
+
this.is_show = getContainerPropsValue(container, "content.is_show", "Y");
|
|
1145
|
+
this.showPayCard = this.is_open==='Y'
|
|
1146
|
+
this.is_show_all_detail = getContainerPropsValue(container, "content.is_show_all_detail", "N");
|
|
1147
|
+
this.showAllProductDetail = this.is_show_all_detail==='Y'
|
|
1148
|
+
if(this.isPreview) {
|
|
1149
|
+
if(this.is_show===0) {
|
|
1150
|
+
this.showPreviewCode = false;
|
|
1151
|
+
} else {
|
|
1152
|
+
this.showPreviewCode = true;
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1089
1155
|
},
|
|
1090
1156
|
getCountDown() {
|
|
1091
1157
|
this.timer = setInterval(() => {
|
|
@@ -1673,6 +1739,37 @@ export default {
|
|
|
1673
1739
|
}
|
|
1674
1740
|
}
|
|
1675
1741
|
|
|
1742
|
+
&-booking {
|
|
1743
|
+
&-list {
|
|
1744
|
+
&-item {
|
|
1745
|
+
display: flex;
|
|
1746
|
+
align-items: baseline;
|
|
1747
|
+
margin-bottom: 40rpx;
|
|
1748
|
+
&-num {
|
|
1749
|
+
font-size: 24rpx;
|
|
1750
|
+
margin-right: 24rpx;
|
|
1751
|
+
width: 120rpx;
|
|
1752
|
+
height: 50rpx;
|
|
1753
|
+
text-align: center;
|
|
1754
|
+
line-height: 50rpx;
|
|
1755
|
+
border-radius: 16rpx;
|
|
1756
|
+
}
|
|
1757
|
+
&-info {
|
|
1758
|
+
flex: 1;
|
|
1759
|
+
&-name {
|
|
1760
|
+
font-size: 32rpx;
|
|
1761
|
+
margin-bottom: 20rpx;
|
|
1762
|
+
}
|
|
1763
|
+
&-item {
|
|
1764
|
+
font-size: 24rpx;
|
|
1765
|
+
color: #666;
|
|
1766
|
+
margin-bottom: 16rpx;
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1676
1773
|
&-line {
|
|
1677
1774
|
border-bottom: unit(2, rpx) solid #f2f2f2;
|
|
1678
1775
|
margin-bottom: unit(40, rpx);
|
|
@@ -1718,5 +1815,22 @@ export default {
|
|
|
1718
1815
|
border-radius: unit(12, rpx);
|
|
1719
1816
|
padding: unit(14, rpx) unit(28, rpx);
|
|
1720
1817
|
}
|
|
1818
|
+
|
|
1819
|
+
.list-item {
|
|
1820
|
+
position: relative;
|
|
1821
|
+
|
|
1822
|
+
& > .discount {
|
|
1823
|
+
position: absolute;
|
|
1824
|
+
left:0;
|
|
1825
|
+
right:0;
|
|
1826
|
+
bottom:-20rpx;
|
|
1827
|
+
height: 20rpx;
|
|
1828
|
+
font-size: 20rpx;
|
|
1829
|
+
line-height: 20rpx;
|
|
1830
|
+
color: #aaa;
|
|
1831
|
+
text-align: right;
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
}
|
|
1721
1835
|
}
|
|
1722
1836
|
</style>
|
|
@@ -17,6 +17,11 @@ module.exports = {
|
|
|
17
17
|
"loading": false,
|
|
18
18
|
"loading_timeout": -1
|
|
19
19
|
},
|
|
20
|
+
"extras": {
|
|
21
|
+
"first_logistics_package_id": "",
|
|
22
|
+
"logistics_count": 0,
|
|
23
|
+
"travel_booking_info": "{\"travelers\":[{\"name\":\"\\u6d4b\\u8bd5\",\"mobile\":\"18888888889\",\"id_card_no\":\"130102198304285898\",\"id_card_type\":\"1\"}]}"
|
|
24
|
+
},
|
|
20
25
|
"film_show": {
|
|
21
26
|
"name": "聚福宝-万里归途",
|
|
22
27
|
"thumb": "https:\/\/p0.pipi.cn\/mmdb\/25bfd6ddb53c7e5015d23c5bc24d876c03d41.jpg?imageMogr2\/thumbnail\/1246x1246%3E",
|
|
@@ -4,17 +4,6 @@ export default {
|
|
|
4
4
|
style: [],
|
|
5
5
|
content: (data)=>{
|
|
6
6
|
return [
|
|
7
|
-
{
|
|
8
|
-
label: "布局样式配置",
|
|
9
|
-
ele: "xd-radio",
|
|
10
|
-
valueKey: "layout_style",
|
|
11
|
-
value: data.layout_style || 'old',
|
|
12
|
-
list: [
|
|
13
|
-
{label: '原有布局', value: 'old'},
|
|
14
|
-
{label: '淘福客布局', value: 'tfk'},
|
|
15
|
-
],
|
|
16
|
-
groupKey: "content",
|
|
17
|
-
},
|
|
18
7
|
{
|
|
19
8
|
label: '设置订单状态:',
|
|
20
9
|
ele: 'xd-order-setting',
|
|
@@ -41,18 +30,6 @@ export default {
|
|
|
41
30
|
{required: true, message: '设置订单配置错误!请检查配置', trigger: 'change'},
|
|
42
31
|
],
|
|
43
32
|
},
|
|
44
|
-
{
|
|
45
|
-
label: "是否展示订单号:",
|
|
46
|
-
ele: 'xd-radio',
|
|
47
|
-
valueKey: 'isShowOrderNo',
|
|
48
|
-
value: data['isShowOrderNo'] || 'Y',
|
|
49
|
-
groupKey:'style',
|
|
50
|
-
list: [
|
|
51
|
-
{label: '是', value: 'Y'},
|
|
52
|
-
{label: '否', value: 'N'},
|
|
53
|
-
],
|
|
54
|
-
hidden: data.layout_style !== 'tfk'
|
|
55
|
-
},
|
|
56
33
|
{
|
|
57
34
|
label: '外填充:',
|
|
58
35
|
ele: 'xd-margin-padding',
|
|
@@ -64,129 +64,104 @@
|
|
|
64
64
|
class="jfb-base-order-list__body-order"
|
|
65
65
|
:style="{ padding: outMargin }"
|
|
66
66
|
>
|
|
67
|
-
<
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
>
|
|
81
|
-
<
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
<view
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
<view
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
>
|
|
100
|
-
|
|
101
|
-
<view class="jfb-base-order-list__body-order-item-content-info">
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
<view
|
|
106
|
-
|
|
107
|
-
<
|
|
108
|
-
|
|
109
|
-
<text>{{ Sitem.product_num }}</text>
|
|
110
|
-
</view>
|
|
67
|
+
<view
|
|
68
|
+
@click="handleToLink(detailPath, item)"
|
|
69
|
+
class="jfb-base-order-list__body-order-item"
|
|
70
|
+
v-for="item in orderList"
|
|
71
|
+
:key="item.main_order_id"
|
|
72
|
+
:style="{
|
|
73
|
+
background: backgroundColor,
|
|
74
|
+
border: borderBox,
|
|
75
|
+
borderRadius: radius + 'rpx',
|
|
76
|
+
boxShadow: shadowBox,
|
|
77
|
+
marginBottom: padding + 'rpx',
|
|
78
|
+
}"
|
|
79
|
+
>
|
|
80
|
+
<view class="jfb-base-order-list__body-order-item-biz">
|
|
81
|
+
<xd-font-icon
|
|
82
|
+
v-if="item.biz_code_icon"
|
|
83
|
+
:icon="item.biz_code_icon"
|
|
84
|
+
:size="item['biz_code_icon_size']"
|
|
85
|
+
></xd-font-icon>
|
|
86
|
+
<view :class="{ marginLeft: item.biz_code_icon }">{{item.biz_code_name }}</view>
|
|
87
|
+
</view>
|
|
88
|
+
<view class="jfb-base-order-list__body-order-item-title">
|
|
89
|
+
<view>订单编号:{{ item.main_order_id }}</view>
|
|
90
|
+
<view :style="{color:item.status.status_type !== 'error' ? mainColor : '#999999',}">{{ item.status.status_name }}</view>
|
|
91
|
+
</view>
|
|
92
|
+
<view class="order-list">
|
|
93
|
+
<view
|
|
94
|
+
class="jfb-base-order-list__body-order-item-content"
|
|
95
|
+
v-for="(Sitem, Sindex) in item.products"
|
|
96
|
+
:key="Sitem.key"
|
|
97
|
+
v-if="(item['isOpen'] === false && Sindex < showLen) || item['isOpen']"
|
|
98
|
+
>
|
|
99
|
+
<image :src="Sitem.product_thumb" style="background: #ffffff" mode="aspectFit"></image>
|
|
100
|
+
<view class="jfb-base-order-list__body-order-item-content-info">
|
|
101
|
+
<view class="jfb-base-order-list__body-order-item-content-info-name">{{ Sitem.product_name }}</view>
|
|
102
|
+
<view class="brand-name" v-if="Sitem.brand_name" :style="{color:brandTextColor}">{{ Sitem.brand_name }}</view>
|
|
103
|
+
<view v-if="Sitem.product_sku_name" class="jfb-base-order-list__body-order-item-content-info-skuname">规格:{{ Sitem.product_sku_name }}</view>
|
|
104
|
+
<view class="jfb-base-order-list__body-order-item-content-info-price">
|
|
105
|
+
<view></view>
|
|
106
|
+
<view class="info-price">
|
|
107
|
+
<text>X</text>
|
|
108
|
+
<text>{{ Sitem.product_num }}</text>
|
|
111
109
|
</view>
|
|
112
110
|
</view>
|
|
113
111
|
</view>
|
|
114
|
-
<view
|
|
115
|
-
class="order-list-icon"
|
|
116
|
-
:style="{ bottom: item['isOpen'] ? '-30rpx' : '-54rpx' }"
|
|
117
|
-
v-if="item.products.length > showLen"
|
|
118
|
-
@click.stop="switchOpen(item)"
|
|
119
|
-
>
|
|
120
|
-
<view :style="{ background: backgroundColor }">
|
|
121
|
-
<xd-font-icon
|
|
122
|
-
color="#666"
|
|
123
|
-
:icon="item['isOpen'] ? 'iconshang_up' : 'iconxia_down'"
|
|
124
|
-
size="24"
|
|
125
|
-
></xd-font-icon>
|
|
126
|
-
</view>
|
|
127
|
-
</view>
|
|
128
|
-
</view>
|
|
129
|
-
<view class="jfb-base-order-list__body-order-item-bottom">
|
|
130
|
-
<view>下单时间:{{ item.created_time_text }}</view>
|
|
131
|
-
<view v-if="item.biz_code !== 'gift' && item.is_not_show_price !== 'Y'">
|
|
132
|
-
<text>合计:</text>
|
|
133
|
-
<xd-unit
|
|
134
|
-
:isOld="false"
|
|
135
|
-
:price="item.total_amount"
|
|
136
|
-
:color="mainColor"
|
|
137
|
-
:fontSize="28"
|
|
138
|
-
></xd-unit>
|
|
139
|
-
</view>
|
|
140
|
-
<view style="color:#999" v-if="item['main_user_server_amount'] !== undefined && item['main_user_server_amount'] > 0">
|
|
141
|
-
<text>(平台服务费:</text>
|
|
142
|
-
<xd-unit
|
|
143
|
-
:isOld="false"
|
|
144
|
-
:price="item['main_user_server_amount']"
|
|
145
|
-
:fontSize="24"
|
|
146
|
-
:is-gray="true"
|
|
147
|
-
color="#999"
|
|
148
|
-
:icon-size=".25"
|
|
149
|
-
></xd-unit>
|
|
150
|
-
<text>)</text>
|
|
151
|
-
</view>
|
|
152
112
|
</view>
|
|
153
113
|
<view
|
|
154
|
-
class="
|
|
155
|
-
|
|
114
|
+
class="order-list-icon"
|
|
115
|
+
:style="{ bottom: item['isOpen'] ? '-30rpx' : '-54rpx' }"
|
|
116
|
+
v-if="item.products.length > showLen"
|
|
117
|
+
@click.stop="switchOpen(item)"
|
|
156
118
|
>
|
|
157
|
-
<view
|
|
158
|
-
<xd-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
119
|
+
<view :style="{ background: backgroundColor }">
|
|
120
|
+
<xd-font-icon
|
|
121
|
+
color="#666"
|
|
122
|
+
:icon="item['isOpen'] ? 'iconshang_up' : 'iconxia_down'"
|
|
123
|
+
size="24"
|
|
124
|
+
></xd-font-icon>
|
|
163
125
|
</view>
|
|
164
126
|
</view>
|
|
165
127
|
</view>
|
|
166
|
-
|
|
167
|
-
|
|
128
|
+
<view class="jfb-base-order-list__body-order-item-bottom">
|
|
129
|
+
<view>下单时间:{{ item.created_time_text }}</view>
|
|
130
|
+
<view v-if="item.biz_code !== 'gift' && item.is_not_show_price !== 'Y'">
|
|
131
|
+
<text>合计:</text>
|
|
132
|
+
<xd-unit
|
|
133
|
+
:isOld="false"
|
|
134
|
+
:price="item.total_amount"
|
|
135
|
+
:color="mainColor"
|
|
136
|
+
:fontSize="28"
|
|
137
|
+
></xd-unit>
|
|
138
|
+
</view>
|
|
139
|
+
<view style="color:#999" v-if="item['main_user_server_amount'] !== undefined && item['main_user_server_amount'] > 0">
|
|
140
|
+
<text>(平台服务费:</text>
|
|
141
|
+
<xd-unit
|
|
142
|
+
:isOld="false"
|
|
143
|
+
:price="item['main_user_server_amount']"
|
|
144
|
+
:fontSize="24"
|
|
145
|
+
:is-gray="true"
|
|
146
|
+
color="#999"
|
|
147
|
+
:icon-size=".25"
|
|
148
|
+
></xd-unit>
|
|
149
|
+
<text>)</text>
|
|
150
|
+
</view>
|
|
151
|
+
</view>
|
|
168
152
|
<view
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
v-for="item in orderList"
|
|
172
|
-
:key="item.main_order_id"
|
|
173
|
-
:style="{
|
|
174
|
-
background: backgroundColor,
|
|
175
|
-
border: borderBox,
|
|
176
|
-
borderRadius: radius + 'rpx',
|
|
177
|
-
boxShadow: shadowBox,
|
|
178
|
-
marginBottom: padding + 'rpx',
|
|
179
|
-
}"
|
|
153
|
+
class="jfb-base-order-list__body-order-item-pay"
|
|
154
|
+
v-if="item.buttons.length"
|
|
180
155
|
>
|
|
181
|
-
<
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
156
|
+
<view v-for="(btn,index) in item.buttons" :key="btn.key">
|
|
157
|
+
<xd-button
|
|
158
|
+
:type="getBtnType(btn.action)"
|
|
159
|
+
size="mini"
|
|
160
|
+
@click="handleBtnEvent(btn.action, item)"
|
|
161
|
+
>{{ btn.text }}</xd-button>
|
|
162
|
+
</view>
|
|
188
163
|
</view>
|
|
189
|
-
</
|
|
164
|
+
</view>
|
|
190
165
|
</view>
|
|
191
166
|
<view v-else class="jfb-base-order-list__body-no">
|
|
192
167
|
<xd-font-icon
|
|
@@ -214,7 +189,6 @@ import extsMixins from "@/mixins/extsMixins";
|
|
|
214
189
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
215
190
|
import getServiceUrl from "@/common/getServiceUrl";
|
|
216
191
|
import Color from "color";
|
|
217
|
-
import XdTfkOrderItem from "./XdTfkOrderItem"
|
|
218
192
|
|
|
219
193
|
export default {
|
|
220
194
|
name: "JfbBaseOrderList",
|
|
@@ -223,7 +197,6 @@ export default {
|
|
|
223
197
|
XdTab,
|
|
224
198
|
XdUnit,
|
|
225
199
|
XdButton,
|
|
226
|
-
XdTfkOrderItem,
|
|
227
200
|
},
|
|
228
201
|
mixins: [componentsMixins, extsMixins, JfbBaseOrderListMixin],
|
|
229
202
|
data() {
|
|
@@ -266,8 +239,6 @@ export default {
|
|
|
266
239
|
right: 0,
|
|
267
240
|
bottom: 0,
|
|
268
241
|
},
|
|
269
|
-
layout_style: "old",
|
|
270
|
-
isShowOrderNo: "Y",
|
|
271
242
|
|
|
272
243
|
noticeBgc:'',
|
|
273
244
|
};
|
|
@@ -344,8 +315,6 @@ export default {
|
|
|
344
315
|
|
|
345
316
|
this.detailPath = getContainerPropsValue(container, "content.detailPath", { value: "" }).value;
|
|
346
317
|
this.payPath = getContainerPropsValue(container, "content.payPath", {value: "",}).value;
|
|
347
|
-
this.layout_style = getContainerPropsValue(container, "content.layout_style", "old");
|
|
348
|
-
this.isShowOrderNo = getContainerPropsValue(container, "content.isShowOrderNo", "Y");
|
|
349
318
|
this.tabList = getContainerPropsValue(container, "content.orderTypeList", []).map((item) => {
|
|
350
319
|
return {
|
|
351
320
|
name: item.customName || item.label,
|
|
@@ -16,6 +16,18 @@ export default {
|
|
|
16
16
|
placeholder: '请选择支付成功路径',
|
|
17
17
|
value: data.pay_success_path || null,
|
|
18
18
|
groupKey:'advanced',
|
|
19
|
+
setting: {
|
|
20
|
+
router: XdBus.getParentApi('getPag©esTree'),
|
|
21
|
+
},
|
|
22
|
+
inline: false,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
label: '票券支付成功跳转路径:', //label
|
|
26
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
27
|
+
valueKey: 'rechargeSuccessPath', //form[valueKey]
|
|
28
|
+
placeholder: '请选择票券支付成功跳转路径',
|
|
29
|
+
value: data.rechargeSuccessPath || null,
|
|
30
|
+
groupKey:'advanced',
|
|
19
31
|
setting: {
|
|
20
32
|
router: XdBus.getParentApi('getPagesTree'),
|
|
21
33
|
},
|