Skip to content

Commit 6c4ffc8

Browse files
committed
trade:增加用户 App 的订单分页和详情接口
1 parent a2c7821 commit 6c4ffc8

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

src/router/index.js

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -198,20 +198,12 @@ export const constantRoutes = [
198198
]
199199
},
200200
{
201-
path: '/order',
201+
path: '/trade/order',
202202
component: Layout,
203-
name: '订单管理',
204-
meta: { title: '订单管理' },
205-
alwaysShow: true,
203+
hidden: true,
206204
children: [
207205
{
208-
path: '/mall/trade/order',
209-
name: '商品订单',
210-
meta: { title: '商品订单' },
211-
component: (resolve) => require(['@/views/mall/trade/order'], resolve)
212-
},
213-
{
214-
path: '/mall/trade/order/detail',
206+
path: 'detail',
215207
name: '订单详情',
216208
hidden: true,
217209
meta: { title: '订单详情' },

src/views/mall/trade/order/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export default {
229229
this.getList();
230230
},
231231
goToDetail (row) {
232-
this.$router.push({ path: '/mall/trade/order/detail', query: { id: row.id }})
232+
this.$router.push({ path: '/trade/order/detail', query: { id: row.id }})
233233
}
234234
}
235235
}

0 commit comments

Comments
 (0)