|
@@ -1,11 +1,13 @@
|
|
|
<html lang="en">
|
|
|
<head>
|
|
|
<meta charset="UTF-8">
|
|
|
- <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
|
+ <meta name="viewport"
|
|
|
+ content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
|
<meta content="数据导出" theme="light" name="enable-header"/>
|
|
|
<meta content="666" name="data-backside"/>
|
|
|
- <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/dataExport/css/font_624651_bjdvktmum68.css?v={{Msg "seo" "version"}}">
|
|
|
+ <link rel="stylesheet"
|
|
|
+ href="{{Msg "seo" "cdn"}}/dataExport/css/font_624651_bjdvktmum68.css?v={{Msg "seo" "version"}}">
|
|
|
<link rel="stylesheet" href="{{Msg "seo" "cdn"}}/dataExport/css/reset_pc.css?v={{Msg "seo" "version"}}">
|
|
|
<link rel="stylesheet" href="{{Msg "seo" "cdn"}}/dataExport/css/payment_order.css?v={{Msg "seo" "version"}}">
|
|
|
<link rel="stylesheet" href="https://at.alicdn.com/t/font_624651_wz9gl1vebtf.css">
|
|
@@ -21,11 +23,11 @@
|
|
|
<script type="text/javascript" src="{{Msg "seo" "cdn"}}/js/public-nav.js?v={{Msg "seo" "version"}}"></script>
|
|
|
<title>支付订单</title>
|
|
|
<style>
|
|
|
- #bidLogin.modal.in .modal-dialog {
|
|
|
- height: auto;
|
|
|
- margin-top: -282px;
|
|
|
- text-align: left;
|
|
|
- }
|
|
|
+ #bidLogin.modal.in .modal-dialog {
|
|
|
+ height: auto;
|
|
|
+ margin-top: -282px;
|
|
|
+ text-align: left;
|
|
|
+ }
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
@@ -58,9 +60,28 @@
|
|
|
<div id="entuserguige" hidden="hidden">
|
|
|
<div class="title">支付方式</div>
|
|
|
<div class="inner clearfix switch-dataType">
|
|
|
- <div class="qy no-select">
|
|
|
- <p>企业数据量扣除</p>
|
|
|
- </div>
|
|
|
+ {{if .T.isEntUser}}
|
|
|
+ <div class="qy no-select">
|
|
|
+ <p>流量包扣除 <i id="llb-tip" class="iconfont icon-bangzhu"
|
|
|
+ style="font-size: 18px;color: #2CB7CA;line-height: 37px;cursor: pointer;"></i>
|
|
|
+ </p>
|
|
|
+ <div id="llb-tip-block" style="width: 164px;height: 48px;opacity: 1;background: rgba(0,0,0,0.75);text-align: center;padding: 4px;
|
|
|
+ border-radius: 4px;box-shadow: 0px 0px 28px 0px rgba(0,0,0,0.08);
|
|
|
+ position: relative;top: -90px;right: -34px;display: none">
|
|
|
+ <p style="color: #ffffff;line-height: 20px;font-size: 12px;">原“企业数据量扣除”文案</p>
|
|
|
+ <p style="color: #ffffff;line-height: 20px;font-size: 12px;">调整为“流量包扣除”</p>
|
|
|
+ <div style="width: 0;height: 0;border: none;border-left: 5px solid transparent;border-right: 5px solid transparent;border-top: 10px solid rgba(0,0,0,0.75);
|
|
|
+ position: relative;left: 46%;"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ {{end}}
|
|
|
+
|
|
|
+ {{if .T.hasDaily}}
|
|
|
+ <div class="dr no-select">
|
|
|
+ <p>单日限量包扣除</p>
|
|
|
+ </div>
|
|
|
+ {{end}}
|
|
|
+
|
|
|
<div class="gr no-select active">
|
|
|
<p>个人支付</p>
|
|
|
</div>
|
|
@@ -114,32 +135,13 @@
|
|
|
<div>省份、城市、公告标题、公告类别、公告内容、发布时间、公告地址、剑鱼标讯地址、项目名称、项目范围、预算金额、中标金额、开标日期、采购单位、采购单位信息(采购单位联系人、采购单位联系电话、招标代理机构)、中标单位信息(中标单位、中标单位联系人、中标单位联系电话)(来源:招标公告网站)、中标单位信息(中标单位联系人、中标单位联系电话、电子邮箱)(来源:国家企业公示网站)</div>
|
|
|
</span>
|
|
|
</span>
|
|
|
- <!--<div class="pay">
|
|
|
- <div class="title">支付方式</div>
|
|
|
- <div class="inner clearfix payway">
|
|
|
- <div class="wx no-select">
|
|
|
- <span>微信支付</span>
|
|
|
- </div>
|
|
|
- <div class="alipay no-select">
|
|
|
- <span>支付宝</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>-->
|
|
|
<div class="pc-coupon-w1200" style="margin-bottom: 25px">
|
|
|
<!--S-优惠券-->
|
|
|
<div id="coupon-group"></div>
|
|
|
<!--E-优惠券-->
|
|
|
</div>
|
|
|
- <div class="moneys" style="display: none;">
|
|
|
- <div></div>
|
|
|
- <div class="clearfix">
|
|
|
- <p class="yixuanze">已选择数据 <span class="yixuanzedata">3</span> 条</p>
|
|
|
- </div>
|
|
|
- <div class="clearfix">
|
|
|
- <p class="chongfu">其中,重复导出数据 <span class="buzaikouchu">2</span> 条(不再扣除)</p>
|
|
|
- </div>
|
|
|
- <div class="clearfix">
|
|
|
- <p class="newCount">本次导出扣除数据量 <span class="xinkouchu">1</span> 条</p>
|
|
|
+ <div class="moneys" style="margin-top:120px;display: none;">
|
|
|
+ <div class="show-detail">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="info clearfix">
|
|
@@ -158,84 +160,55 @@
|
|
|
<p class="btn_createOrder">
|
|
|
<button class="dataPreview">预览数据</button>
|
|
|
<button class="toPay" data-need-bind-phone disabled="disabled">确认支付</button>
|
|
|
+ <button class="toDeduction" data-need-bind-phone style="display: none" disabled="disabled">确认扣除
|
|
|
+ </button>
|
|
|
</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="dialog-box type-a"></div>
|
|
|
<!-- loading -->
|
|
|
- <div class="modal fade" id="loading" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop='static' data-keyboard="false">
|
|
|
- <!-- <div class="modal-dialog" role="document">
|
|
|
- <div class="modal-content">
|
|
|
- <div class="modal-body">
|
|
|
- 正在计算条数中。。。
|
|
|
- </div>
|
|
|
+ <div class="modal fade" id="loading" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
|
|
|
+ data-backdrop='static' data-keyboard="false">
|
|
|
+ <div class="modal-dialog" role="document">
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="sp sp-loadbar"></div>
|
|
|
+ </div>
|
|
|
+ <div class="modal-body" style="color: #ffffff !important;">
|
|
|
+ 正在计算条数中。。。
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div> -->
|
|
|
- <div class="modal-dialog" role="document">
|
|
|
- <div class="modal-content">
|
|
|
- <div class="sp sp-loadbar"></div>
|
|
|
- </div>
|
|
|
- <div class="modal-body" style="color: #ffffff !important;">
|
|
|
- 正在计算条数中。。。
|
|
|
- </div>
|
|
|
- </div>
|
|
|
</div>
|
|
|
<!-- loading -->
|
|
|
- <div class="modal fade" id="loadings" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop='static' data-keyboard="false">
|
|
|
- <!-- <div class="modal-dialog" role="document">
|
|
|
- <div class="modal-content">
|
|
|
- <div class="modal-body">
|
|
|
- 正在导出中。。。
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div> -->
|
|
|
- <div class="modal-dialog" role="document">
|
|
|
- <div class="modal-content">
|
|
|
- <div class="sp sp-loadbar"></div>
|
|
|
- </div>
|
|
|
- <div class="modal-body" style="color: #ffffff !important;">
|
|
|
- 正在导出中。。。
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="modal fade" id="limitNum" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop='static' data-keyboard="false">
|
|
|
+ <div class="modal fade" id="loadings" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
|
|
|
+ data-backdrop='static' data-keyboard="false">
|
|
|
<div class="modal-dialog" role="document">
|
|
|
- <div class="modal-content">
|
|
|
- <div class="modal-header">
|
|
|
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
- <h4 class="modal-title" id="myModalLabel">每日导出限额提醒</h4>
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="sp sp-loadbar"></div>
|
|
|
</div>
|
|
|
- <div class="modal-body">
|
|
|
- <p>您的每日导出限额已超过管理员设置数量</p>
|
|
|
- <p>每日限额:<i class="datalimit" style="color: #FF3A20;">500</i></p>
|
|
|
- <p>已使用:<i class="exportNum">450</i></p>
|
|
|
- <p>新导出:<span class="newCounts"></span></p>
|
|
|
- <p>请联系管理员</p>
|
|
|
+ <div class="modal-body" style="color: #ffffff !important;">
|
|
|
+ 正在导出中。。。
|
|
|
</div>
|
|
|
- <div class="modal-footers">
|
|
|
- <button type="button" class="btn btn-primary" id="backbtn">我知道了</button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="modal fade" id="limitNums" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop='static' data-keyboard="false">
|
|
|
+ <div class="modal" id="dataexport-tip" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
|
|
|
+ data-backdrop='static' data-keyboard="false">
|
|
|
<div class="modal-dialog" role="document">
|
|
|
- <div class="modal-content">
|
|
|
- <div class="modal-header">
|
|
|
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
- <h4 class="modal-title" id="myModalLabels">企业数据量余额提醒</h4>
|
|
|
- </div>
|
|
|
- <div class="modal-body">
|
|
|
- <p>数据量余额:<i class="dataentcount" style="color: #FF3A20;">500</i></p>
|
|
|
- <p>新导出:<span class="newCounts"></span></p>
|
|
|
- <p>请联系管理员</p>
|
|
|
- </div>
|
|
|
- <div class="modal-footers">
|
|
|
- <button type="button" class="btn btn-primary" id="backbtns">我知道了</button>
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="modal-header">
|
|
|
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
|
|
|
+ aria-hidden="true">×</span></button>
|
|
|
+ <h4 class="modal-title" style="color: #000000;font-size: 18px;">导出提醒</h4>
|
|
|
+ </div>
|
|
|
+ <div class="modal-body">
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div class="modal-footers">
|
|
|
+ <button type="button" class="btn btn-primary" onclick='window.history.back()'>我知道了
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
</div>
|
|
|
</section>
|
|
|
<script src=//cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.js></script>
|
|
@@ -263,12 +236,23 @@
|
|
|
if (bindPhone.length === 11) {
|
|
|
phone_lastInput = bindPhone
|
|
|
$.post("/front/dataExport/checkPhoneVerify", {"phone": phone_lastInput})
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
- var isEntUser = {{.T.isEntUser}}
|
|
|
+ var isEntUser = {{.T.isEntUser}} //企业用户
|
|
|
+ var hasDaily = {{.T.hasDaily}} //大会员数据包
|
|
|
$(function () {
|
|
|
haslogin({{.T.logid}});
|
|
|
+ if (sessionStorage.getItem("order_email" +{{.T._id}}) != null) {
|
|
|
+ finishEmailVerity = true;
|
|
|
+ } else if (email_lastInput !== "" && email_lastInput != null) {
|
|
|
+ finishEmailVerity = true;
|
|
|
+ }
|
|
|
+ if (sessionStorage.getItem("order_phone" +{{.T._id}}) != null) {
|
|
|
+ finishPhoneVerity = true;
|
|
|
+ } else if (phone_lastInput !== "" && phone_lastInput != null) {
|
|
|
+ finishPhoneVerity = true;
|
|
|
+ }
|
|
|
//加载价格
|
|
|
$.ajax({
|
|
|
url: "/jypay/dataexport/getPrice",
|
|
@@ -299,66 +283,60 @@
|
|
|
//购买须知
|
|
|
$(".fl.left p:eq(1) span:eq(0)").text(orderMinPrice);
|
|
|
$(".fl.left p:eq(1) span:eq(1)").text(unitPrice_normal);
|
|
|
- $(".fl.left p:eq(1) span:eq(2)").text(discount*10);
|
|
|
- $(".fl.left p:eq(1) span:eq(3)").text(discount*unitPrice_normal);
|
|
|
+ $(".fl.left p:eq(1) span:eq(2)").text(discount * 10);
|
|
|
+ $(".fl.left p:eq(1) span:eq(3)").text(discount * unitPrice_normal);
|
|
|
|
|
|
$(".fl.left p:eq(2) span:eq(0)").text(unitPrice_senior);
|
|
|
- $(".fl.left p:eq(2) span:eq(1)").text(discount*10);
|
|
|
- $(".fl.left p:eq(2) span:eq(2)").text(discount*unitPrice_senior);
|
|
|
+ $(".fl.left p:eq(2) span:eq(1)").text(discount * 10);
|
|
|
+ $(".fl.left p:eq(2) span:eq(2)").text(discount * unitPrice_senior);
|
|
|
|
|
|
//企业数据导出开始
|
|
|
- if (isEntUser) {
|
|
|
- // $("#guige").hide();
|
|
|
- // $(".money").hide();
|
|
|
- $(".moneys").hide();
|
|
|
- // $(".toPay").text("确认扣除");
|
|
|
+ if (isEntUser || hasDaily) {
|
|
|
$("#entuserguige").show();
|
|
|
}
|
|
|
- $("#entuserguige .inner .gr").on("click", function(){
|
|
|
- $("#entuserguige .inner .qy").removeClass("active")
|
|
|
- $(this).addClass("active");
|
|
|
+ $(".toPay").on("click", personalSubmit);
|
|
|
+
|
|
|
+
|
|
|
+ $("#entuserguige .inner .gr").on("click", function () {
|
|
|
+ $(this).addClass("active").siblings().removeClass("active");
|
|
|
+ $("#entuserguige").css("border-color", "#ccc")
|
|
|
$(".moneys").hide();
|
|
|
$("#guige").show();
|
|
|
$(".money").show();
|
|
|
- $(".toPay").text("确认支付");
|
|
|
- if (sessionStorage.getItem("order_email" +{{.T._id}}) != null) {
|
|
|
- finishEmailVerity = true;
|
|
|
- } else if (email_lastInput != ""&& email_lastInput!=null) {
|
|
|
- finishEmailVerity = true;
|
|
|
- }
|
|
|
- if (sessionStorage.getItem("order_phone" +{{.T._id}}) != null) {
|
|
|
- finishPhoneVerity = true;
|
|
|
- } else if (phone_lastInput != "" && phone_lastInput!=null) {
|
|
|
- finishPhoneVerity = true;
|
|
|
- }
|
|
|
+ $(".toPay").css("display", "");
|
|
|
+ $(".toDeduction").css("display", "none")
|
|
|
$("#email").show();
|
|
|
})
|
|
|
- $("#entuserguige .inner .qy").on("click", function(){
|
|
|
+ $("#entuserguige .inner .qy").on("click", function () {
|
|
|
var id = {{.T._id}}
|
|
|
- $("#entuserguige .inner .gr").removeClass("active")
|
|
|
- $(this).addClass("active");
|
|
|
- if (sessionStorage.entExportCount && sessionStorage.entExportNewCount && sessionStorage.entExportid == id){
|
|
|
- finishEmailVerity = true;
|
|
|
- finishPhoneVerity = true;
|
|
|
+ $(this).addClass("active").siblings().removeClass("active");
|
|
|
+ if (sessionStorage.entExportid === id) {
|
|
|
$("#email").hide();
|
|
|
//
|
|
|
+ $("#entuserguige").css("border-color", "#fff")
|
|
|
$("#guige").hide();
|
|
|
$(".money").hide();
|
|
|
- $(".moneys").show();
|
|
|
- $(".toPay").text("确认扣除");
|
|
|
- $(".yixuanzedata").text(sessionStorage.entExportCount);
|
|
|
- $(".xinkouchu").text(sessionStorage.entExportNewCount);
|
|
|
- var cfCount = sessionStorage.entExportCount - sessionStorage.entExportNewCount;
|
|
|
- if (cfCount < 0 ) {
|
|
|
- cfCount = 0
|
|
|
- }
|
|
|
- $(".buzaikouchu").text(cfCount);
|
|
|
+
|
|
|
+ $(".moneys").html('<div class="show-detail" >'
|
|
|
+ + '<div class="all-line">'
|
|
|
+ + '<div class="line"><div class="item">已选择数据:</div><div><span>' + sessionStorage.count + '</span>条</div></div>'
|
|
|
+ + '<div class="line"><div class="item">重复导出数据:</div><div><span>(不再扣除)</span><span class="blue-font">' + (sessionStorage.count - sessionStorage.newCount) + '</span>条</div></div>'
|
|
|
+ + '<div class="line"><div class="item">本次扣除:</div><div><span class="red-font">' + sessionStorage.newCount + '</span>条</div></div>'
|
|
|
+ + '<div class="line"><div class="item">所属企业账户余额:</div><div><span class="red-font">' + sessionStorage.current + '</span>条</div></div>'
|
|
|
+ + '<div class="line"><div class="item">您每日导出限额:</div><div><span class="red-font">' + sessionStorage.limitDay + '</span>条</div></div>'
|
|
|
+ + '<div class="line"><div class="item">您今日余额:</div><div><span class="red-font">' + sessionStorage.limit + '</span>条</div></div>'
|
|
|
+ + '</div>'
|
|
|
+ + '</div>').show();
|
|
|
+ $(".toPay").css("display", "none");
|
|
|
+ $(".toDeduction").css("display", "").off("click").on("click", entSubmit);
|
|
|
+
|
|
|
+
|
|
|
$('#loading').modal('hide');
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
$('#loading').modal('show');
|
|
|
- setTimeout(function(){
|
|
|
+ setTimeout(function () {
|
|
|
$.ajax({
|
|
|
- url: "/front/entDataExport/"+ id,
|
|
|
+ url: "/front/entDataExport/" + id,
|
|
|
type: "POST",
|
|
|
async: false,
|
|
|
data: {"isFirst": true},
|
|
@@ -366,52 +344,109 @@
|
|
|
timeout: 2000000,
|
|
|
success: function (r) {
|
|
|
if (r) {
|
|
|
- sessionStorage.entExportCount = r.count;
|
|
|
- sessionStorage.entExportNewCount = r.newCount;
|
|
|
- sessionStorage.entExportid = id;
|
|
|
+ sessionStorage.count = r.count;//筛选条数
|
|
|
+ sessionStorage.current = r.current//企业总条数
|
|
|
+ sessionStorage.newCount = r.newCount//去重后条数
|
|
|
+ sessionStorage.exportNum = r.exportNum//今日已导出
|
|
|
+ sessionStorage.limit = r.limit //今日剩余
|
|
|
+ sessionStorage.limitDay = r.limitDay //今日限额
|
|
|
+ sessionStorage.entExportid = id
|
|
|
+
|
|
|
$("#guige").hide();
|
|
|
$(".money").hide();
|
|
|
- $(".moneys").show();
|
|
|
- $(".toPay").text("确认扣除");
|
|
|
- $(".yixuanzedata").text(r.count);
|
|
|
- $(".xinkouchu").text(r.newCount);
|
|
|
- var cfCount = r.count - r.newCount;
|
|
|
+
|
|
|
+ $(".moneys").html('<div class="show-detail" >'
|
|
|
+ + '<div class="all-line">'
|
|
|
+ + '<div class="line"><div class="item">已选择数据:</div><div><span>' + sessionStorage.count + '</span>条</div></div>'
|
|
|
+ + '<div class="line"><div class="item">重复导出数据:</div><div><span>(不再扣除)</span><span class="blue-font">' + (sessionStorage.count - sessionStorage.newCount) + '</span>条</div></div>'
|
|
|
+ + '<div class="line"><div class="item">本次扣除:</div><div><span class="red-font">' + sessionStorage.newCount + '</span>条</div></div>'
|
|
|
+ + '<div class="line"><div class="item">所属企业账户余额:</div><div><span class="red-font">' + sessionStorage.current + '</span>条</div></div>'
|
|
|
+ + '<div class="line"><div class="item">您每日导出限额:</div><div><span class="red-font">' + sessionStorage.limitDay + '</span>条</div></div>'
|
|
|
+ + '<div class="line"><div class="item">您今日余额:</div><div><span class="red-font">' + sessionStorage.limit + '</span>条</div></div>'
|
|
|
+ + '</div>'
|
|
|
+ + '</div>').show();
|
|
|
+ $(".toPay").css("display", "none");
|
|
|
+ $(".toDeduction").css("display", "").off("click").on("click", entSubmit);
|
|
|
+
|
|
|
+ var cfCount = r.count - r.newCount;
|
|
|
if (cfCount < 0) {
|
|
|
cfCount = 0
|
|
|
}
|
|
|
- $(".buzaikouchu").text(cfCount);
|
|
|
$('#loading').modal('hide');
|
|
|
- if (!r.isEntExport){
|
|
|
- $(".newCounts").text(r.newCount);
|
|
|
- $(".exportNum").text(r.exportNum);
|
|
|
- $(".dataentcount").text(r.current);
|
|
|
- $('#limitNums').modal('show');
|
|
|
- }else if (!r.isExport){
|
|
|
- $(".newCounts").text(r.newCount);
|
|
|
- $(".exportNum").text(r.exportNum);
|
|
|
- $(".datalimit").text(r.limitDay);
|
|
|
- $('#limitNum').modal('show');
|
|
|
+
|
|
|
+ if (!r.isEntExport) {
|
|
|
+ entTip(1)
|
|
|
+ } else if (!r.isExport) {
|
|
|
+ entTip(2)
|
|
|
}
|
|
|
- finishEmailVerity = true;
|
|
|
- finishPhoneVerity = true;
|
|
|
$("#email").hide();
|
|
|
}
|
|
|
},
|
|
|
- error: function (){
|
|
|
+ error: function () {
|
|
|
alert("系统响应超时,请刷新后重试");
|
|
|
$('#loading').modal('hide');
|
|
|
history.back();
|
|
|
}
|
|
|
});
|
|
|
- },500)
|
|
|
+ }, 500)
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
+ function dailyTip() {
|
|
|
+ showTip("对不起,余额不足", "<div class='tip-line'><div class='tip-half'>本次扣除:</div><div class='tip-half-right'>{{.T.msgCount}}条</div></div>"
|
|
|
+ + "<div class='tip-line'><div class='tip-half'>今日限量余额:</div><div class='tip-half-right'><span class='red-font'>" + ({{.T.dailyNum}}-{{.T.dailyUsed}}) + "</span>条</div></div>"
|
|
|
+ + "<br><p style='color:red;font-size:14px;'>请联系管理员或选择个人支付</p>")
|
|
|
+ }
|
|
|
+
|
|
|
+ function entTip(t) { //1 企业余额不足 2个人限额不足
|
|
|
+ if (t === 1) {
|
|
|
+ showTip("对不起,余额不足", "<div class='tip-line'><div class='tip-half'>已选择数据:</div><div class='tip-half-right'>" + sessionStorage.count + "条</div></div>"
|
|
|
+ + "<div class='tip-line'><div class='tip-half'>重复导出数据:</div><div class='tip-half-right'> <span>(不再扣除)</span><span class='blue-font'>" + (sessionStorage.count - sessionStorage.newCount) + "</span>条</div></div>"
|
|
|
+ + "<div class='tip-line'><div class='tip-half'>本次扣除:</div><div class='tip-half-right'><span class='red-font'>" + sessionStorage.newCount + "</span>条</div></div>"
|
|
|
+ + "<div class='tip-line'><div class='tip-half'>所属企业账户余额:</div><div class='tip-half-right'><span class='red-font'>" + sessionStorage.current + "</span>条</div></div>"
|
|
|
+ + "<br><p style='color:red;font-size:14px;'>请联系管理员或选择个人支付</p>")
|
|
|
+ } else {
|
|
|
+ showTip("对不起,余额不足", "<div class='tip-line'><div class='tip-half'>已选择数据:</div><div class='tip-half-right'>" + sessionStorage.count + "条</div></div>"
|
|
|
+ + "<div class='tip-line'><div class='tip-half'>重复导出数据:</div><div class='tip-half-right'> <span>(不再扣除)</span><span class='blue-font'>" + (sessionStorage.count - sessionStorage.newCount) + "</span>条</div></div>"
|
|
|
+ + "<div class='tip-line'><div class='tip-half'>本次扣除:</div><div class='tip-half-right'><span class='red-font'>" + sessionStorage.newCount + "</span>条</div></div>"
|
|
|
+ + "<div class='tip-line'><div class='tip-half'>所属企业账户余额:</div><div class='tip-half-right'><span class='red-font'>" + sessionStorage.current + "</span>条</div></div>"
|
|
|
+ + "<div class='tip-line'><div class='tip-half'>您每日导出限额:</div><div class='tip-half-right'><span class='red-font'>" + sessionStorage.limitDay + "</span>条</div></div>"
|
|
|
+ + "<div class='tip-line'><div class='tip-half'>您今日余额:</div><div class='tip-half-right'><span class='red-font'>" + sessionStorage.limit + "</span>条</div></div>"
|
|
|
+ + "<br><p style='color:red;font-size:14px;'>您的每日导出限额已超过管理员设置数量,请联系<br>管理员或选择个人支付</p>")
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
//企业数据导出结束
|
|
|
+ //不!还没有结束~
|
|
|
+ $("#entuserguige .inner .dr").on("click", function () {
|
|
|
+ $(this).addClass("active").siblings().removeClass("active");
|
|
|
+ if (({{.T.dailyNum}}-{{.T.dailyUsed}}) <{{.T.msgCount}}) {
|
|
|
+ dailyTip()
|
|
|
+ }
|
|
|
+ //样式修改
|
|
|
+ $("#email").hide();
|
|
|
+ $("#guige").hide();
|
|
|
+ $(".money").hide();
|
|
|
+ $("#entuserguige").css("border-color", "#fff")
|
|
|
+
|
|
|
+ $(".moneys").html('<div class="show-detail">'
|
|
|
+ + '<div class="all-line">'
|
|
|
+ + '<div class="line"><div class="item">本次扣除:</div><div><span>{{.T.msgCount}}</span>条</div></div>'
|
|
|
+ + '<div class="line"><div class="item">单日限量余额:</div><div><span class="red-font">{{.T.dailyNum}}</span>条</div></div>'
|
|
|
+ + '<div class="line"><div class="item">本日仍可导出:</div><div><span class="red-font">' + ({{.T.dailyNum}}-{{.T.dailyUsed}}) + '</span>条</div></div>'
|
|
|
+ + '</div>'
|
|
|
+ + '</div>').show();
|
|
|
+
|
|
|
+ $(".toPay").css("display", "none");
|
|
|
+ $(".toDeduction").css("display", "").off("click").on("click", dailySubmit);
|
|
|
+ })
|
|
|
+
|
|
|
|
|
|
if (sessionStorage.getItem("order_spec" +{{.T._id}}) != null) {
|
|
|
dataType = sessionStorage.getItem("order_spec" +{{.T._id}});
|
|
|
}
|
|
|
- if (dataType == 1) {
|
|
|
+ if (dataType === 1) {
|
|
|
$(".switch-dataType .bz").addClass("active")
|
|
|
$(".switch-dataType .gj").removeClass("active")
|
|
|
} else {
|
|
@@ -424,7 +459,7 @@
|
|
|
$(".email_check_ok").show();
|
|
|
$(".email_input").val(sessionStorage.getItem("order_email" +{{.T._id}}));
|
|
|
finishEmailVerity = true;
|
|
|
- } else if (email_lastInput != ""&& email_lastInput!=null) {
|
|
|
+ } else if (email_lastInput !== "" && email_lastInput != null) {
|
|
|
$(".email_check_ok").show();
|
|
|
$(".email_input").val(email_lastInput);
|
|
|
finishEmailVerity = true;
|
|
@@ -436,7 +471,7 @@
|
|
|
$(".phone_check_ok").show();
|
|
|
$(".phone_input").val(sessionStorage.getItem("order_phone" +{{.T._id}}));
|
|
|
finishPhoneVerity = true;
|
|
|
- } else if (phone_lastInput != "" && phone_lastInput!=null) {
|
|
|
+ } else if (phone_lastInput !== "" && phone_lastInput != null) {
|
|
|
$(".phone_check_ok").show();
|
|
|
$(".phone_input").val(phone_lastInput);
|
|
|
finishPhoneVerity = true;
|
|
@@ -445,7 +480,7 @@
|
|
|
$(".email_input").on("input propertychange", function () {
|
|
|
var email_input = $(this).val().replace(/\s*/g, "");
|
|
|
if (email_input.indexOf("@") > 0) {
|
|
|
- if (email_input != email_lastInput) {
|
|
|
+ if (email_input !== email_lastInput) {
|
|
|
$(".sendEmail").show();
|
|
|
if (email_lastVerity > 0) {
|
|
|
$(".sendEmail").addClass("verity_send");
|
|
@@ -473,7 +508,6 @@
|
|
|
$(".email_check_ok").hide();
|
|
|
}
|
|
|
}).blur(function () {
|
|
|
- console.log("xxx")
|
|
|
var email = $(".email_input").val().replace(/\s*/g, "");
|
|
|
if (!/\w[-\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\.)+[A-Za-z]{2,14}/.test(email)) {
|
|
|
showEmailErr("邮箱格式不正确");
|
|
@@ -494,7 +528,7 @@
|
|
|
};
|
|
|
$(".phone_input").on("input propertychange", function () {
|
|
|
var phone_input = $(this).val().replace(/\s*/g, "");
|
|
|
- if (phone_input.length == 11) {
|
|
|
+ if (phone_input.length === 11) {
|
|
|
if (Verification.isPhone(phone_input)) {
|
|
|
$.post("/front/dataExport/checkPhoneVerify", {"phone": phone_input}, function (data) {
|
|
|
if (data.success) {
|
|
@@ -517,24 +551,21 @@
|
|
|
$(".phone_err_msg").show();
|
|
|
$(".phone_check_ok").hide();
|
|
|
finishPhoneVerity = false;
|
|
|
- $(".toPay").css("background-color", "#ddd")
|
|
|
- $(".toPay").attr("disabled", "disabled");
|
|
|
+ $(".toPay").css("background-color", "#ddd").attr("disabled", "disabled");
|
|
|
}
|
|
|
} else {
|
|
|
$(".phone_err_msg").hide();
|
|
|
$(".phone_check_ok").hide();
|
|
|
finishPhoneVerity = false;
|
|
|
- $(".toPay").css("background-color", "#ddd")
|
|
|
- $(".toPay").attr("disabled", "disabled");
|
|
|
+ $(".toPay").css("background-color", "#ddd").attr("disabled", "disabled");
|
|
|
}
|
|
|
}).blur(function () {
|
|
|
var phone_input = $(this).val().replace(/\s*/g, "");
|
|
|
- if (phone_input.length != 11) {
|
|
|
+ if (phone_input.length !== 11) {
|
|
|
$(".phone_err_msg").show();
|
|
|
$(".phone_check_ok").hide();
|
|
|
finishPhoneVerity = false;
|
|
|
- $(".toPay").css("background-color", "#ddd")
|
|
|
- $(".toPay").attr("disabled", "disabled");
|
|
|
+ $(".toPay").css("background-color", "#ddd").attr("disabled", "disabled");
|
|
|
}
|
|
|
});
|
|
|
//邮箱验证
|
|
@@ -553,7 +584,7 @@
|
|
|
$.post("/front/dataExport/sendMailVerify", {"email": email}, function (data) {
|
|
|
canVerify = true;
|
|
|
if (data.success) {
|
|
|
- if (data.errCode == 4) {
|
|
|
+ if (data.errCode === 4) {
|
|
|
$(".type-a").text(data.errMsg);
|
|
|
$(".type-a").show();
|
|
|
setTimeout(function () {
|
|
@@ -574,7 +605,7 @@
|
|
|
}
|
|
|
} else {
|
|
|
showEmailErr(data.errMsg)
|
|
|
- if (data.errCode == 2) {
|
|
|
+ if (data.errCode === 2) {
|
|
|
sendemailTimer(data.time);
|
|
|
$(".sendEmail").attr("disabled", "disabled");
|
|
|
$(".email_input").attr("disabled", "disabled");
|
|
@@ -586,7 +617,7 @@
|
|
|
$(".verity_input").bind("input propertychange", function () {
|
|
|
var verity = $(this).val()
|
|
|
var email = $(".email_input").val().replace(/\s*/g, "");
|
|
|
- if (verity.length == 6) {
|
|
|
+ if (verity.length === 6) {
|
|
|
$.post("/front/dataExport/checkMailVerify", {
|
|
|
"emailVerity": verity,
|
|
|
"email": email
|
|
@@ -595,8 +626,7 @@
|
|
|
showEmailErr("");
|
|
|
finishEmailVerity = true;
|
|
|
if (readClause && finishPhoneVerity) {
|
|
|
- $(".toPay").css("background-color", "#2CB7CA");
|
|
|
- $(".toPay").removeAttr("disabled")
|
|
|
+ $(".toPay").css("background-color", "#2CB7CA").removeAttr("disabled");
|
|
|
}
|
|
|
$(".verity_input").css({"margin-left": "15px"});
|
|
|
$(".sendEmail").hide();
|
|
@@ -613,7 +643,7 @@
|
|
|
})
|
|
|
|
|
|
//是否显示最大条数
|
|
|
- if (msgCount == msgMaxCount) {
|
|
|
+ if (msgCount === msgMaxCount) {
|
|
|
$(".infotitle em").text("最大限额" + showCount + "条");
|
|
|
$(".infotitle em").css("display", "");
|
|
|
}
|
|
@@ -624,13 +654,13 @@
|
|
|
if ($(this).attr("class").indexOf("hideBf") > -1) {
|
|
|
readClause = true;
|
|
|
if (finishEmailVerity && finishPhoneVerity) {
|
|
|
- $(".toPay").css("background-color", "#2CB7CA")
|
|
|
- $(".toPay").removeAttr("disabled")
|
|
|
+ $(".toPay").css("background-color", "#2CB7CA").removeAttr("disabled")
|
|
|
}
|
|
|
+ $(".toDeduction").css("background-color", "#2CB7CA").removeAttr("disabled")
|
|
|
} else {
|
|
|
readClause = false;
|
|
|
- $(".toPay").css("background-color", "#ddd")
|
|
|
- $(".toPay").attr("disabled", "disabled");
|
|
|
+ $(".toPay").css("background-color", "#ddd").attr("disabled", "disabled");
|
|
|
+ $(".toDeduction").css("background-color", "#ddd").attr("disabled", "disabled");
|
|
|
}
|
|
|
})
|
|
|
|
|
@@ -639,9 +669,11 @@
|
|
|
$($(this).addClass("active").siblings()).removeClass("active")
|
|
|
// 企业扣除不显示金额计算框
|
|
|
var classString = $(this).attr("class")
|
|
|
- if (classString.indexOf("qy") != -1) {
|
|
|
+ if (classString.indexOf("qy") !== -1) {
|
|
|
+ $('.pc-coupon-w1200').hide()
|
|
|
+ } else if (classString.indexOf("dr") !== -1) {
|
|
|
$('.pc-coupon-w1200').hide()
|
|
|
- } else if (classString.indexOf("gr") != -1) {
|
|
|
+ } else if (classString.indexOf("gr") !== -1) {
|
|
|
$('.pc-coupon-w1200').show()
|
|
|
}
|
|
|
|
|
@@ -652,44 +684,73 @@
|
|
|
}
|
|
|
ChangePayMoney();
|
|
|
})
|
|
|
- //确认支付
|
|
|
- var canpay = true;
|
|
|
- $(".toPay").on("click", function () {
|
|
|
- if ($(this).text() === "确认扣除"){
|
|
|
- $('#loadings').modal('show');
|
|
|
- setTimeout(function(){
|
|
|
- var id = {{.T._id}}
|
|
|
+
|
|
|
+ //企业扣除
|
|
|
+ function entSubmit() {
|
|
|
+ setTimeout(function () {
|
|
|
+ var id = {{.T._id}}
|
|
|
$.ajax({
|
|
|
- url: "/front/entDataExport/"+ id,
|
|
|
+ url: "/front/entDataExport/" + id,
|
|
|
type: "POST",
|
|
|
async: false,
|
|
|
data: {"isFirst": false},
|
|
|
dataType: "json",
|
|
|
success: function (r) {
|
|
|
- if (!r.isEntExport){
|
|
|
- $(".newCounts").text(r.newCount);
|
|
|
- $(".exportNum").text(r.exportNum);
|
|
|
- $(".dataentcount").text(r.current);
|
|
|
- $('#limitNums').modal('show');
|
|
|
+ if (!r.isEntExport) {
|
|
|
+ entTip(1)
|
|
|
return
|
|
|
- }else if (!r.isExport){
|
|
|
- $(".newCounts").text(r.newCount);
|
|
|
- $(".exportNum").text(r.exportNum);
|
|
|
- $(".datalimit").text(r.limitDay);
|
|
|
- $('#limitNum').modal('show');
|
|
|
+ } else if (!r.isExport) {
|
|
|
+ entTip(2)
|
|
|
return
|
|
|
}
|
|
|
+ $('#loadings').modal('show');
|
|
|
exportXlsx()
|
|
|
},
|
|
|
- error: function(){
|
|
|
+ error: function () {
|
|
|
alert("系统响应超时,请刷新后重试");
|
|
|
$('#loadings').modal('hide');
|
|
|
history.back();
|
|
|
}
|
|
|
});
|
|
|
- },500)
|
|
|
+ }, 500)
|
|
|
+ }
|
|
|
+
|
|
|
+ //每日数据包
|
|
|
+ function dailySubmit() {
|
|
|
+ if (!canpay) {
|
|
|
return
|
|
|
}
|
|
|
+ canpay = false
|
|
|
+ $.post("/jypay/dataExport/vipDaily", {"selectId": "{{.T._id}}"}, function (res) {
|
|
|
+ if (res.error_code !== 0) {
|
|
|
+ if (res.error_msg === "余额不足") {
|
|
|
+ dailyTip()
|
|
|
+ } else {
|
|
|
+ showTip("每日限量包提醒", "<p>" + res.error_msg + "</p>")
|
|
|
+ }
|
|
|
+ canpay = true
|
|
|
+ } else {
|
|
|
+ //导出等待
|
|
|
+ $('#loadings').modal('show');
|
|
|
+ waitDailyExport()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ function showTip(title, content) {
|
|
|
+ if (title) {
|
|
|
+ $("#dataexport-tip .modal-title").text(title).show()
|
|
|
+ } else {
|
|
|
+ $("#dataexport-tip .modal-title").hide()
|
|
|
+ }
|
|
|
+ if (content) $("#dataexport-tip .modal-body").html(content)
|
|
|
+ $("#dataexport-tip").modal('show');
|
|
|
+ }
|
|
|
+
|
|
|
+ //支付购买
|
|
|
+ var canpay = true;
|
|
|
+
|
|
|
+ function personalSubmit() {
|
|
|
if (!finishEmailVerity || !readClause || !canpay || !finishPhoneVerity) {
|
|
|
return
|
|
|
}
|
|
@@ -700,47 +761,47 @@
|
|
|
// 优惠券
|
|
|
var couponParam = getCouponParams.getValue()
|
|
|
if (couponParam) {
|
|
|
- param.lotteryId = couponParam.lotteryId
|
|
|
- param.userLotteryId = couponParam.userLotteryId
|
|
|
+ param.lotteryId = couponParam.lotteryId
|
|
|
+ param.userLotteryId = couponParam.userLotteryId
|
|
|
}
|
|
|
|
|
|
- $.post("/jypay/dataExport/createOrder", param, function (data) {
|
|
|
- var source = getParam("source");
|
|
|
- if (data.status === "y") {
|
|
|
- if (source!=null){
|
|
|
- $.ajax({
|
|
|
- type:'GET',
|
|
|
- url:'/front/order/source',
|
|
|
- data:{
|
|
|
- source:source,
|
|
|
- type:"dataexport",
|
|
|
- terminal:"pc",
|
|
|
- ordercode:data.code
|
|
|
+ $.post("/jypay/dataExport/createOrder", param, function (data) {
|
|
|
+ var source = getParam("source");
|
|
|
+ if (data.status === "y") {
|
|
|
+ if (source != null) {
|
|
|
+ $.ajax({
|
|
|
+ type: 'GET',
|
|
|
+ url: '/front/order/source',
|
|
|
+ data: {
|
|
|
+ source: source,
|
|
|
+ type: "dataexport",
|
|
|
+ terminal: "pc",
|
|
|
+ ordercode: data.code
|
|
|
}
|
|
|
- })
|
|
|
- }
|
|
|
- sessionStorage.setItem("order_spec" +{{.T._id}}, dataType);
|
|
|
- sessionStorage.setItem("order_email" +{{.T._id}}, $(".email_input").val().replace(/\s*/g, ""));
|
|
|
- sessionStorage.setItem("order_phone" +{{.T._id}}, $(".phone_input").val().replace(/\s*/g, ""));
|
|
|
+ })
|
|
|
+ }
|
|
|
+ sessionStorage.setItem("order_spec" +{{.T._id}}, dataType);
|
|
|
+ sessionStorage.setItem("order_email" +{{.T._id}}, $(".email_input").val().replace(/\s*/g, ""));
|
|
|
+ sessionStorage.setItem("order_phone" +{{.T._id}}, $(".phone_input").val().replace(/\s*/g, ""));
|
|
|
|
|
|
- history.replaceState({}, '', '/front/dataExport/toOrderDetail/'+data.code);
|
|
|
- window.location.href = "/front/dataexport/orderPay/" + data.code;
|
|
|
- } else {
|
|
|
- canpay = true;
|
|
|
- $.confirm({
|
|
|
- title: '提示',
|
|
|
- content: '生成订单出错,请稍后尝试!',
|
|
|
- buttons: {
|
|
|
- ok: {
|
|
|
- text: '确认',
|
|
|
- btnClass: 'btn-primary-0',
|
|
|
- }
|
|
|
+ history.replaceState({}, '', '/front/dataExport/toOrderDetail/' + data.code);
|
|
|
+ window.location.href = "/front/dataexport/orderPay/" + data.code;
|
|
|
+ } else {
|
|
|
+ canpay = true;
|
|
|
+ $.confirm({
|
|
|
+ title: '提示',
|
|
|
+ content: '生成订单出错,请稍后尝试!',
|
|
|
+ buttons: {
|
|
|
+ ok: {
|
|
|
+ text: '确认',
|
|
|
+ btnClass: 'btn-primary-0',
|
|
|
}
|
|
|
- });
|
|
|
- }
|
|
|
- }, "json");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }, "json");
|
|
|
+ }
|
|
|
|
|
|
- })
|
|
|
//数据浏览
|
|
|
$(".dataPreview").on("click", function () {
|
|
|
if (previewDataTime < 50) {
|
|
@@ -780,10 +841,10 @@
|
|
|
function ChangePayMoney() {
|
|
|
var shouldPay = 0;
|
|
|
var beforePay = 0;
|
|
|
- if (dataType == 1) {
|
|
|
+ if (dataType === 1) {
|
|
|
beforePay = accMul(unitPrice_normal, msgCount)
|
|
|
shouldPay = accMul(beforePay, discount)
|
|
|
- } else if (dataType == 2) {
|
|
|
+ } else if (dataType === 2) {
|
|
|
beforePay = accMul(unitPrice_senior, msgCount)
|
|
|
shouldPay = accMul(beforePay, discount)
|
|
|
}
|
|
@@ -792,9 +853,9 @@
|
|
|
$(".pay_discount").text("¥" + shouldPay);
|
|
|
$(".pay_before").text("¥" + beforePay)
|
|
|
getCouponParams.setValue({
|
|
|
- id: 102,
|
|
|
- price: shouldPay,
|
|
|
- show: true
|
|
|
+ id: 102,
|
|
|
+ price: shouldPay,
|
|
|
+ show: true
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -803,7 +864,7 @@
|
|
|
$(".email_check_ok").css("display", "none");
|
|
|
}
|
|
|
|
|
|
- if (str != "") {
|
|
|
+ if (str !== "") {
|
|
|
if (str.indexOf("5分钟") > 0) {
|
|
|
$(".verity_input").show();
|
|
|
}
|
|
@@ -860,55 +921,76 @@
|
|
|
$.post("/front/entExportAuth/isEntExportSuccess", {}, function (r) {
|
|
|
console.log(r)
|
|
|
if (r.state) {
|
|
|
- var link = document.createElement("a");
|
|
|
- link.href = r.xlsxUrl;
|
|
|
- link.download = "搜索数据导出.xlsx";
|
|
|
- document.body.appendChild(link);
|
|
|
- link.click();
|
|
|
- document.body.removeChild(link);
|
|
|
- setTimeout(function(){
|
|
|
+ var link = document.createElement("a");
|
|
|
+ link.href = r.xlsxUrl;
|
|
|
+ link.download = "搜索数据导出.xlsx";
|
|
|
+ document.body.appendChild(link);
|
|
|
+ link.click();
|
|
|
+ document.body.removeChild(link);
|
|
|
+ setTimeout(function () {
|
|
|
history.back();
|
|
|
- },1000)
|
|
|
+ }, 1000)
|
|
|
}
|
|
|
})
|
|
|
}, 3000);
|
|
|
}
|
|
|
|
|
|
- /******* 获取url参数(正则)********/
|
|
|
+ function waitDailyExport() {
|
|
|
+ if (interval) {
|
|
|
+ clearInterval(interval);
|
|
|
+ }
|
|
|
+ interval = setInterval(function () {
|
|
|
+ $.post("/jypay/dataExport/vipDailySuccess", {"selectId": "{{.T._id}}"}, function (r) {
|
|
|
+ if (r.error_code === 0 && r.data.excelHref) {
|
|
|
+ var link = document.createElement("a");
|
|
|
+ link.href = r.data.excelHref;
|
|
|
+ link.download = "搜索数据导出.xlsx";
|
|
|
+ document.body.appendChild(link);
|
|
|
+ link.click();
|
|
|
+ document.body.removeChild(link);
|
|
|
+ setTimeout(function () {
|
|
|
+ history.back();
|
|
|
+ }, 1000)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }, 3000);
|
|
|
+ }
|
|
|
+
|
|
|
+ /******* 获取url参数(正则)********/
|
|
|
function getParam(name) {
|
|
|
- var search = document.location.search;
|
|
|
- // alert(search);
|
|
|
- var pattern = new RegExp("[?&]" + name + "\=([^&]+)", "g");
|
|
|
- var matcher = pattern.exec(search);
|
|
|
- var items = null;
|
|
|
- if (null != matcher) {
|
|
|
- try {
|
|
|
- items = decodeURIComponent(decodeURIComponent(matcher[1]));
|
|
|
- } catch (e) {
|
|
|
- try {
|
|
|
- items = decodeURIComponent(matcher[1]);
|
|
|
- } catch (e) {
|
|
|
- items = matcher[1];
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- return items;
|
|
|
+ var search = document.location.search;
|
|
|
+ // alert(search);
|
|
|
+ var pattern = new RegExp("[?&]" + name + "\=([^&]+)", "g");
|
|
|
+ var matcher = pattern.exec(search);
|
|
|
+ var items = null;
|
|
|
+ if (null != matcher) {
|
|
|
+ try {
|
|
|
+ items = decodeURIComponent(decodeURIComponent(matcher[1]));
|
|
|
+ } catch (e) {
|
|
|
+ try {
|
|
|
+ items = decodeURIComponent(matcher[1]);
|
|
|
+ } catch (e) {
|
|
|
+ items = matcher[1];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return items;
|
|
|
};
|
|
|
|
|
|
$("body").on("click", function (e) {
|
|
|
- if (e.target.id == "exp") {
|
|
|
+ if (e.target.id === "exp") {
|
|
|
$(".remind").fadeIn();
|
|
|
} else {
|
|
|
$(".remind").fadeOut();
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- $("#backbtn").on("click", function(){
|
|
|
- window.history.back();
|
|
|
- });
|
|
|
- $("#backbtns").on("click", function(){
|
|
|
- window.history.back();
|
|
|
- });
|
|
|
+ $("#llb-tip").on("mouseover", function () {
|
|
|
+ $("#llb-tip-block").css("display", "")
|
|
|
+ }).on("mouseout", function () {
|
|
|
+ $("#llb-tip-block").css("display", "none")
|
|
|
+ })
|
|
|
+
|
|
|
</script>
|
|
|
{{include "/common/pcbottom.html"}}
|
|
|
<!--百度统计end-->
|