jiazhipeng 4 months ago
parent
commit
3a8791f101
  1. 14
      subPackages/order/detail.vue
  2. 22
      subPackages/order/trades.vue

14
subPackages/order/detail.vue

@ -413,12 +413,12 @@
立即支付 立即支付
</view> </view>
<view class="btn" v-if="info.status == 'POST' && info.order_child[0].goods_genre == 'pgoods'" <!-- <view class="btn" v-if="info.status == 'POST' && info.order_child[0].goods_genre == 'pgoods'"
@click="openMask()"> @click="openMask()">
快递查询 快递查询
</view> </view> -->
<view class="btn" v-if="info.status == 'POST' && info.order_child[0].goods_genre == 'pgoods'" <view class="btn" v-if="info.status == 'POST' && info.order_child[0].list_is_post == '1'"
@click="confirmGoods()"> @click="confirmGoods()">
确认收货 确认收货
</view> </view>
@ -519,7 +519,13 @@
lat: uni.getStorageSync('location').lat || '36.95286642085422' lat: uni.getStorageSync('location').lat || '36.95286642085422'
}, '/api/order/orderDetail').then(res => { }, '/api/order/orderDetail').then(res => {
this.info = res.data; this.info = res.data;
try {
if (this.info.order_child[0].data[0].status == "POST") {
this.info.status = this.info.order_child[0].data[0].status
this.info.status_text = this.info.order_child[0].data[0].status_text
}
} catch(e) {}
if (this.info.order_child[0].goods_genre == 'food') { if (this.info.order_child[0].goods_genre == 'food') {
// //
this.Post({ this.Post({

22
subPackages/order/trades.vue

@ -54,7 +54,7 @@
申请退款</view> 申请退款</view>
<view @click.stop="() => closeOrder(item.f_order_id, item)" v-if="item.f_status == 'WAIT_PAYMENT'">关闭订单 <view @click.stop="() => closeOrder(item.f_order_id, item)" v-if="item.f_status == 'WAIT_PAYMENT'">关闭订单
</view> </view>
<view @click.stop="()=>confirmpost(item.f_order_id, key)" v-if="item.postFlag">确认收货</view> <view @click.stop="()=>confirmpost(item.f_order_id, key)" v-if="item.data[0].status=='POST'">确认收货</view>
<view class="pay-btn" @click.stop="()=>setOrderId(item.f_order_id, item)" v-if="item.f_status == 'WAIT_PAYMENT'"> <view class="pay-btn" @click.stop="()=>setOrderId(item.f_order_id, item)" v-if="item.f_status == 'WAIT_PAYMENT'">
立即支付</view> 立即支付</view>
</view> </view>
@ -86,7 +86,8 @@
name: '待使用' name: '待使用'
}, },
{ {
id: 'PAYMENT_SUCCESSFULLY', // id: 'PAYMENT_SUCCESSFULLY',
id: "WAIT_DELIVER",
name: '待发货' name: '待发货'
}, },
{ {
@ -202,16 +203,19 @@
'/api/order/confirmPost' '/api/order/confirmPost'
).then(res => { ).then(res => {
if (res.code == 200) { if (res.code == 200) {
list[index].order_child.map(item => { // list[index].order_child.map(item => {
item.status = 'WAIT_COMMENT'; // item.status = 'WAIT_COMMENT';
}); // });
list[index].status = 'WAIT_COMMENT'; // list[index].status = 'WAIT_COMMENT';
list[index].postFlag = false; // list[index].postFlag = false;
that.list = list; // that.list = list;
uni.showToast({ uni.showToast({
title: '操作成功' title: '操作成功'
}); });
that.$forceUpdate(); // that.$forceUpdate();
that.list = [];
that.finished = false;
that.getList();
} }
}); });
} }

Loading…
Cancel
Save