diff --git a/pages/list/activitynew/index.js b/pages/list/activitynew/index.js index de9d388..e537870 100644 --- a/pages/list/activitynew/index.js +++ b/pages/list/activitynew/index.js @@ -36,6 +36,10 @@ Page({ * 生命周期函数--监听页面加载 */ onLoad: function (options) { + wx.showShareMenu({ + withShareTicket: true, + menus: ['shareAppMessage', 'shareTimeline'] + }) this.getMovieArea() let d = new Date(); let month = d.getMonth() + 1, @@ -435,5 +439,14 @@ setCity(e){ */ onShareAppMessage: function () { + }, + + onShareTimeline: function() { + return { + title: '君到苏州-活动日历', + query: '', + imageUrl: 'https://static.ticket.sz-trip.com/xcxImages/index/icon1New.png' + } } + }) \ No newline at end of file diff --git a/pages/list/feiyi/index.js b/pages/list/feiyi/index.js index 261d038..5af54c6 100644 --- a/pages/list/feiyi/index.js +++ b/pages/list/feiyi/index.js @@ -15,6 +15,10 @@ Page({ * 生命周期函数--监听页面加载 */ onLoad: function (options) { + wx.showShareMenu({ + withShareTicket: true, + menus: ['shareAppMessage', 'shareTimeline'] + }) this.getList() }, pagePoint(e){ @@ -103,5 +107,12 @@ Page({ */ onShareAppMessage: function () { + }, + onShareTimeline: function() { + return { + title: '君到苏州-非遗专卖', + query: '', + imageUrl: 'https://static.ticket.sz-trip.com/xcxImages/index/icon3New.png' + } } }) \ No newline at end of file diff --git a/pages/list/hotel/index.js b/pages/list/hotel/index.js index 8b539e8..fccc67d 100644 --- a/pages/list/hotel/index.js +++ b/pages/list/hotel/index.js @@ -20,6 +20,10 @@ Page({ * 生命周期函数--监听页面加载 */ onLoad: function (options) { + wx.showShareMenu({ + withShareTicket: true, + menus: ['shareAppMessage', 'shareTimeline'] + }) if(options.area_id){ this.setData({ area_id:options.area_id @@ -179,5 +183,12 @@ Page({ */ onShareAppMessage: function () { + }, + onShareTimeline: function() { + return { + title: '君到苏州-酒店住宿', + query: '', + imageUrl: 'https://static.ticket.sz-trip.com/xcxImages/index/icon7New.png' + } } }) \ No newline at end of file diff --git a/pages/list/museum/index.js b/pages/list/museum/index.js index 0fa2339..a559a86 100644 --- a/pages/list/museum/index.js +++ b/pages/list/museum/index.js @@ -16,6 +16,10 @@ Page({ * 生命周期函数--监听页面加载 */ onLoad: function (options) { + wx.showShareMenu({ + withShareTicket: true, + menus: ['shareAppMessage', 'shareTimeline'] + }) this.getList() }, gotoDetail:function(e){ @@ -116,5 +120,12 @@ Page({ */ onShareAppMessage: function () { + }, + onShareTimeline: function() { + return { + title: '君到苏州-场馆预约', + query: '', + imageUrl: 'https://static.ticket.sz-trip.com/xcxImages/index/icon2New.png' + } } }) \ No newline at end of file diff --git a/pages/list/night/index.js b/pages/list/night/index.js index bb6c56b..422ab83 100644 --- a/pages/list/night/index.js +++ b/pages/list/night/index.js @@ -17,6 +17,10 @@ Page({ * 生命周期函数--监听页面加载 */ onLoad: function (options) { + wx.showShareMenu({ + withShareTicket: true, + menus: ['shareAppMessage', 'shareTimeline'] + }) this.getList() }, search:function(){ @@ -106,5 +110,12 @@ Page({ */ onShareAppMessage: function () { + }, + onShareTimeline: function() { + return { + title: '君到苏州-夜游苏州', + query: '', + imageUrl: 'https://static.ticket.sz-trip.com/xcxImages/index/icon8New.png' + } } }) \ No newline at end of file diff --git a/pages/list/scene/index.js b/pages/list/scene/index.js index 3c2655c..6c7b01e 100644 --- a/pages/list/scene/index.js +++ b/pages/list/scene/index.js @@ -20,6 +20,10 @@ Page({ * 生命周期函数--监听页面加载 */ onLoad: function (options) { + wx.showShareMenu({ + withShareTicket: true, + menus: ['shareAppMessage', 'shareTimeline'] + }) let that = this; if(options.area_id){ this.setData({ @@ -131,5 +135,12 @@ Page({ */ onShareAppMessage: function () { + }, + onShareTimeline: function() { + return { + title: '君到苏州-景点门票', + query: '', + imageUrl: 'https://static.ticket.sz-trip.com/xcxImages/index/icon6New.png' + } } }) \ No newline at end of file diff --git a/pages/list/techan/index.js b/pages/list/techan/index.js index aceba4c..a14f48b 100644 --- a/pages/list/techan/index.js +++ b/pages/list/techan/index.js @@ -17,6 +17,10 @@ Page({ * 生命周期函数--监听页面加载 */ onLoad: function (options) { + wx.showShareMenu({ + withShareTicket: true, + menus: ['shareAppMessage', 'shareTimeline'] + }) this.getList() }, search:function(e){ @@ -124,5 +128,12 @@ Page({ */ onShareAppMessage: function () { + }, + onShareTimeline: function() { + return { + title: '君到苏州-文创特产', + query: '', + imageUrl: 'https://static.ticket.sz-trip.com/xcxImages/index/icon5New.png' + } } }) \ No newline at end of file diff --git a/pages/list/theatre/index.js b/pages/list/theatre/index.js index 5d90f48..97dc1fa 100644 --- a/pages/list/theatre/index.js +++ b/pages/list/theatre/index.js @@ -23,6 +23,10 @@ Page({ * 生命周期函数--监听页面加载 */ onLoad: function (options) { + wx.showShareMenu({ + withShareTicket: true, + menus: ['shareAppMessage', 'shareTimeline'] + }) this.getList(); }, search:function(e){ @@ -144,5 +148,12 @@ Page({ */ onShareAppMessage: function () { + }, + onShareTimeline: function() { + return { + title: '君到苏州-剧场演出', + query: '', + imageUrl: 'https://static.ticket.sz-trip.com/xcxImages/index/icon4New.png' + } } }) \ No newline at end of file diff --git a/pages/pbService/web/index.js b/pages/pbService/web/index.js index f5c5555..4a33728 100644 --- a/pages/pbService/web/index.js +++ b/pages/pbService/web/index.js @@ -91,5 +91,5 @@ Page({ */ onReachBottom: function () { - } + }, }) \ No newline at end of file