import common from '../../utils/util'; import main from '../../utils/main'; const app = getApp(); Page({ data: { }, onLoad: function (options) { var that = this; that.setData({ Containnerheight: main.getWindowHeight(), ID:options.SchoolID, }); this.getWish(); }, getWish:function(){ var that = this; main.getData("GetMPSWish?WishType=schoolAll&SchoolID="+that.data.ID, function (data) { if (data) { that.setData({ WishList: data, }); } }); }, onShareAppMessage: function () { var that=this; var name="中考招生信息:"; name+=that.data.Info.SchoolShortName; return { title: name, path: app.globalData.SharePath+'?UserID=' + app.globalData.userInfo.UserID+'&type=school&ID=' + that.data.Info.ID, imageUrl: app.globalData.ShareImage, } }, })