var share = { share_title: config.share_title ? config.share_title : document.title, share_desc: config.share_desc ? config.share_desc : '为大力推广茂名乃至全国各地名菜、名点、金牌小吃和乡村名店美食,挖掘和树立优秀典型,引导我市餐饮业健康', link: 'https://yulan.youtoupiao.com/page/ranking/id/8025973369463206.html', imgUrl: config.share_img ? config.url_uploads_path + config.share_img + config.img_tag_share : $('img').eq(0).attr('src') }; wx.config({"appId":"wxb6a454852c62b7e0","timestamp":1746944506,"nonceStr":"8ef736d3b8d7a43fbfaeae3b64512f7f","signature":"aec6f6070a7a7f64c2d9dd94996a403eed075739","jsApiList":["onMenuShareTimeline","onMenuShareAppMessage","hideAllNonBaseMenuItem"]}); wx.ready(function () { wx.onMenuShareAppMessage({ title: share.share_title, desc: share.share_desc, link: share.link, imgUrl: share.imgUrl, type: '', dataUrl: '', success: function () { requestUrlBg(config.url_share + '?type=2'); } }); wx.onMenuShareTimeline({ title: share.share_title, link: share.link, imgUrl: share.imgUrl, success: function () { requestUrlBg(config.url_share + '?type=1'); } }); });