|
...
|
...
|
@@ -86,11 +86,22 @@ Page({ |
|
|
|
* 生命周期函数--监听页面显示
|
|
|
|
*/
|
|
|
|
onShow: function () {
|
|
|
|
let systemInfo = wx.getSystemInfoSync();
|
|
|
|
let reg = /ios/i;
|
|
|
|
let pt = 20;//导航状态栏上内边距
|
|
|
|
let h = 44;//导航状态栏高度
|
|
|
|
if(reg.test(systemInfo.system)){
|
|
|
|
pt = systemInfo.statusBarHeight;
|
|
|
|
h = 44;
|
|
|
|
}else{
|
|
|
|
pt = systemInfo.statusBarHeight;
|
|
|
|
h = 48;
|
|
|
|
}
|
|
|
|
this.setData({
|
|
|
|
totalWidth: getApp().system.windowWidth,
|
|
|
|
singleWidth: parseInt((getApp().system.windowWidth * 0.92 - 16) / 2),
|
|
|
|
totalHeight: getApp().system.windowHeight,
|
|
|
|
kindHeight: getApp().system.windowHeight - 68
|
|
|
|
kindHeight: getApp().system.windowHeight - pt-h
|
|
|
|
})
|
|
|
|
setTimeout(()=>{
|
|
|
|
this.initScrollHeightList();
|
...
|
...
|
|