|
@@ -100,6 +100,7 @@
|
|
|
<button v-if="item.status=='1'" size="mini" @tap.stop="toCancels(item)">取消订单</button>
|
|
|
<button v-if="item.status=='2'||item.status=='3'" size="mini" @tap.stop="toLogi(item)">查看物流</button>
|
|
|
<button v-if="item.status=='2'" size="mini" @tap.stop="toConfirm(item)">确认收货</button>
|
|
|
+ <button v-if="item.status=='2'" size="mini" @tap.stop="toReject(item)">拒收</button>
|
|
|
<button v-if="item.status=='3'" size="mini" @tap.stop="toAfter(item)">申请售后</button>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -453,7 +454,34 @@
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
+ },
|
|
|
+ async toReject(e) {
|
|
|
+ const that = this;
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '确定拒收快递吗?',
|
|
|
+ success: async function(res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ let arr = await that.$api(`/afterSale`, 'POST', {
|
|
|
+ order_detail: e._id,
|
|
|
+ type: '5'
|
|
|
+ })
|
|
|
+ if (arr.errcode == '0') {
|
|
|
+ uni.showToast({
|
|
|
+ title: '申请取消订单完成',
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
+ that.clearPage();
|
|
|
+ that.search();
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: arr.errmsg,
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
// 申请售后
|
|
|
toAfter(e) {
|