import common from '../../utils/util'; import main from '../../utils/main'; import constant from '../../utils/constant'; const app = getApp(); Page({ data: { ImagePath: app.globalData.uploadImageUrl, ArticleList:constant.arrArticleList, District:constant.arrDistrict, Version:app.globalData.Version, }, onLoad: function (options) { var that = this; that.setData({ Containnerheight: main.getWindowHeight(), }); if (app.globalData.GotoUrl) { //console.log(app.globalData.GotoUrl); wx.navigateTo({ url: app.globalData.GotoUrl, }); app.globalData.GotoUrl = ""; } else{ //获得收藏学校数据 main.getCollect(); } that.getWish(); }, getWish:function(){ var that = this; main.getData("GetMPSWish?WishType=all", function (data) { if (data) { that.setData({ WishList: data, }); } }); }, goto: function (e) { main.goto(e); }, onShareTimeline: function () { return this.onShareAppMessage(); }, onShareAppMessage: function () { return { title: "上海中考招生信息查询工具", path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID, imageUrl: app.globalData.ShareImage, } }, })