import common from '../../utils/util'; import main from '../../utils/main'; const app = getApp(); Page({ data: { IsPromotion:false, }, onLoad: function (options) { var that = this; var isPromotion=true; if (options.AgentCategory=="promotion"){ isPromotion=true; } that.setData({ Containnerheight: main.getWindowHeight(), IsPromotion:isPromotion, }); }, onPullDownRefresh: function () { wx.stopPullDownRefresh(); }, onShareAppMessage: function () { return { title: app.globalData.ShareTitle, path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID, imageUrl: app.globalData.ShareImage, } }, })