This commit is contained in:
Vinjor 2024-10-27 16:11:58 +08:00
parent dadef36afc
commit 7db0c4b604

View File

@ -19,7 +19,7 @@
订单编号{{ item.orderNo }}
</view>
<text class="orderStatus" :class="['status_'+item.orderStatus]">
{{ getStatus(item.orderStatus,item.mainStatus,item.payType) }}
{{ getStatus(item.orderStatus,item.mainStatus,item.payType,item.payTime) }}
</text>
</view>
<view class="orderInfo">
@ -216,7 +216,7 @@ export default {
* @param payType 支付方式
* @returns {string}
*/
getStatus(orderStatus,mainStatus,payType) {
getStatus(orderStatus,mainStatus,payType,payTime) {
let str = "";
if("0"==orderStatus){
//
@ -238,7 +238,11 @@ export default {
str = "挂单/记账"
}else if("02"==mainStatus){
//
str = "已结账"
if(!payTime){
str = "待支付"
}else{
str = "已结账"
}
}else if("03"==mainStatus){
//
str = "已作废"