diff --git a/Application/Home/View/default/Home/landingPage.html b/Application/Home/View/default/Home/landingPage.html index 1ef46045a..46f55c239 100644 --- a/Application/Home/View/default/Home/landingPage.html +++ b/Application/Home/View/default/Home/landingPage.html @@ -10,7 +10,7 @@ - + @@ -1534,7 +1534,7 @@ function getCurUserId() { timestamp: response.data.time, nonceStr: response.data.randStr, signature: response.data.sign, - jsApiList: ['updateAppMessageShareData', 'updateTimelineShareData', 'onMenuShareWeibo'] + jsApiList: ['onMenuShareAppMessage', 'onMenuShareTimeline', 'onMenuShareWeibo'] }) var title = $('[name=title]').val(); var description = $('[name=desc]').val(); @@ -1546,7 +1546,7 @@ function getCurUserId() { function wxReady(title, description, img) { wx.ready(function () { - wx.updateAppMessageShareData({ + wx.onMenuShareAppMessage({ title: title, desc: description, link: window.location.href, @@ -1554,7 +1554,7 @@ function getCurUserId() { success: function () { } }); - wx.updateTimelineShareData({ + wx.onMenuShareTimeline({ title: title, link: window.location.href, imgUrl: img, diff --git a/Application/Home/View/default/Home/landingPage2.html b/Application/Home/View/default/Home/landingPage2.html index 6a91d9fd1..be8cf8be6 100644 --- a/Application/Home/View/default/Home/landingPage2.html +++ b/Application/Home/View/default/Home/landingPage2.html @@ -8,7 +8,7 @@ - + {$game['relation_game_name']} @@ -213,7 +213,7 @@ timestamp: response.data.time, nonceStr: response.data.randStr, signature: response.data.sign, - jsApiList: ['updateAppMessageShareData', 'updateTimelineShareData', 'onMenuShareWeibo'] + jsApiList: ['onMenuShareAppMessage', 'onMenuShareTimeline', 'onMenuShareWeibo'] }) var title = $('[name=title]').val(); var description = $('[name=desc]').val(); @@ -225,7 +225,7 @@ function wxReady(title, description, img) { wx.ready(function () { - wx.updateAppMessageShareData({ + wx.onMenuShareAppMessage({ title: title, desc: description, link: window.location.href, @@ -233,7 +233,7 @@ success: function () { } }); - wx.updateTimelineShareData({ + wx.onMenuShareTimeline({ title: title, link: window.location.href, imgUrl: img,