114 lines
3.0 KiB
JavaScript
114 lines
3.0 KiB
JavaScript
import bin from "../../../utils/bin"
|
|
Component({
|
|
properties: {
|
|
index:Number
|
|
},
|
|
data: {
|
|
},
|
|
methods: {
|
|
receivingw(a){
|
|
// receiving
|
|
wx.navigateTo({
|
|
url: "/pages/receiving/receiving?id=" + a.target.dataset.id
|
|
})
|
|
},
|
|
receivings(a){
|
|
console.log(a)
|
|
wx.navigateTo({
|
|
url: "/pages/undetermined/undetermined?id=" + a.target.dataset.id
|
|
})
|
|
},
|
|
todetail(a) {
|
|
console.log(a)
|
|
// return ;
|
|
wx.navigateTo({
|
|
url: "/pages/particulars/particulars?id=" + a.target.dataset.id
|
|
})
|
|
},
|
|
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)
|
|
})
|
|
} ,
|
|
receiving(){
|
|
|
|
},
|
|
shua(){
|
|
console.log(123)
|
|
this.getlist()
|
|
|
|
}
|
|
|
|
},
|
|
ready(){
|
|
this.getlist()
|
|
}
|
|
|
|
}) |