|
@@ -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 })
|
|
|
+ },
|
|
|
|
|
|
/**
|
|
|
* 生命周期函数--监听页面初次渲染完成
|