| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- import common from '../../utils/util';
- import main from '../../utils/main';
- import constant from '../../utils/constant';
- const app = getApp();
- Page({
- data: {
- ImagePath: app.globalData.uploadImageUrl,
- },
- onLoad: function (options) {
- var that = this;
- var arr=options.ImageOtherStr.split(",");
- var title="校园风光·"+options.SchoolShortName;
-
- that.setData({
- Containnerheight: main.getWindowHeight(),
- SchoolFullName:options.SchoolFullName,
- ImageOtherArr:arr,
- Title:title,
- ID:options.ID,
- });
- wx.setNavigationBarTitle({
- title: title,
- });
- },
- onShareTimeline: function () {
- return this.onShareAppMessage();
- },
- adLoad() {
- console.log('原生模板广告加载成功')
- },
- adError(err) {
- console.error('原生模板广告加载失败', err)
- },
- adClose() {
- console.log('原生模板广告关闭')
- },
- onShareAppMessage: function () {
- var that=this;
- var title=that.data.Title;
- return {
- title: title,
- path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID+'&type=school&ID='+that.data.ID,
- }
- },
- })
|