|
@@ -290,7 +290,7 @@ function isPower () {
|
|
|
}
|
|
|
isPower()
|
|
|
var areas = {{.T.area}}!=null?{{.T.area}}:"";
|
|
|
-var selectPublishtime = {{.T.publishtime}}?{{.T.publishtime}}:"thisyear";
|
|
|
+var selectPublishtime = {{.T.publishtime}};
|
|
|
var selectTimeslot = {{.T.timeslot}}!=null?{{.T.timeslot}}:"";
|
|
|
var toptype = {{.T.toptype}}!=null?{{.T.toptype}}:"";
|
|
|
var subtype = {{.T.subtype}}!=null?{{.T.subtype}}:"";
|
|
@@ -410,6 +410,13 @@ $(function(){
|
|
|
// $("#newsclass").show();
|
|
|
// $("#newsnow").hide();
|
|
|
nbflag = true;
|
|
|
+ // console.log("是否是付费用户:" ,vipState, "免费用户订阅管理是否订阅区域:",searchInnerVue.freeSubArea);
|
|
|
+ // 未输入关键词或免费用户输入关键词但订阅管理-订阅区域为空时 不能订阅
|
|
|
+ if (!vipState && !searchInnerVue.freeSubArea) {
|
|
|
+ $(".wx-inner-bottom").html('微信扫一扫<br>随时随地掌握招标信息');
|
|
|
+ $(".wx-inner-title").html('扫码关注剑鱼标讯');
|
|
|
+ return
|
|
|
+ }
|
|
|
$(".wx-inner-bottom").html('微信扫一扫,及时获取<span class="side-bar-bottom-font">“'+keys+'”</span>相关招标信息');
|
|
|
$(".wx-inner-title").html('扫码订阅关键词');
|
|
|
if(list == null || list.length == 0){
|
|
@@ -505,14 +512,22 @@ $(function(){
|
|
|
beforeSubmit();
|
|
|
})
|
|
|
//
|
|
|
- if(selectPublishtime != ""){
|
|
|
+ if(selectPublishtime){
|
|
|
$("#timerAll").removeClass("active");
|
|
|
$(".timer [data-value='"+selectPublishtime+"']").addClass("active");
|
|
|
if(selectPublishtime.indexOf("_") > -1){
|
|
|
$(".timerInput").addClass("active");
|
|
|
}
|
|
|
} else {
|
|
|
- $(".timer [data-value='thisyear']").addClass("active").siblings().removeClass('active');
|
|
|
+ if (vipState) {
|
|
|
+ // 付费用户默认选择最近5年
|
|
|
+ selectPublishtime = 'fiveYear'
|
|
|
+ $(".timer [data-value='fiveYear']").addClass("active").siblings().removeClass('active');
|
|
|
+ } else {
|
|
|
+ // 免费用户默认选择最近1年
|
|
|
+ selectPublishtime = 'thisyear'
|
|
|
+ $(".timer [data-value='thisyear']").addClass("active").siblings().removeClass('active');
|
|
|
+ }
|
|
|
}
|
|
|
if(selectTimeslot != "" && selectTimeslot.indexOf("_") > -1){
|
|
|
$("#starttime").css({"border-color":"#2cb7ca"});
|
|
@@ -981,7 +996,7 @@ var IframeOnClick = {
|
|
|
<div class="w searchHeader-container">
|
|
|
<!--搜索-->
|
|
|
<div class="searchInput clearfix">
|
|
|
- <form action="/jylab/supsearch/index.html?publishtime=thisyear" method="post" id="zbSeatchT" class="clearfix" onsubmit="return beforeSubmit('F')">
|
|
|
+ <form action="/jylab/supsearch/index.html" method="post" id="zbSeatchT" class="clearfix" onsubmit="return beforeSubmit('F')">
|
|
|
<input class="searchname" autocomplete="off" type="search" id="searchinput" value="{{.T.keywords}}" name="keywords" placeholder="请输入您想要查询的招标信息,多个关键词用空格隔开" />
|
|
|
<img src="{{Msg "seo" "cdn"}}/images/pc_20.png" id="t-clear" class="j-clearicon" style="display: none;">
|
|
|
<input type="button" value="搜索" onclick="zbSeatch('zbSeatchT')"/>
|
|
@@ -1134,7 +1149,11 @@ var IframeOnClick = {
|
|
|
<li id="timerAll" class="active" data-value="" style="display: none;">全部</li>
|
|
|
<li data-value="lately-7">最近7天</li>
|
|
|
<li data-value="lately-30">最近30天</li>
|
|
|
- <li data-value="thisyear">最近一年</li>
|
|
|
+ <li data-value="thisyear">最近1年</li>
|
|
|
+ <li data-value="threeYear" data-auth onClick="if(!vipState) return openVipDialog();">最近3年</li>
|
|
|
+ <img class="icon-vip" src="/images/biddingSearch/VIP.png" alt="">
|
|
|
+ <li data-value="fiveYear" data-auth onClick="if(!vipState) return openVipDialog();">最近5年</li>
|
|
|
+ <img class="icon-vip" src="/images/biddingSearch/VIP.png" alt="">
|
|
|
</ul>
|
|
|
</div>
|
|
|
<div class="timerInput fl">
|
|
@@ -1508,6 +1527,33 @@ var IframeOnClick = {
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <!-- 订阅弹框 -->
|
|
|
+ <el-dialog custom-class="sub-key-dialog" top="30vh" title="订阅搜索词" :close-on-click-modal="false" :close-on-press-escape="false" width="380" :center="true" :show-close="false" :visible.sync="subDialog">
|
|
|
+ <div class="sub-tips">
|
|
|
+ 剑鱼标讯推荐您将搜索词<span style="color: #2cb7ca;">"${sub.keywords}"</span>,添加到您的订阅中,以保证及时接收项目信息。
|
|
|
+ </div>
|
|
|
+ <div class="sub-region" v-if="sub.showArea">
|
|
|
+ <span>*订阅区域:</span>
|
|
|
+ <el-select v-model="sub.region" placeholder="请选择" style="width: 230px;">
|
|
|
+ <el-option v-for="item in regionData" :key="item" :label="item" :value="item"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <div style="margin-top: 33px;">
|
|
|
+ <el-checkbox v-model="sub.remindChecd">后续不再提醒</el-checkbox>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <button type="button" :disabled="subDisabled" class="sub-footer-btn sub-btn-confirm" @click="oneKeySub(true)">一键订阅</button>
|
|
|
+ <button class="sub-footer-btn sub-btn-cancel" @click="oneKeySub(false)">暂不订阅</button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+ <!-- 一键订阅关键词成功弹框 -->
|
|
|
+ <el-dialog custom-class="sub-success-dialog" top="30vh" :close-on-click-modal="false" :close-on-press-escape="false" width="335" :center="true" :visible.sync="successDialog">
|
|
|
+ <img class="ss-header" src='{{Msg "seo" "cdn"}}/images/subkey-success.png' alt="">
|
|
|
+ <div class="ss-code">
|
|
|
+ <img id="subkeyImg" src="/front/share/10"/>
|
|
|
+ </div>
|
|
|
+ <p class="ss-help">微信扫码关注剑鱼标讯<br>使用订阅功能</p>
|
|
|
+ </el-dialog>
|
|
|
<!--广告-->
|
|
|
<div onclick="adv_statistics(this)" adv_name="PC搜索列表页-底部" class="adv-pcsearch-bottom" id="A1" style="cursor:default;">
|
|
|
<script>
|
|
@@ -1708,8 +1754,6 @@ $(function(){
|
|
|
var listLen = $('.buyclass-content .buy-list:not(.buy-list-parent)').length;
|
|
|
var curListLen = $(this).parent('.clearfix').find('.buy-list:not(.buy-list-parent)').length;
|
|
|
var curActiveLen = $(this).parent('.clearfix').find(".active").length;
|
|
|
- // console.log(curListLen,curActiveLen)
|
|
|
- // console.log(listLen, activeLen)
|
|
|
if (activeLen === listLen || activeLen === 0) {
|
|
|
$('.buyclass-content .buy-list').removeClass('active')
|
|
|
$('.buyclass-all').addClass('active')
|
|
@@ -1730,7 +1774,6 @@ $(function(){
|
|
|
}
|
|
|
var activeLen = $('.buyclass-content .buy-list-parent').filter(".active").length;
|
|
|
var listLen = $('.buyclass-content .buy-list-parent').length;
|
|
|
- // console.log(activeLen,listLen)
|
|
|
if (activeLen === listLen || activeLen === 0) {
|
|
|
$('.buyclass-content .buy-list').removeClass('active')
|
|
|
$('.buyclass-all').addClass('active')
|
|
@@ -1876,6 +1919,7 @@ $(function(){
|
|
|
var hasVipIcon = $(this).siblings().hasClass('icon-vip'); // 有无点击付费的搜索范围
|
|
|
// 如果是老用户(版本更新前注册的用户)可以使用中标企业搜索范围
|
|
|
// 不是付费用户引导去付费
|
|
|
+ // console.log(vipState, hasVipIcon);
|
|
|
if (!vipState && hasVipIcon) {
|
|
|
if($(this).text().indexOf('中标企业')> -1 && isOld) {
|
|
|
var typeArr = selectType ? selectType.split(',') : []
|
|
@@ -2184,7 +2228,20 @@ document.querySelector(".searchControl").oncopy = function(){
|
|
|
entniche: false,
|
|
|
member: false,
|
|
|
vip: 0
|
|
|
- }
|
|
|
+ },
|
|
|
+ subDialog: false,
|
|
|
+ successDialog: false,
|
|
|
+ sub: {
|
|
|
+ showArea: false,
|
|
|
+ keywords: $("#zbSeatchT [name='keywords']").val(),
|
|
|
+ region: '',
|
|
|
+ remindChecd: false
|
|
|
+ },
|
|
|
+ regionData: [
|
|
|
+ '安徽','澳门','北京','重庆','福建','广东','广西','贵州','甘肃','河北','湖北','黑龙江','海南','河南','湖南','吉林','江苏','江西','辽宁','内蒙古','宁夏',
|
|
|
+ '青海','山西','陕西','上海','山东','四川','天津','台湾','西藏','新疆','香港','云南','浙江'
|
|
|
+ ],
|
|
|
+ freeSubArea: false
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -2193,6 +2250,13 @@ document.querySelector(".searchControl").oncopy = function(){
|
|
|
var member = this.powerInfo.member
|
|
|
var vip = this.powerInfo.vip
|
|
|
return entniche || member || vip > 0
|
|
|
+ },
|
|
|
+ subDisabled: function () {
|
|
|
+ if (this.sub.showArea) {
|
|
|
+ return !this.sub.region
|
|
|
+ } else {
|
|
|
+ return false
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
created: function () {
|
|
@@ -2200,6 +2264,27 @@ document.querySelector(".searchControl").oncopy = function(){
|
|
|
},
|
|
|
mounted: function () {
|
|
|
console.log('总页码:' + totalPage + ',当前页:' + currentPage + ',一页数量:' + pageSize + ',总条数:' + totalCount)
|
|
|
+ var isClickSearch = sessionStorage.getItem('is-click-search')
|
|
|
+ // console.log('是否手动进行的搜索', isClickSearch);
|
|
|
+ // 当前搜索有关键词且返回的有搜索结果且执行的是搜索点击事件时
|
|
|
+ if(totalCount > 0 && isClickSearch) {
|
|
|
+ var _this = this
|
|
|
+ $.ajax({
|
|
|
+ type:'get',
|
|
|
+ url:'/bigmember/subscribe/freeUser/searchSubscribe',
|
|
|
+ success: function(r){
|
|
|
+ if (r.data) {
|
|
|
+ _this.sub.showArea = r.data.areaSet
|
|
|
+ _this.freeSubArea = r.data.freeArea
|
|
|
+ if (r.data.prompt) {
|
|
|
+ _this.subDialog = true
|
|
|
+ } else {
|
|
|
+ _this.subDialog = false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
getPower: function () {
|
|
@@ -2261,6 +2346,38 @@ document.querySelector(".searchControl").oncopy = function(){
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ },
|
|
|
+ // 一键订阅
|
|
|
+ oneKeySub: function(type) {
|
|
|
+ // console.log(typeof type);
|
|
|
+ var _this = this
|
|
|
+ var data = type ? {
|
|
|
+ isNoSubscribe: 'Y', // 一键订阅
|
|
|
+ subsequentPrompt: _this.remindChecd ? 'Y' : 'N',
|
|
|
+ key: $("#zbSeatchT [name='keywords']").val().trim(),
|
|
|
+ area: _this.sub.region
|
|
|
+ } : {
|
|
|
+ isNoSubscribe: 'N', // 暂不订阅
|
|
|
+ subsequentPrompt: _this.remindChecd ? 'Y' : 'N'
|
|
|
+ }
|
|
|
+ $.ajax({
|
|
|
+ type:'post',
|
|
|
+ url: '/bigmember/subscribe/freeUser/subscribeSearch',
|
|
|
+ data: data,
|
|
|
+ success: function(r){
|
|
|
+ if (r.data && r.data.status) {
|
|
|
+ if (type) { // 选择的一键订阅
|
|
|
+ _this.subDialog = false
|
|
|
+ _this.successDialog = true
|
|
|
+ } else { // 选择的暂不订阅
|
|
|
+ _this.subDialog = false
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ // console.log('一键订阅失败', r.error_code);
|
|
|
+ _this.subDialog = false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
})
|