| @@ -148,6 +148,18 @@ Page({ | |||
| * 用户点击右上角分享 | |||
| */ | |||
| onShareAppMessage: function () { | |||
| if(this.data.isOther){ | |||
| return { | |||
| title: "发现了一个适合你的客户需求!推荐你一起来关注~", | |||
| imageUrl: '/images/home/ShareApp-homePage2.png', | |||
| path: 'pages/index/components/homepage/homepage' | |||
| } | |||
| }else{ | |||
| return { | |||
| title: "分享给你我的需求信息!推荐你一起来关注~", | |||
| imageUrl: '/images/home/ShareApp-homePage1.png', | |||
| path: 'pages/index/components/homepage/homepage' | |||
| } | |||
| } | |||
| } | |||
| }) | |||
| @@ -76,7 +76,7 @@ Page({ | |||
| page: 1, | |||
| onRefresh: true, | |||
| isCollect: false, | |||
| businessCommunicationDemandId:e.detail | |||
| businessCommunicationDemandId: e.detail | |||
| }) | |||
| this.getCurrentData(); | |||
| wx.pageScrollTo({ | |||
| @@ -222,9 +222,13 @@ Page({ | |||
| }, | |||
| /** | |||
| * 用户点击右上角分享 | |||
| */ | |||
| onShareAppMessage: function () { | |||
| } | |||
| * 用户点击右上角分享 | |||
| */ | |||
| onShareAppMessage() { | |||
| return { | |||
| title: "发现了一个适合你的需求!推荐你一起来关注~", | |||
| imageUrl: '/images/home/ShareApp-details.png', | |||
| path: 'pages/index/components/listDetails/Details' | |||
| } | |||
| }, | |||
| }) | |||
| @@ -286,12 +286,12 @@ Page({ | |||
| }) | |||
| }, | |||
| /** | |||
| * 用户点击右上角分享 | |||
| */ | |||
| onShareAppMessage(){ | |||
| * 用户点击右上角分享给朋友 | |||
| */ | |||
| onShareAppMessage() { | |||
| return { | |||
| title: "分享你一个需求交流平台!推荐你一起来关注~", | |||
| imageUrl: '/image/home/ShareApp.png', | |||
| imageUrl: '/images/home/ShareApp-index.png', | |||
| path: 'pages/index/index' | |||
| } | |||
| }, | |||
| @@ -147,10 +147,4 @@ Page({ | |||
| console.log(error, "获取error") | |||
| }) | |||
| }, | |||
| /** | |||
| * 用户点击右上角分享 | |||
| */ | |||
| onShareAppMessage: function () { | |||
| } | |||
| }) | |||
| @@ -193,4 +193,14 @@ Page({ | |||
| onUnload: function () { | |||
| wx.closeSocket(); | |||
| }, | |||
| /** | |||
| * 用户点击右上角分享给朋友 | |||
| */ | |||
| onShareAppMessage() { | |||
| return { | |||
| title: "分享你一个需求交流平台!推荐你一起来关注~", | |||
| imageUrl: '/images/home/ShareApp-index.png', | |||
| path: 'pages/index/index' | |||
| } | |||
| }, | |||
| }) | |||
| @@ -321,13 +321,6 @@ Page({ | |||
| */ | |||
| onReachBottom: function () { | |||
| }, | |||
| /** | |||
| * 用户点击右上角分享 | |||
| */ | |||
| onShareAppMessage: function () { | |||
| }, | |||
| send: function () { | |||
| var _this = this; | |||
| @@ -125,10 +125,4 @@ Page({ | |||
| wx.hideLoading() | |||
| }) | |||
| }, | |||
| /** | |||
| * 用户点击右上角分享 | |||
| */ | |||
| onShareAppMessage: function () { | |||
| } | |||
| }) | |||
| @@ -163,11 +163,4 @@ Page({ | |||
| this.getListData(); | |||
| } | |||
| }, | |||
| /** | |||
| * 用户点击右上角分享 | |||
| */ | |||
| onShareAppMessage: function () { | |||
| } | |||
| }) | |||
| @@ -302,11 +302,4 @@ Page({ | |||
| this.getListData(); | |||
| } | |||
| }, | |||
| /** | |||
| * 用户点击右上角分享 | |||
| */ | |||
| onShareAppMessage: function () { | |||
| } | |||
| }) | |||
| @@ -95,4 +95,14 @@ Page({ | |||
| isLogin:false | |||
| }) | |||
| }, | |||
| /** | |||
| * 用户点击右上角分享给朋友 | |||
| */ | |||
| onShareAppMessage() { | |||
| return { | |||
| title: "分享你一个需求交流平台!推荐你一起来关注~", | |||
| imageUrl: '/images/home/ShareApp-index.png', | |||
| path: 'pages/index/index' | |||
| } | |||
| }, | |||
| }) | |||
| @@ -64,11 +64,4 @@ Page({ | |||
| onReachBottom: function () { | |||
| }, | |||
| /** | |||
| * 用户点击右上角分享 | |||
| */ | |||
| onShareAppMessage: function () { | |||
| } | |||
| }) | |||
| @@ -250,10 +250,4 @@ Page({ | |||
| console.log(error, 'error appletLogin') | |||
| }) | |||
| }, | |||
| /** | |||
| * 用户点击右上角分享 | |||
| */ | |||
| onShareAppMessage: function () { | |||
| } | |||
| }) | |||