var share = { share_title: tplCfg.param.text_share_title ? tplCfg.param.text_share_title : document.title, share_desc: tplCfg.param.text_share_desc ? tplCfg.param.text_share_desc : '武汉交警与中国交通频道·湖北联合举办“2018寻找武汉最美女司机”活动,以此提高广大驾驶者安全交通意', link: 'https://yulan.youtoupiao.com/page/ranking/id/6f0f0b5ff19e9138.html', imgUrl: tplCfg.param.share_cover ? 'https://cdn.youtoupiao.com/' + tplCfg.param.share_cover + '-vote2.share' : $('img').eq(0).attr('src') }; wx.config({"appId":"wxb6a454852c62b7e0","timestamp":1730420295,"nonceStr":"2480b6295e716ea5fcf39a01d19f26f0","signature":"ce8191e8c659441db22e7023ee71b4388fc15c05","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(tplCfg.urls.url_share + '?type=2'); } }); wx.onMenuShareTimeline({ title: share.share_title, link: share.link, imgUrl: share.imgUrl, success: function () { requestUrlBg(tplCfg.urls.url_share + '?type=1'); } }); });