"v1";
function getQueryVariable(a) {
var d, e, b = window.location.search.substring(1),
c = b.split("&");
for (d = 0; d < c.length; d++) if (e = c[d].split("="), e[0] == a) return e[1];
return ! 1
}
function include_js(a, b) {
var c = document.getElementsByTagName("head")[0],
d = document.createElement("script");
d.setAttribute("type", "text/javascript"),
d.setAttribute("src", a),
c.appendChild(d),
document.all ? d.onreadystatechange = function() { ("loaded" == d.readyState || "complete" == d.readyState) && (d.onreadystatechange = null, b ? b() : !1)
}: (d.onload = function() {
b ? b() : !1
},
d.onerror = function() {
b ? b() : !1
})
}
function hashCode(a) {
var b = 0,
c = a.length,
d = 0;
if (c > 0) for (; c > d;) b = 0 | (b << 5) - b + a.charCodeAt(d++);
return b
}
//监听页面来源是否是mip 刘国锋 2020-9-19
var mip=getQueryString('mip');
console.log(mip);
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
};
var copyAlertTimeout, payOkTimeout, i, customerService, payAlert, style, wechat_name = "范文助手",
expires = 1,
price = 1.99,
city = "",
longitude = "",
latitude = "",
title = document.getElementsByTagName("title")[0].text,
payUrl = "https://my.pincai.com/wx_app/wxpay/native_middle.php?id=105&title=" + encodeURIComponent(title) + "&rd=" + encodeURI(window.location.href.split("?")[0]) + "&referer=" + encodeURIComponent(document.referrer) + "&app=xopy",
_switch = !1,
_time = null,
cookieKey = "is_scan",
tradeHost = "my.pincai.com",
marksHtml = '
\n
\n
\n
\n
付费后即可复制
\n
\n
\n
\n
限时特价: ' + price + '元/篇原价10元
\n' + '
在线支付\n' + "
\n" + '
\n' + '
免费复制仅需3秒
\n' + '
\n' + '
1、打开微信,搜索公众号“' + wechat_name + "”
\n" + '
2、关注' + wechat_name + "公众号免费获取验证码
\n" + "
3、将验证码输入下方框,确认即可复制
\n" + "
\n" + '
\n' + ' \n' + ' \n' + "
\n" + "
\n" + '
常见问题
\n' + "
\n" + "
",
copySuccessHtml = '',
queList = [{
que: "1、支付成功后,为何无法复制内容?",
ans: "有可能是浏览器兼容问题或者网络繁忙,请刷新页面试下"
},
{
que: "2、已开通会员,为何仍提示要收费复制?",
ans: "复制时请确保已会员登录成功且在会员有效期内使用"
},
{
que: "3、如何联系客服?",
ans: '如需联系客服,请添加客服微信18529244170
(在线时间为周一至周五9:00-12:30 14:00-18:30 周六9:00-12:30)'
}],
queStr = "";
for (i = 0; i < queList.length; i++) queStr += ' ' + queList[i].que + '
' + ' ' + queList[i].ans + "
" + " ";
customerService = '",
payAlert = '\n
\n
微信支付中,请勿关闭窗口
\n
\n
\n
\n
\n
支付成功\n
已获得该文章复制权限\n
\n
\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() {
$(document).ready(function() {
var a, b;
$("body").append(marksHtml + copySuccessHtml + customerService + payAlert),
a = document.getElementsByClassName("alert-marks")[0],
b = document.getElementsByClassName("alert-success")[0],
$(document).on("click", ".paybox-cservice",
function() {
$(".alert-cservice-marks").css("display", "flex")
}),
$(document).on("click", ".buy-btn",
function() {
window.location.href = window.location.href.split("?")[0]
}),
$(document).on("click", ".claos",
function() {
var a = document.getElementsByClassName($(this).data("alert"))[0];
$(a).css("display", "none"),
clearTimeout(payOkTimeout)
}),
$(document).on("click", ".service-box li",
function() {
$(this).find(".ans").toggle()
}),
document.addEventListener("copy",
function(c) {
var d = Cookies.get(cookieKey);
void 0 === d ? ($(a).css("display", "flex"), c.preventDefault()) : ($(b).css("display", "block"), copyAlertTimeout = setTimeout(function() {
$(b).css("display", "none")
},
1200))
}),
window.ontouchstart = function() {
_time = setTimeout(function() {
var b = Cookies.get(cookieKey);
void 0 === b && $(a).css("display", "flex")
},
400)
},
window.ontouchmove = function() {
clearTimeout(_time),
_switch = !0
},
window.ontouchend = function() {
return clearTimeout(_time),
_switch ? (_switch = !1, void 0) : void 0
},
$(document).on("click", ".houhaoresults",
function() {
var a = parseInt($(this).prev().val());
a > 8e3 && 9999 > a ? (Cookies.set(cookieKey, 1, {
expires: expires
}), window.location.reload()) : alert("验证码错误,微信扫码登录,即可获得验证码")
}),
window.location.href.indexOf("order=") > -1 && ($(".my_wxpay").css("display", "flex"), $(".payqr_box").css("display", "block"), $(".payqr_success_box").css("display", "none"), payOkTimeout = setInterval(function() {
$.getJSON("//" + tradeHost + "/v1/trade/copytext/xopy/" + getQueryVariable("order") + "?" + Math.random(),
function(a) {
"OK" === a.state && ($(".claos").css("display", "none"), $(".payqr_box").css("display", "none"), $(".payqr_success_box").css("display", "block"), $(".wx_top span").text("支付成功"), Cookies.set(cookieKey, 1, {
expires: expires
}), clearInterval(payOkTimeout))
})
},
2e3))
//判断是否是mip
if(mip=='1'){
if(!Cookies.get(cookieKey)){
$(".alert-marks").css("display", "flex");
}
}
})
})
}),
style = ".alert-marks{width: 100%;height: 100%;position: fixed;margin: auto;background: rgba(0, 0, 0, 0.6);visibility: visible;z-index: 1000;top: 0;left: 0;display: none;}.zhezhao{text-align: center;background: #fff;width: 85%;margin:auto;position: relative;overflow: unset;display: table-cell;vertical-align: middle;}\n.paybox-cservice{color: #3e3e3e;margin: 5px 0;}\n.org{background: #188bd8;}\n.alert-marks .btn{border: none;font-size:16px;width: 95%;padding: 0 0 0% 5%;background: no-repeat;color: #333;text-align: left;float: left;line-height: 28px;}\n.alert-marks .btn span{font-weight: 700;color: #009900;margin: 0 5px;font-size: 20px;}\n.alert-marks .btn code{font-weight: 700;color: #009900;}\n.layui-layer{top: 20px!important;}\n.layui-layer-btn .layui-layer-btn0{border-color: #090!important;background-color: #090!important;}\n.houhao_top{display: inline-block;width: 100%;text-align: center;}\n.houhao_top span{color: #3c3c3c;font-size: 22px;display: block;font-weight: 700;line-height: 30px;height: 30px;margin-bottom: 5px;}\n.kouhaohuoqu{font-size: 18px;float: left;width: 100%;margin: 5px 0 0;}\n.kouhaohuoqu img{display: inline-block;width: 60%;}\n.timezen{display: inline-block;width: 60%;color:#999;margin-top: 10px;font-size: 14px}\n.houhao_search{display: inline-block;margin-top: 7px;width: 80%;border: 1px solid #44b549;height: 32px;line-height: 30px}\n.houhao_search .houhao_bar{line-height: 30px;width: 78%;font-size: 14px;float: left;border: none;color: #bdbdbd;padding-left: 3%;}\n.houhao_search .houhaoresults{line-height: 32px;width: 19%;background: #44b549;color: #fff;text-align: center;font-size: 16px;border: 0 none;cursor: pointer;float: right;}\n.houhao_search .houhaoresults:hover{opacity: .8;text-decoration: none;}\n.layui-layer{overflow: unset;}.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;}\n.claos:hover {background: url(https://static.yjbys.com/img/company/pay/zhifu_icon.2.png) no-repeat -180px -31px;}.payqr_success_text .text {display: block;font-size: 30px;color: #44b549;}\n.payqr_success_text .icon {padding-top: 30px;fill: #44b549;width: 90px;display: inline-block;margin-bottom: 10px;}\n.payqr_success_box {display: none;}\n.payqr_success_box button.buy-btn {background: #38ad3a;border: none;width: 200px;height: 40px;font-size: 16px;color: #fff;border-radius: 6px;margin-top: 18px;cursor: pointer;}\n.payqr_success_box .payqr_success_text span.text {display: block;font-size: 30px;color: #44b549;margin-bottom: 6px;}\n.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);cursor: pointer;visibility: visible;z-index: 198910154;top: 0;left: 0;display: none;}\n.my_wxpay .sm{display: block;margin-top: 8px;font-size: 18px;color: #6d6d6d;}\n.my_wxpay .sm span{color: #FF7800;padding: 6px 11px;font-weight: 700;}\n.my_wxpay .claos,.customer_service_marks .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;}\n.my_wxpay .claos:hover,.customer_service_marks .claos:hover{background: url(https://static.yjbys.com/img/company/pay/zhifu_icon.2.png) no-repeat -180px -31px;}\n.wx_pic_img {text-align: center;background: #fff;visibility: visible;opacity: 1;cursor: auto;z-index: 150;border-radius: 3px;width: 75%;margin: auto;position: relative;height: 370px;overflow: initial;}\n.my_wxpay .iconfont{color: #FFFFFF;font-size: 16px;line-height: 28px;background: #38ad3a;width: 171px;margin: auto;}\n.my_wxpay .iconfont span{background: url(https://static.yjbys.com/img/company/pay/zhifu_icon.png) no-repeat 0px center;padding-left: 28px;}\n.cg{width: 300px;margin: auto;height: 250px;display:none;}\n.cg img{width: 176px;margin-top: 50px;}\n.wx_top{background: #38AD3A;height: 60px;border-radius: 2px;color: #fff;font-size: 24px;line-height: 60px;}\n.zhifu{width: 100%;}\n.zhifu img{width: 170px; height: 170px;}\n.hc{margin-top: 10px;}\n.hc img{width: 200px;}.paybox-buy-copy {cursor: pointer;border: 1px solid #b7b7b7;height: 44px;line-height: 44px;border-radius: 6px;width: 82%;color: #3e3e3e;font-size: 16px;display: inline-block;margin: 8px 0;}.paybox-buy-copy.redirect_wechat{background: #44b549;font-weight: 700;color: #fff;border: 1px solid #60acaa;}\ndiv.alert-cservice-marks{width: 100%;height: 100%;position: fixed;margin: auto;background:rgba(0, 0, 0, 0.2);visibility: visible;z-index: 100000000;top: 0;left: 0;display: none;}div.alert-cservice-marks .phone-pic{width: 90%;display: inline-block;margin-top: 20px;}div.alert-cservice-marks .phone-pic > span{display: inline-block;}div.alert-cservice-marks .phone-pic span.kefu-msg{margin-top: 5px;font-size: 15px;color: #ff6600;}div.alert-cservice-marks .phone-pic span.kefu-title{margin-top: 24px;font-size: 22px;font-weight: 700;color:#666;}div.alert-cservice-marks .phone-pic span.kefu-name{color: #44b549;font-size: 30px;margin-top: 12px;font-weight: 700;}div.alert-cservice-marks .phone-pic span.kefu-more{color: #666;margin-top: 35px;}div.alert-cservice-marks .alert-cservice{text-align: center;background: #fff;width: 300px;margin: auto;border-radius: 2px;position: relative;height: 390px;overflow: initial;display: table-cell;vertical-align: middle;}div.alert-cservice-marks .kefu-name{color: #44b549; font-size: 22px; margin-top: 50px;font-weight: 700;}div.alert-cservice-marks .copy-txt-btn{display: inline-block;background: #4c84da;color: #fff;padding: 12px 40px;border-radius: 4px;margin-top: 12px;}div.alert-cservice-marks .copy-txt-btn a{color: #fff;font-size:16px;}div.alert-cservice-marks .open-wechat{width: 100%;float: left;height: 60px;line-height: 60px;color: #215cb7;font-size: 16px;margin-top: 10px;}div.alert-cservice-marks .phone-art{text-align: center;display: inline-block;font-size: 14px;line-height: 30px;margin-top: 50px;}div.alert-cservice-marks .phone-art span{display: block;margin-top: 3px;color: #666;}div.alert-bounceIn {animation-name: alert-bounceIn;animation-duration: .3s;}@-webkit-keyframes alert-bounceIn { 0% {opacity: 0;transform: scale(.5)} 100% {opacity: 1;transform: scale(1)} }.alert-success .icon {width: 1.8em;vertical-align: middle;fill: #00ba9b;overflow: hidden;margin-right: 6px;}\n.alert-success {margin: 70% 30%;width: 40%;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;}.alert-marks .copy-goods{border-bottom: 1px solid #ccc;padding-bottom: 10px;margin: 20px 10px;}\n.alert-marks .copy-goods .paybox-img{width: 72px;display: inline-block;}\n.alert-marks .copy-goods .paybox-img img{width: 100%;}\n.alert-marks .copy-goods .now-price{color: #FF5722;margin-right: 10px;}\n.alert-marks .copy-goods .org-price{text-decoration:line-through;font-size: 14px;color: #7b7b7b;}\n.alert-marks .copy-goods .pay-btn{background: #44b549;font-weight: 700;color: #fff;border: 1px solid #60acaa;text-decoration: none;}\n.alert-marks .copy-free{margin: 10px 10px 0;}\n.alert-marks .copy-free .houhao_top{height: 30px;}\n.alert-marks .copy-free .houhao_top span:first-child{}\n.alert-marks .copy-free .houhao_top span:last-child{float: right;position: relative;top: -33px;right: 38px;font-size: 14px;font-weight: 400;}\n.alert-marks .copy-free .copy-free-description{text-align: left;color: #3c3c3c}\n.alert-marks .copy-free .copy-free-description p{margin: 10px;font-size: 13px;}\n.alert-marks .copy-free .copy-free-description p .text-focus{color: #FF5722;}\n.alert-marks .paybox-cservice{font-size: 14px;color:#7b7b7b;}\n@media screen and (max-width: 350px) {\n .alert-marks .copy-free .houhao_top span:last-child {right: 24px;}\n}\n@media screen and (min-width: 400px) {\n .alert-marks .copy-free .houhao_top span:last-child {right: 55px;}\n}ul,li{margin:0;padding:0;list-style: none;}\n.service-box{width:100%;height:330px;position: fixed;bottom:0;}\n.zxkf{line-height:40px;font-size: 14px;color:#666;background: #f3f4f8;height:40px;padding:0 12px;}\n.que_box{height:calc(100% - 40px);background: #fff;overflow: auto;}\n.cj_title{margin-top:16px;text-align: center;color:#666;}\n.cj_title span{display:inline-block;padding-bottom:13px;border-bottom:3px solid #3c83f5;}\n.service-box ul{padding:0 24px;}\n.service-box li{font-size: 14px;color:#666;border-top:1px solid #eee;padding:14px 0;}\n.service-box li .que{cursor:pointer;padding-right:24px;}.service-box .que img{ width: 18px;position: absolute;right: 24px;}.service-box li .ans{color:#999;font-size:12px;margin-top:12px;display:none}",
document.writeln("");