From 71e9327a11ff26fd66632c834200c1d030da48dd Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Thu, 14 Apr 2022 10:57:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/View/default/Home/landingPage.html | 8 ++++---- Application/Home/View/default/Home/landingPage2.html | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) 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,