绑定手机

获取验证码

注册、登录代表你已阅读并同意《用户协议》

取消

人投票 | 条评论 |

当前位置: 首页 > 详情

0) { ?>

投票

已累计

  • 点我投票

      $v3) { ?>
    • +

    %

标签:
本文为汽车之心原创文章,作者:,如需转载,请联系授权。违规转载法律必究。

分享

好文章,需要你的鼓励

参与评论

行的回调函数 } }); wx.onMenuShareAppMessage({ title: str_share_title, // 分享标题 desc: str_share_desc, // 分享描述 link: str_share_url, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致 imgUrl: str_share_pic, // 分享图标 type: '', // 分享类型,music、video或link,不填默认为link dataUrl: '', // 如果type是music或video,则要提供数据链接,默认为空 success: function () { // 用户确认分享后执行的回调函数 }, cancel: function () { // 用户取消分享后执行的回调函数 } }); }) $('.tip_share').show(); }) $('.tip_share').click(function(){ $(this).hide() }) $('#show_wx').click(function(){ $('.botom_wx').show() }) $('.botom_wx .close').click(function(){ $('.botom_wx').hide() }) $('.wrap').on('click','.J_share_btn',function(){ // $('.share_hide').hide() var nid = $(this).attr('data-nid') $(this).next('.share_hide').find('.code').attr('src','/news/show_qrcode/nid-'+nid) $(this).next('.share_hide').toggle() }) $('.wrap').on('click','.opt_close',function(){ if (str_browser == 'weixin') { wx.ready(function(){ wx.onMenuShareTimeline({ title: window_share_title, // 分享标题 link: window_share_url, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致 imgUrl: window_share_pic, // 分享图标 success: function () { // 用户确认分享后执行的回调函数 }, cancel: function () { // 用户取消分享后执行的回调函数 } }); wx.onMenuShareAppMessage({ title: window_share_title, // 分享标题 desc: window_share_desc, // 分享描述 link: window_share_url, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致 imgUrl: window_share_pic, // 分享图标 type: '', // 分享类型,music、video或link,不填默认为link dataUrl: '', // 如果type是music或video,则要提供数据链接,默认为空 success: function () { // 用户确认分享后执行的回调函数 }, cancel: function () { // 用户取消分享后执行的回调函数 } }); }) } $('.share_m_mask').hide() $('.J_share_text_box').css({'padding':'1.5625rem 0.625rem'}) }) $('.wrap').on('click','.J_share_m_btn',function(){ var nid = $(this).attr('data-nid') var obj_weibo = $('.share_m_mask .J_share_weibo'); var obj_weixin = $('.share_m_mask .J_share_weixin'); obj_weibo.attr('data-title',$(this).attr('data-title')) obj_weibo.attr('data-url',$(this).attr('data-url')) obj_weibo.attr('data-share_des',$(this).attr('data-share_des')) obj_weibo.attr('data-pic',$(this).attr('data-pic')) obj_weixin.attr('data-title',$(this).attr('data-title')) obj_weixin.attr('data-url',$(this).attr('data-url')) obj_weixin.attr('data-share_des',$(this).attr('data-share_des')) obj_weixin.attr('data-pic',$(this).attr('data-pic')) _ajax_post('/index.php?mod=news&extra=ajax_share',{nid:nid},function(_data){ $('.J_share_text_box').html(_data['data']) $('.share_m_mask').show() $('.share_m_scroll').scrollTop(0) layer.load(0) setTimeout(function(){ drawCanvas('#J_test_pic_1') },1000) }) }) $('#J_down_btn').click(function(){ $('.share_m_scroll').scrollTop(0) setTimeout(function(){ drawCanvas('#J_test_pic_1') },1000) }) $(function(){ console.log(this.location.href) var url = this.location.href; _ajax_post('/index.php?mod=index&extra=add_browse_log',{url:url},function(){}) })