imagelist.js 946 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import common from '../../utils/util';
  2. import main from '../../utils/main';
  3. import constant from '../../utils/constant';
  4. const app = getApp();
  5. Page({
  6. data: {
  7. ImagePath: app.globalData.uploadImageUrl,
  8. },
  9. onLoad: function (options) {
  10. var that = this;
  11. var arr=options.ImageOtherStr.split(",");
  12. var title="校园风光·"+options.SchoolShortName;
  13. that.setData({
  14. Containnerheight: main.getWindowHeight(),
  15. SchoolFullName:options.SchoolFullName,
  16. ImageOtherArr:arr,
  17. Title:title,
  18. ID:options.ID,
  19. });
  20. wx.setNavigationBarTitle({
  21. title: title,
  22. });
  23. },
  24. onShareTimeline: function () {
  25. return this.onShareAppMessage();
  26. },
  27. onShareAppMessage: function () {
  28. var that=this;
  29. var title=that.data.Title;
  30. return {
  31. title: title,
  32. path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID+'&type=school&ID='+that.data.ID,
  33. }
  34. },
  35. })