|
@@ -103,7 +103,7 @@ Page({
|
|
|
reward: "Reuters.美股异动|波音(BA.US)737MAX客...",
|
|
|
time:"5天前"
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
|
|
|
],
|
|
|
|
|
@@ -122,7 +122,7 @@ Page({
|
|
|
// }).exec();
|
|
|
},
|
|
|
onLoad: function () {
|
|
|
- this.computeScrollViewHeight();
|
|
|
+ // this.computeScrollViewHeight();
|
|
|
// if (app.globalData.userInfo) {
|
|
|
// this.setData({
|
|
|
// userInfo: app.globalData.userInfo,
|
|
@@ -164,7 +164,7 @@ Page({
|
|
|
let windowWidth = wx.getSystemInfoSync().windowWidth
|
|
|
let height = windowHeight - topHeight - searchHeight - titleHeight
|
|
|
let ratio = 750 / windowWidth
|
|
|
- let scrollHeight = height * ratio - 50
|
|
|
+ let scrollHeight = height * ratio + 20
|
|
|
that.setData({ scrollHeight: scrollHeight})
|
|
|
})
|
|
|
},
|
|
@@ -174,6 +174,7 @@ Page({
|
|
|
imagewidth: imageSize.imageWidth,
|
|
|
imageheight: imageSize.imageHeight
|
|
|
})
|
|
|
+ this.computeScrollViewHeight();
|
|
|
},
|
|
|
getUserInfo: function(e) {
|
|
|
console.log(e)
|
|
@@ -182,6 +183,7 @@ Page({
|
|
|
userInfo: e.detail.userInfo,
|
|
|
hasUserInfo: true
|
|
|
})
|
|
|
+
|
|
|
}
|
|
|
|
|
|
})
|