取消订单

This commit is contained in:
Mr.jiang 2024-07-13 10:57:38 +08:00
parent 5e35f9a20e
commit b412c01724
18 changed files with 66 additions and 12 deletions

View File

@ -500,7 +500,7 @@
class="dingshi">联系客服</u-button>
</view>
<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>
@ -514,7 +514,7 @@
class="dingshi">联系客服</u-button>
</view>
<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>
@ -2156,7 +2156,11 @@
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
uni.hideLoading();
if (res.code == 0) {
that.getOrder()
uni.showToast({
title:'操作成功!'
})
that.getOrder();
} else {
that.$queue.showToast(res.msg);
}

View File

@ -1559,6 +1559,9 @@
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
uni.hideLoading();
if (res.code == 0) {
uni.showToast({
title:'操作成功!'
})
that.getOrder()
} else {
that.$queue.showToast(res.msg);

View File

@ -1190,7 +1190,10 @@
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
uni.hideLoading();
if (res.code == 0) {
// that.getOrder()
that.getOrder()
uni.showToast({
title:'操作成功!'
})
} else {
that.$queue.showToast(res.msg);
}

View File

@ -1273,7 +1273,10 @@
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
uni.hideLoading();
if (res.code == 0) {
// that.getOrder()
uni.showToast({
title:'操作成功!'
})
that.getOrder()
} else {
that.$queue.showToast(res.msg);
}

View File

@ -1300,7 +1300,10 @@
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
uni.hideLoading();
if (res.code == 0) {
// that.getOrder()
uni.showToast({
title:'操作成功!'
})
that.getOrder()
} else {
that.$queue.showToast(res.msg);
}

View File

@ -1263,7 +1263,10 @@
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
uni.hideLoading();
if (res.code == 0) {
// that.getOrder()
that.getOrder()
uni.showToast({
title:'操作成功!'
})
} else {
that.$queue.showToast(res.msg);
}

View File

@ -1188,7 +1188,10 @@
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
uni.hideLoading();
if (res.code == 0) {
// that.getOrder()
that.getOrder()
uni.showToast({
title:'操作成功!'
})
} else {
that.$queue.showToast(res.msg);
}

View File

@ -1220,7 +1220,10 @@
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
uni.hideLoading();
if (res.code == 0) {
// that.getOrder()
that.getOrder()
uni.showToast({
title:'操作成功!'
})
} else {
that.$queue.showToast(res.msg);
}

View File

@ -1999,6 +1999,9 @@
uni.hideLoading();
if (res.code == 0) {
that.getOrder()
uni.showToast({
title:'操作成功!'
})
} else {
that.$queue.showToast(res.msg);
}

View File

@ -912,6 +912,9 @@
uni.hideLoading();
if (res.code == 0) {
that.getOrder()
uni.showToast({
title:'操作成功!'
})
} else {
that.$queue.showToast(res.msg);
}

View File

@ -1285,6 +1285,9 @@
uni.hideLoading();
if (res.code == 0) {
that.getOrder()
uni.showToast({
title:'操作成功!'
})
uni.switchTab({
url:'/pages/order/index'
})

View File

@ -1407,6 +1407,9 @@
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
uni.hideLoading();
if (res.code == 0) {
uni.showToast({
title:'操作成功!'
})
uni.switchTab({
url:'/pages/order/index'
})

View File

@ -899,6 +899,9 @@
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
uni.hideLoading();
if (res.code == 0) {
uni.showToast({
title:'操作成功!'
})
that.getOrder()
} else {
that.$queue.showToast(res.msg);

View File

@ -1414,6 +1414,9 @@
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
uni.hideLoading();
if (res.code == 0) {
uni.showToast({
title:'操作成功!'
})
that.getOrder()
uni.switchTab({
url:'/pages/order/index'

View File

@ -957,6 +957,9 @@
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
uni.hideLoading();
if (res.code == 0) {
uni.showToast({
title:'操作成功!'
})
that.getOrder()
} else {
that.$queue.showToast(res.msg);

View File

@ -1409,6 +1409,9 @@
that.$Request.post('/app/artificer/deleteOrders', data).then(res => {
uni.hideLoading();
if (res.code == 0) {
uni.showToast({
title:'操作成功!'
})
that.getOrder()
} else {
that.$queue.showToast(res.msg);

View File

@ -251,7 +251,9 @@
}
that.$Request.get('/app/orders/cancelOrder', data).then(res => {
if (res.code == 0) {
uni.showToast({
title:'操作成功!'
})
that.getOrder()
}
})

View File

@ -233,7 +233,7 @@
<u-button
:custom-style="customStyle" shape="circle" :plain="true"
class="btns xianshi"
@click="TuiPopup(type,2,item)">
@click="cancelOrder(item)">
取消订单
</u-button>
<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 => {
uni.hideLoading();
if (res.code == 0) {
that.page = 1
that.page = 1;
uni.showToast({
title:'操作成功!'
})
that.getOrderList()
} else {
that.$queue.showToast(res.msg);