diff --git a/.env.production b/.env.production index 4f59bec..723b0f3 100644 --- a/.env.production +++ b/.env.production @@ -2,4 +2,4 @@ ENV = 'production' # base api -VUE_APP_BASE_API = 'https://mall.wayn.ltd/mobile-api' \ No newline at end of file +VUE_APP_BASE_API = '/mobile-api' \ No newline at end of file diff --git a/src/api/order.js b/src/api/order.js index 7ce3041..5df53a5 100644 --- a/src/api/order.js +++ b/src/api/order.js @@ -15,11 +15,10 @@ export function statusCount() { }) } -export function orderDetail(data) { +export function orderDetail(orderSn) { return request({ - url: '/order/info', - method: 'post', - data + url: `/order/detail/${orderSn}`, + method: 'get' }) } @@ -80,3 +79,4 @@ export function orderConfirm(orderId) { method: 'post' }) } + diff --git a/src/router/index.js b/src/router/index.js index 143ef92..091fd47 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -247,7 +247,7 @@ const routes = [ }, // 订单详情 { - path: '/order/detail/:goodsId', + path: '/order/detail/:orderSn', name: 'OrderDetail', props: true, component: () => import('@/views/order/detail'), diff --git a/src/views/order/detail/index.vue b/src/views/order/detail/index.vue index 67b7549..29db926 100644 --- a/src/views/order/detail/index.vue +++ b/src/views/order/detail/index.vue @@ -1,11 +1,40 @@ - order detail + + + + + + + + orderSn: {{ orderInfo.orderSn }} + +