更新了订单状态显示错误的问题
This commit is contained in:
parent
591100a8b7
commit
0e0cc53992
@ -83,7 +83,7 @@
|
|||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class='iconfont'
|
<view class='iconfont'
|
||||||
:class='(orderInfo.status == 3 ? "icon-webicon318":"icon-yuandianxiao") + " " +(orderInfo.status > 3 && orderInfo.status != 9 ? "t-color":"")'
|
:class='(orderInfo.status == 1 ? "icon-webicon318":"icon-yuandianxiao") + " " +(orderInfo.status >=1 && orderInfo.status != 9 ? "t-color":"")'
|
||||||
v-if="orderInfo.order_type == 0"></view>
|
v-if="orderInfo.order_type == 0"></view>
|
||||||
|
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
<view v-if="orderList.length > 0">
|
<view v-if="orderList.length > 0">
|
||||||
<block v-if="orderStatus == 0">
|
<block v-if="orderStatus == 0">
|
||||||
<view class='item' v-for="(item,index) in orderList" :key="index">
|
<view class='item' v-for="(item,index) in orderList" :key="index">
|
||||||
<view @click='goOrderDetails(item.group_order_id)'>
|
<view @click='goOrderDetails(item.group_order_id, item)'>
|
||||||
<view class='title acea-row row-between-wrapper'>
|
<view class='title acea-row row-between-wrapper'>
|
||||||
<view class="acea-row row-middle left-wrapper">
|
<view class="acea-row row-middle left-wrapper">
|
||||||
{{item.group_order_sn}}
|
{{item.group_order_sn}}
|
||||||
@ -153,7 +153,7 @@
|
|||||||
<!-- 待发货 待收货 待评价 已完成 -->
|
<!-- 待发货 待收货 待评价 已完成 -->
|
||||||
<block v-else>
|
<block v-else>
|
||||||
<view class='item' v-for="(item,index) in orderList" :key="index">
|
<view class='item' v-for="(item,index) in orderList" :key="index">
|
||||||
<view @click='goOrderDetails(item.order_id)'>
|
<view @click='goOrderDetails(item.order_id, item)'>
|
||||||
<view class='title acea-row row-between-wrapper'>
|
<view class='title acea-row row-between-wrapper'>
|
||||||
<view class="acea-row row-middle left-wrapper" @click.stop="goMall(item)">
|
<view class="acea-row row-middle left-wrapper" @click.stop="goMall(item)">
|
||||||
<text class="iconfont icon-shangjiadingdan"></text>
|
<text class="iconfont icon-shangjiadingdan"></text>
|
||||||
@ -565,11 +565,10 @@ import { Toast } from '../../../libs/uniApi';
|
|||||||
/**
|
/**
|
||||||
* 去订单详情
|
* 去订单详情
|
||||||
*/
|
*/
|
||||||
goOrderDetails: function(order_id) {
|
goOrderDetails: function(order_id, item) {
|
||||||
|
|
||||||
let self = this
|
let self = this
|
||||||
|
|
||||||
|
|
||||||
if (!order_id) return that.$util.Tips({
|
if (!order_id) return that.$util.Tips({
|
||||||
title: '缺少订单号无法查看订单详情'
|
title: '缺少订单号无法查看订单详情'
|
||||||
});
|
});
|
||||||
@ -578,14 +577,12 @@ import { Toast } from '../../../libs/uniApi';
|
|||||||
title: '正在加载',
|
title: '正在加载',
|
||||||
})
|
})
|
||||||
openOrderSubscribe().then(() => {
|
openOrderSubscribe().then(() => {
|
||||||
|
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (self.orderStatus == 0) {
|
if (self.orderStatus == 0 || (item&&item.order_status==1)) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/order_details/stay?order_id=' + order_id
|
url: '/pages/order_details/stay?order_id=' + order_id
|
||||||
})
|
})
|
||||||
} else if (self.orderStatus == 1) {
|
} else if (self.orderStatus == 1) {
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/order_details/stay?order_id=${order_id}&orderStatus=${self.orderStatus}`
|
url: `/pages/order_details/stay?order_id=${order_id}&orderStatus=${self.orderStatus}`
|
||||||
})
|
})
|
||||||
@ -599,10 +596,9 @@ import { Toast } from '../../../libs/uniApi';
|
|||||||
})
|
})
|
||||||
// #endif
|
// #endif
|
||||||
// #ifndef MP
|
// #ifndef MP
|
||||||
console.log(self.orderStatus);
|
if (self.orderStatus == 0||(item&&item.order_status==1)) {
|
||||||
if (self.orderStatus == 0) {
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/order_details/stay?order_id=' + order_id
|
url: '/pages/order_details/stay?order_id=' + item.group_order_id
|
||||||
})
|
})
|
||||||
} else if (self.orderStatus == 1) {
|
} else if (self.orderStatus == 1) {
|
||||||
// uni.navigateTo({
|
// uni.navigateTo({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user