diff --git a/pages/order/list.vue b/pages/order/list.vue index c0ec7b1..4ced7c6 100644 --- a/pages/order/list.vue +++ b/pages/order/list.vue @@ -7,19 +7,19 @@ + :key="order.id" @tap="onOrderDetail(order.no)"> - 订单号:{{ order.order_sn }} + 订单号:{{ order.no }} {{ - order.status_text + order.status }} - + - + + - 总金额: - - ¥{{ order.order_amount }} - + + 共{{count}}件商品,总金额: + + ¥{{ order.payPrice/100 }} + + @@ -96,7 +96,7 @@ --> - @@ -146,7 +146,7 @@ + --> @@ -200,23 +200,23 @@ const tabMaps = [{ name: '全部', - value: 'all', + // value: 'all', }, { name: '待付款', - value: 'unpaid', + value: 0, }, { name: '待发货', - value: 'nosend', + value: 10, }, { name: '待收货', - value: 'noget', + value: 20, }, { name: '待评价', - value: 'nocomment', + value: 30, }, ]; @@ -399,9 +399,10 @@ async function getOrderList(page = 1, list_rows = 5) { state.loadStatus = 'loading'; let res = await sheep.$api.order.list({ - type: tabMaps[state.currentTab].value, - pageNo: list_rows, + status: tabMaps[state.currentTab].value, + pageSize: list_rows, pageNo: page, + commentStatus: tabMaps[state.currentTab].value==30?false:null }); state.error = res.code; if (res.code === 0) {