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 @@ 取消订单-{{ order.serviceStatus | serviceStatusList }} + + +
+ + 申请售后 + +
- - - 申请售后 - + - 提交物流 - + + 取消售后 + + 售后详情 @@ -105,13 +110,14 @@ +