取消订单
This commit is contained in:
parent
5e35f9a20e
commit
b412c01724
|
@ -500,7 +500,7 @@
|
||||||
class="dingshi">联系客服</u-button>
|
class="dingshi">联系客服</u-button>
|
||||||
</view>
|
</view>
|
||||||
<view class="showBtn" v-if="order.status ==9">
|
<view class="showBtn" v-if="order.status ==9">
|
||||||
<u-button class="dingshi" @click="TuiPopup(type,2,order)" shape="circle" :custom-style="customStyle" :hair-line="false"
|
<u-button class="dingshi" @click="cancelOrder(order)" shape="circle" :custom-style="customStyle" :hair-line="false"
|
||||||
>
|
>
|
||||||
取消订单
|
取消订单
|
||||||
</u-button>
|
</u-button>
|
||||||
|
@ -514,7 +514,7 @@
|
||||||
class="dingshi">联系客服</u-button>
|
class="dingshi">联系客服</u-button>
|
||||||
</view>
|
</view>
|
||||||
<view class="showBtn" v-if="order.status ==10">
|
<view class="showBtn" v-if="order.status ==10">
|
||||||
<u-button @click="TuiPopup(type,2,order)" shape="circle" :custom-style="customStyle" :hair-line="false"
|
<u-button @click="cancelOrder(order)" shape="circle" :custom-style="customStyle" :hair-line="false"
|
||||||
>
|
>
|
||||||
取消订单
|
取消订单
|
||||||
</u-button>
|
</u-button>
|
||||||
|
@ -2156,7 +2156,11 @@
|
||||||
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
that.getOrder()
|
uni.showToast({
|
||||||
|
title:'操作成功!'
|
||||||
|
})
|
||||||
|
that.getOrder();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
that.$queue.showToast(res.msg);
|
that.$queue.showToast(res.msg);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1559,6 +1559,9 @@
|
||||||
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
uni.showToast({
|
||||||
|
title:'操作成功!'
|
||||||
|
})
|
||||||
that.getOrder()
|
that.getOrder()
|
||||||
} else {
|
} else {
|
||||||
that.$queue.showToast(res.msg);
|
that.$queue.showToast(res.msg);
|
||||||
|
|
|
@ -1190,7 +1190,10 @@
|
||||||
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
// that.getOrder()
|
that.getOrder()
|
||||||
|
uni.showToast({
|
||||||
|
title:'操作成功!'
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
that.$queue.showToast(res.msg);
|
that.$queue.showToast(res.msg);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1273,7 +1273,10 @@
|
||||||
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
// that.getOrder()
|
uni.showToast({
|
||||||
|
title:'操作成功!'
|
||||||
|
})
|
||||||
|
that.getOrder()
|
||||||
} else {
|
} else {
|
||||||
that.$queue.showToast(res.msg);
|
that.$queue.showToast(res.msg);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1300,7 +1300,10 @@
|
||||||
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
// that.getOrder()
|
uni.showToast({
|
||||||
|
title:'操作成功!'
|
||||||
|
})
|
||||||
|
that.getOrder()
|
||||||
} else {
|
} else {
|
||||||
that.$queue.showToast(res.msg);
|
that.$queue.showToast(res.msg);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1263,7 +1263,10 @@
|
||||||
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
// that.getOrder()
|
that.getOrder()
|
||||||
|
uni.showToast({
|
||||||
|
title:'操作成功!'
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
that.$queue.showToast(res.msg);
|
that.$queue.showToast(res.msg);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1188,7 +1188,10 @@
|
||||||
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
// that.getOrder()
|
that.getOrder()
|
||||||
|
uni.showToast({
|
||||||
|
title:'操作成功!'
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
that.$queue.showToast(res.msg);
|
that.$queue.showToast(res.msg);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1220,7 +1220,10 @@
|
||||||
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
// that.getOrder()
|
that.getOrder()
|
||||||
|
uni.showToast({
|
||||||
|
title:'操作成功!'
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
that.$queue.showToast(res.msg);
|
that.$queue.showToast(res.msg);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1999,6 +1999,9 @@
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
that.getOrder()
|
that.getOrder()
|
||||||
|
uni.showToast({
|
||||||
|
title:'操作成功!'
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
that.$queue.showToast(res.msg);
|
that.$queue.showToast(res.msg);
|
||||||
}
|
}
|
||||||
|
|
|
@ -912,6 +912,9 @@
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
that.getOrder()
|
that.getOrder()
|
||||||
|
uni.showToast({
|
||||||
|
title:'操作成功!'
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
that.$queue.showToast(res.msg);
|
that.$queue.showToast(res.msg);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1285,6 +1285,9 @@
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
that.getOrder()
|
that.getOrder()
|
||||||
|
uni.showToast({
|
||||||
|
title:'操作成功!'
|
||||||
|
})
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url:'/pages/order/index'
|
url:'/pages/order/index'
|
||||||
})
|
})
|
||||||
|
|
|
@ -1407,6 +1407,9 @@
|
||||||
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
uni.showToast({
|
||||||
|
title:'操作成功!'
|
||||||
|
})
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url:'/pages/order/index'
|
url:'/pages/order/index'
|
||||||
})
|
})
|
||||||
|
|
|
@ -899,6 +899,9 @@
|
||||||
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
uni.showToast({
|
||||||
|
title:'操作成功!'
|
||||||
|
})
|
||||||
that.getOrder()
|
that.getOrder()
|
||||||
} else {
|
} else {
|
||||||
that.$queue.showToast(res.msg);
|
that.$queue.showToast(res.msg);
|
||||||
|
|
|
@ -1414,6 +1414,9 @@
|
||||||
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
uni.showToast({
|
||||||
|
title:'操作成功!'
|
||||||
|
})
|
||||||
that.getOrder()
|
that.getOrder()
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url:'/pages/order/index'
|
url:'/pages/order/index'
|
||||||
|
|
|
@ -957,6 +957,9 @@
|
||||||
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
uni.showToast({
|
||||||
|
title:'操作成功!'
|
||||||
|
})
|
||||||
that.getOrder()
|
that.getOrder()
|
||||||
} else {
|
} else {
|
||||||
that.$queue.showToast(res.msg);
|
that.$queue.showToast(res.msg);
|
||||||
|
|
|
@ -1409,6 +1409,9 @@
|
||||||
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
uni.showToast({
|
||||||
|
title:'操作成功!'
|
||||||
|
})
|
||||||
that.getOrder()
|
that.getOrder()
|
||||||
} else {
|
} else {
|
||||||
that.$queue.showToast(res.msg);
|
that.$queue.showToast(res.msg);
|
||||||
|
|
|
@ -251,7 +251,9 @@
|
||||||
}
|
}
|
||||||
that.$Request.get('/app/orders/cancelOrder', data).then(res => {
|
that.$Request.get('/app/orders/cancelOrder', data).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
uni.showToast({
|
||||||
|
title:'操作成功!'
|
||||||
|
})
|
||||||
that.getOrder()
|
that.getOrder()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -233,7 +233,7 @@
|
||||||
<u-button
|
<u-button
|
||||||
:custom-style="customStyle" shape="circle" :plain="true"
|
:custom-style="customStyle" shape="circle" :plain="true"
|
||||||
class="btns xianshi"
|
class="btns xianshi"
|
||||||
@click="TuiPopup(type,2,item)">
|
@click="cancelOrder(item)">
|
||||||
取消订单
|
取消订单
|
||||||
</u-button>
|
</u-button>
|
||||||
<u-button v-if="item.packageType=='104'||item.packageType=='105'||item.packageType=='106'" :custom-style="customStyle1" shape="circle" :plain="true"
|
<u-button v-if="item.packageType=='104'||item.packageType=='105'||item.packageType=='106'" :custom-style="customStyle1" shape="circle" :plain="true"
|
||||||
|
@ -725,7 +725,10 @@
|
||||||
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
that.page = 1
|
that.page = 1;
|
||||||
|
uni.showToast({
|
||||||
|
title:'操作成功!'
|
||||||
|
})
|
||||||
that.getOrderList()
|
that.getOrderList()
|
||||||
} else {
|
} else {
|
||||||
that.$queue.showToast(res.msg);
|
that.$queue.showToast(res.msg);
|
||||||
|
|
Loading…
Reference in New Issue