wx.config({
debug: true,
appId: d.appId,
timestamp: d.timestamp,
nonceStr: d.noncestr,
signature: d.signature,
jsApiList: ['checkJsApi','updateAppMessageShareData', 'updateTimelineShareData']
});
wx.ready(function () {
wx.checkJsApi({
jsApiList: ['updateTimelineShareData'],
success: function(res) {
console.log('checkJsApi',res);
}
});
wx.updateAppMessageShareData({
title: title,
desc: desc,
link: currLink,
imgUrl: imgUrl,
success: function (res) {
console.log('updateAppMessageShareData',res);
}
});
wx.updateTimelineShareData({
title: title,
link: currLink,
imgUrl: imgUrl,
success: function (res) {
console.log('updateTimelineShareData',res);
}
});
});