Browse Source

分享代码

master
nige 3 years ago
parent
commit
05a7ddf6c4
  1. 13
      pages/list/activitynew/index.js
  2. 11
      pages/list/feiyi/index.js
  3. 11
      pages/list/hotel/index.js
  4. 11
      pages/list/museum/index.js
  5. 11
      pages/list/night/index.js
  6. 11
      pages/list/scene/index.js
  7. 11
      pages/list/techan/index.js
  8. 11
      pages/list/theatre/index.js
  9. 2
      pages/pbService/web/index.js

13
pages/list/activitynew/index.js

@ -36,6 +36,10 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
wx.showShareMenu({
withShareTicket: true,
menus: ['shareAppMessage', 'shareTimeline']
})
this.getMovieArea() this.getMovieArea()
let d = new Date(); let d = new Date();
let month = d.getMonth() + 1, let month = d.getMonth() + 1,
@ -435,5 +439,14 @@ setCity(e){
*/ */
onShareAppMessage: function () { onShareAppMessage: function () {
},
onShareTimeline: function() {
return {
title: '君到苏州-活动日历',
query: '',
imageUrl: 'https://static.ticket.sz-trip.com/xcxImages/index/icon1New.png'
}
} }
}) })

11
pages/list/feiyi/index.js

@ -15,6 +15,10 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
wx.showShareMenu({
withShareTicket: true,
menus: ['shareAppMessage', 'shareTimeline']
})
this.getList() this.getList()
}, },
pagePoint(e){ pagePoint(e){
@ -103,5 +107,12 @@ Page({
*/ */
onShareAppMessage: function () { onShareAppMessage: function () {
},
onShareTimeline: function() {
return {
title: '君到苏州-非遗专卖',
query: '',
imageUrl: 'https://static.ticket.sz-trip.com/xcxImages/index/icon3New.png'
}
} }
}) })

11
pages/list/hotel/index.js

@ -20,6 +20,10 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
wx.showShareMenu({
withShareTicket: true,
menus: ['shareAppMessage', 'shareTimeline']
})
if(options.area_id){ if(options.area_id){
this.setData({ this.setData({
area_id:options.area_id area_id:options.area_id
@ -179,5 +183,12 @@ Page({
*/ */
onShareAppMessage: function () { onShareAppMessage: function () {
},
onShareTimeline: function() {
return {
title: '君到苏州-酒店住宿',
query: '',
imageUrl: 'https://static.ticket.sz-trip.com/xcxImages/index/icon7New.png'
}
} }
}) })

11
pages/list/museum/index.js

@ -16,6 +16,10 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
wx.showShareMenu({
withShareTicket: true,
menus: ['shareAppMessage', 'shareTimeline']
})
this.getList() this.getList()
}, },
gotoDetail:function(e){ gotoDetail:function(e){
@ -116,5 +120,12 @@ Page({
*/ */
onShareAppMessage: function () { onShareAppMessage: function () {
},
onShareTimeline: function() {
return {
title: '君到苏州-场馆预约',
query: '',
imageUrl: 'https://static.ticket.sz-trip.com/xcxImages/index/icon2New.png'
}
} }
}) })

11
pages/list/night/index.js

@ -17,6 +17,10 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
wx.showShareMenu({
withShareTicket: true,
menus: ['shareAppMessage', 'shareTimeline']
})
this.getList() this.getList()
}, },
search:function(){ search:function(){
@ -106,5 +110,12 @@ Page({
*/ */
onShareAppMessage: function () { onShareAppMessage: function () {
},
onShareTimeline: function() {
return {
title: '君到苏州-夜游苏州',
query: '',
imageUrl: 'https://static.ticket.sz-trip.com/xcxImages/index/icon8New.png'
}
} }
}) })

11
pages/list/scene/index.js

@ -20,6 +20,10 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
wx.showShareMenu({
withShareTicket: true,
menus: ['shareAppMessage', 'shareTimeline']
})
let that = this; let that = this;
if(options.area_id){ if(options.area_id){
this.setData({ this.setData({
@ -131,5 +135,12 @@ Page({
*/ */
onShareAppMessage: function () { onShareAppMessage: function () {
},
onShareTimeline: function() {
return {
title: '君到苏州-景点门票',
query: '',
imageUrl: 'https://static.ticket.sz-trip.com/xcxImages/index/icon6New.png'
}
} }
}) })

11
pages/list/techan/index.js

@ -17,6 +17,10 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
wx.showShareMenu({
withShareTicket: true,
menus: ['shareAppMessage', 'shareTimeline']
})
this.getList() this.getList()
}, },
search:function(e){ search:function(e){
@ -124,5 +128,12 @@ Page({
*/ */
onShareAppMessage: function () { onShareAppMessage: function () {
},
onShareTimeline: function() {
return {
title: '君到苏州-文创特产',
query: '',
imageUrl: 'https://static.ticket.sz-trip.com/xcxImages/index/icon5New.png'
}
} }
}) })

11
pages/list/theatre/index.js

@ -23,6 +23,10 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
wx.showShareMenu({
withShareTicket: true,
menus: ['shareAppMessage', 'shareTimeline']
})
this.getList(); this.getList();
}, },
search:function(e){ search:function(e){
@ -144,5 +148,12 @@ Page({
*/ */
onShareAppMessage: function () { onShareAppMessage: function () {
},
onShareTimeline: function() {
return {
title: '君到苏州-剧场演出',
query: '',
imageUrl: 'https://static.ticket.sz-trip.com/xcxImages/index/icon4New.png'
}
} }
}) })

2
pages/pbService/web/index.js

@ -91,5 +91,5 @@ Page({
*/ */
onReachBottom: function () { onReachBottom: function () {
} },
}) })
Loading…
Cancel
Save