Deprecated: Creation of dynamic property JSSDK::$url is deprecated in /www/wwwroot/n.jzgczz.com/public/api/wxapi/JSSDK.php on line 13
Warning: Undefined property: stdClass::$access_token in /www/wwwroot/n.jzgczz.com/public/api/wxapi/JSSDK.php on line 85
Warning: Undefined property: stdClass::$ticket in /www/wwwroot/n.jzgczz.com/public/api/wxapi/JSSDK.php on line 61
wx.config({
//debug: true,
appId: 'wxb2d9c5673f74f0c6',
timestamp: 1743921090,
nonceStr: '6KIc4F1wR2R91s1T',
signature: 'd4103c4b65dfcbe07a9e7fe0fe44b128e4be996f',
jsApiList: [
"onMenuShareTimeline",
"onMenuShareAppMessage",
]
});
wx.ready(function () {
var wxCallbacks = {
// 分享操作开始之前
title: '太原第三监狱:监检联动法治宣传进高墙', // 分享标题fxtitle
link: 'http://www.jzgczz.com/infos/104866.html', //location.href, // 分享链接
desc: '', // 分享描述
imgUrl: '/api/qr/favicon.png', // 分享图标
type: '', // 分享类型,music、video或link,不填默认为link
dataUrl: '', // 如果type是music或video,则要提供数据链接,默认为空
success: function () {
},
cancel: function () {
}
};
//分享到朋友圈
wx.onMenuShareTimeline(wxCallbacks);
//分享给单个朋友
wx.onMenuShareAppMessage(wxCallbacks);
console.log('wx ready');
});
wx.error(function (res) {
console.log('err', res)
});