|
|
@@ -9,7 +9,8 @@ Page({
|
|
|
data: {
|
|
|
tab:[
|
|
|
{title:"全部订单",status:''},
|
|
|
- {title:"已支付",status:'PLAYED'},
|
|
|
+ {title:"已下单",status:'ORDERED'},
|
|
|
+ {title:"已支付",status:'PAYED'},
|
|
|
{title:"已取消",status:'CANCELLED'},
|
|
|
{title:"已发货",status:'DELIVERED'},
|
|
|
{title:"已收货",status:'RECEIVED'},
|
|
|
@@ -30,7 +31,7 @@ Page({
|
|
|
getOrderLists(status){
|
|
|
API.getOrderLists({pageNum:this.data.pageNum,pageSize:10,status}).then(res=>{
|
|
|
res.orderDTOS.forEach(item=>{
|
|
|
- let stats = {PLAYED:"已支付",CANCELLED:"已取消",DELIVERED:"已发货",RECEIVED:"已收货",FINISHED:"完成",ORDERED:"已下单"};
|
|
|
+ let stats = {PAYED:"已支付",CANCELLED:"已取消",DELIVERED:"已发货",RECEIVED:"已收货",FINISHED:"完成",ORDERED:"已下单"};
|
|
|
item.statusName = stats[item.orderStatus]
|
|
|
})
|
|
|
this.setData({
|