jufubao-base 1.0.186-beta3 → 1.0.187-beta2
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/ICONS.js +1128 -0
- package/src/components/JfbBaseAddress/Attr.js +109 -1
- package/src/components/JfbBaseAddress/JfbBaseAddress.vue +153 -77
- package/src/components/JfbBaseAddress/XdTfkItem.vue +117 -0
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +22 -7
- package/src/components/JfbBaseCardEntry/Mock.js +130 -119
- package/src/components/JfbBaseFastLink/Attr.js +22 -6
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +35 -20
- package/src/components/JfbBaseFooter/Attr.js +141 -75
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +46 -11
- package/src/components/JfbBaseOrderDetail/Api.js +0 -1
- package/src/components/JfbBaseOrderDetail/Attr.js +61 -119
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +93 -124
- 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/JfbBasePhoneCollect/Attr.js +411 -945
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +27 -307
- package/src/components/JfbBasePhoneLogin/Attr.js +405 -893
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +253 -609
- package/src/components/JfbBaseSuccess/Attr.js +1 -1
- package/src/components/JfbBaseUserCenter/Attr.js +240 -48
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +101 -30
- package/src/components/JfbBaseUserInfo/Attr.js +179 -30
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +80 -44
- package/src/components/JfbBaseUserOrder/Attr.js +291 -25
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +172 -54
- package/src/components/JfbBaseWallet/Attr.js +341 -6
- package/src/components/JfbBaseWallet/JfbBaseWallet.vue +173 -49
|
@@ -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>
|
|
@@ -259,7 +265,7 @@
|
|
|
259
265
|
class="jfb-base-order-detail__body-card jfb-base-order-detail__body-cashier"
|
|
260
266
|
>
|
|
261
267
|
<view class="jfb-base-order-detail__body-cashier-text">{{info.codes[0].show_type === "qrcode" ? "二维码" : "条形码" }}</view>
|
|
262
|
-
<view
|
|
268
|
+
<view style="position: relative">
|
|
263
269
|
<image
|
|
264
270
|
:style="{
|
|
265
271
|
height: info.codes[0].show_type === 'qrcode' ? '50vw' : '25vw',
|
|
@@ -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
|
|
@@ -556,18 +568,20 @@
|
|
|
556
568
|
></view>
|
|
557
569
|
</view>
|
|
558
570
|
<view v-if="info.pay_info.cards && info.pay_info.cards.length > 0">
|
|
559
|
-
<view
|
|
571
|
+
<view class="jfb-base-order-detail__body-show" v-if="!showPayCard">
|
|
560
572
|
<text>使用 {{ info.pay_info.cards.length }} 张票券 展开</text>
|
|
561
573
|
<xd-font-icon
|
|
562
574
|
style="margin-left: 8rpx"
|
|
575
|
+
@click="showPayCard = true"
|
|
563
576
|
size="28"
|
|
564
577
|
icon="iconxia_down"
|
|
565
578
|
></xd-font-icon>
|
|
566
579
|
</view>
|
|
567
|
-
<view
|
|
580
|
+
<view class="jfb-base-order-detail__body-show" v-else>
|
|
568
581
|
<text>使用{{ info.pay_info.cards.length }}张票券 收起</text>
|
|
569
582
|
<xd-font-icon
|
|
570
583
|
style="margin-left: 8rpx"
|
|
584
|
+
@click="showPayCard = false"
|
|
571
585
|
size="28"
|
|
572
586
|
icon="iconshang_up"
|
|
573
587
|
></xd-font-icon>
|
|
@@ -651,26 +665,8 @@
|
|
|
651
665
|
<view class="jfb-base-order-detail__body-shop-title">
|
|
652
666
|
<view :style="{ background: mainColor }"></view>
|
|
653
667
|
<view>商品详情</view>
|
|
654
|
-
<view @click="showAllProductDetail=!showAllProductDetail" v-if="!showAllProductDetail" class="jfb-base-order-detail__body-product-show">
|
|
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" class="jfb-base-order-detail__body-product-show">
|
|
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 class="jfb-base-order-detail__body-html" v-if="showAllProductDetail">
|
|
672
|
-
<view v-html="info.productDetail"></view>
|
|
673
668
|
</view>
|
|
669
|
+
<view v-html="info.productDetail"></view>
|
|
674
670
|
</view>
|
|
675
671
|
<view
|
|
676
672
|
v-if="info.custom_content"
|
|
@@ -699,41 +695,51 @@
|
|
|
699
695
|
:style="prod_bottom"
|
|
700
696
|
v-if="info.buttons && info.buttons.length > 0"
|
|
701
697
|
>
|
|
702
|
-
<view
|
|
703
|
-
<view
|
|
704
|
-
style="display: flex; align-items: center"
|
|
705
|
-
v-if="item.action === 'pay'"
|
|
706
|
-
>
|
|
698
|
+
<view :style="[bottomBoxStyle]">
|
|
699
|
+
<view v-for="(item, index) in info.buttons" :key="index">
|
|
707
700
|
<view
|
|
708
|
-
style="display: flex; align-items: center
|
|
709
|
-
v-if="
|
|
701
|
+
style="display: flex; align-items: center"
|
|
702
|
+
v-if="item.action === 'pay'"
|
|
710
703
|
>
|
|
711
|
-
<
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
704
|
+
<view
|
|
705
|
+
style="display: flex; align-items: center; margin-right: 30rpx"
|
|
706
|
+
v-if="biz_code !== 'gift' || info.is_show_gift_price"
|
|
707
|
+
>
|
|
708
|
+
<text>应付:</text>
|
|
709
|
+
<xd-unit
|
|
710
|
+
:price="info.pay_info.real_pay_amount"
|
|
711
|
+
:font-size="36"
|
|
712
|
+
:iocn-size="0.45"
|
|
713
|
+
></xd-unit>
|
|
714
|
+
</view>
|
|
715
|
+
<view>
|
|
716
|
+
<xd-button
|
|
717
|
+
@click="handleToPay"
|
|
718
|
+
size="small"
|
|
719
|
+
type="primary"
|
|
720
|
+
:style="{
|
|
721
|
+
height: bottomBtnHeight + 'rpx',
|
|
722
|
+
lineHeight: bottomBtnHeight + 'rpx',
|
|
723
|
+
}"
|
|
724
|
+
:radius="bottomBtnRadius + 'rpx'"
|
|
725
|
+
:bg-color="mainColor"
|
|
726
|
+
>{{ item.text }}
|
|
727
|
+
</xd-button>
|
|
728
|
+
</view>
|
|
717
729
|
</view>
|
|
718
|
-
<view>
|
|
730
|
+
<view v-else>
|
|
719
731
|
<xd-button
|
|
720
|
-
@click="handleToPay"
|
|
721
732
|
size="small"
|
|
722
|
-
type="primary"
|
|
723
|
-
radius="
|
|
724
|
-
:
|
|
725
|
-
|
|
726
|
-
|
|
733
|
+
:type="item.type !== undefined ? item.type: 'primary'"
|
|
734
|
+
:radius="bottomBtnRadius + 'rpx'"
|
|
735
|
+
:style="{
|
|
736
|
+
height: bottomBtnHeight + 'rpx',
|
|
737
|
+
lineHeight: bottomBtnHeight + 'rpx',
|
|
738
|
+
}"
|
|
739
|
+
@click="handleAction(item)"
|
|
740
|
+
>{{ item.text }}</xd-button>
|
|
727
741
|
</view>
|
|
728
742
|
</view>
|
|
729
|
-
<view v-else>
|
|
730
|
-
<xd-button
|
|
731
|
-
size="small"
|
|
732
|
-
:type="item.type !== undefined ? item.type: 'primary'"
|
|
733
|
-
radius="40rpx"
|
|
734
|
-
@click="handleAction(item)"
|
|
735
|
-
>{{ item.text }}</xd-button>
|
|
736
|
-
</view>
|
|
737
743
|
</view>
|
|
738
744
|
</view>
|
|
739
745
|
</view>
|
|
@@ -830,15 +836,6 @@ export default {
|
|
|
830
836
|
backgroundColor: "",
|
|
831
837
|
padding: 0,
|
|
832
838
|
|
|
833
|
-
//投影
|
|
834
|
-
is_shadow: "Y",
|
|
835
|
-
is_shadow_bg: 0,
|
|
836
|
-
is_shadow_w: 0,
|
|
837
|
-
|
|
838
|
-
//边框
|
|
839
|
-
is_border: "Y",
|
|
840
|
-
is_border_w: 0,
|
|
841
|
-
is_border_c: "",
|
|
842
839
|
|
|
843
840
|
//其他
|
|
844
841
|
margin: {
|
|
@@ -849,14 +846,15 @@ export default {
|
|
|
849
846
|
},
|
|
850
847
|
is_hot: "Y",
|
|
851
848
|
logo: "",
|
|
849
|
+
lineHeight: 20,
|
|
852
850
|
|
|
853
851
|
noticeBgc:'',
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
852
|
+
sectionShadow: "",
|
|
853
|
+
sectionBorder: "",
|
|
854
|
+
bottomBtnRadius: 0,
|
|
855
|
+
bottomPadding: "",
|
|
856
|
+
bottomBgColor: "",
|
|
857
|
+
bottomBtnHeight: "",
|
|
860
858
|
};
|
|
861
859
|
},
|
|
862
860
|
watch: {
|
|
@@ -895,15 +893,21 @@ export default {
|
|
|
895
893
|
return str
|
|
896
894
|
},
|
|
897
895
|
shadowBox() {
|
|
898
|
-
|
|
899
|
-
return `0 0 ${this.is_shadow_w}rpx ${this.is_shadow_bg}`;
|
|
900
|
-
else return "0 0 0 rgba(0,0,0,0)";
|
|
896
|
+
return this.sectionShadow;
|
|
901
897
|
},
|
|
902
898
|
borderBox() {
|
|
903
|
-
|
|
904
|
-
return `${this.is_border_w}rpx solid ${this.is_border_c}`;
|
|
905
|
-
else return "0";
|
|
899
|
+
return this.sectionBorder;
|
|
906
900
|
},
|
|
901
|
+
bottomBoxStyle(){
|
|
902
|
+
let padding = `${this.checkValue(this.bottomPadding.top, 20)}rpx`;
|
|
903
|
+
padding = `${padding} ${this.checkValue(this.bottomPadding.right, 20)}rpx`;
|
|
904
|
+
padding = `${padding} ${this.checkValue(this.bottomPadding.bottom, 20)}rpx`;
|
|
905
|
+
padding = `${padding} ${this.checkValue(this.bottomPadding.left, 20)}rpx`;
|
|
906
|
+
return {
|
|
907
|
+
padding: padding,
|
|
908
|
+
backgroundColor: this.bottomBgColor,
|
|
909
|
+
}
|
|
910
|
+
}
|
|
907
911
|
},
|
|
908
912
|
created() {
|
|
909
913
|
this.noticeBgc = Color(this.warningColor).alpha(0.2).toString();
|
|
@@ -936,15 +940,13 @@ export default {
|
|
|
936
940
|
this.getCountDown();
|
|
937
941
|
}
|
|
938
942
|
},
|
|
939
|
-
getOrderDetail() {
|
|
943
|
+
getOrderDetail() {
|
|
940
944
|
jfbRootExec("getBaseOrderDetail", {
|
|
941
945
|
vm: this,
|
|
942
946
|
data: {
|
|
943
947
|
main_order_id: this.main_order_id,
|
|
944
948
|
custom_content_page_id: this.pageAttr.page_id,
|
|
945
949
|
custom_content_container_id: this.cid,
|
|
946
|
-
is_show_jhd_code: Number(this.is_show),
|
|
947
|
-
is_show_product: this.is_show_product === "Y" ? 1 : 0,
|
|
948
950
|
},
|
|
949
951
|
})
|
|
950
952
|
.then((res) => {
|
|
@@ -1071,7 +1073,7 @@ export default {
|
|
|
1071
1073
|
}
|
|
1072
1074
|
|
|
1073
1075
|
//增加删除订单按钮
|
|
1074
|
-
if(this.is_show_delete_order
|
|
1076
|
+
if(this.is_show_delete_order === 'Y') {
|
|
1075
1077
|
let pay = (res.buttons||[]).filter(item => item.action === 'pay');
|
|
1076
1078
|
let del = [{action:'delete', text:'删除订单', type: 'info'}];
|
|
1077
1079
|
if(pay.length === 1) del = []
|
|
@@ -1084,12 +1086,11 @@ export default {
|
|
|
1084
1086
|
}
|
|
1085
1087
|
|
|
1086
1088
|
if (res.product) {
|
|
1087
|
-
|
|
1088
|
-
jfbRootExec("getBaseProductDetail", {
|
|
1089
|
+
jfbRootExec("getBaseProductDetail", {
|
|
1089
1090
|
vm: this,
|
|
1090
1091
|
data: {
|
|
1091
|
-
xnamespace:
|
|
1092
|
-
product_id:
|
|
1092
|
+
xnamespace: info.product.business_code,
|
|
1093
|
+
product_id: info.product.product_id,
|
|
1093
1094
|
},
|
|
1094
1095
|
})
|
|
1095
1096
|
.then((result) => {
|
|
@@ -1102,11 +1103,6 @@ export default {
|
|
|
1102
1103
|
.catch((err) => {
|
|
1103
1104
|
console.log(err, "err");
|
|
1104
1105
|
});
|
|
1105
|
-
} catch (error) {
|
|
1106
|
-
console.log(error,'apapapa');
|
|
1107
|
-
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
1106
|
}
|
|
1111
1107
|
else {
|
|
1112
1108
|
this.info = res;
|
|
@@ -1138,30 +1134,23 @@ export default {
|
|
|
1138
1134
|
this.brandTextColor = getContainerPropsValue(container, "content.brandTextColor", this.mainColor);
|
|
1139
1135
|
this.padding = getContainerPropsValue(container, "content.padding", 20);
|
|
1140
1136
|
|
|
1141
|
-
this.is_shadow = getContainerPropsValue(container, "content.is_shadow", "N");
|
|
1142
|
-
this.is_shadow_bg = getContainerPropsValue(container, "content.is_shadow_bg", "#fff");
|
|
1143
|
-
this.is_shadow_w = getContainerPropsValue(container, "content.is_shadow_w", "10");
|
|
1144
|
-
|
|
1145
|
-
this.is_border = getContainerPropsValue(container, "content.is_border", "N");
|
|
1146
1137
|
this.is_hot = getContainerPropsValue(container, "content.is_hot", "Y");
|
|
1147
|
-
this.is_border_c = getContainerPropsValue(container, "content.is_border_c", "#fff");
|
|
1148
|
-
this.is_border_w = getContainerPropsValue(container, "content.is_border_w", 2);
|
|
1149
1138
|
this.viewStatus = getContainerPropsValue(container, "content.viewStatus", "mall");
|
|
1150
1139
|
this.is_show_support_shop = getContainerPropsValue(container, "content.is_show_support_shop", "N");
|
|
1151
1140
|
this.is_show_delete_order = getContainerPropsValue(container, "content.is_show_delete_order", "N");
|
|
1152
|
-
this.
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
this.
|
|
1157
|
-
|
|
1158
|
-
if(
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1141
|
+
this.lineHeight = getContainerPropsValue(container, "content.lineHeight", 20);
|
|
1142
|
+
let sectionShadow = getContainerPropsValue(container, "content.sectionShadow", "");
|
|
1143
|
+
if(sectionShadow.type === 'Y' && sectionShadow.value){
|
|
1144
|
+
this.sectionShadow = `0 0 ${sectionShadow.value.width}rpx ${sectionShadow.value.color}`;
|
|
1145
|
+
}else this.sectionShadow = '';
|
|
1146
|
+
let sectionBorder = getContainerPropsValue(container, "content.sectionBorder", "");
|
|
1147
|
+
if(sectionBorder.type === 'Y' && sectionBorder.value){
|
|
1148
|
+
this.sectionBorder = `${sectionBorder.value.width}rpx solid ${sectionBorder.value.color}`;
|
|
1149
|
+
}else this.sectionBorder = '';
|
|
1150
|
+
this.bottomBtnRadius = getContainerPropsValue(container, "content.bottomBtnRadius", 0);
|
|
1151
|
+
this.bottomPadding = getContainerPropsValue(container, "content.bottomPadding", {});
|
|
1152
|
+
this.bottomBgColor = getContainerPropsValue(container, "content.bottomBgColor", "#ffffff");
|
|
1153
|
+
this.bottomBtnHeight = getContainerPropsValue(container, "content.bottomBtnHeight", 60);
|
|
1165
1154
|
},
|
|
1166
1155
|
getCountDown() {
|
|
1167
1156
|
this.timer = setInterval(() => {
|
|
@@ -1801,8 +1790,6 @@ export default {
|
|
|
1801
1790
|
position: fixed;
|
|
1802
1791
|
left: 0;
|
|
1803
1792
|
right: 0;
|
|
1804
|
-
height: unit(100, rpx);
|
|
1805
|
-
padding: 0 unit(30, rpx);
|
|
1806
1793
|
box-shadow: 0 0 unit(10, rpx) rgba(0, 0, 0, 0.15);
|
|
1807
1794
|
background: #fff;
|
|
1808
1795
|
z-index: 3000;
|
|
@@ -1816,24 +1803,6 @@ export default {
|
|
|
1816
1803
|
}
|
|
1817
1804
|
}
|
|
1818
1805
|
|
|
1819
|
-
&-product {
|
|
1820
|
-
&-show {
|
|
1821
|
-
display: flex;
|
|
1822
|
-
justify-content: center;
|
|
1823
|
-
align-items: center;
|
|
1824
|
-
padding: unit(16, rpx);
|
|
1825
|
-
border-radius: unit(4, rpx);
|
|
1826
|
-
color: #999999;
|
|
1827
|
-
font-size: unit(24, rpx);
|
|
1828
|
-
margin-left:10px
|
|
1829
|
-
}
|
|
1830
|
-
}
|
|
1831
|
-
|
|
1832
|
-
&-html {
|
|
1833
|
-
padding: unit(20, rpx) 0;
|
|
1834
|
-
color: #999;
|
|
1835
|
-
}
|
|
1836
|
-
|
|
1837
1806
|
}
|
|
1838
1807
|
.dialog_password{
|
|
1839
1808
|
text-align: center;
|
|
@@ -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: '布局1', value: 'old'},
|
|
14
|
+
{label: '布局2', value: 'tfk'},
|
|
15
|
+
],
|
|
16
|
+
groupKey: "style",
|
|
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,
|