wishAll.js 884 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import common from '../../utils/util';
  2. import main from '../../utils/main';
  3. const app = getApp();
  4. Page({
  5. data: {
  6. },
  7. onLoad: function (options) {
  8. var that = this;
  9. that.setData({
  10. Containnerheight: main.getWindowHeight(),
  11. ID:options.SchoolID,
  12. });
  13. this.getWish();
  14. },
  15. getWish:function(){
  16. var that = this;
  17. main.getData("GetMPSWish?WishType=schoolAll&SchoolID="+that.data.ID, function (data) {
  18. if (data) {
  19. that.setData({
  20. WishList: data,
  21. });
  22. }
  23. });
  24. },
  25. onShareAppMessage: function () {
  26. var that=this;
  27. var name="中考招生信息:";
  28. name+=that.data.Info.SchoolShortName;
  29. return {
  30. title: name,
  31. path: app.globalData.SharePath+'?UserID=' + app.globalData.userInfo.UserID+'&type=school&ID=' + that.data.Info.ID,
  32. imageUrl: app.globalData.ShareImage,
  33. }
  34. },
  35. })