From ad8fafcec0408e0a7edc93f101dafbb1e01f8158 Mon Sep 17 00:00:00 2001 From: sx <2427911852@qq.com> Date: Thu, 24 Apr 2025 13:35:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E4=BB=A3=E7=A0=81=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jiuyi2/api/shop.js | 39 +++++++ jiuyi2/manifest.json | 7 +- jiuyi2/pages/shop/order/afterSales.vue | 49 ++++++++- jiuyi2/pages/shop/order/index.vue | 136 ++++++++++++++---------- jiuyi2/pages/shop/store/order.vue | 141 +++++++++++++++++++++++-- jiuyi2/vite.config.js | 2 +- 6 files changed, 306 insertions(+), 68 deletions(-) diff --git a/jiuyi2/api/shop.js b/jiuyi2/api/shop.js index a2880293..5a5df13a 100644 --- a/jiuyi2/api/shop.js +++ b/jiuyi2/api/shop.js @@ -564,6 +564,45 @@ const shop = { load: true, }) }, + + /** + * 退货退款买家发货 + * @param {Object} param + */ + setShopOrderRefundGoods(param) { + return util.request({ + url: `/shopify/refundOrder/dealRefundOrderReturnGoods`, + method: 'POST', + data: param.data, + load: true, + }) + }, + + /** + * 商家确认收货 + * @param {Object} param + */ + setShopRefundOrder(param) { + return util.request({ + url: `/shopify/refundOrder`, + method: 'GET', + path: param.path, + load: true, + }) + }, + + /** + * 查看退款详情 + * @param {Object} param + */ + getRefundOrder(param) { + return util.request({ + url: `/shopify/refundOrder/getInfo`, + method: 'GET', + query: param.query, + load: true, + }) + }, } export default shop \ No newline at end of file diff --git a/jiuyi2/manifest.json b/jiuyi2/manifest.json index 0acd3247..b57e3ce2 100644 --- a/jiuyi2/manifest.json +++ b/jiuyi2/manifest.json @@ -172,7 +172,12 @@ "setting" : { "urlCheck" : false }, - "usingComponents" : true + "usingComponents" : true, + "permission" : { + "scope.userLocation" : { + "desc" : "为了使用服务,需要获取您当前的位置" + } + } }, "mp-alipay" : { "usingComponents" : true diff --git a/jiuyi2/pages/shop/order/afterSales.vue b/jiuyi2/pages/shop/order/afterSales.vue index 4ac3f78b..0f72208f 100644 --- a/jiuyi2/pages/shop/order/afterSales.vue +++ b/jiuyi2/pages/shop/order/afterSales.vue @@ -1,8 +1,25 @@