|
@@ -101,7 +101,7 @@
|
|
|
list: [ //订单列表
|
|
|
{
|
|
|
shop: '官方自营店',
|
|
|
- status: '0',
|
|
|
+ status: '3',
|
|
|
url: [{
|
|
|
name: "20220928155634.jpg",
|
|
|
uri: "/files/point/20220928155634.jpg",
|
|
@@ -235,31 +235,9 @@
|
|
|
},
|
|
|
// 申请售后
|
|
|
toAfter(e) {
|
|
|
- const that = this;
|
|
|
- uni.showModal({
|
|
|
- title: '提示',
|
|
|
- content: '确定申请售后吗?',
|
|
|
- success: async function(res) {
|
|
|
- if (res.confirm) {
|
|
|
- const arr = await that.$api(`/order/${e._id}`, 'POST', {
|
|
|
- status: '-3'
|
|
|
- });
|
|
|
- if (arr.errcode == '0') {
|
|
|
- uni.showToast({
|
|
|
- title: '申请售后成功',
|
|
|
- icon: 'none'
|
|
|
- })
|
|
|
- that.clearPage();
|
|
|
- that.search();
|
|
|
- } else {
|
|
|
- uni.showToast({
|
|
|
- title: arr.errmsg,
|
|
|
- icon: 'none'
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pagesMy/order/service?id=${e._id}`
|
|
|
+ })
|
|
|
},
|
|
|
// 申请退款
|
|
|
toRefund(e) {
|