精简搜索函数, 添加页面
This commit is contained in:
@@ -22,10 +22,9 @@ Page({
|
||||
post('Orders/getLiteOrders')
|
||||
.then((res: any) => {
|
||||
const list = toArray(res.data);
|
||||
wx.stopPullDownRefresh();
|
||||
this.setData({ list: list });
|
||||
this.setData({ list });
|
||||
})
|
||||
.catch(() => {
|
||||
.finally(() => {
|
||||
wx.stopPullDownRefresh();
|
||||
});
|
||||
},
|
||||
@@ -45,7 +44,7 @@ Page({
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {},
|
||||
onLoad(_options) {},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
|
||||
Reference in New Issue
Block a user