|
@@ -153,12 +153,13 @@ Page({
|
|
const messages = { name: { required: '请输入团队名称' }, type: { required: '请输入团队类型' }, create_user: { required: '请输入团队创建人名称' }, };
|
|
const messages = { name: { required: '请输入团队名称' }, type: { required: '请输入团队类型' }, create_user: { required: '请输入团队创建人名称' }, };
|
|
this.WxValidate = new WxValidate(rules, messages)
|
|
this.WxValidate = new WxValidate(rules, messages)
|
|
},
|
|
},
|
|
- // 计算高度
|
|
|
|
- searchHeight: function () {
|
|
|
|
|
|
+ // 计算高度
|
|
|
|
+ searchHeight: function () {
|
|
let frameStyle = this.data.frameStyle;
|
|
let frameStyle = this.data.frameStyle;
|
|
let client = app.globalData.client;
|
|
let client = app.globalData.client;
|
|
- // 减去状态栏
|
|
|
|
- let infoHeight = client.windowHeight - (client.statusBarHeight + client.getMenu.height + (client.getMenu.top - client.statusBarHeight) * 2);
|
|
|
|
|
|
+ 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 (frameStyle.useBar) infoHeight = infoHeight - 50;
|
|
if (infoHeight) this.setData({ infoHeight: infoHeight })
|
|
if (infoHeight) this.setData({ infoHeight: infoHeight })
|