|
@@ -15,8 +15,7 @@ Page({
|
|
|
|
|
|
infoHeight: '',
|
|
|
id: '',
|
|
|
- schedulelist: [
|
|
|
- ]
|
|
|
+ schedulelist: []
|
|
|
},
|
|
|
|
|
|
imgUpload: function (e) {
|
|
@@ -58,7 +57,6 @@ Page({
|
|
|
method: 'get',
|
|
|
data: {},
|
|
|
success(res) {
|
|
|
- console.log(res.data.data);
|
|
|
that.setData({
|
|
|
schedulelist: res.data.data,
|
|
|
})
|
|
@@ -70,17 +68,16 @@ Page({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
- searchHeight: function () {
|
|
|
- let frameStyle = this.data.frameStyle;
|
|
|
- let client = app.globalData.client;
|
|
|
- let infoHeight = client.windowHeight;
|
|
|
-
|
|
|
- if (frameStyle.useTop) infoHeight = infoHeight - (client.statusBarHeight + client.getMenu.height + (client.getMenu.top - client.statusBarHeight) * 2);
|
|
|
-
|
|
|
- if (frameStyle.useBar) infoHeight = infoHeight - 50;
|
|
|
- if (infoHeight) this.setData({ infoHeight: infoHeight })
|
|
|
-},
|
|
|
+
|
|
|
+ searchHeight: function () {
|
|
|
+ let frameStyle = this.data.frameStyle;
|
|
|
+ let client = app.globalData.client;
|
|
|
+
|
|
|
+ let infoHeight = client.windowHeight - (client.statusBarHeight + client.getMenu.height + (client.getMenu.top - client.statusBarHeight) * 2);
|
|
|
+
|
|
|
+ if (frameStyle.useBar) infoHeight = infoHeight - 50;
|
|
|
+ if (infoHeight) this.setData({ infoHeight: infoHeight })
|
|
|
+ },
|
|
|
|
|
|
|
|
|
* 生命周期函数--监听页面初次渲染完成
|