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 @@