|
@@ -11,14 +11,14 @@
|
|
<div class="b-left">
|
|
<div class="b-left">
|
|
<div class="swordfish-page-title">
|
|
<div class="swordfish-page-title">
|
|
<i class="img-circle glyphicon jianyu"></i>订阅设置
|
|
<i class="img-circle glyphicon jianyu"></i>订阅设置
|
|
- <span >继续使用表明你已经同意了<span><a>剑鱼用户服务协议</a>
|
|
|
|
|
|
+ <!--<span >继续使用表明你已经同意了<span><a onclick="$('#yhxyModal').modal('show')">剑鱼用户服务协议</a>-->
|
|
<span style="float:right;width:190px">
|
|
<span style="float:right;width:190px">
|
|
<a id="ckys">查看演示 </a>
|
|
<a id="ckys">查看演示 </a>
|
|
- <a id="sfbz">收费标准</a>
|
|
|
|
|
|
+ <a id="sfbz" onclick="$('#sfbzModal').modal('show')">收费标准</a>
|
|
<a id="yjfk">去提意见</a>
|
|
<a id="yjfk">去提意见</a>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
- <div id="swordfish-tishi" class="swordfish-explain">
|
|
|
|
|
|
+ <div class="swordfish-explain">
|
|
“剑鱼”是企明星的特色产品,它借助内置的互联网搜索引擎、大数据平台和自然语言分析系统,
|
|
“剑鱼”是企明星的特色产品,它借助内置的互联网搜索引擎、大数据平台和自然语言分析系统,
|
|
为企业从互联网上自动抓取、分析、筛选并推送富有价值的信息情报,
|
|
为企业从互联网上自动抓取、分析、筛选并推送富有价值的信息情报,
|
|
比如本企业或其他企业的失信行为信息、受到行政处罚的信息、招标公告、中标公告等等。
|
|
比如本企业或其他企业的失信行为信息、受到行政处罚的信息、招标公告、中标公告等等。
|
|
@@ -30,7 +30,15 @@
|
|
<img class="swordfish-uncheck" src="/images/swordfish/checkbox.png">
|
|
<img class="swordfish-uncheck" src="/images/swordfish/checkbox.png">
|
|
<img class="swordfish-checked" src="/images/swordfish/checkbox-a.png">
|
|
<img class="swordfish-checked" src="/images/swordfish/checkbox-a.png">
|
|
招标公告
|
|
招标公告
|
|
- <span id="tender-panel-info">本栏目推送服务期还剩3天。想要服务不间断,请确保积分充足。 <a href="/member/credit/myCredit">去做任务赚积分</a></span>
|
|
|
|
|
|
+ <span>
|
|
|
|
+ {{if .T.msgset}}
|
|
|
|
+ {{if .T.msgset.tender}}
|
|
|
|
+ {{if .T.msgset.tender.day}}
|
|
|
|
+ 本栏目推送服务期还剩{{.T.msgset.tender.day}}天。想要服务不间断,请确保积分充足。 <a href="/member/credit/myCredit">去做任务赚积分</a>
|
|
|
|
+ {{end}}
|
|
|
|
+ {{end}}
|
|
|
|
+ {{end}}
|
|
|
|
+ </span>
|
|
</div>
|
|
</div>
|
|
<div class="swordfish-panel-c">
|
|
<div class="swordfish-panel-c">
|
|
<div>
|
|
<div>
|
|
@@ -56,7 +64,15 @@
|
|
<img class="swordfish-uncheck" src="/images/swordfish/checkbox.png">
|
|
<img class="swordfish-uncheck" src="/images/swordfish/checkbox.png">
|
|
<img class="swordfish-checked" src="/images/swordfish/checkbox-a.png">
|
|
<img class="swordfish-checked" src="/images/swordfish/checkbox-a.png">
|
|
中标公告
|
|
中标公告
|
|
- <span id="bid-panel-info">本栏目推送服务期还剩3天。想要服务不间断,请确保积分充足。 <a href="/member/credit/myCredit">去做任务赚积分</a></span>
|
|
|
|
|
|
+ <span id="bid-panel-info">
|
|
|
|
+ {{if .T.msgset}}
|
|
|
|
+ {{if .T.msgset.bid}}
|
|
|
|
+ {{if .T.msgset.bid.day}}
|
|
|
|
+ 本栏目推送服务期还剩{{.T.msgset.bid.day}}天。想要服务不间断,请确保积分充足。 <a href="/member/credit/myCredit">去做任务赚积分</a>
|
|
|
|
+ {{end}}
|
|
|
|
+ {{end}}
|
|
|
|
+ {{end}}
|
|
|
|
+ </span>
|
|
</div>
|
|
</div>
|
|
<div class="swordfish-panel-c">
|
|
<div class="swordfish-panel-c">
|
|
<div>
|
|
<div>
|
|
@@ -234,10 +250,75 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+<!-- tishiModal -->
|
|
|
|
+<div class="modal fade b-modal" id="tishiModal" tabindex="-1" role="dialog" aria-labelledby="tishiModalLabel">
|
|
|
|
+ <div class="modal-dialog" role="document">
|
|
|
|
+ <div class="modal-content">
|
|
|
|
+ <div class="modal-header-jy">
|
|
|
|
+ <span data-dismiss="modal" aria-label="Close" class="close glyphicon guanbi1"></span>
|
|
|
|
+ <span class="modal-title" id="vipcreditModalLabel">提示信息</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="swordfish-explain2">
|
|
|
|
+ <div id="swordfish-tishi"></div>
|
|
|
|
+ <div id="btn-tijiao" style="text-align:center;padding:10px 0;"></div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
|
|
+
|
|
|
|
+<!-- 用户协议 -->
|
|
|
|
+<div class="modal fade b-modal" id="yhxyModal" tabindex="-1" role="dialog" aria-labelledby="yhxyModalLabel">
|
|
|
|
+ <div class="modal-dialog" role="document">
|
|
|
|
+ <div class="modal-content">
|
|
|
|
+ <div class="modal-header-jy">
|
|
|
|
+ <span data-dismiss="modal" aria-label="Close" class="close glyphicon guanbi1"></span>
|
|
|
|
+ <span class="modal-title" id="yhxyModalLabel">用户协议</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div style="background-color: #FCF8E3;padding:10px;line-height:25px">
|
|
|
|
+ <div>
|
|
|
|
+ <p style="margin-left:5px">剑鱼用户协议:</p>
|
|
|
|
+ <p style="margin-left:15px">
|
|
|
|
+
|
|
|
|
+ </p>
|
|
|
|
+ </div>
|
|
|
|
+ <div style="text-align:center;padding:10px 0;">
|
|
|
|
+ <button class='btn btn-primary' onclick="$('#yhxyModal').modal('hide')">确定</button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
|
|
+
|
|
|
|
+<!-- 收费标准 -->
|
|
|
|
+<div class="modal fade b-modal" id="sfbzModal" tabindex="-1" role="dialog" aria-labelledby="sfbzModalLabel">
|
|
|
|
+ <div class="modal-dialog" role="document">
|
|
|
|
+ <div class="modal-content">
|
|
|
|
+ <div class="modal-header-jy">
|
|
|
|
+ <span data-dismiss="modal" aria-label="Close" class="close glyphicon guanbi1"></span>
|
|
|
|
+ <span class="modal-title" id="sfbzModalLabel">用户协议</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div style="background-color: #FCF8E3;padding:10px 20px;line-height:25px">
|
|
|
|
+ <div>
|
|
|
|
+ <p style="margin-left:5px">剑鱼收费标准:</p>
|
|
|
|
+ <p style="margin-left:35px">
|
|
|
|
+ 每个栏目、每月1000积分。
|
|
|
|
+ 积分按月扣除,到期后默认自动扣除下月积分,积分不足则停止服务。如果您不希望下月继续服务,可提前将服务关闭。
|
|
|
|
+ </p>
|
|
|
|
+ </div>
|
|
|
|
+ <div style="text-align:center;padding:10px 0;">
|
|
|
|
+ <button class='btn btn-primary' onclick="$('#sfbzModal').modal('hide')">确定</button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
<!-- 底部 -->
|
|
<!-- 底部 -->
|
|
{{include "/common/bottom.html"}}
|
|
{{include "/common/bottom.html"}}
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
-
|
|
|
|
|
|
+//Array.prototype.indexOf = function (val) {for (var i = 0; i < this.length; i++) {if (this[i] == val) {return i;}} return -1;};
|
|
|
|
+//Array.prototype.removevalue = function (val){var index=this.indexOf(val);if(index > -1){this.splice(index, 1);}};
|
|
|
|
+var oprarr = new Array();
|
|
$(function(){
|
|
$(function(){
|
|
var selectKeyword = function(type,keyword,i_switchstatus){
|
|
var selectKeyword = function(type,keyword,i_switchstatus){
|
|
if(keyword == "" || typeof(keyword) == "undefined"){
|
|
if(keyword == "" || typeof(keyword) == "undefined"){
|
|
@@ -306,20 +387,62 @@ $(function(){
|
|
$("#bid-scope-dialog").find("li .btn").click(function(){
|
|
$("#bid-scope-dialog").find("li .btn").click(function(){
|
|
afterSelectScope("bid",$(this));
|
|
afterSelectScope("bid",$(this));
|
|
});
|
|
});
|
|
|
|
+ var tender_i_status=0;
|
|
|
|
+ var bid_i_status=0;
|
|
|
|
+ var i_credit={{session "i_credit"}}
|
|
|
|
+ if(typeof(msgset.tender) != "undefined"&&typeof(msgset.tender.i_status) != "undefined"&&msgset.tender.i_status==1){
|
|
|
|
+ tender_i_status=1;
|
|
|
|
+ }
|
|
|
|
+ if(typeof(msgset.bid) != "undefined"&&typeof(msgset.bid.i_status) != "undefined"&&msgset.bid.i_status==1){
|
|
|
|
+ bid_i_status=1;
|
|
|
|
+ }
|
|
$(".swordfish-uncheck").click(function(){
|
|
$(".swordfish-uncheck").click(function(){
|
|
- $(this).next().show();
|
|
|
|
|
|
+ var type=$(this).parent().parent().attr("id");
|
|
|
|
+ //如果新增功能扣积分
|
|
|
|
+ if(type=="tender"&&tender_i_status==0){
|
|
|
|
+ oprarr.push("types=tender");
|
|
|
|
+ }
|
|
|
|
+ if(type=="bid"&&bid_i_status==0){
|
|
|
|
+ oprarr.push("types=bid");
|
|
|
|
+ }
|
|
|
|
+ var typeinfo="";
|
|
|
|
+ if(type=="tender"){
|
|
|
|
+ typeinfo="招标公告";
|
|
|
|
+ }else{
|
|
|
|
+ typeinfo="中标公告 ";
|
|
|
|
+ }
|
|
|
|
+ if(oprarr.length>0){
|
|
|
|
+ var str1="您选择了<span style='color:red'>"+oprarr.length+"</span>个信息栏目(<span style='color:red'>"+typeinfo+"</span>),确认后系统将每月扣除<span style='color:red'>"+oprarr.length*1000+"</span>积分,您目前的积分余额<span style='color:red'>("+i_credit+")</span>不足,<a href='/member/credit/myCredit' style='color:#37C6DA'>去做任务赚积分</a>";
|
|
|
|
+ str2="<button class='btn btn-primary' onclick='swordfishpay(1)'>取消</button>";
|
|
|
|
+ if((i_credit-oprarr.length*1000)>0){
|
|
|
|
+ str1="您选择了<span style='color:red'>"+oprarr.length+"</span>个信息栏目(<span style='color:red'>"+typeinfo+"</span>),确认后系统将每月扣除<span style='color:red'>"+oprarr.length*1000+"</span>积分,您目前的积分余额是<span style='color:red'>"+i_credit+"</span>积分,扣除后将剩余<span style='color:red'>"+(i_credit-oprarr.length*1000)+"</span>积分。";
|
|
|
|
+ str2="<button class='btn btn-primary' onclick='swordfishpay(0)'>提交</button>"
|
|
|
|
+ +" <button class='btn btn-primary' onclick='swordfishpay(1)'>取消</button>";
|
|
|
|
+ }
|
|
|
|
+ $("#swordfish-tishi").html(str1);
|
|
|
|
+ $("#btn-tijiao").html(str2);
|
|
|
|
+ $("#tishiModal").modal("show");
|
|
|
|
+ }
|
|
$(this).hide();
|
|
$(this).hide();
|
|
autoChecked($(this).parents(".swordfish-panel").attr("id"),true,1);
|
|
autoChecked($(this).parents(".swordfish-panel").attr("id"),true,1);
|
|
});
|
|
});
|
|
- var arrinfo=["您选择了?个信息栏目,确认后系统将每月扣除?积分,您目前的积分余额是?积分,扣除后将剩余?积分。",
|
|
|
|
- "ss"];
|
|
|
|
$(".swordfish-checked").click(function(){
|
|
$(".swordfish-checked").click(function(){
|
|
$(this).parents(".swordfish-panel").removeClass("swordfish-panel-a");
|
|
$(this).parents(".swordfish-panel").removeClass("swordfish-panel-a");
|
|
$(this).prev().show();
|
|
$(this).prev().show();
|
|
$(this).hide();
|
|
$(this).hide();
|
|
- $(this).next().css('display','none');
|
|
|
|
- //ajaxReq();
|
|
|
|
|
|
+ ajaxReq();
|
|
});
|
|
});
|
|
|
|
+ //针对页面异常关闭
|
|
|
|
+ if(typeof(msgset.tender) != "undefined"&&typeof(msgset.tender.i_switchstatus) != "undefined"&&msgset.tender.i_switchstatus==1){
|
|
|
|
+ if(tender_i_status==0){
|
|
|
|
+ $("#tender").children(".swordfish-panel-t").children(".swordfish-uncheck").click();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(typeof(msgset.bid) != "undefined"&&typeof(msgset.bid.i_switchstatus) != "undefined"&&msgset.bid.i_switchstatus==1){
|
|
|
|
+ if(bid_i_status==0){
|
|
|
|
+ $("#bid").children(".swordfish-panel-t").children(".swordfish-uncheck").click();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
});
|
|
});
|
|
function afterSelectScope(type,btn){
|
|
function afterSelectScope(type,btn){
|
|
var text = btn.text();
|
|
var text = btn.text();
|
|
@@ -362,7 +485,6 @@ function autoChecked(type,flag,i_switchstatus){
|
|
obj.find(".swordfish-checked").show();
|
|
obj.find(".swordfish-checked").show();
|
|
obj.find(".swordfish-checked").next().css('display','');
|
|
obj.find(".swordfish-checked").next().css('display','');
|
|
}
|
|
}
|
|
-
|
|
|
|
if(obj.find(".swordfish-keywords").children(".swordfish-keyword").length == 0){
|
|
if(obj.find(".swordfish-keywords").children(".swordfish-keyword").length == 0){
|
|
appendKeyWord(type,"",false);
|
|
appendKeyWord(type,"",false);
|
|
}
|
|
}
|
|
@@ -401,17 +523,14 @@ function appendKeyWord(type,value,isFocus){
|
|
obj.find(".swordfish-keyword").each(function(i){
|
|
obj.find(".swordfish-keyword").each(function(i){
|
|
$(this).children("b").children("font").text(i+1);
|
|
$(this).children("b").children("font").text(i+1);
|
|
});
|
|
});
|
|
- //autoChecked(type,false,i_switchstatus);
|
|
|
|
ajaxReq();
|
|
ajaxReq();
|
|
});
|
|
});
|
|
node.children("[type='text']").blur(function(){
|
|
node.children("[type='text']").blur(function(){
|
|
- //autoChecked(type,false,i_switchstatus);
|
|
|
|
ajaxReq();
|
|
ajaxReq();
|
|
});
|
|
});
|
|
if(isFocus){
|
|
if(isFocus){
|
|
node.children("[type='text']").focus()
|
|
node.children("[type='text']").focus()
|
|
}
|
|
}
|
|
- //autoChecked(type,false,i_switchstatus);
|
|
|
|
}
|
|
}
|
|
function ajaxReq(){
|
|
function ajaxReq(){
|
|
var thisClass = this;
|
|
var thisClass = this;
|
|
@@ -480,6 +599,43 @@ function ajaxReq(){
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+//扣积分
|
|
|
|
+function swordfishpay(oprtype){
|
|
|
|
+ $("#tishiModal").modal("hide");
|
|
|
|
+ $.ajax({
|
|
|
|
+ dataType:"json",
|
|
|
|
+ url:"/member/credit/swordfishpay",
|
|
|
|
+ data:oprarr.join("&")+"&no="+oprtype,
|
|
|
|
+ type:"POST",
|
|
|
|
+ async:false,
|
|
|
|
+ success:function(msg){
|
|
|
|
+ if(msg){
|
|
|
|
+ if(msg.flag){
|
|
|
|
+ //有session
|
|
|
|
+ if(msg.oprstatus){
|
|
|
|
+ //扣积分操作成功
|
|
|
|
+ $("#tishiModal").hide()
|
|
|
|
+ }else{
|
|
|
|
+ //扣积分操作无效
|
|
|
|
+ alert("操作无效,请重新进入页剑鱼页面后操作")
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ //无session
|
|
|
|
+ alert("请重新进入页剑鱼页面后操作")
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ error:function(x,st,err){
|
|
|
|
+ alert("请稍后再试"+st)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ window.location.reload()
|
|
|
|
+}
|
|
|
|
+//弹窗关闭,取消
|
|
|
|
+$('#tishiModal').on('hidden.bs.modal', function () {
|
|
|
|
+ swordfishpay(1);
|
|
|
|
+})
|
|
</script>
|
|
</script>
|
|
</body>
|
|
</body>
|
|
</html>
|
|
</html>
|