You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
630 B
40 lines
630 B
// home/pages/dispatch/dispatch.js
|
|
const { getDataInThreeDays } = require("../../../api/api");
|
|
Page({
|
|
data: {
|
|
listObj: {}
|
|
},
|
|
onLoad(options) {
|
|
this.setData({
|
|
entryId:options.id
|
|
});
|
|
this.getList();
|
|
},
|
|
onShow() {
|
|
|
|
},
|
|
|
|
/** 列表 **/
|
|
getList(){
|
|
getDataInThreeDays({
|
|
id: this.data.entryId,
|
|
}).then(res=>{
|
|
if(res.code==200){
|
|
this.setData({
|
|
listObj:res.data
|
|
});
|
|
}else{
|
|
wx.showToast({
|
|
title: res.msg,
|
|
icon:'none'
|
|
})
|
|
}
|
|
});
|
|
},
|
|
|
|
|
|
/** 返回 **/
|
|
back(e) {
|
|
wx.navigateBack();
|
|
},
|
|
}) |