From c412c92b3e3c631da091f2d581af7d10aff6fbdd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com>
Date: Tue, 30 Nov 2021 14:59:49 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8F=96=E6=B6=88=E5=94=AE?=
=?UTF-8?q?=E5=90=8E=20=E4=BC=98=E5=8C=96=E5=94=AE=E5=90=8E=E9=83=A8?=
=?UTF-8?q?=E5=88=86=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/after-sale.js | 15 +++-
pages/cart/coupon/myCoupon.vue | 4 +-
pages/order/afterSales/afterSales.vue | 87 ++++++++++++++-------
pages/order/afterSales/afterSalesDetail.vue | 1 +
pages/order/afterSales/applyDetail.vue | 4 +-
5 files changed, 79 insertions(+), 32 deletions(-)
diff --git a/api/after-sale.js b/api/after-sale.js
index 7eb6524..a4aa898 100644
--- a/api/after-sale.js
+++ b/api/after-sale.js
@@ -34,16 +34,29 @@ export function applyCancelOrder(params) {
});
}
+/**
/**
* 获取商家售后收件地址
*/
-export function getstoreAfterSaleAddress(sn) {
+export function getStoreAfterSaleAddress(sn) {
return http.request({
url: `/afterSale/getStoreAfterSaleAddress/${sn}`,
method: Method.GET,
needToken: true,
});
}
+/**
+ * 取消售后
+ */
+export function cancelAfterSale(afterSaleSn) {
+ return http.request({
+ url: `/afterSale/cancel/${afterSaleSn}`,
+ method: Method.POST,
+ needToken: true,
+ });
+}
+
+
/**
* 获取售后服务记录相关数据
diff --git a/pages/cart/coupon/myCoupon.vue b/pages/cart/coupon/myCoupon.vue
index 8a3778e..3732497 100644
--- a/pages/cart/coupon/myCoupon.vue
+++ b/pages/cart/coupon/myCoupon.vue
@@ -187,13 +187,13 @@ export default {
* 立即使用优惠券
*/
useItNow(item) {
- if (item.storeId) {
+ if (item.storeId && item.storeId!='platform') {
uni.navigateTo({
url: `/pages/product/shopPage?id=${item.storeId}`,
});
} else {
uni.switchTab({
- url: "/pages/tabbar/home/index",
+ url: "/pages/navigation/search/searchPage",
});
}
},
diff --git a/pages/order/afterSales/afterSales.vue b/pages/order/afterSales/afterSales.vue
index 01bd547..67d34ae 100644
--- a/pages/order/afterSales/afterSales.vue
+++ b/pages/order/afterSales/afterSales.vue
@@ -68,17 +68,19 @@