jufubao-base 1.0.181-beta9 → 1.0.182-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 +50 -1
- package/src/components/JfbBaseAddress/JfbBaseAddress.vue +120 -68
- package/src/components/JfbBaseAddress/XdTfkItem.vue +117 -0
- package/src/components/JfbBaseCardDelay/Api.js +30 -19
- package/src/components/JfbBaseCardDelay/Attr.js +35 -237
- package/src/components/JfbBaseCardDelay/JfbBaseCardDelay.vue +78 -279
- package/src/components/JfbBaseCardDetailEntry/Attr.js +0 -12
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +0 -14
- package/src/components/JfbBaseCardDetailEntry/Mock.js +1 -1
- package/src/components/JfbBaseCardEntry/Attr.js +0 -121
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +29 -206
- package/src/components/JfbBaseCardGive/Api.js +34 -18
- package/src/components/JfbBaseCardGive/Attr.js +32 -40
- package/src/components/JfbBaseCardGive/JfbBaseCardGive.vue +79 -502
- package/src/components/JfbBaseCardGive/Mock.js +9 -2
- package/src/components/JfbBaseCardReceive/Api.js +36 -10
- package/src/components/JfbBaseCardReceive/Attr.js +39 -9
- package/src/components/JfbBaseCardReceive/JfbBaseCardReceive.vue +80 -403
- package/src/components/JfbBaseCardReceive/Mock.js +7 -1
- package/src/components/JfbBaseCardReceiveCover/Api.js +43 -5
- package/src/components/JfbBaseCardReceiveCover/Attr.js +30 -119
- package/src/components/JfbBaseCardReceiveCover/JfbBaseCardReceiveCover.vue +82 -189
- package/src/components/JfbBaseCardReceiveCover/Mock.js +9 -1
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +1 -1
- package/src/components/JfbBaseOrderDetail/Attr.js +10 -0
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +16 -97
- package/src/components/JfbBaseOrderDetail/Mock.js +0 -5
- package/src/components/JfbBaseOrderList/Attr.js +23 -0
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +117 -86
- package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +246 -0
- package/src/components/JfbBasePay/Attr.js +0 -12
- package/src/components/JfbBasePay/JfbBasePay.vue +12 -18
- package/src/components/JfbBasePosterType/JfbBasePosterType.vue +1 -0
- package/src/components/JfbBaseRechargeOrder/Api.js +0 -11
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +27 -46
- package/src/components/JfbBaseRechargeOrderDetail/Api.js +0 -11
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +13 -142
- package/src/components/JfbBaseRechargeSuccess/Api.js +0 -11
- package/src/components/JfbBaseRechargeSuccess/Attr.js +1 -1
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +3 -6
|
@@ -129,6 +129,9 @@
|
|
|
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
|
+
}"
|
|
132
135
|
>
|
|
133
136
|
<view style="width: 130rpx"
|
|
134
137
|
>{{ Ditem.label }} <span v-if="Ditem.label">:</span>
|
|
@@ -214,6 +217,9 @@
|
|
|
214
217
|
v-for="(Ditem, Dindex) in item.info"
|
|
215
218
|
:key="Dindex"
|
|
216
219
|
class="jfb-base-order-detail__body-delivery-bottom-item"
|
|
220
|
+
:style="{
|
|
221
|
+
marginBottom: lineHeight + 'rpx'
|
|
222
|
+
}"
|
|
217
223
|
>
|
|
218
224
|
<view style="width: 130rpx;display: flex;">
|
|
219
225
|
<view v-html="Ditem.label"></view>
|
|
@@ -510,6 +516,9 @@
|
|
|
510
516
|
v-for="(item, index) in info.detail"
|
|
511
517
|
:key="index"
|
|
512
518
|
class="jfb-base-order-detail__body-order"
|
|
519
|
+
:style="{
|
|
520
|
+
marginBottom: lineHeight + 'rpx'
|
|
521
|
+
}"
|
|
513
522
|
>
|
|
514
523
|
<view :style="{ fontWeight: item.style }">
|
|
515
524
|
<view style="display: flex;">
|
|
@@ -541,6 +550,9 @@
|
|
|
541
550
|
<view
|
|
542
551
|
v-if="item.type !== 'line'"
|
|
543
552
|
class="jfb-base-order-detail__body-price"
|
|
553
|
+
:style="{
|
|
554
|
+
marginBottom: lineHeight + 'rpx'
|
|
555
|
+
}"
|
|
544
556
|
>
|
|
545
557
|
<view :style="{ fontWeight: item.style }">{{ item.label }}</view>
|
|
546
558
|
<xd-unit
|
|
@@ -566,7 +578,7 @@
|
|
|
566
578
|
></xd-font-icon>
|
|
567
579
|
</view>
|
|
568
580
|
<view class="jfb-base-order-detail__body-show" v-else>
|
|
569
|
-
|
|
581
|
+
使用{{ info.pay_info.cards.length }}张票券 收起
|
|
570
582
|
<xd-font-icon
|
|
571
583
|
style="margin-left: 8rpx"
|
|
572
584
|
@click="showPayCard = false"
|
|
@@ -582,7 +594,7 @@
|
|
|
582
594
|
:key="index"
|
|
583
595
|
>
|
|
584
596
|
<view>票券:{{ item.card_type_name }}</view>
|
|
585
|
-
<view
|
|
597
|
+
<view>
|
|
586
598
|
<view>编号:{{ item.card_number }}</view>
|
|
587
599
|
<xd-unit
|
|
588
600
|
:fontSize="28"
|
|
@@ -590,7 +602,6 @@
|
|
|
590
602
|
:price="item.card_use_point"
|
|
591
603
|
:unit="item['card_unit']"
|
|
592
604
|
></xd-unit>
|
|
593
|
-
<view v-if="item['card_discount_use_point'] > 0" class="discount">已优惠:{{item['card_discount_use_point']}}</view>
|
|
594
605
|
</view>
|
|
595
606
|
</view>
|
|
596
607
|
</view>
|
|
@@ -617,35 +628,6 @@
|
|
|
617
628
|
</view>
|
|
618
629
|
</view>
|
|
619
630
|
</view>
|
|
620
|
-
<!--旅游模块-->
|
|
621
|
-
<view
|
|
622
|
-
v-if="info.extras &&
|
|
623
|
-
info.extras.travel_booking_info &&
|
|
624
|
-
info.extras.travel_booking_info['travelers'] &&
|
|
625
|
-
info.extras.travel_booking_info['travelers'].length > 0"
|
|
626
|
-
:style="{
|
|
627
|
-
background: backgroundColor,
|
|
628
|
-
border: borderBox,
|
|
629
|
-
borderRadius: radius + 'rpx',
|
|
630
|
-
boxShadow: shadowBox,
|
|
631
|
-
marginBottom: padding + 'rpx',
|
|
632
|
-
}"
|
|
633
|
-
class="jfb-base-order-detail__body-card jfb-base-order-detail__body-booking"
|
|
634
|
-
>
|
|
635
|
-
<view class="jfb-base-order-detail__body-delivery-bottom-title">预订信息</view>
|
|
636
|
-
<view class="jfb-base-order-detail__body-line"></view>
|
|
637
|
-
<view class="jfb-base-order-detail__body-booking-list">
|
|
638
|
-
<view v-for="(item,index) in info.extras.travel_booking_info.travelers" :key="index" class="jfb-base-order-detail__body-booking-list-item">
|
|
639
|
-
<view :style="{color:mainColor,background:bgColor}" class="jfb-base-order-detail__body-booking-list-item-num">游客{{index+1}}</view>
|
|
640
|
-
<view class="jfb-base-order-detail__body-booking-list-item-info">
|
|
641
|
-
<view class="jfb-base-order-detail__body-booking-list-item-info-name">{{item.name}}</view>
|
|
642
|
-
<view v-if="item.id_card_no" class="jfb-base-order-detail__body-booking-list-item-info-item">身份证:{{item.id_card_no}}</view>
|
|
643
|
-
<view v-if="item.mobile" class="jfb-base-order-detail__body-booking-list-item-info-item">手机号:{{item.mobile}}</view>
|
|
644
|
-
</view>
|
|
645
|
-
</view>
|
|
646
|
-
</view>
|
|
647
|
-
</view>
|
|
648
|
-
<!--旅游模块-->
|
|
649
631
|
<view
|
|
650
632
|
v-if="info.productDetail"
|
|
651
633
|
class="jfb-base-order-detail__body-card jfb-base-order-detail__body-shop"
|
|
@@ -833,6 +815,7 @@ export default {
|
|
|
833
815
|
},
|
|
834
816
|
is_hot: "Y",
|
|
835
817
|
logo: "",
|
|
818
|
+
lineHeight: 20,
|
|
836
819
|
|
|
837
820
|
noticeBgc:'',
|
|
838
821
|
};
|
|
@@ -926,17 +909,6 @@ export default {
|
|
|
926
909
|
.then((res) => {
|
|
927
910
|
this.biz_code = res.biz_code;
|
|
928
911
|
this.is_not_show_price = res.is_not_show_price;
|
|
929
|
-
|
|
930
|
-
//旅游模块
|
|
931
|
-
if(res.extras && res.extras.travel_booking_info) {
|
|
932
|
-
try{
|
|
933
|
-
res.extras.travel_booking_info = JSON.parse(res.extras.travel_booking_info)
|
|
934
|
-
}catch(e){
|
|
935
|
-
res.extras.travel_booking_info = {}
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
//预览模块
|
|
940
912
|
if (this.isPreview) {
|
|
941
913
|
switch (this.viewStatus) {
|
|
942
914
|
case "mall":
|
|
@@ -1001,12 +973,6 @@ export default {
|
|
|
1001
973
|
item.card_use_point,
|
|
1002
974
|
100
|
|
1003
975
|
);
|
|
1004
|
-
if(item['card_discount_use_point'] !== undefined && item['card_discount_use_point'] > 0) {
|
|
1005
|
-
item.card_discount_use_point = this.$xdUniHelper.divisionFloatNumber(
|
|
1006
|
-
item.card_discount_use_point,
|
|
1007
|
-
100
|
|
1008
|
-
);
|
|
1009
|
-
}
|
|
1010
976
|
return item;
|
|
1011
977
|
});
|
|
1012
978
|
res.codes =
|
|
@@ -1119,6 +1085,7 @@ export default {
|
|
|
1119
1085
|
this.viewStatus = getContainerPropsValue(container, "content.viewStatus", "mall");
|
|
1120
1086
|
this.is_show_support_shop = getContainerPropsValue(container, "content.is_show_support_shop", "N");
|
|
1121
1087
|
this.is_show_delete_order = getContainerPropsValue(container, "content.is_show_delete_order", "N");
|
|
1088
|
+
this.lineHeight = getContainerPropsValue(container, "content.lineHeight", 20);
|
|
1122
1089
|
},
|
|
1123
1090
|
getCountDown() {
|
|
1124
1091
|
this.timer = setInterval(() => {
|
|
@@ -1706,37 +1673,6 @@ export default {
|
|
|
1706
1673
|
}
|
|
1707
1674
|
}
|
|
1708
1675
|
|
|
1709
|
-
&-booking {
|
|
1710
|
-
&-list {
|
|
1711
|
-
&-item {
|
|
1712
|
-
display: flex;
|
|
1713
|
-
align-items: baseline;
|
|
1714
|
-
margin-bottom: 40rpx;
|
|
1715
|
-
&-num {
|
|
1716
|
-
font-size: 24rpx;
|
|
1717
|
-
margin-right: 24rpx;
|
|
1718
|
-
width: 120rpx;
|
|
1719
|
-
height: 50rpx;
|
|
1720
|
-
text-align: center;
|
|
1721
|
-
line-height: 50rpx;
|
|
1722
|
-
border-radius: 16rpx;
|
|
1723
|
-
}
|
|
1724
|
-
&-info {
|
|
1725
|
-
flex: 1;
|
|
1726
|
-
&-name {
|
|
1727
|
-
font-size: 32rpx;
|
|
1728
|
-
margin-bottom: 20rpx;
|
|
1729
|
-
}
|
|
1730
|
-
&-item {
|
|
1731
|
-
font-size: 24rpx;
|
|
1732
|
-
color: #666;
|
|
1733
|
-
margin-bottom: 16rpx;
|
|
1734
|
-
}
|
|
1735
|
-
}
|
|
1736
|
-
}
|
|
1737
|
-
}
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1740
1676
|
&-line {
|
|
1741
1677
|
border-bottom: unit(2, rpx) solid #f2f2f2;
|
|
1742
1678
|
margin-bottom: unit(40, rpx);
|
|
@@ -1782,22 +1718,5 @@ export default {
|
|
|
1782
1718
|
border-radius: unit(12, rpx);
|
|
1783
1719
|
padding: unit(14, rpx) unit(28, rpx);
|
|
1784
1720
|
}
|
|
1785
|
-
|
|
1786
|
-
.list-item {
|
|
1787
|
-
position: relative;
|
|
1788
|
-
|
|
1789
|
-
& > .discount {
|
|
1790
|
-
position: absolute;
|
|
1791
|
-
left:0;
|
|
1792
|
-
right:0;
|
|
1793
|
-
bottom:-20rpx;
|
|
1794
|
-
height: 20rpx;
|
|
1795
|
-
font-size: 20rpx;
|
|
1796
|
-
line-height: 20rpx;
|
|
1797
|
-
color: #aaa;
|
|
1798
|
-
text-align: right;
|
|
1799
|
-
}
|
|
1800
|
-
|
|
1801
|
-
}
|
|
1802
1721
|
}
|
|
1803
1722
|
</style>
|
|
@@ -17,11 +17,6 @@ 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
|
-
},
|
|
25
20
|
"film_show": {
|
|
26
21
|
"name": "聚福宝-万里归途",
|
|
27
22
|
"thumb": "https:\/\/p0.pipi.cn\/mmdb\/25bfd6ddb53c7e5015d23c5bc24d876c03d41.jpg?imageMogr2\/thumbnail\/1246x1246%3E",
|
|
@@ -4,6 +4,17 @@ 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
|
+
},
|
|
7
18
|
{
|
|
8
19
|
label: '设置订单状态:',
|
|
9
20
|
ele: 'xd-order-setting',
|
|
@@ -30,6 +41,18 @@ export default {
|
|
|
30
41
|
{required: true, message: '设置订单配置错误!请检查配置', trigger: 'change'},
|
|
31
42
|
],
|
|
32
43
|
},
|
|
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
|
+
},
|
|
33
56
|
{
|
|
34
57
|
label: '外填充:',
|
|
35
58
|
ele: 'xd-margin-padding',
|
|
@@ -64,104 +64,129 @@
|
|
|
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
|
-
|
|
67
|
+
<template v-if="layout_style === 'old'">
|
|
68
|
+
<view
|
|
69
|
+
@click="handleToLink(detailPath, item)"
|
|
70
|
+
class="jfb-base-order-list__body-order-item"
|
|
71
|
+
v-for="item in orderList"
|
|
72
|
+
:key="item.main_order_id"
|
|
73
|
+
:style="{
|
|
74
|
+
background: backgroundColor,
|
|
75
|
+
border: borderBox,
|
|
76
|
+
borderRadius: radius + 'rpx',
|
|
77
|
+
boxShadow: shadowBox,
|
|
78
|
+
marginBottom: padding + 'rpx',
|
|
79
|
+
}"
|
|
80
|
+
>
|
|
81
|
+
<view class="jfb-base-order-list__body-order-item-biz">
|
|
82
|
+
<xd-font-icon
|
|
83
|
+
v-if="item.biz_code_icon"
|
|
84
|
+
:icon="item.biz_code_icon"
|
|
85
|
+
:size="item['biz_code_icon_size']"
|
|
86
|
+
></xd-font-icon>
|
|
87
|
+
<view :class="{ marginLeft: item.biz_code_icon }">{{item.biz_code_name }}</view>
|
|
88
|
+
</view>
|
|
89
|
+
<view class="jfb-base-order-list__body-order-item-title">
|
|
90
|
+
<view>订单编号:{{ item.main_order_id }}</view>
|
|
91
|
+
<view :style="{color:item.status.status_type !== 'error' ? mainColor : '#999999',}">{{ item.status.status_name }}</view>
|
|
92
|
+
</view>
|
|
93
|
+
<view class="order-list">
|
|
94
|
+
<view
|
|
95
|
+
class="jfb-base-order-list__body-order-item-content"
|
|
96
|
+
v-for="(Sitem, Sindex) in item.products"
|
|
97
|
+
:key="Sitem.key"
|
|
98
|
+
v-if="(item['isOpen'] === false && Sindex < showLen) || item['isOpen']"
|
|
99
|
+
>
|
|
100
|
+
<image :src="Sitem.product_thumb" style="background: #ffffff" mode="aspectFit"></image>
|
|
101
|
+
<view class="jfb-base-order-list__body-order-item-content-info">
|
|
102
|
+
<view class="jfb-base-order-list__body-order-item-content-info-name">{{ Sitem.product_name }}</view>
|
|
103
|
+
<view class="brand-name" v-if="Sitem.brand_name" :style="{color:brandTextColor}">{{ Sitem.brand_name }}</view>
|
|
104
|
+
<view v-if="Sitem.product_sku_name" class="jfb-base-order-list__body-order-item-content-info-skuname">规格:{{ Sitem.product_sku_name }}</view>
|
|
105
|
+
<view class="jfb-base-order-list__body-order-item-content-info-price">
|
|
106
|
+
<view></view>
|
|
107
|
+
<view class="info-price">
|
|
108
|
+
<text>X</text>
|
|
109
|
+
<text>{{ Sitem.product_num }}</text>
|
|
110
|
+
</view>
|
|
109
111
|
</view>
|
|
110
112
|
</view>
|
|
111
113
|
</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>
|
|
112
152
|
</view>
|
|
113
153
|
<view
|
|
114
|
-
class="order-
|
|
115
|
-
|
|
116
|
-
v-if="item.products.length > showLen"
|
|
117
|
-
@click.stop="switchOpen(item)"
|
|
154
|
+
class="jfb-base-order-list__body-order-item-pay"
|
|
155
|
+
v-if="item.buttons.length"
|
|
118
156
|
>
|
|
119
|
-
<view
|
|
120
|
-
<xd-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
157
|
+
<view v-for="(btn,index) in item.buttons" :key="btn.key">
|
|
158
|
+
<xd-button
|
|
159
|
+
:type="getBtnType(btn.action)"
|
|
160
|
+
size="mini"
|
|
161
|
+
@click="handleBtnEvent(btn.action, item)"
|
|
162
|
+
>{{ btn.text }}</xd-button>
|
|
125
163
|
</view>
|
|
126
164
|
</view>
|
|
127
165
|
</view>
|
|
128
|
-
|
|
129
|
-
|
|
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>
|
|
166
|
+
</template>
|
|
167
|
+
<template v-if="layout_style === 'tfk'">
|
|
152
168
|
<view
|
|
153
|
-
|
|
154
|
-
|
|
169
|
+
@click="handleToLink(detailPath, item)"
|
|
170
|
+
class="jfb-base-order-list__body-order-item"
|
|
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
|
+
}"
|
|
155
180
|
>
|
|
156
|
-
<
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
181
|
+
<xd-tfk-order-item
|
|
182
|
+
:mainColor="mainColor"
|
|
183
|
+
:isShowOrderNo="isShowOrderNo"
|
|
184
|
+
:brandTextColor="brandTextColor"
|
|
185
|
+
:item="item"
|
|
186
|
+
@handleBtnEvent="action => handleBtnEvent(action, item)"
|
|
187
|
+
></xd-tfk-order-item>
|
|
163
188
|
</view>
|
|
164
|
-
</
|
|
189
|
+
</template>
|
|
165
190
|
</view>
|
|
166
191
|
<view v-else class="jfb-base-order-list__body-no">
|
|
167
192
|
<xd-font-icon
|
|
@@ -189,6 +214,7 @@ import extsMixins from "@/mixins/extsMixins";
|
|
|
189
214
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
190
215
|
import getServiceUrl from "@/common/getServiceUrl";
|
|
191
216
|
import Color from "color";
|
|
217
|
+
import XdTfkOrderItem from "./XdTfkOrderItem"
|
|
192
218
|
|
|
193
219
|
export default {
|
|
194
220
|
name: "JfbBaseOrderList",
|
|
@@ -197,6 +223,7 @@ export default {
|
|
|
197
223
|
XdTab,
|
|
198
224
|
XdUnit,
|
|
199
225
|
XdButton,
|
|
226
|
+
XdTfkOrderItem,
|
|
200
227
|
},
|
|
201
228
|
mixins: [componentsMixins, extsMixins, JfbBaseOrderListMixin],
|
|
202
229
|
data() {
|
|
@@ -239,6 +266,8 @@ export default {
|
|
|
239
266
|
right: 0,
|
|
240
267
|
bottom: 0,
|
|
241
268
|
},
|
|
269
|
+
layout_style: "old",
|
|
270
|
+
isShowOrderNo: "Y",
|
|
242
271
|
|
|
243
272
|
noticeBgc:'',
|
|
244
273
|
};
|
|
@@ -315,6 +344,8 @@ export default {
|
|
|
315
344
|
|
|
316
345
|
this.detailPath = getContainerPropsValue(container, "content.detailPath", { value: "" }).value;
|
|
317
346
|
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");
|
|
318
349
|
this.tabList = getContainerPropsValue(container, "content.orderTypeList", []).map((item) => {
|
|
319
350
|
return {
|
|
320
351
|
name: item.customName || item.label,
|