'; } html += ''; $('body').append(html); } $('#mainImg').attr('src','//cdn.qinsilk.com/res/business/activity/mobileDailyActivities/img/dadd9e471537440cb8ef5f39ef63d445.jpg'); $('#mainImg').attr('onload','javascript:imgAddRef();'); /* 添加底部按钮 */ var buttonName = '会员充值 在线模板'; var secondButtonName = ''; if(buttonName && secondButtonName){ var btnHtml = '
' + buttonName +'
' + secondButtonName +'
'; $('body').append(btnHtml); }else if(buttonName){ var btnHtml = ''; $('body').append(btnHtml); }else{ $('body').css('bottom','0px'); } function appendShardBtn() { /* 添加右下角分享按钮 */ var shareButton = ''; $('body').append(shareButton); }; function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; }; if (getQueryString('enableShare') == 'true') { appendShardBtn(); };