From 6f4cd5608730cc182c45edf6ca1e053ad75116b9 Mon Sep 17 00:00:00 2001
From: 1154079537 <1154079537@qq.com>
Date: Sat, 8 Jun 2024 13:42:16 +0800
Subject: [PATCH] =?UTF-8?q?=C2=B71?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 6 -
api/order.js | 15 +
components/addressPopup.vue | 250 +++++------
pages.json | 25 +-
pages/afterSales/afterSales.vue | 483 +++++++++++++++++++++
pages/afterSales/afterSalesOrder.vue | 264 +++++++++++
pages/afterSales/afterSalesOrderDetail.vue | 281 ++++++++++++
pages/my/my.vue | 4 +-
pagesOrder/order/component/good.vue | 6 +
pagesOrder/order/order.vue | 180 +++++++-
pagesOrder/settle/settle.vue | 21 +-
11 files changed, 1367 insertions(+), 168 deletions(-)
create mode 100644 pages/afterSales/afterSales.vue
create mode 100644 pages/afterSales/afterSalesOrder.vue
create mode 100644 pages/afterSales/afterSalesOrderDetail.vue
diff --git a/App.vue b/App.vue
index 07d19fa..7ffd168 100644
--- a/App.vue
+++ b/App.vue
@@ -2,12 +2,6 @@
export default {
onLaunch: function() {
console.log('App Launch');
- uni.addInterceptor('navigateTo', {
- invoke(e) {
- console.log('路由监听');
- console.log(e);
- }
- })
},
onShow: function() {
console.log('App Show')
diff --git a/api/order.js b/api/order.js
index 22212b1..db2860b 100644
--- a/api/order.js
+++ b/api/order.js
@@ -59,4 +59,19 @@ export const writeCountApi = (data) => {
// 根据核销码查询记录
export const writeCodeApi = (data) => {
return request.post('/order/order/write_code', data);
+}
+
+// 取消售后
+export const cancelSaleApi = (data) => {
+ return request.get('/order/order/cancel_sale', data);
+}
+
+// 订单退款原因
+export const refundReasonListApi = (data) => {
+ return request.post('/order/order/refund_reason', data);
+}
+
+// 订单退款申请
+export const applyRefundApi = (data) => {
+ return request.post('/order/order/apply_refund', data);
}
\ No newline at end of file
diff --git a/components/addressPopup.vue b/components/addressPopup.vue
index da9134d..d395425 100644
--- a/components/addressPopup.vue
+++ b/components/addressPopup.vue
@@ -1,149 +1,151 @@
-
-
-
+
+
+
\ No newline at end of file
diff --git a/pages.json b/pages.json
index 1852cde..3c93849 100644
--- a/pages.json
+++ b/pages.json
@@ -9,7 +9,6 @@
}
},
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
-
{
"path": "pages/index/index",
"style": {
@@ -49,20 +48,36 @@
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
- },
- {
+ }, {
"path": "pages/charge/charge_record",
"style": {
"navigationBarTitleText": "充值记录",
"enablePullDownRefresh": false
}
- },
- {
+ }, {
"path": "pages/charge/charge",
"style": {
"navigationBarTitleText": "会员充值",
"enablePullDownRefresh": false
}
+ }, {
+ "path": "pages/afterSales/afterSales",
+ "style": {
+ "navigationBarTitleText": "售后退款",
+ "enablePullDownRefresh": false
+ }
+ }, {
+ "path": "pages/afterSales/afterSalesOrder",
+ "style": {
+ "navigationBarTitleText": "退款订单 ",
+ "enablePullDownRefresh": false
+ }
+ }, {
+ "path": "pages/afterSales/afterSalesOrderDetail",
+ "style": {
+ "navigationBarTitleText": "售后退款详情",
+ "enablePullDownRefresh": false
+ }
}
],
"subPackages": [{
diff --git a/pages/afterSales/afterSales.vue b/pages/afterSales/afterSales.vue
new file mode 100644
index 0000000..5903335
--- /dev/null
+++ b/pages/afterSales/afterSales.vue
@@ -0,0 +1,483 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 黄牛牛腩
+
+ ¥
+ 10
+
+
+
+ 牛腩块
+ x5
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交申请
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/afterSales/afterSalesOrder.vue b/pages/afterSales/afterSalesOrder.vue
new file mode 100644
index 0000000..65255fe
--- /dev/null
+++ b/pages/afterSales/afterSalesOrder.vue
@@ -0,0 +1,264 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{item.order_id}}
+ {{item.create_time}}
+
+
+
+
+
+
+
+
+ {{goods.store_name}}
+
+ ¥
+ {{goods.price}}
+
+
+
+ 牛腩块
+ x{{item.cart_num || 0}}
+
+
+
+ 退款¥
+ {{item.refund_price || 0}}
+
+
+
+
+
+
+ 退款申请中
+ 退款完成
+ 取消售后
+
+ 等待商家处理
+ 退款成功¥{{item.refund_status}}
+ 退款已关闭
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/afterSales/afterSalesOrderDetail.vue b/pages/afterSales/afterSalesOrderDetail.vue
new file mode 100644
index 0000000..9791f6f
--- /dev/null
+++ b/pages/afterSales/afterSalesOrderDetail.vue
@@ -0,0 +1,281 @@
+
+
+
+
+
+ 退款总金额
+
+ ¥{{shopInfo.refund_price}}
+
+
+
+
+ 退款关闭
+ {{shopInfo.refund_cancle_time}}
+
+ 因您取消退款申请,退款已关闭,交易将正常进行。
+
+
+
+ 退款信息
+
+
+
+
+
+
+ {{item.store_name}}
+
+
+ 牛腩块
+
+
+
+
+
+
+ 退款原因
+ {{shopInfo.refund_reason}}
+
+
+ 退款金额
+ ¥{{shopInfo.refund_price}}
+
+
+
+ 申请件数
+ {{shopInfo.refund_num}}
+
+
+
+ 订单编号
+ {{shopInfo.order_id}}
+
+
+
+ 申请时间
+ {{shopInfo.refund_reason_time}}
+
+
+
+ 取消售后
+
+ 联系商家
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/my/my.vue b/pages/my/my.vue
index c3cd4ba..146dc13 100644
--- a/pages/my/my.vue
+++ b/pages/my/my.vue
@@ -74,14 +74,14 @@
{{orderCount.waiting}}
-
+
已核销
{{orderCount.receiving}}
-
+
售后/退款
diff --git a/pagesOrder/order/component/good.vue b/pagesOrder/order/component/good.vue
index 9f75998..1979db3 100644
--- a/pagesOrder/order/component/good.vue
+++ b/pagesOrder/order/component/good.vue
@@ -39,6 +39,8 @@
size="small" plain color="#20B128" shape="circle">再次购买
查看详情
+ 申请售后
+
+
+