import common from '../../utils/util'; import main from '../../utils/main'; const app = getApp(); Page({ data: { IsPromotion:false, SelectMenuCss1:"selectItem", SelectMenuCss2:"", }, onLoad: function (options) { var that = this; var isPromotion=false; if (options.AgentCategory=="promotion"){ isPromotion=true; } that.setData({ Containnerheight: main.getWindowHeight(), IsPromotion:isPromotion, ListType:options.ListType, }); wx.setNavigationBarTitle({ title: that.data.ListType }); this.getList(); }, getList:function(e){ var that = this; var url=""; url="GetIntroducerUserList2?ListType="+that.data.ListType; url+="&UserID=" + app.globalData.userInfo.UserID; main.getData(url, function (data) { wx.hideLoading(); if (data) { that.setData({ Info:data, }); } }); }, onPullDownRefresh: function () { wx.stopPullDownRefresh(); }, onMenu:function(e){ var id=e.currentTarget.dataset.id; var SelectMenuCss1="",SelectMenuCss2=""; if (id==1) SelectMenuCss1="selectItem"; else if (id==2) SelectMenuCss2="selectItem"; this.setData({ SelectMenuCss1:SelectMenuCss1, SelectMenuCss2:SelectMenuCss2, }); }, onShareAppMessage: function () { return { title: app.globalData.ShareTitle, path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID, imageUrl: app.globalData.ShareImage, } }, })