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 : '点赞“2019我喜爱的中国品牌”说明:本次活动涉及到的所有企业的任何品牌形象、信息、数据,若有异议,',
link: 'https://yulan.youtoupiao.com/page/ranking/id/680a09e0a8b9d301/lid/16349.html',
imgUrl: tplCfg.param.share_cover ? 'https://cdn.youtoupiao.com/' + tplCfg.param.share_cover + '-vote2.share' : ($('img.width-pull').eq(0).attr('src') ? $('img.width-pull').eq(0).attr('src') : $('img.play-img').attr('src'))
};
function resetShare() {
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 : '点赞“2019我喜爱的中国品牌”说明:本次活动涉及到的所有企业的任何品牌形象、信息、数据,若有异议,',
link: window.location.href,
imgUrl: tplCfg.param.share_cover ? 'https://cdn.youtoupiao.com/' + tplCfg.param.share_cover + '-vote2.share' : ($('img.width-pull').eq(0).attr('src') ? $('img.width-pull').eq(0).attr('src') : $('img.play-img').attr('src'))
};
}
wx.config({"appId":"wxb6a454852c62b7e0","timestamp":1746275037,"nonceStr":"46032102af9b7dc5bed3922163d5d45d","signature":"391b38963c1625d5a19265140eb4cd1aba6cc3aa","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');
}
});
});