From 01e5404e8cf76ac76822cdefd8ce259f83351839 Mon Sep 17 00:00:00 2001 From: sin <2943460818@qq.com> Date: Fri, 26 Apr 2019 00:25:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=94=B3=E8=AF=B7=E9=80=80?= =?UTF-8?q?=E8=B4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile-web/package.json | 6 +- mobile-web/src/api/order.js | 23 ++ mobile-web/src/config/router.js | 2 +- mobile-web/src/page/user/aftersale/apply.vue | 310 +++++++++++-------- mobile-web/src/page/user/order/info.vue | 17 +- 5 files changed, 218 insertions(+), 140 deletions(-) diff --git a/mobile-web/package.json b/mobile-web/package.json index 09fda12f3..e80d54cc8 100644 --- a/mobile-web/package.json +++ b/mobile-web/package.json @@ -11,16 +11,16 @@ "dependencies": { "axios": "^0.18.0", "moment": "^2.24.0", + "pingpp-js": "^2.2.13", "vant": "^1.3.1", "vue": "^2.5.17", "vue-router": "^3.0.1", - "vuex": "^3.1.0", - "pingpp-js": "^2.2.13" + "vuex": "^3.1.0" }, "devDependencies": { "@vue/cli-plugin-babel": "^3.4.1", "@vue/cli-plugin-eslint": "^3.4.1", - "@vue/cli-service": "^3.4.1", + "@vue/cli-service": "^3.6.0", "babel-plugin-import": "^1.8.0", "less": "^3.8.1", "less-loader": "^4.1.0", diff --git a/mobile-web/src/api/order.js b/mobile-web/src/api/order.js index 95bce2831..bfddcbb42 100644 --- a/mobile-web/src/api/order.js +++ b/mobile-web/src/api/order.js @@ -142,3 +142,26 @@ export function getLogisticsInfo(params) { } }); } + + +// 退货信息 + +export function getOrderReturnReason() { + return request({ + url: '/order-api/users/order_return/reason', + method: 'get', + }); +} + +export function orderReturnApply(params) { + return request({ + headers: { + 'Content-Type': 'application/json', + }, + url: '/order-api/users/order_return/apply', + method: 'POST', + data: { + ...params, + }, + }); +} diff --git a/mobile-web/src/config/router.js b/mobile-web/src/config/router.js index 562c22d4c..e0d6034e3 100644 --- a/mobile-web/src/config/router.js +++ b/mobile-web/src/config/router.js @@ -133,7 +133,7 @@ const routes = [ } }, { - path: '/user/aftersale/apply', + path: '/user/aftersale/apply/:orderId', component: () => import('../page/user/aftersale/apply'), meta: { title: '申请售后' diff --git a/mobile-web/src/page/user/aftersale/apply.vue b/mobile-web/src/page/user/aftersale/apply.vue index 308bc3620..9ca0ec918 100644 --- a/mobile-web/src/page/user/aftersale/apply.vue +++ b/mobile-web/src/page/user/aftersale/apply.vue @@ -1,143 +1,197 @@ - -
- - - - - - - - - - - - -
- -
- - - - - - - - - - - -
- - -
-
- -
- - - - - - - - 提交 - - - + diff --git a/mobile-web/src/page/user/order/info.vue b/mobile-web/src/page/user/order/info.vue index 05caa56af..65b652115 100644 --- a/mobile-web/src/page/user/order/info.vue +++ b/mobile-web/src/page/user/order/info.vue @@ -46,7 +46,7 @@