import common from '../../utils/util'; import main from '../../utils/main'; import animation from '../../utils/animation'; const app = getApp(); Page({ data: { IsShowRemind:false, IsNew:0, }, onLoad: function (options) { let that = this; that.setData({ Containnerheight: main.getWindowHeight(), }); main.checkGenerating(); that.getData(app.globalData.userInfo.UserID); }, onShow:function(e){ let that=this; if (that.data.IsNew){ setTimeout(function(){ that.getData(app.globalData.userInfo.UserID); },1000); } }, getData:function(userID){ wx.showLoading({ title: '请稍候', }); let that=this; let url='GetYJBDCArticleList?UserID=' + userID; //debugger; if (that.data.IsNew==1) url+="&IsNew=1"; console.log(url); main.getData(url, function (data) { wx.hideLoading(); if (data) { for(let i=0;i { if (res.confirm) { if (res.content) that.getData(res.content); } } }) } }, onShareAppMessage: function () { return { title: app.globalData.ShareTitle, path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID, imageUrl: app.globalData.ShareImage, } }, })