fix button status

This commit is contained in:
quantulr
2024-05-24 17:17:01 +08:00
parent 5c547bdd69
commit c5011c53d7
10 changed files with 259 additions and 192 deletions

View File

@ -26,6 +26,48 @@ Page({
url: '/pages/my/after_sales_next/after_sales_next?id=' + this.data.id + '&&num=' + this.data.num,
})
},
// 撤销退换货申请
cancel() {
wx.showModal({
title: '确定要撤销申请吗?',
// content: '',
complete: (res) => {
if (res.cancel) {
}
if (res.confirm) {
wx.request({
url: app.globalData.ip + '/wisdommining/api/order/cancelRefund',
method: 'GET',
header: {
"content-type": "application/x-www-form-urlencoded",
},
data: {
orderId: this.data.id
},
success(res) {
if (res.data.code == 1) {
wx.showToast({
title: res.data.message,
})
wx.navigateTo({
url: '/pages/my/my_order/my_order?state=' + 3,
})
} else {
wx.showModal({
title: '提示!',
content: res.data.message,
showCancel: false,
})
}
}
})
}
}
})
},
/**
* 生命周期函数--监听页面初次渲染完成
@ -49,14 +91,14 @@ Page({
},
data: {
userId: app.globalData.userId,
orderNumber:this.data.num,
orderNumber: this.data.num,
},
success: res => {
console.log(res)
wx.hideLoading()
if (res.data.code == 1) {
let goods = res.data.value;
if(goods.orderRefundImage){
if (goods.orderRefundImage) {
goods.orderRefundImage = goods.orderRefundImage.split(',');
}
this.setData({