jufubao-base 1.0.183 → 1.0.184-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/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 +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 +18 -74
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +26 -22
- 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 +12 -0
- package/src/components/JfbBasePay/JfbBasePay.vue +14 -8
- 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/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/JfbBaseWallet/Attr.js +340 -2
- package/src/components/JfbBaseWallet/JfbBaseWallet.vue +167 -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>
|
|
@@ -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
|
|
@@ -814,15 +826,6 @@ export default {
|
|
|
814
826
|
backgroundColor: "",
|
|
815
827
|
padding: 0,
|
|
816
828
|
|
|
817
|
-
//投影
|
|
818
|
-
is_shadow: "Y",
|
|
819
|
-
is_shadow_bg: 0,
|
|
820
|
-
is_shadow_w: 0,
|
|
821
|
-
|
|
822
|
-
//边框
|
|
823
|
-
is_border: "Y",
|
|
824
|
-
is_border_w: 0,
|
|
825
|
-
is_border_c: "",
|
|
826
829
|
|
|
827
830
|
//其他
|
|
828
831
|
margin: {
|
|
@@ -833,8 +836,11 @@ export default {
|
|
|
833
836
|
},
|
|
834
837
|
is_hot: "Y",
|
|
835
838
|
logo: "",
|
|
839
|
+
lineHeight: 20,
|
|
836
840
|
|
|
837
841
|
noticeBgc:'',
|
|
842
|
+
sectionShadow: "",
|
|
843
|
+
sectionBorder: "",
|
|
838
844
|
};
|
|
839
845
|
},
|
|
840
846
|
watch: {
|
|
@@ -873,14 +879,10 @@ export default {
|
|
|
873
879
|
return str
|
|
874
880
|
},
|
|
875
881
|
shadowBox() {
|
|
876
|
-
|
|
877
|
-
return `0 0 ${this.is_shadow_w}rpx ${this.is_shadow_bg}`;
|
|
878
|
-
else return "0 0 0 rgba(0,0,0,0)";
|
|
882
|
+
return this.sectionShadow;
|
|
879
883
|
},
|
|
880
884
|
borderBox() {
|
|
881
|
-
|
|
882
|
-
return `${this.is_border_w}rpx solid ${this.is_border_c}`;
|
|
883
|
-
else return "0";
|
|
885
|
+
return this.sectionBorder;
|
|
884
886
|
},
|
|
885
887
|
},
|
|
886
888
|
created() {
|
|
@@ -1108,17 +1110,19 @@ export default {
|
|
|
1108
1110
|
this.brandTextColor = getContainerPropsValue(container, "content.brandTextColor", this.mainColor);
|
|
1109
1111
|
this.padding = getContainerPropsValue(container, "content.padding", 20);
|
|
1110
1112
|
|
|
1111
|
-
this.is_shadow = getContainerPropsValue(container, "content.is_shadow", "N");
|
|
1112
|
-
this.is_shadow_bg = getContainerPropsValue(container, "content.is_shadow_bg", "#fff");
|
|
1113
|
-
this.is_shadow_w = getContainerPropsValue(container, "content.is_shadow_w", "10");
|
|
1114
|
-
|
|
1115
|
-
this.is_border = getContainerPropsValue(container, "content.is_border", "N");
|
|
1116
1113
|
this.is_hot = getContainerPropsValue(container, "content.is_hot", "Y");
|
|
1117
|
-
this.is_border_c = getContainerPropsValue(container, "content.is_border_c", "#fff");
|
|
1118
|
-
this.is_border_w = getContainerPropsValue(container, "content.is_border_w", 2);
|
|
1119
1114
|
this.viewStatus = getContainerPropsValue(container, "content.viewStatus", "mall");
|
|
1120
1115
|
this.is_show_support_shop = getContainerPropsValue(container, "content.is_show_support_shop", "N");
|
|
1121
1116
|
this.is_show_delete_order = getContainerPropsValue(container, "content.is_show_delete_order", "N");
|
|
1117
|
+
this.lineHeight = getContainerPropsValue(container, "content.lineHeight", 20);
|
|
1118
|
+
let sectionShadow = getContainerPropsValue(container, "content.sectionShadow", "");
|
|
1119
|
+
if(sectionShadow.type === 'Y' && sectionShadow.value){
|
|
1120
|
+
this.sectionShadow = `0 0 ${sectionShadow.value.width}rpx ${sectionShadow.value.color}`;
|
|
1121
|
+
}else this.sectionShadow = '';
|
|
1122
|
+
let sectionBorder = getContainerPropsValue(container, "content.sectionBorder", "");
|
|
1123
|
+
if(sectionBorder.type === 'Y' && sectionBorder.value){
|
|
1124
|
+
this.sectionBorder = `${sectionBorder.value.width}rpx solid ${sectionBorder.value.color}`;
|
|
1125
|
+
}else this.sectionBorder = '';
|
|
1122
1126
|
},
|
|
1123
1127
|
getCountDown() {
|
|
1124
1128
|
this.timer = setInterval(() => {
|
|
@@ -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,
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="xd-tfk-order-item">
|
|
3
|
+
<view class="o_header">
|
|
4
|
+
<view class="h_l">
|
|
5
|
+
<xd-font-icon
|
|
6
|
+
v-if="item.biz_code_icon"
|
|
7
|
+
:icon="item.biz_code_icon"
|
|
8
|
+
:size="item['biz_code_icon_size']"
|
|
9
|
+
></xd-font-icon>
|
|
10
|
+
<view :class="{ marginLeft: item.biz_code_icon }" style="margin-left: 20rpx;">{{item.biz_code_name }}</view>
|
|
11
|
+
</view>
|
|
12
|
+
<view v-if="isShowOrderNo==='N'" class="o_status" :style="{
|
|
13
|
+
color:item.status.status_type !== 'error' ? mainColor : '#999999',
|
|
14
|
+
}">{{ item.status.status_name }}</view>
|
|
15
|
+
</view>
|
|
16
|
+
<view class="o_title" v-if="isShowOrderNo==='Y'">
|
|
17
|
+
<view class="o_number">订单编号:{{ item.main_order_id }}</view>
|
|
18
|
+
<view class="o_status" :style="{
|
|
19
|
+
color:item.status.status_type !== 'error' ? mainColor : '#999999',
|
|
20
|
+
}">{{ item.status.status_name }}</view>
|
|
21
|
+
</view>
|
|
22
|
+
<view class="prod_list">
|
|
23
|
+
<!-- 单个商品展示商品信息 -->
|
|
24
|
+
<template v-if="item.products.length == 1">
|
|
25
|
+
<view class="one_prod" v-for="Sitem in item.products" :key="Sitem.key">
|
|
26
|
+
<view class="prod_img">
|
|
27
|
+
<image :src="Sitem.product_thumb" style="background: #ffffff" mode="aspectFill"></image>
|
|
28
|
+
</view>
|
|
29
|
+
<view class="prod_info">
|
|
30
|
+
<view class="prod_name">{{ Sitem.product_name }}</view>
|
|
31
|
+
<view v-if="Sitem.brand_name" class="prod_brand" :style="{color: brandTextColor}">{{ Sitem.brand_name }}</view>
|
|
32
|
+
<view v-if="Sitem.product_sku_name" class="prod_sku">规格:{{ Sitem.product_sku_name }}</view>
|
|
33
|
+
<view class="prod_price">
|
|
34
|
+
<view>¥448</view>
|
|
35
|
+
<view class="info-price">
|
|
36
|
+
<text>x</text>
|
|
37
|
+
<text>{{ Sitem.product_num }}</text>
|
|
38
|
+
</view>
|
|
39
|
+
</view>
|
|
40
|
+
</view>
|
|
41
|
+
</view>
|
|
42
|
+
</template>
|
|
43
|
+
|
|
44
|
+
<!-- 多个商品展示更多商品信息 -->
|
|
45
|
+
<view v-if="item.products.length > 1" class="more_prod">
|
|
46
|
+
<view class="img_list">
|
|
47
|
+
<view class="prod_img" v-for="prod in item.products" :key="prod.key">
|
|
48
|
+
<image :src="prod.product_thumb" style="background: #ffffff" mode="aspectFit"></image>
|
|
49
|
+
</view>
|
|
50
|
+
</view>
|
|
51
|
+
<view class="right_arrow">
|
|
52
|
+
<xd-font-icon icon='iconxiangyou_xian' :size="26" color="#bdc0c5"></xd-font-icon>
|
|
53
|
+
</view>
|
|
54
|
+
</view>
|
|
55
|
+
</view>
|
|
56
|
+
<view class="prod_total">
|
|
57
|
+
<view></view>
|
|
58
|
+
<view style="display: flex;align-items: center;">
|
|
59
|
+
共{{item.products.length}}件商品 实付
|
|
60
|
+
<xd-unit
|
|
61
|
+
:isOld="false"
|
|
62
|
+
:price="item.total_amount"
|
|
63
|
+
:color="mainColor"
|
|
64
|
+
:fontSize="28"></xd-unit>
|
|
65
|
+
</view>
|
|
66
|
+
</view>
|
|
67
|
+
<view v-if="item.buttons.length" class="prod_footer">
|
|
68
|
+
<view style="flex: 1;"></view>
|
|
69
|
+
<view class="btn"
|
|
70
|
+
v-for="(btn,index) in item.buttons" :key="btn.key"
|
|
71
|
+
@click="handleBtnEvent(btn.action, item)"
|
|
72
|
+
>{{btn.text}}</view>
|
|
73
|
+
</view>
|
|
74
|
+
</view>
|
|
75
|
+
</template>
|
|
76
|
+
|
|
77
|
+
<script>
|
|
78
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon"
|
|
79
|
+
import XdUnit from "@/components/XdUnit/XdUnit"
|
|
80
|
+
export default{
|
|
81
|
+
name:"XdTfkOrderItem",
|
|
82
|
+
components: {
|
|
83
|
+
XdFontIcon,
|
|
84
|
+
XdUnit,
|
|
85
|
+
},
|
|
86
|
+
props:{
|
|
87
|
+
item: Object,
|
|
88
|
+
mainColor: String,
|
|
89
|
+
isShowOrderNo: {
|
|
90
|
+
type: String,
|
|
91
|
+
},
|
|
92
|
+
brandTextColor: String
|
|
93
|
+
},
|
|
94
|
+
data(){
|
|
95
|
+
return{
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
methods:{
|
|
99
|
+
handleBtnEvent(action){
|
|
100
|
+
this.$emit('handleBtnEvent', action)
|
|
101
|
+
},
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
</script>
|
|
105
|
+
|
|
106
|
+
<style lang="less" scoped>
|
|
107
|
+
.xd-tfk-order-item{
|
|
108
|
+
padding-left: 30rpx;
|
|
109
|
+
overflow: hidden;
|
|
110
|
+
.o_header{
|
|
111
|
+
height: 90rpx;
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
justify-content: space-between;
|
|
115
|
+
border-bottom: 1px solid #EDEDED;
|
|
116
|
+
padding-right: 30rpx;
|
|
117
|
+
color: #333333;
|
|
118
|
+
font-size: 28rpx;
|
|
119
|
+
|
|
120
|
+
.h_l{
|
|
121
|
+
display: flex;
|
|
122
|
+
align-items: center;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
.o_title{
|
|
126
|
+
height: 80rpx;
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
justify-content: space-between;
|
|
130
|
+
padding-right: 30rpx;
|
|
131
|
+
color: #333333;
|
|
132
|
+
font-size: 24rpx;
|
|
133
|
+
border-bottom: 1px solid #EDEDED;
|
|
134
|
+
}
|
|
135
|
+
.one_prod{
|
|
136
|
+
display: flex;
|
|
137
|
+
align-items: center;
|
|
138
|
+
width: 100%;
|
|
139
|
+
padding: 30rpx 30rpx 30rpx 0;
|
|
140
|
+
box-sizing: border-box;
|
|
141
|
+
.prod_img{
|
|
142
|
+
width: 140rpx;
|
|
143
|
+
height: 140rpx;
|
|
144
|
+
background-color: #f5f5f9;
|
|
145
|
+
image{
|
|
146
|
+
width: 100%;
|
|
147
|
+
height: 100%;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
.prod_info{
|
|
151
|
+
flex: 1;
|
|
152
|
+
padding-left: 30rpx;
|
|
153
|
+
.prod_name{
|
|
154
|
+
color: #2e2f30;
|
|
155
|
+
font-size: 30rpx;
|
|
156
|
+
}
|
|
157
|
+
.prod_brand{
|
|
158
|
+
font-size: 24rpx;
|
|
159
|
+
margin-top: 8rpx;
|
|
160
|
+
}
|
|
161
|
+
.prod_sku{
|
|
162
|
+
color: #797d82;
|
|
163
|
+
font-size: 24rpx;
|
|
164
|
+
margin-top: 8rpx;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
.prod_price{
|
|
168
|
+
display: flex;
|
|
169
|
+
justify-content: space-between;
|
|
170
|
+
align-items: center;
|
|
171
|
+
color: rgb(46, 47, 48);
|
|
172
|
+
font-size: 30rpx;
|
|
173
|
+
margin-top: 12rpx;
|
|
174
|
+
.info-price{
|
|
175
|
+
display: flex;
|
|
176
|
+
color: #bdc0c5;
|
|
177
|
+
font-size: 26rpx;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
.prod_list{
|
|
182
|
+
position: relative;
|
|
183
|
+
.right_arrow{
|
|
184
|
+
position: absolute;
|
|
185
|
+
right: 0px;
|
|
186
|
+
height: 100%;
|
|
187
|
+
width: 60rpx;
|
|
188
|
+
top: 0;
|
|
189
|
+
background: #FFF;
|
|
190
|
+
display: flex;
|
|
191
|
+
align-items: center;
|
|
192
|
+
justify-content: center;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
.more_prod{
|
|
196
|
+
display: flex;
|
|
197
|
+
flex-wrap: nowrap;
|
|
198
|
+
overflow: auto;
|
|
199
|
+
padding: 30rpx 30rpx 30rpx 0;
|
|
200
|
+
width: 100%;
|
|
201
|
+
.img_list{
|
|
202
|
+
display: flex;
|
|
203
|
+
flex-wrap: nowrap;
|
|
204
|
+
padding-right: 60rpx;
|
|
205
|
+
}
|
|
206
|
+
.prod_img{
|
|
207
|
+
width: 140rpx;
|
|
208
|
+
height: 140rpx;
|
|
209
|
+
display: flex;
|
|
210
|
+
align-items: center;
|
|
211
|
+
justify-content: center;
|
|
212
|
+
image{
|
|
213
|
+
width: 100%;
|
|
214
|
+
height: 100%;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
.prod_total{
|
|
219
|
+
height: 80rpx;
|
|
220
|
+
display: flex;
|
|
221
|
+
align-items: center;
|
|
222
|
+
justify-content: space-between;
|
|
223
|
+
padding-right: 30rpx;
|
|
224
|
+
border-top: 1px solid #EDEDED;
|
|
225
|
+
color: #2e2f30;
|
|
226
|
+
font-size: 26rpx;
|
|
227
|
+
}
|
|
228
|
+
.prod_footer{
|
|
229
|
+
padding: 16rpx 30rpx 16rpx 0;
|
|
230
|
+
display: flex;
|
|
231
|
+
align-items: center;
|
|
232
|
+
border-top: 1px solid #EDEDED;
|
|
233
|
+
.btn{
|
|
234
|
+
width: 170rpx;
|
|
235
|
+
height: 66rpx;
|
|
236
|
+
border: 1px solid #EDEDED;
|
|
237
|
+
display: flex;
|
|
238
|
+
align-items: center;
|
|
239
|
+
justify-content: center;
|
|
240
|
+
margin-left: 20rpx;
|
|
241
|
+
color: #2e2f30;
|
|
242
|
+
font-size: 24rpx;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
</style>
|
|
@@ -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
|
},
|