imagelist.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. adLoad() {
  28. console.log('原生模板广告加载成功')
  29. },
  30. adError(err) {
  31. console.error('原生模板广告加载失败', err)
  32. },
  33. adClose() {
  34. console.log('原生模板广告关闭')
  35. },
  36. onShareAppMessage: function () {
  37. var that=this;
  38. var title=that.data.Title;
  39. return {
  40. title: title,
  41. path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID+'&type=school&ID='+that.data.ID,
  42. }
  43. },
  44. })