'vXXL-1';
var scan,scan_list,clipboard_qrimg,zhezhao,qr,buystate,setState,city = "",price=3.99,goods=119,expires=1,is_paying=false,been_block=false//,qr_key=8552
var copyEle,marksEle
var cookieKey = 'is_scan'
// var cookieKey = hashCode(window.location.pathname.replace(/[_-]\d+.htm/, '.htm')).toString()
var tradeHosts = ['www.pincai.com', 'my.pincai.com']
var tradeHost = tradeHosts[Math.floor(Math.random() * (tradeHosts.length - 0) + 0)];
var payAlert =
'
\n' +
'
\n' +
'
欢迎使用微信支付
\n' +
'
\n' +
'
\n' +
'
\n' +
'
\n' +
'
\n' +
'
扫一扫微信支付
\n' +
'
微信支付:' + price + '元
\n' +
'
\n' +
'
\n' +
'
\n' +
'
\n' +
'
\n' +
'
支付成功\n' +
'
已获得全站七天复制权限\n' +
'
\n' +
'
\n' +
'
\n' +
'
\n' +
'
\n' +
'\n' +
'
\n' +
'
\n' +
'
\n' +
'
扫码添加客服微信咨询\n' +
'
\n' +
'
\n' +
'
\n' +
' 付费后若不能复制,请将网址中的“www”改为“m”\n' +
' 在线时间:星期一至五 8:30~12:30 14:00~18:00\n' +
'
\n' +
'
\n' +
'
' +
'';
include_js("https://apps.bdimg.com/libs/jquery/1.9.1/jquery.min.js", function(){
include_js("https://apps.bdimg.com/libs/js-cookie/2.04/js.cookie.min.js", function(){
// $.ajax({
// url: '//api.map.baidu.com/location/ip',
// data: {ak:'0NFUGF8540eD5nDbKS0haWnQzLChxaXG'},
// dataType: 'jsonp',
// timeout: 3000,
// success: function(res){
// if(res.content && res.content.address){
// city = res.content.address;
// }
// },
// complete: function(){
console.log('city', city)
scan = Cookies.get('scan_list');
scan_list = scan ? scan.split('.') : []
// var title = document.getElementsByTagName("title")[0].text
// $.ajax({
// url: '//www.pincai.com/v1/trade/qr/free',
// data: {title:title, city:city, scan:scan, k:Math.random()},
// method: 'GET',
// timeout: 3000,
// success: function(res){
// if(res === 'ALL_SCANNED'){
// Cookies.set(cookieKey, 1, {expires: expires});
// } else {
// qr = res
// }
// },
// complete: function(){
// if(!qr) qr = 'rand1';
// clipboard_qrimg = '//static.yjbys.com/qrcode/'+qr+'.jpg';
clipboard_qrimg = '//js.wenxm.cn/xuexila.jpg';
zhezhao = '' +
'
' +
'
\n' +
"
" +
"
付费复制
" +
"
付费获取七天复制权限
" +
"
" +
"
限时特价:" + price + "元/篇
原价:10元" +
"
在线支付
" +
"
联系客服
" +
"
" +
"
" +
"
二维码被拦截了,请取消广告拦截功能查看二维码
" +
"
微信扫码登录,免费获得验证码
" +
"
免费,只需要3秒时间
" +
"
";
$("body").append(zhezhao + payAlert);
marksEle = document.getElementsByClassName('marks')[0];
copyEle = document.getElementsByClassName('alert-success')[0];
// },
// })
$(document).on('click', '.paybox-bottom', function(){
if(is_paying) return;
is_paying = true;
$('.my_wxpay').css('display', 'block');
$('.payqr_box').css('display', 'block');
$('.payqr_success_box').css('display', 'none');
$.ajax({
url: '//my.pincai.com/wx_app/wxpay/native_copy_art.php',
data: {id:goods, app:'xopy', rd:window.location.href.split('?')[0], k:Math.random()},
method: 'GET',
dataType: 'JSON',
timeout: 10000,
success: function(res){
$('.my_wxpay .hc img').attr('src', res.src);
$('.my_wxpay .sm span').text(res.msg + '元');
$('.my_wxpay').css('display', 'block');
buystate = setInterval(function(){
$.getJSON("//"+tradeHost+"/v1/trade/copytext/xopy/"+res.order+"?"+Math.random(),function(data){
if(data.state === "OK"){
$('.claos').css('display', 'none');
$('.payqr_box').css('display', 'none');
$('.payqr_success_box').css('display', 'block');
Cookies.set(cookieKey, 1, {expires: expires});
is_paying = false;
}
});
}, 1500);
},
complete: function(){
console.log('qr complete');
setState = setTimeout(function(){
Cookies.set(cookieKey, 1, {expires: expires});
}, 12000);
},
});
})
$(document).on('click', '.paybox-customer-service', function(){
$('.customer_service_marks').css('display', 'block');
});
$(document).on('click', '.claos', function(){
var ele = document.getElementsByClassName($(this).data('alert'))[0]
$(ele).css('display', 'none');
window.clearInterval(buystate);
window.clearTimeout(setState);
});
$(document).on('click', '.payqr_success_text .btn', function(){
window.location.reload();
});
document.addEventListener('copy', function(e){
var is_scan = Cookies.get(cookieKey);
if(is_scan === undefined){
$(marksEle).css('display', 'block');
$('.block_ad_qr').css('display', been_block ? 'inline-block' : 'none');
e.preventDefault();
}else{
$(copyEle).css('display', 'block');
copyAlertTimeout = setTimeout(function () {
$(copyEle).css('display', 'none');
}, 1200);
}
});
$(document).on('click', '.houhaoresults', function(){
var key = parseInt($(this).prev().val());
if(key > 8000 && key < 9999){
Cookies.set(cookieKey, 1, {expires: expires});
if(scan_list.indexOf(qr) < 0){
scan_list.push(qr);
Cookies.set('scan_list', scan_list.join('.'), {expires: 30});
}
window.location.reload();
}else{
alert('验证码错误,微信扫码登录,即可获得验证码');
}
});
// },
// })
})
})
var style = ''
+ '.marks{width: 100%;height: 100%;position: fixed;margin: auto;background: rgba(0, 0, 0, 0.6);visibility: visible;z-index: 198910154;top: 0;left: 0;display:none;}'
+ '.copy-alert{width: 710px;height: 435px;background-color: #fff;position: relative;margin: 10% auto;border-radius: 2px;}'
+ '.block_ad_qr {display: inline-block;margin: 30px 50px;font-size: 19px;color: red;}'
+ '.payqr_success_text .text {display: block;font-size: 30px;color: #44b549;}'
+ '.payqr_success_text .icon {padding-top: 30px;fill: #44b549;width: 90px;display: inline-block;margin-bottom: 10px;}'
+ '.payqr_success_box {display: none;}'
+ '.payqr_success_box button.btn {background: #38ad3a;border: none;width: 200px;height: 40px;font-size: 16px;color: #fff;border-radius: 6px;margin-top: 18px;cursor: pointer;}'
+ '.payqr_success_box .payqr_success_text span.text {display: block;font-size: 30px;color: #44b549;margin-bottom: 6px;}'
+ '.payqr_success_box .payqr_success_text span.text.small {color: #999;font-size: 16px;}'
+ '.my_wxpay {width: 100%;height: 100%;position: fixed;margin: auto;background:rgba(0, 0, 0, 0.6);visibility: visible;z-index: 198910154;top: 0;left: 0;display: none;}'
+ '.my_wxpay .sm{display: block;margin-top: 8px;font-size: 18px;color: #6d6d6d;}'
+ '.my_wxpay .sm span{color: #FF7800;padding: 6px 11px;font-weight: 700;}'
+ '.claos{position: absolute;right: -10px;background: url(https://static.yjbys.com/img/company/pay/zhifu_icon.2.png) no-repeat -149px -31px;width: 30px;height: 30px;text-indent: -9999px;top: -10px;cursor: pointer;}'
+ '.claos:hover{background: url(https://static.yjbys.com/img/company/pay/zhifu_icon.2.png) no-repeat -180px -31px;}'
+ '.wx_pic_img {text-align: center;background: #fff;visibility: visible;opacity: 1;cursor: auto;z-index: 150;border-radius: 40px 40px 30px 30px;width: 365px;margin: auto;margin-top: 260px;position: relative;height: 370px;}'
+ '.my_wxpay .iconfont{color: #FFFFFF;font-size: 16px;line-height: 28px;background: #38ad3a;width: 171px;margin: auto;}'
+ '.my_wxpay .iconfont span{background: url(https://static.yjbys.com/img/company/pay/zhifu_icon.png) no-repeat 0px center;padding-left: 28px;}'
+ '.cg{width: 300px;margin: auto;height: 250px;display:none;}'
+ '.cg img{width: 176px;margin-top: 50px;}'
+ '.wx_top{background: #38AD3A;height: 78px;border-radius: 30px 30px 0 0;color: #fff;font-size: 28px;line-height: 78px;}'
+ '.zhifu{width: 100%;}'
+ '.zhifu img{width: 170px; height: 170px;}'
+ '.hc{margin-top: 10px;}'
+ '.hc img{width: 200px;}'
+ '.paybox{float: right;width: 36%;border-left: 1px solid #ccc;text-align: center;margin: 4% 6%;padding-left: 6%;margin-left: 0;}'
+ '.paybox-title{color: #44b549;font-size: 30px;display: inline-block;font-weight: 700;line-height: 40px;height: 40px;width: 100%;}'
+ '.paybox-img{width: 100px;display: inline-block;margin: 20% 0 5%;}'
+ '.paybox-img img{width: 100%}'
+ '.paybox-money{height: 60px;line-height: 60px;}'
+ '.paybox-money h2{color: #ff6600;font-size: 16px;display: inline-block;font-weight: 700;}'
+ '.paybox-money span{text-decoration: line-through;color: #949494;margin-left: 10px;font-size: 14px;}'
+ '.paybox-bottom{cursor: pointer;background: #44b549;height: 50px;line-height: 50px;border-radius: 4px;font-size: 22px;color: #fff;font-weight: 700}'
+ '.paybox-art{color: #a0a0a0;font-size: 18px;line-height: 50px;height: 50px;float: left;width: 100%;}'
+ '.paybox .paybox-customer-service{font-size: 14px;margin-top: 10px;cursor: pointer;color: #a2a2a2;}'
+ '.zhezhao2{float:left;z-index:1000;width:100%;height:100%}'
+ '.zz_pic2{float: left;width:50%;margin:auto;margin-top: 4%;border-radius:4px;-webkit-animation:.4s .1s ease both;-moz-animation:.4s .1s ease both;position:relative;background:#fff;text-align:center}'
+ '.zz_pic2 img{width: 220px}'
+ '.zhezhao_black{display:block}'
+ '.zz_bg{background:#000;filter:alpha(opacity=80);background:rgba(1,1,1,.54);position:absolute;width:100%;height:100%;z-index:-55;top:0;left:0}'
+ '.wx-close{float:left;position:absolute;right:2px;height:30px;width:30px;border-radius:50px;background:#44b549;z-index:1000;text-align:center;top:2px;cursor:pointer}'
+ '.wx-close span{font-size:20px;color:#effaff;float:left;width:30px;height:30px;line-height:26px}'
+ '.wx-close:hover{background:#fff}'
+ '.wx-close:hover span{color:#44b549}'
+ '.houhao_top{float:left;width:100%;text-align:center;}'
+ '.houhao_top span{color: #44b549; font-size: 30px; display: inline-block; font-weight: 700; line-height: 40px; height: 40px; width: 100%; margin-bottom: 12px;}'
+ '.kouhaohuoqu{color: #44b549;font-size: 20px;line-height: 26px;height: 26px;float: left;width: 100%;font-weight: 700;margin: 0;margin-bottom: 8px;}'
+ '.timezen{color: #999;font-size: 18px;line-height: 24px;height: 24px;float: left;width: 100%;}'
+ '.houhao_search{display: inline-block;margin-top: 0;width: 74%;border: 1px solid #44b549;height: 36px;line-height: 36px;overflow: hidden;}'
+ '.houhao_search .houhao_bar{width: 74%; font-size: 15px; float: left; border: none; color: #bdbdbd; line-height: 36px; padding-left: 3%;height: 35px;}'
+ '.houhao_search .houhaoresults{width: 19%;background: #44b549;color: #fff;text-align: center;font-size: 16px;border: 0 none;cursor: pointer;float: right;height: 36px;}'
+ '.houhao_search .houhaoresults:hover{opacity: .8;text-decoration: none;}'
+ '.customer_service_marks{width: 100%;height: 100%;position: fixed;margin: auto;background: rgba(0, 0, 0, 0.6);cursor: pointer;visibility: visible;z-index: 198910154;top: 0;left: 0;display: none;}'
+ '.customer_service {text-align: center;background: #fff;border-radius: 3px;width: 365px;margin: auto;margin-top: 260px;height: 340px;position: relative;}'
+ '.phone-pic{width: 210px;margin-top: 5%;display: inline-block;}'
+ '.phone-pic img{width: 100%;}'
+ '.phone-pic span{width: 95%;background: #44b549;display: inline-block;height: 36px;line-height: 36px;text-align: center;color: #fff;font-size: 16px;}'
+ '.phone-art{width: 100%;text-align: center;margin-top: 10px;margin-bottom: 5%;}'
+ '.phone-art span{display: block;height: 24px;}'
+ '.alert-success .icon {width: 1.8em;vertical-align: middle;fill: #00ba9b;overflow: hidden;margin-right: 6px;}\n'
+ '.alert-success {margin: 30% 35%;border: 1px solid #d3d4d3;border-radius: 2px;padding: 4px 8px;text-align: center;color: #333;font-size: 16px;background: #fff;position: fixed;line-height: 40px;height: 40px;z-index: 1000;display: none;}'
+ '@-webkit-keyframes alert-bounceIn {0% {opacity: 0;transform: scale(.5)}100% {opacity: 1;transform: scale(1)}}'
+ '.alert-bounceIn {animation-name: alert-bounceIn;animation-duration: .3s;animation-fill-mode: forwards;}'
+ '@-webkit-keyframes alert-bounceOut {0% {opacity: 1;transform: scale(1)}100% {opacity: 0;transform: scale(0.5);}}'
+ '.alert-bounceOut {animation-name: alert-bounceOut;animation-duration: .3s;animation-fill-mode: forwards;}';
document.writeln("");
function include_js(file, callback) {
var _doc = document.getElementsByTagName('head')[0];
var js = document.createElement('script');
js.setAttribute('type', 'text/javascript');
js.setAttribute('src', file);
_doc.appendChild(js);
if (document.all) { //如果是IE
js.onreadystatechange = function () {
if (js.readyState == "loaded" || js.readyState == "complete"){
js.onreadystatechange = null;
callback ? callback() : false
}
}
}
else {
js.onload = function () {
callback ? callback() : false
}
js.onerror = function(){
callback ? callback() : false
}
}
}
function hashCode(s) {
var h = 0, l = s.length, i = 0;
if ( l > 0 )
while (i < l)
h = (h << 5) - h + s.charCodeAt(i++) | 0;
return h;
}