|
|
@@ -7,6 +7,7 @@ Page({
|
|
|
"pageTotal": 1,
|
|
|
},
|
|
|
result: [],
|
|
|
+ list: []
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
let item = JSON.parse(options.data);
|
|
|
@@ -62,20 +63,18 @@ Page({
|
|
|
}
|
|
|
}
|
|
|
}).then(res => {
|
|
|
- if (res.msg != '成功') {
|
|
|
- wx.showToast({
|
|
|
- title: res.data,
|
|
|
- icon: "none"
|
|
|
- })
|
|
|
- return;
|
|
|
- };
|
|
|
+ console.log("可选项查询", res)
|
|
|
+ if (res.msg != '成功') return wx.showToast({
|
|
|
+ title: res.data,
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ if (!res.pageNumber) res.pageNumber = 1;
|
|
|
this.setData({
|
|
|
list: res.pageNumber == 1 ? res.data : this.data.list.concat(res.data),
|
|
|
"paging.pageNumber": res.pageNumber + 1,
|
|
|
"paging.pageTotal": res.pageTotal,
|
|
|
"paging.total": res.total,
|
|
|
})
|
|
|
- console.log("可选项查询", res)
|
|
|
})
|
|
|
},
|
|
|
submit() {
|