86 lines
2.2 KiB
JavaScript
86 lines
2.2 KiB
JavaScript
import bin from "../../../utils/bin"
|
|
Component({
|
|
properties: {
|
|
},
|
|
data: {
|
|
},
|
|
methods: {
|
|
getorder(res){
|
|
bin.request({
|
|
url:"User/getOrderList",
|
|
urldata:{
|
|
user_id:res,
|
|
type:"WAITPAY",
|
|
page:"0"
|
|
}
|
|
}).then((r)=>{
|
|
console.log(r)
|
|
this.setData({
|
|
WAITPAY:r.data.result
|
|
})
|
|
})
|
|
bin.request({
|
|
url:"User/getOrderList",
|
|
urldata:{
|
|
user_id:res,
|
|
type:"WAITSEND",
|
|
page:"0"
|
|
}
|
|
}).then((r)=>{
|
|
console.log(r)
|
|
this.setData({
|
|
WAITSEND:r.data.result
|
|
})
|
|
})
|
|
bin.request({
|
|
url:"User/getOrderList",
|
|
urldata:{
|
|
user_id:res,
|
|
type:"WAITRECEIVE",
|
|
page:"0"
|
|
}
|
|
}).then((r)=>{
|
|
console.log(r)
|
|
this.setData({
|
|
WAITRECEIVE:r.data.result
|
|
})
|
|
})
|
|
bin.request({
|
|
url:"User/getOrderList",
|
|
urldata:{
|
|
user_id:res,
|
|
type:"FINISH",
|
|
page:"0"
|
|
}
|
|
}).then((r)=>{
|
|
console.log(r)
|
|
this.setData({
|
|
FINISH:r.data.result
|
|
})
|
|
})
|
|
bin.request({
|
|
url:"User/getOrderList",
|
|
urldata:{
|
|
user_id:res,
|
|
type:"AFTERSALE",
|
|
page:"0"
|
|
}
|
|
}).then((r)=>{
|
|
console.log(r)
|
|
this.setData({
|
|
AFTERSALE:r.data.result
|
|
})
|
|
})
|
|
},
|
|
getlist(){
|
|
bin.getuserid().then((res)=>{
|
|
this.getorder(res)
|
|
})
|
|
}
|
|
|
|
},
|
|
ready(){
|
|
this.getlist()
|
|
}
|
|
|
|
}) |