Commit f3c519bd authored by youjie's avatar youjie

no message

parent d14a1a7b
...@@ -245,13 +245,15 @@ ...@@ -245,13 +245,15 @@
methods: { methods: {
//获取订单状态名称 //获取订单状态名称
getOrderStateName(item) { getOrderStateName(item) {
var str = "待付款"; var str = "";
if (item.visaOrderStatus == 1&&item.income>0) { if (item.visaOrderStatus == 1&&(item.income+item.platformTax)<item.totalPrice) {
str = "正常" str = "正常"
} else if (item.visaOrderStatus == 1&&item.income==item.totalPrice) { } else if (item.visaOrderStatus == 1&&(item.income+item.platformTax)==item.totalPrice) {
str = "已付款" str = "已付款"
} else if (item.visaOrderStatus == 2) { } else if (item.visaOrderStatus == 2) {
str = "已取消" str = "已取消"
} else if (item.visaOrderStatus == 3) {
str = "待付款"
} }
return str; return str;
}, },
......
...@@ -500,8 +500,8 @@ ...@@ -500,8 +500,8 @@
</view> </view>
</view> </view>
</view> </view>
<view class="jz_orderbox flex"> <view class="jz_orderbox flex" v-if="showPayBtn">
<view style="display: flex" v-if="showPayBtn"> <view style="display: flex">
<view class="jz_OrderReNow" @click="goCancel" style="background: #fff; color: #111; border: 1px solid #111"> <view class="jz_OrderReNow" @click="goCancel" style="background: #fff; color: #111; border: 1px solid #111">
<text v-if="!submitCancel">取消</text> <text v-if="!submitCancel">取消</text>
<u-loading v-if="submitCancel" size="32" color="#111"></u-loading> <u-loading v-if="submitCancel" size="32" color="#111"></u-loading>
...@@ -633,7 +633,8 @@ ...@@ -633,7 +633,8 @@
this.formatStatus( this.formatStatus(
this.orderData.OrderModel.VisaOrderStatus, this.orderData.OrderModel.VisaOrderStatus,
this.orderData.OrderModel.Income, this.orderData.OrderModel.Income,
this.orderData.OrderModel.TotalPrice this.orderData.OrderModel.TotalPrice,
this.orderData.OrderModel.PlatformTax
); );
} else { } else {
this.orderData = { this.orderData = {
...@@ -644,7 +645,7 @@ ...@@ -644,7 +645,7 @@
(e) => {} (e) => {}
); );
}, },
formatStatus(status,Income,TotalPrice) { formatStatus(status,Income,TotalPrice,PlatformTax) {
if (status == 2) { if (status == 2) {
this.orderStatus.code = -1; this.orderStatus.code = -1;
this.orderStatus.text = "已取消"; this.orderStatus.text = "已取消";
...@@ -653,11 +654,11 @@ ...@@ -653,11 +654,11 @@
this.orderStatus.code = 0; this.orderStatus.code = 0;
this.orderStatus.text = "待付款"; this.orderStatus.text = "待付款";
this.showPayBtn = true; this.showPayBtn = true;
} else if (status == 1&&Income>0) { } else if (status == 1&&(Income+PlatformTax)<TotalPrice) {
this.orderStatus.code = 1; this.orderStatus.code = 1;
this.orderStatus.text = "正常"; this.orderStatus.text = "正常";
this.showPayBtn = false; this.showPayBtn = false;
} else if (status == 1&&Income==TotalPrice) { } else if (status == 1&&(Income+PlatformTax)==TotalPrice) {
this.orderStatus.code = 1; this.orderStatus.code = 1;
this.orderStatus.text = "已付款"; this.orderStatus.text = "已付款";
this.showPayBtn = false; this.showPayBtn = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment