wx.config({
debug: false,
appId: 'wx172e55dd091436cf',
timestamp: 1744431105,
nonceStr: '12d34aabb123f4',
signature: '5e87ba345c658a3a54811b04a34f450a7b4d477d',
jsApiList: [
'onMenuShareTimeline',
'onMenuShareAppMessage'
]
});
var shareData = { title: '', desc: '', img: '', link: '' };
shareData.title = '2020新姿态:蒙娜丽莎广西生产基地顺利投产';
shareData.desc = ' 自2019年12月27日蒙娜丽莎广西藤县生产基地生产线成功点火后,整个生产基地有条不紊推进项目建设,并在确保疫情防控措施下,于2020年2月2日实现1';
shareData.img = '';
shareData.link = '';
wx.ready(function () {
//分享到朋友圈
wx.onMenuShareTimeline({
title: shareData.title, // 分享标题fxtitle
link: shareData.link, // 分享链接
imgUrl: shareData.img, // 分享图标
type: '', // 分享类型,music、video或link,不填默认为link
dataUrl: '', // 如果type是music或video,则要提供数据链接,默认为空
success: function () {
},
cancel: function () {
}
});
//分享给单个朋友
wx.onMenuShareAppMessage({
title: shareData.title, // 分享标题
desc: shareData.desc, // 分享描述
link: shareData.link, // 分享链接
imgUrl: shareData.img, // 分享图标
type: '', // 分享类型,music、video或link,不填默认为link
dataUrl: '', // 如果type是music或video,则要提供数据链接,默认为空
success: function () {
},
cancel: function () {
// 用户取消分享后执行的回调函数
}
});
//分享给QQ好友
wx.onMenuShareQQ({
title: shareData.title, // 分享标题
desc: shareData.desc, // 分享描述
link: shareData.link, // 分享链接
imgUrl: shareData.img, // 分享图标
success: function () {
// 用户确认分享后执行的回调函数
},
cancel: function () {
// 用户取消分享后执行的回调函数
}
});
});
wx.error(function (res) {
});