一半
This commit is contained in:
@@ -1,8 +1,86 @@
|
||||
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()
|
||||
}
|
||||
|
||||
})
|
||||
Reference in New Issue
Block a user