|
@@ -2,214 +2,22 @@
|
|
|
<head>
|
|
|
{{include "/common/meta.html"}}
|
|
|
<title>标讯订阅</title>
|
|
|
- <link rel="stylesheet" href="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/local/layout.css" />
|
|
|
- <link rel="stylesheet" href="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/css/subscribe.css?v={{Msg "seo" "version"}}"/>
|
|
|
+ <link rel="stylesheet" href="{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/history-push/local/layout.css" />
|
|
|
+ <link rel="stylesheet" href="{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/history-push/css/subscribe.css?v={{Msg "seo" "version"}}"/>
|
|
|
<script src="https://cdn-common.jianyu360.com/cdn/lib/jquery/3.6.0/jquery.min.js"></script>
|
|
|
{{include "/common/js.html"}}
|
|
|
- <script src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/local/dropload.js"></script>
|
|
|
+ <script src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/history-push/local/dropload.js"></script>
|
|
|
<!-- 2.8.5 -->
|
|
|
- <script src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/vipsubscribe/js/common.js?v={{Msg "seo" "version"}}"></script>
|
|
|
- <link rel="stylesheet" href="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/vipsubscribe/css/weui.min.css?v={{Msg "seo" "version"}}"/>
|
|
|
- <link rel="stylesheet" href="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/vipsubscribe/iconfont/iconfont.css?v={{Msg "seo" "version"}}"/>
|
|
|
- <link href="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/css/p13.css?v={{Msg "seo" "version"}}" rel="stylesheet">
|
|
|
+ <script src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/history-push/js/common.js?v={{Msg "seo" "version"}}"></script>
|
|
|
+ <link rel="stylesheet" href="{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/history-push/css/weui.min.css?v={{Msg "seo" "version"}}"/>
|
|
|
+ <link rel="stylesheet" href="{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/history-push/iconfont/iconfont.css?v={{Msg "seo" "version"}}"/>
|
|
|
+ <link href="{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/history-push/css/p13.css?v={{Msg "seo" "version"}}" rel="stylesheet">
|
|
|
<link rel="stylesheet" href=//cdn-common.jianyu360.com/cdn/lib/reset-css/5.0.1/reset.min.css />
|
|
|
<link rel="stylesheet" href=//cdn-common.jianyu360.com/cdn/lib/vant/2.12.24/lib/index.css />
|
|
|
<link rel="stylesheet" href=//cdn-common.jianyu360.com/cdn/lib/vant/2.12.24/lib/icon/local.css />
|
|
|
<link rel="stylesheet" href='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/collection/css/index.css?v={{Msg "seo" "version"}}'/>
|
|
|
- <link rel="stylesheet" href='{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/big-member/css/public.css?v={{Msg "seo" "version"}}'/>
|
|
|
- <style>
|
|
|
- .j-popup.van-popup--bottom .j-main {
|
|
|
- height: 100%;
|
|
|
- }
|
|
|
- .merge-dialog,
|
|
|
- .weui-dialog,
|
|
|
- .weui-mask{
|
|
|
- z-index: 99999;
|
|
|
- }
|
|
|
-
|
|
|
- .van-dialog,
|
|
|
- .j-popup,
|
|
|
- .j-overlay {
|
|
|
- z-index: 99999!important;
|
|
|
- }
|
|
|
-
|
|
|
- .jymobile-setting-dialog .weui-dialog__hd{
|
|
|
- text-align: center !important;
|
|
|
- }
|
|
|
- .jymobile-setting-dialog .weui-dialog__bd{
|
|
|
- padding: .37rem .1rem .38rem !important;
|
|
|
- color: #1D1D1D !important;
|
|
|
- font-size: .32rem !important;
|
|
|
- text-align: center !important;
|
|
|
- }
|
|
|
- .jymobile-setting-dialog .weui-dialog__ft{
|
|
|
- display: flex !important;
|
|
|
- padding: 0 0 .38rem 0 !important;
|
|
|
- text-align: center !important;
|
|
|
- }
|
|
|
- .jymobile-setting-dialog .weui-dialog__ft .weui-dialog__btn_default{
|
|
|
- margin-right: .3rem !important;
|
|
|
- }
|
|
|
- .jymobile-setting-dialog .weui-dialog__ft>a {
|
|
|
- text-decoration: none !important;
|
|
|
- }
|
|
|
- .app-layout-header{
|
|
|
- padding-left: 16px;
|
|
|
- padding-right: 16px;
|
|
|
- padding-top: 20px;
|
|
|
- }
|
|
|
- .app-layout-header .switch-vip:before, .app-layout-header .only-vip:before {
|
|
|
- height: 18px;
|
|
|
- }
|
|
|
- .app-layout-header .switch-vip:before, .app-layout-header .only-member::after {
|
|
|
- content: '';
|
|
|
- display: flex;
|
|
|
- margin-left: 4px;
|
|
|
- width: 12px;
|
|
|
- height: 12px;
|
|
|
- background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACSSURBVHgBzZO7CYAwFEWvQXCNWOoWDiFY27mUDmDjBo5gZ2vWEBElASGGFyGfwlOFGzgkeTdAJBIqXIaGZ9c5y3XZjrm+t/b1RuXph4SDhsyZo8QKs0gEHGGUJNmPCo4okSkpuknAEf2NvCUSNTVzlD4wROJ/ohSBPNUJOpHeP2+RWWJvkVnikKtxaCUOEb1+wg1trU+oaaKLhgAAAABJRU5ErkJggg==) no-repeat;
|
|
|
- background-size: contain;
|
|
|
- }
|
|
|
- .app-layout-header .switch-vip:before, .app-layout-header .switch {
|
|
|
- align-items: center;
|
|
|
- font-size: 12px;
|
|
|
- }
|
|
|
- .app-layout-content-b .app-content::after{
|
|
|
- content: '';
|
|
|
- width: 100%;
|
|
|
- height: 8px;
|
|
|
- background: #F5F6F7;
|
|
|
- }
|
|
|
- .iosMeau{
|
|
|
- height: 100%;
|
|
|
- }
|
|
|
- .app-layout-content-b {
|
|
|
- height: calc(100vh - 70px);
|
|
|
- overflow: hidden;
|
|
|
- }
|
|
|
- .collection .van-dropdown-menu__item {
|
|
|
- flex: 1;
|
|
|
- padding-left: 0;
|
|
|
- padding-right: 0;
|
|
|
- }
|
|
|
- .collection .van-dropdown-item:nth-of-type(4) .van-dropdown-item__content {
|
|
|
- max-height: unset;
|
|
|
- overflow: unset;
|
|
|
- height: 100%;
|
|
|
- }
|
|
|
- .empty{
|
|
|
- padding-top: .34rem;
|
|
|
- }
|
|
|
- </style>
|
|
|
- <style>
|
|
|
- .oldUserTips{
|
|
|
- position: fixed;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
- right: 0;
|
|
|
- bottom: 0;
|
|
|
- z-index: 99999;
|
|
|
- background-color:rgba(0, 0, 0, 0.7);
|
|
|
- display: none;
|
|
|
- }
|
|
|
- .updateTips-wrap{
|
|
|
- width: 6.06rem;
|
|
|
- height: 4.58rem;
|
|
|
- background: #FFFFFF;
|
|
|
- border-radius: 0.16rem 0.16rem 0.16rem 0.16rem;
|
|
|
- position: absolute;
|
|
|
- top: 50%;
|
|
|
- left: 50%;
|
|
|
- transform: translateX(-50%) translateY(-50%);
|
|
|
- }
|
|
|
- .updateTips-title{
|
|
|
- text-align: center;
|
|
|
- padding-top: 0.48rem;
|
|
|
- font-size: 0.36rem;
|
|
|
- font-weight: 500;
|
|
|
- color: #161826;
|
|
|
- }
|
|
|
- .updateTips-text{
|
|
|
- text-align: left;
|
|
|
- padding: 0.16rem 0.6rem 0.1rem;
|
|
|
- font-size: 0.3rem;
|
|
|
- font-weight: 500;
|
|
|
- color: #5E5E64;
|
|
|
- line-height: 0.44rem;
|
|
|
- }
|
|
|
- .updateTips-btnWrap{
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- margin-top: 0.32rem;
|
|
|
- border-top:0.02rem solid rgba(0, 0, 0, 0.1) ;
|
|
|
- }
|
|
|
- .updateTips-btn{
|
|
|
- font-size: 0.36rem;
|
|
|
- font-weight: 500;
|
|
|
- color: #161826;
|
|
|
- width: 50%;
|
|
|
- height: 0.92rem;
|
|
|
- line-height: 0.92rem;
|
|
|
- text-align: center;
|
|
|
- cursor: pointer;
|
|
|
- }
|
|
|
- .updateTips-line{
|
|
|
- height: 0.92rem;
|
|
|
- width: 0.02rem;
|
|
|
- background-color: rgba(0, 0, 0, 0.1);
|
|
|
- }
|
|
|
- .levelUp{
|
|
|
- color: #2ABDD1;
|
|
|
- }
|
|
|
- #freeArea{
|
|
|
- color: #2ABDD1;
|
|
|
- }
|
|
|
- /* 留资查看更多新增 */
|
|
|
- .seeMore{
|
|
|
- text-align: center;
|
|
|
- line-height: 1.12rem;
|
|
|
- height: 1.12rem;
|
|
|
- background: #FFFFFF;
|
|
|
- bottom: 1.4rem;
|
|
|
- }
|
|
|
- .seeMore + .dropload-down {
|
|
|
- display: none;
|
|
|
- }
|
|
|
- .seeMore-btn{
|
|
|
- font-size: .28rem;
|
|
|
- color: #2ABED1;
|
|
|
- display: contents;
|
|
|
- }
|
|
|
- .product-switch{
|
|
|
- display: block;
|
|
|
- height: auto;
|
|
|
- }
|
|
|
- .typeswitch{
|
|
|
- height: 1.08rem;
|
|
|
- }
|
|
|
- .push-money-component {
|
|
|
- height: auto;
|
|
|
- }
|
|
|
- .push-money-component .money-component-group {
|
|
|
- min-height: auto;
|
|
|
- flex: unset;
|
|
|
- padding: 0;
|
|
|
- }
|
|
|
- .push-money-component .j-footer {
|
|
|
- display: none;
|
|
|
- }
|
|
|
- .push-money-component .select-tag-group{
|
|
|
- padding: 6px 0 0!important;
|
|
|
- }
|
|
|
- .push-money-component .select-tag-item.active::after{
|
|
|
- background: none!important;
|
|
|
- }
|
|
|
- .selected{
|
|
|
- background: #E8FAFD!important;
|
|
|
- color: #2ABED1!important;
|
|
|
- }
|
|
|
- </style>
|
|
|
+ <link rel="stylesheet" href='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/history-push/css/public.css?v={{Msg "seo" "version"}}'/>
|
|
|
+ <link rel="stylesheet" href='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/history-push/css/old-page-style.css?v={{Msg "seo" "version"}}'/>
|
|
|
</head>
|
|
|
<body class="p13" id="viperSuper" style="background: #fff;overflow: hidden;">
|
|
|
<!-- 加载数据-->
|
|
@@ -284,7 +92,7 @@
|
|
|
<van-popup v-model="bigSubShow" class="product-switch" position="top" get-container="body">
|
|
|
<div class="typeswitch entniche" v-if="isEntniche" @click="proClick('ent')">
|
|
|
<div class="type-left">
|
|
|
- <img class="icon-bm" src="/jyapp/images/shangjigl.png" alt="">
|
|
|
+ <img class="icon-bm" src='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/history-push/images/shangjigl.png?v={{Msg "seo" "version"}}' alt="">
|
|
|
<span class="bm-text">商机管理</span>
|
|
|
</div>
|
|
|
<div class="type-right">
|
|
@@ -302,7 +110,7 @@
|
|
|
</div>
|
|
|
<div class="typeswitch vipproduct" v-if="rootInfo.vipStatus > 0" @click="proClick('vip')">
|
|
|
<div class="type-left">
|
|
|
- <img class="icon-bm" src="/jyapp/vipsubscribe/image/vip-icon.png" alt="">
|
|
|
+ <img class="icon-bm" src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/history-push/images/vip-icon.png?v={{Msg "seo" "version"}}" alt="">
|
|
|
<span class="bm-text">超级订阅</span>
|
|
|
</div>
|
|
|
<div class="type-right">
|
|
@@ -315,8 +123,8 @@
|
|
|
<div class="j-container">
|
|
|
<div class="app-content j-header" style="background:#fff;border-top: 1px solid transparent;">
|
|
|
<div class="header_header" style="height: 60px;display:none;transition: all 0.1s;position: relative;width: 100%;">
|
|
|
- <div class="only-personal" style="position: absolute;top: 50%;left: 50%;background-image: url(/jyapp/vipsubscribe/image/entback.png?v=51430);background-size: 100%;background-repeat: no-repeat;border-radius: 8px;width: 92%;display: flex;align-items: center;justify-content: space-between;height: 44px;transform: translate(-50%, -50%);">
|
|
|
- <img style="width: 20px;height: 20px; margin-left: .3rem;" src="/jyapp/vipsubscribe/image/vip-icon.png?v=1">
|
|
|
+ <div class="only-personal" style="position: absolute;top: 50%;left: 50%;background-image: url({{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/history-push/images/entback.png?v={{Msg "seo" "version"}});background-size: 100%;background-repeat: no-repeat;border-radius: 8px;width: 92%;display: flex;align-items: center;justify-content: space-between;height: 44px;transform: translate(-50%, -50%);">
|
|
|
+ <img style="width: 20px;height: 20px; margin-left: .3rem;" src='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/history-push/images/vip-icon.png?v={{Msg "seo" "version"}}'>
|
|
|
<span data-name="doubleEleven_title" style="padding: 0 .12rem;flex: 1;font-size: .26rem;font-weight: 700;color: #fff;">全国企业随手查,竞争实力尽展示!</span>
|
|
|
<span data-name="doubleEleven_button" class="switch_ext" id="app-historypush-vipSub-banner" style="border-radius: 32px;display: flex;flex-direction: row;padding: 3px 12px;font-size: 12px;color: #FAE7CA;margin-right: .2rem;background: linear-gradient(to bottom, #F1D090 0%, #FAE7CA 100%);color: #33323A;font-family: PingFang SC;font-size: 12px;line-height: 18px;letter-spacing: 0px;text-align: center;white-space: nowrap;">立即使用</span>
|
|
|
</div>
|
|
@@ -503,7 +311,7 @@
|
|
|
</div>
|
|
|
</span>
|
|
|
<span class="empty findnull">
|
|
|
- <div><img class="empty-img" src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/images/wxkeyset/nopush.png?v={{Msg "seo" "version"}}"></div>
|
|
|
+ <div><img class="empty-img" src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/history-push/images/nopush.png?v={{Msg "seo" "version"}}"></div>
|
|
|
<span class="empty-text">近期没有你想要的信息,再等等吧!<br>你也可以进入设置页面、调整一下关键词再回来看看。</span>
|
|
|
</span>
|
|
|
<span class="empty findnull_">
|
|
@@ -570,12 +378,12 @@
|
|
|
<div class="weui-mask weui-animate-fade-in"></div>
|
|
|
<div class="weui-dialog weui-animate-fade-in">
|
|
|
<div class="my-dialog__hd">
|
|
|
- <img src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/vipsubscribe/image/vipreport/dialog-image.png?v={{Msg "seo" "version"}}" alt="">
|
|
|
+ <img src='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/history-push/images/dialog-image.png?v={{Msg "seo" "version"}}' alt="">
|
|
|
<div class="jy_title">剑鱼标讯</div>
|
|
|
<h2 class="weekly">每<span></span>订阅报告来啦</h2>
|
|
|
<div class="term"></div>
|
|
|
<a href="javascript:void(0)" class="vip_report_todetail">点击查看</a>
|
|
|
- <img src="/jyapp/vipsubscribe/image/vipreport/close.svg" class="vip_report_tip_close">
|
|
|
+ <img src='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/history-push/images/close.svg' class="vip_report_tip_close">
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -593,7 +401,6 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-<!-- <img src="/jyapp/images/gotosetpage.png?v=51430" id="gotosetpage">-->
|
|
|
{{include "/common/baiducc.html"}}
|
|
|
<div id="advertscript" class="hidden">
|
|
|
{{$s:=(Ad "jyapp-wxpush-middle" -1)}}
|
|
@@ -603,7 +410,7 @@
|
|
|
var random = Math.floor(Math.random() * ADList.length)
|
|
|
var AD = ADList[random]
|
|
|
var ADHtml = "<span class=\"closeadv-bg\"></span>"
|
|
|
- + "<img src=\"{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/images/close_heidi.png?v={{Msg "seo" "version"}}\" class=\"closeadv\" onclick=\"closeadv(this)\">";
|
|
|
+ + "<img src=\"{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/history-push/images/close_heidi.png?v={{Msg "seo" "version"}}\" class=\"closeadv\" onclick=\"closeadv(this)\">";
|
|
|
if (AD.s_pic) {
|
|
|
if (AD.s_link) {
|
|
|
var ADtitle = "";
|
|
@@ -632,8 +439,8 @@
|
|
|
<div class="mask"></div>
|
|
|
<div class="dialog">
|
|
|
<div class="hd_img">
|
|
|
- <img src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/images/wxkeyset/merge.png?v={{Msg "seo" "version"}}" alt="" class="logo" />
|
|
|
- <img src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/images/wxkeyset/close.png?v={{Msg "seo" "version"}}" class="close">
|
|
|
+ <img src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/history-push/images/merge.png?v={{Msg "seo" "version"}}" alt="" class="logo" />
|
|
|
+ <img src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/history-push/images/close.png?v={{Msg "seo" "version"}}" class="close">
|
|
|
</div>
|
|
|
<div class="dialog_hd"><strong class="dialog_title">您同时拥有2个剑鱼标讯账号</strong></div>
|
|
|
<div class="dialog_bd"><em style="color:#2ABED1">手机号:18609098787、微信号:LLL</em><br> 为保证您的正常使用,您可以根据自身情况进行设置。</div>
|
|
@@ -644,7 +451,7 @@
|
|
|
</div>
|
|
|
|
|
|
</body>
|
|
|
-<script src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/big-member/js/utils.js?v={{Msg "seo" "version"}}"></script>
|
|
|
+<script src='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/public/js/utils.js?v={{Msg "seo" "version"}}'></script>
|
|
|
<script>
|
|
|
var firstTime = ''
|
|
|
let pushUrlTime = utils.getParam('pushtime')
|
|
@@ -654,6 +461,7 @@
|
|
|
var productType = 0 // 0免费用户 1超级订阅 2大会员 // 3商机管理
|
|
|
var historyVt = ''
|
|
|
</script>
|
|
|
+<script src=//cdn-common.jianyu360.com/cdn/lib/fastclick/1.0.6/fastclick.min.js></script>
|
|
|
<script src=//cdn-common.jianyu360.com/cdn/lib/vue/2.6.11/vue.min.js></script>
|
|
|
<script src=//cdn-common.jianyu360.com/cdn/lib/vant/2.12.24/lib/vant.min.js></script>
|
|
|
<script src=//cdn-common.jianyu360.com/cdn/lib/zepto/1.2.0/zepto.min.js></script>
|
|
@@ -667,1680 +475,7 @@
|
|
|
<script src='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/collection/js/notice-mobile.js?v={{Msg "seo" "version"}}'></script>
|
|
|
<script src='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/collection/js/money-mobile.js?v={{Msg "seo" "version"}}'></script>
|
|
|
<script src='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/keep-tags/keep-tags-template.js?v={{Msg "seo" "version"}}'></script>
|
|
|
-<script src='{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/js/historypush.js?v={{Msg "seo" "version"}}'></script>
|
|
|
-<script src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/vipsubscribe/js/weui.min.js?v={{Msg "seo" "version"}}"></script>
|
|
|
- <script>
|
|
|
- // 双11活动文案修改
|
|
|
- $.get('/jyactive/doubleEleven/isActiving?t=' + new Date().getTime(), function (r) {
|
|
|
- if (r && r.data) {
|
|
|
- if (r.data.isActiving) {
|
|
|
- $('*[data-name="doubleEleven_title"]').text('买超级订阅,买多久送多久!')
|
|
|
- $('*[data-name="doubleEleven_button"]').text('去抢')
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- </script>
|
|
|
- <script type="text/javascript">
|
|
|
- addEventListener('focus', function() {
|
|
|
- if(document.activeElement = document.getElementById('iframeu6603902_0')) {
|
|
|
- $.ajax({
|
|
|
- type: 'POST',
|
|
|
- url: '/publicapply/adLeague/click',
|
|
|
- data: {
|
|
|
- client: 'APP',
|
|
|
- id: 'ad6',
|
|
|
- position: '订阅推送列表页'
|
|
|
- },
|
|
|
- success: function(res) {
|
|
|
- console.log(res)
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- });
|
|
|
- </script>
|
|
|
-<script>
|
|
|
- function hiddenTips() {
|
|
|
- $('#UserTips').hide()
|
|
|
- }
|
|
|
- function gotoPay() {
|
|
|
- $('#UserTips').hide()
|
|
|
- location.href = '/jy_mobile/common/order/create/areapack?type=buy'
|
|
|
- }
|
|
|
- // 得到用户是否需要提醒省份订阅包过期
|
|
|
- function getUserSubscribe() {
|
|
|
- $.ajax({
|
|
|
- url: '/publicapply/free/areapack/tip',
|
|
|
- type: 'POST',
|
|
|
- success: function (res) {
|
|
|
- if (res.data.tip) {
|
|
|
- $('#UserTips').show()
|
|
|
- $('#freeArea').text(res.data.area)
|
|
|
- tipsClose()
|
|
|
- } else {
|
|
|
- $('#UserTips').hide()
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- getUserSubscribe()
|
|
|
- function tipsClose() {
|
|
|
- $.ajax({
|
|
|
- url: '/publicapply/free/areapack/update',
|
|
|
- type: 'POST',
|
|
|
- success: function (res) {
|
|
|
-
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- // @手机号绑定及账号合并 2021/1/25
|
|
|
- $("#toKeySet").on('click', tokeyset)
|
|
|
- function receivePushMessageHandle(type,url){
|
|
|
- if(type=="vipreport" || type == "memberreport"){
|
|
|
- if(type=="memberreport"&&productType!=2){
|
|
|
- return
|
|
|
- }else if(type=="vipreport"&&productType!=1){
|
|
|
- return
|
|
|
- }
|
|
|
- if((type=="vipreport" || type=="memberreport")&& $(".vip_report").is(":visible")){
|
|
|
- $(".vip_report>a").show();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- function closeadv(obj) {
|
|
|
- closeAdvert = true;
|
|
|
- $(obj).parent().prev().css("border-bottom", "1px solid #e5e6e9");
|
|
|
- $(obj).parent().remove();
|
|
|
- if(wxflag != "" && wxflag != null){
|
|
|
- wxflag.resetload();
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- function AdClick(e, isExternal, link, title) {
|
|
|
- var ce = $(e).parent();
|
|
|
- adv_statistics(ce);
|
|
|
- if (isExternal) {
|
|
|
- if (!title) {
|
|
|
- title = "剑鱼标讯"
|
|
|
- }
|
|
|
- JyObj.openExternalLink(link, title)
|
|
|
- } else {
|
|
|
- window.location.href = link;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- if (sessionStorage && sessionStorage.reloadSubPage) {
|
|
|
- sessionStorage.removeItem("reloadSubPage");
|
|
|
- removeSessionStorage();
|
|
|
- window.location.reload();
|
|
|
- }
|
|
|
- var firstPage = null;
|
|
|
- var scrollTop = 0;
|
|
|
- var dataCache = new Array();
|
|
|
- var lasttime = 0;
|
|
|
- var count = 0;
|
|
|
- var wxflag = "";
|
|
|
- var hasNextPage = false;
|
|
|
- var pageIndex = 1;
|
|
|
- var closeAdvert = false//是否关闭广告
|
|
|
- var isread = {{.T.isread}}
|
|
|
- var isPageShow = localStorage.getItem('hideBottom')
|
|
|
- // '/jyapp/myinfo'这个接口的返回值(同步请求,放心使用)
|
|
|
-// 有无关键词同意用这个myInfo中的内容判断
|
|
|
- var myInfo = {}
|
|
|
- var isInTSguide = null
|
|
|
-
|
|
|
- if (getUrlParam("f") == "push") {
|
|
|
- removeSessionStorage();
|
|
|
- if (history) {
|
|
|
- sessionStorage.setItem(sessionStorage.userId + "_searchTime",getUrlParam("selectTime"));
|
|
|
- history.replaceState(null, null, "/jyapp/swordfish/historypush");
|
|
|
- }
|
|
|
- }
|
|
|
-// 是否需要留资
|
|
|
- function isNeedSales (callback) {
|
|
|
- $.ajax({
|
|
|
- type: 'GET',
|
|
|
- url: '/salesLeads/retainedCapital',
|
|
|
- data: { source: 'jypush_see10_plus_app' },
|
|
|
- async: false,
|
|
|
- success: function (res) {
|
|
|
- callback(res)
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- function checkFreeList (data) {
|
|
|
- if(window.isFree){
|
|
|
- if (data.data.length > 10) {
|
|
|
- // sessionStorage.setItem('isNeedSalesStatus', isNeedSalesStatus)
|
|
|
- isNeedSales(function (res) {
|
|
|
- // 推送列表 免费是否需要留资判断
|
|
|
- var result = checkRequiredKeys(['name', 'phone', 'position', 'branch','company', 'companyType'], res.info)
|
|
|
- if (!result && res.data && res.data.retainedCapital) {
|
|
|
- data.data = data.data.slice(0, 10)
|
|
|
- data.hasNextPage = false
|
|
|
- $(".seeMore").show()
|
|
|
- $(".seeMore-btn").on('click', function () {
|
|
|
- location.href = '/jyapp/frontPage/bigmember/free/perfect_info?source=jypush_see10_plus_app'
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- $(function () {
|
|
|
- setTimeout(function(){
|
|
|
- loadJS("{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/local/fastclick.min.js",function(){
|
|
|
- FastClick.attach(document.body);
|
|
|
- });
|
|
|
- },500);
|
|
|
- var alert_other;
|
|
|
- alert_other=setInterval(function(){
|
|
|
- if(localStorage.canshowother && localStorage.getItem({{.T.userId}}+"_otherFlag")&&localStorage.getItem({{.T.userId}}+"_alert")==null){
|
|
|
- $(".jy-alert-other").show();
|
|
|
- localStorage.setItem({{.T.userId}}+"_alert","1")
|
|
|
- clearInterval(alert_other);
|
|
|
- }
|
|
|
- },1000)
|
|
|
-
|
|
|
- //到期提醒页面
|
|
|
- var vipSubtips = {{.T.vipSubtips}};
|
|
|
-
|
|
|
- if (Number(vipSubtips) === 0 && sessionStorage.vipSubtips == undefined) {
|
|
|
- history.pushState({}, "", "");
|
|
|
- sessionStorage.vipSubtips = "t";
|
|
|
- window.location.replace("/jyapp/vipsubscribe/renewPage/exprie");
|
|
|
- return
|
|
|
- }
|
|
|
- //===================
|
|
|
- var isinitpage = false;
|
|
|
- $(window).bind("pageshow", function (event) {
|
|
|
- if (event.originalEvent.persisted) {
|
|
|
- //返回不加载 导致菜单不出来
|
|
|
- JyObj.hiddenBottom("1");
|
|
|
- count=0;
|
|
|
- initpage();
|
|
|
- isinitpage = true;
|
|
|
- }
|
|
|
- });
|
|
|
- if (!isinitpage) {
|
|
|
- initpage();
|
|
|
- isinitpage = true;
|
|
|
- }
|
|
|
- $(".vip_report").click(function () {
|
|
|
- sessionStorage.setItem(vm.sessStorageKey, JSON.stringify(vm.$data))
|
|
|
- setSessionStorage();
|
|
|
-
|
|
|
- var tempUrl = "/vipreport/page/subreport.html"
|
|
|
- if (window.isFreeUserStatus && window.isUserWeekMonthStatus) {
|
|
|
- tempUrl += '?type=free'
|
|
|
- } else if(productType == 2) {
|
|
|
- tempUrl += '?type=member'
|
|
|
- } else if(productType == 1) {
|
|
|
- tempUrl += '?type=vip'
|
|
|
- }
|
|
|
- window.location.href = tempUrl;
|
|
|
- });
|
|
|
- });
|
|
|
-
|
|
|
- var userId = "";
|
|
|
- var selectArea = vm.area; // 地区
|
|
|
- var selectCity = vm.city; // 城市
|
|
|
- var selectIndustry = vm.subscopeclass // 行业
|
|
|
- var selectCate = vm.buyerclass // 采购单位
|
|
|
- var selectKeyword = vm.key // 关键词
|
|
|
- var selectNotice = vm.subtype // 公告类型
|
|
|
- var selectMoney = vm.selectMoney
|
|
|
- var selectFile = vm.selectFile
|
|
|
- //获取当前时间
|
|
|
- var date = (function () {
|
|
|
- var date = new Date();
|
|
|
- var year = date.getFullYear();
|
|
|
- var month = date.getMonth() + 1;
|
|
|
- var day = date.getDate();
|
|
|
- month = month < 10 ? '0' + month : month;
|
|
|
- day = day < 10 ? '0' + day : day;
|
|
|
- return year + '-' + month + '-' + day;
|
|
|
- })();
|
|
|
-
|
|
|
- let listparams = {
|
|
|
- pageNum: 1
|
|
|
- }
|
|
|
- var listnum = 0
|
|
|
- $.ajax({
|
|
|
- url: '/publicapply/bidcoll/list',
|
|
|
- type: "POST",
|
|
|
- contentType: 'application/json;charset=utf-8',
|
|
|
- data: JSON.stringify(listparams),
|
|
|
- success: function(res) {
|
|
|
- if(res.error_code == 0) {
|
|
|
- if(res.data && res.data.res) {
|
|
|
- listnum = res.data.res.length
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- function initpage() {
|
|
|
- console.log(selectMoney, selectFile, 'sessionstorage');
|
|
|
- afterJyObjInit();
|
|
|
- var thisClass=this;
|
|
|
- $("#openmailpush").click(function () {
|
|
|
- setSessionStorage();
|
|
|
- window.location.href = '/jyapp/wxkeyset/keyset/seniorset';
|
|
|
- });
|
|
|
- $(".listcontent").scroll(function () {
|
|
|
- scrollTop = $(this).scrollTop();
|
|
|
- });
|
|
|
- this.isCanSwitch=true;
|
|
|
- this.InitPersonal=function(r){
|
|
|
- $("#sub_manager").click(function() {
|
|
|
- setSessionStorage();
|
|
|
- sessionStorage.setItem(vm.sessStorageKey, JSON.stringify(vm.$data))
|
|
|
- if(historyVt == 's') {
|
|
|
- if(vm.entinfo.admin_department || vm.entinfo.admin_system) {
|
|
|
- location.href = '/page_entniche_new/page/sub_management/sub_management_system.html'
|
|
|
- } else {
|
|
|
- location.href = '/page_entniche_new/page/subsetting/sub_entrance.html'
|
|
|
- }
|
|
|
- return
|
|
|
- }
|
|
|
- let thisType = sessionStorage.getItem('userIsNew')
|
|
|
- if (window.userNewType || thisType) {
|
|
|
- location.href = '/jyapp/vipsubscribe/toSubVipSetPage'
|
|
|
- } else {
|
|
|
- if(vm.rootInfo.memberStatus > 0) {
|
|
|
- location.href = '/jyapp/vipsubscribe/toSubVipSetPage?vSwitch=m'
|
|
|
- } else {
|
|
|
- tokeyset()
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- });
|
|
|
- $(".tab_left .area").hide();
|
|
|
- if (r.isPassCount) {
|
|
|
- if(vm.rootInfo.memberStatus > 0) {
|
|
|
- $(".open_remind").hide();
|
|
|
- } else {
|
|
|
- $(".open_remind").show();
|
|
|
- }
|
|
|
- }
|
|
|
- // 商机管理隐藏弹窗
|
|
|
- if(r.userType == 'entniche') {
|
|
|
- $(".open_remind").hide();
|
|
|
- }
|
|
|
- if (r.isExpire < 0 && r.vipStatus == -1) {
|
|
|
- if (localStorage.getItem("nv_vip_" + userId) == null) {
|
|
|
- // $(".nv_renew_toast").show();
|
|
|
- }
|
|
|
- }
|
|
|
- thisClass.LoadDatas(r);
|
|
|
- }
|
|
|
- this.InitVip=function(r){
|
|
|
- $("#sub_manager").click(function() {
|
|
|
- setSessionStorage();
|
|
|
- // console.log(vm.rootInfo, 'vmrootInfo')
|
|
|
- sessionStorage.setItem(vm.sessStorageKey, JSON.stringify(vm.$data))
|
|
|
- if(historyVt == 's') {
|
|
|
- if(vm.entinfo.admin_department || vm.entinfo.admin_system) {
|
|
|
- location.href = '/page_entniche_new/page/sub_management/sub_management_system.html'
|
|
|
- } else {
|
|
|
- location.href = '/page_entniche_new/page/subsetting/sub_entrance.html'
|
|
|
- }
|
|
|
- return
|
|
|
- } else if(historyVt == 'm') {
|
|
|
- location.href = '/jyapp/vipsubscribe/toSubVipSetPage?vSwitch=m'
|
|
|
- } else if(historyVt == 'v') {
|
|
|
- location.href = '/jyapp/vipsubscribe/toSubVipSetPage?vSwitch=v'
|
|
|
- } else {
|
|
|
- tosetpage()
|
|
|
- }
|
|
|
- // let thisType = sessionStorage.getItem('userIsNew')
|
|
|
- // if (window.userNewType || thisType) {
|
|
|
- // location.href = '/jyapp/vipsubscribe/toSubVipSetPage'
|
|
|
- // } else {
|
|
|
- // if(vm.selectPro == 1) {
|
|
|
- // location.href = '/jyapp/vipsubscribe/toSubVipSetPage'
|
|
|
- // } else {
|
|
|
- // tosetpage()
|
|
|
- // }
|
|
|
- // }
|
|
|
-
|
|
|
- });
|
|
|
- if(productType == 0) {
|
|
|
- $(".vip_report").show();
|
|
|
- }
|
|
|
- $(".tab_left .area").show();
|
|
|
- if (!r.haskey) {
|
|
|
- if(historyVt == 'm' && vm.rootInfo.isSubCount) {
|
|
|
- $(".set_keyword").hide();
|
|
|
- } else if(historyVt == 's'){
|
|
|
- $(".set_keyword").hide();
|
|
|
- } else {
|
|
|
- $(".set_keyword").show();
|
|
|
- }
|
|
|
- if (r.isPassCount && (localStorage.isPassCount == null || localStorage.isPassCount != date.split("-")[2])) {
|
|
|
- localStorage.isPassCount = date.split("-")[2]
|
|
|
- // weuiDialog(); // liumiao让去掉
|
|
|
- }
|
|
|
- }
|
|
|
- if (r.vipStatus != 1) {
|
|
|
- if (r.isExpire > 1) {
|
|
|
- $(".renew_toast .isExpire").text(r.isExpire);
|
|
|
- $(".renew_toast").show();
|
|
|
- } else if (r.isExpire > 0) {
|
|
|
- $(".renew_toast").find(".other").hide();
|
|
|
- $(".renew_toast").find(".today").show();
|
|
|
- $(".renew_toast").show();
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (r.isExpire > 1) {
|
|
|
- $("._renew_toast .isExpire").text(r.isExpire);
|
|
|
- $("._renew_toast").show();
|
|
|
- } else if (r.isExpire > 0) {
|
|
|
- $("._renew_toast").find(".other").hide();
|
|
|
- $("._renew_toast").find(".today").show();
|
|
|
- $("._renew_toast").show();
|
|
|
- }
|
|
|
- }
|
|
|
- thisClass.LoadDatas(r);
|
|
|
- }
|
|
|
- this.LoadDatas=function(r){
|
|
|
- if(isPageShow == '1') {
|
|
|
- localStorage.removeItem('hideBottom')
|
|
|
- JyObj.hiddenBottom("0");
|
|
|
- }
|
|
|
- $(".app-content").css("display","flex");
|
|
|
- if(r.reLoad){
|
|
|
- removeSessionStorage();
|
|
|
- }
|
|
|
- if (sessionStorage && sessionStorage.historypushScrollTop && sessionStorage.historypushDataCache) {
|
|
|
- if (sessionStorage.closeAdvert == "true") {
|
|
|
- closeAdvert = true;
|
|
|
- }
|
|
|
- pageIndex = sessionStorage.historypushPageIndexCache;
|
|
|
- hasNextPage = sessionStorage.historypushHasNextPage == "true" ? true : false;
|
|
|
- scrollTop = sessionStorage.historypushScrollTop;
|
|
|
- dataCache = JSON.parse(sessionStorage.historypushDataCache);
|
|
|
- userId = sessionStorage.userId;
|
|
|
- firstTime = sessionStorage.getItem(userId + "_searchTime");
|
|
|
- selectArea = sessionStorage.getItem(userId + "_selectArea");
|
|
|
- selectCity = sessionStorage.getItem(userId + "_selectCity");
|
|
|
- selectIndustry = sessionStorage.getItem(userId + "_selectIndustry");
|
|
|
- selectCate = sessionStorage.getItem(userId + "_selectCate");
|
|
|
- selectKeyword = sessionStorage.getItem(userId + "_selectKeyword");
|
|
|
- selectNotice = sessionStorage.getItem(userId + "_selectNotice");
|
|
|
- selectMoney = sessionStorage.getItem(userId + "_selectMoney");
|
|
|
- selectFile = sessionStorage.getItem(userId + "_selectFile");
|
|
|
-
|
|
|
- // 判断是否需要修改某个收藏的状态
|
|
|
- var listCollSessionId = sessionStorage.getItem('listCollSessionId')
|
|
|
- if (listCollSessionId){
|
|
|
- var listCollSessionBool = sessionStorage.getItem('listCollSessionBool')
|
|
|
- if (dataCache && $.isArray(dataCache)) {
|
|
|
- dataCache.forEach(function (item) {
|
|
|
- if (item._id == listCollSessionId) {
|
|
|
- item.collection = listCollSessionBool
|
|
|
- }
|
|
|
- })
|
|
|
- sessionStorage.removeItem('listCollSessionId')
|
|
|
- sessionStorage.removeItem('listCollSessionBool')
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- $("#list>*").remove();
|
|
|
- firstPage = dataCache;
|
|
|
- if (dataCache.length == 0) {
|
|
|
- hasNoData();
|
|
|
- } else {
|
|
|
- structureHtml(dataCache, true);
|
|
|
- }
|
|
|
- //appendList($(listCache),$(tableCache));
|
|
|
- $(".listcontent").scrollTop(scrollTop);
|
|
|
- if (sessionStorage.getItem('hasFreeMore') === 'true') {
|
|
|
- isNeedSales(function (res) {
|
|
|
- var result = checkRequiredKeys(['name', 'phone', 'position', 'branch','company'], res.info)
|
|
|
- if (!result && res.data && res.data.retainedCapital) {
|
|
|
- $(".seeMore").show()
|
|
|
- $(".seeMore-btn").on('click', function () {
|
|
|
- location.href = '/jyapp/frontPage/bigmember/free/perfect_info?source=jypush_see10_plus_app'
|
|
|
- })
|
|
|
- } else {
|
|
|
- location.reload()
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- removeSessionStorage();
|
|
|
- } else {
|
|
|
- if(historyVt == 's') {
|
|
|
- $(".set_keyword").hide();
|
|
|
- }
|
|
|
- userId = sessionStorage.userId;
|
|
|
- // var isNeedSalesStatus = false
|
|
|
- // var isNeedSalesStatus = true
|
|
|
- console.log('load-ajax', selectFile, selectMoney, vm.selectFile, vm.selectMoney);
|
|
|
- $.ajax({
|
|
|
- type: 'post',
|
|
|
- url: '/publicapply/subscribe/historyPush?t=' + new Date().getTime(),
|
|
|
- data: {
|
|
|
- selectTime: firstTime,
|
|
|
- pageNum: 1,
|
|
|
- area: selectArea,
|
|
|
- city: selectCity,
|
|
|
- subscopeclass: selectIndustry,
|
|
|
- buyerclass: selectCate,
|
|
|
- key: selectKeyword,
|
|
|
- subtype: selectNotice,
|
|
|
- vt:historyVt,
|
|
|
- fileExists: vm.selectFile,
|
|
|
- price: vm.selectMoney
|
|
|
- },
|
|
|
- async: false,
|
|
|
- dataType: 'json',
|
|
|
- success: function (data) {
|
|
|
- if(!data.data) {
|
|
|
- data.data = []
|
|
|
- }
|
|
|
- checkFreeList(data)
|
|
|
-
|
|
|
-
|
|
|
- checkmerge(data.industry)
|
|
|
- if (data.otherFlag){
|
|
|
- localStorage.setItem({{.T.userId}}+"_otherFlag",data.otherFlag)
|
|
|
- }
|
|
|
- firstPage = data.data;
|
|
|
- isInTSguide = data.isInTSguide
|
|
|
- if (r.userType=="free" && firstPage.length <= 0 && !r.haskey && isInTSguide) {
|
|
|
- (function() {
|
|
|
- if (sessionStorage && (sessionStorage.keysetindexToHistory == "1" || sessionStorage.keysetindexToHistory == "2" || sessionStorage.keysetindexToHistory == "3")) {
|
|
|
- sessionStorage.removeItem("keysetindexToHistory");
|
|
|
- return
|
|
|
- }
|
|
|
- if (firstTime) {
|
|
|
- return
|
|
|
- }
|
|
|
- history.pushState({}, "", "");
|
|
|
- window.location.href = '/jyapp/wxkeyset/keyset/index';
|
|
|
- })();
|
|
|
- }
|
|
|
-
|
|
|
- // 非vip的新用户
|
|
|
- if (myInfo.userType !== 'vip') {
|
|
|
- if(myInfo.userType == 'entniche') {
|
|
|
- if(data.data) {
|
|
|
- if (data.data.length === 0) {
|
|
|
- $('.findnull_').show().siblings('.empty').hide()
|
|
|
- }
|
|
|
- } else {
|
|
|
- $('.findnull_').show().siblings('.empty').hide()
|
|
|
- }
|
|
|
-
|
|
|
- $('.header_header').hide()
|
|
|
- } else {
|
|
|
- // 如果是新用户(没有推送历史数据,没有关键词),直接就显示空页面
|
|
|
- if (data.data.length === 0 && myInfo.haskey === false && !firstTime) {
|
|
|
- if(vm.rootInfo.memberStatus > 0) {
|
|
|
- $('.header_header').hide()
|
|
|
- } else {
|
|
|
- $('.filter_tab').hide()
|
|
|
- $('.header_header').hide()
|
|
|
- $('.findnull-no-key').css({"display": 'block'}).siblings('.empty').hide()
|
|
|
- }
|
|
|
- return
|
|
|
- } else {
|
|
|
- if(vm.rootInfo.memberStatus > 0 || myInfo.userType == 'entniche') {
|
|
|
- $('.header_header').hide()
|
|
|
- } else {
|
|
|
- $('.header_header').show()
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (data.data.length === 0) {
|
|
|
- $('.findnull_').show().siblings('.empty').hide()
|
|
|
- }
|
|
|
-
|
|
|
- $('.header_header').hide()
|
|
|
- }
|
|
|
-
|
|
|
- pageIndex = 2;
|
|
|
- lasttime = data.thistime;
|
|
|
- hasNextPage = data.hasNextPage;
|
|
|
- vm.hasNextPage = data.hasNextPage
|
|
|
- userId = data.userId;
|
|
|
- sessionStorage.userId = userId;
|
|
|
- sessionStorage.setItem(userId + "_searchTime", firstTime);
|
|
|
- },
|
|
|
- error: function (xhr, type) {
|
|
|
- hasNoData();
|
|
|
- }
|
|
|
- });
|
|
|
- // firstPage.length = 0
|
|
|
- if (firstPage.length == 0) {
|
|
|
- //sessionStorage.removeItem("search_starttime");
|
|
|
- sessionStorage.removeItem(sessionStorage.userId + "_searchTime");
|
|
|
- hasNoData();
|
|
|
- return;
|
|
|
- }
|
|
|
- dataCache = dataCache.concat(firstPage);
|
|
|
- structureHtml(firstPage, true);
|
|
|
-
|
|
|
- setTimeout(function () {
|
|
|
- $(".listcontent").scrollTop(0);
|
|
|
- }, 300);
|
|
|
- }
|
|
|
- setTimeout(() => {
|
|
|
- $('#select-meau').css({'visibility': 'initial'})
|
|
|
- $('#select-meau').css({'display':'flex'})
|
|
|
- }, 500)
|
|
|
- if (hasNextPage) {
|
|
|
- setTimeout(function () {
|
|
|
- wxflag = $('.listcontent').dropload({
|
|
|
- scrollArea: $(".listcontent"),
|
|
|
- // loadUpFn: function (me) {
|
|
|
- // //loadDatas(me,-1);
|
|
|
- // reloadFirstPage(me);//下拉刷新更新订阅词
|
|
|
- // },
|
|
|
- loadDownFn: function (me) {
|
|
|
- loadDatas(me, lasttime);
|
|
|
- }
|
|
|
- });
|
|
|
- }, 1000);
|
|
|
- } else {
|
|
|
- setTimeout(function () {
|
|
|
- wxflag = $('.listcontent').dropload({
|
|
|
- scrollArea: $(".listcontent"),
|
|
|
- // loadUpFn: function (me) {
|
|
|
- // loadDatas(me, -1);
|
|
|
- // },
|
|
|
- loadDownFn: function (me) {
|
|
|
- loadDatas(me, lasttime);
|
|
|
- }
|
|
|
- });
|
|
|
- noMoreData(wxflag);
|
|
|
- }, 1000);
|
|
|
- }
|
|
|
- }
|
|
|
- //
|
|
|
- $.post("/publicapply/myinfo?t="+new Date().getTime(),null,function(r){
|
|
|
- myInfo = r
|
|
|
- if(r.vipStatus > 0){
|
|
|
- // $(".switch").addClass("only-vip");
|
|
|
- // $(".switch").text("超级订阅").show();
|
|
|
- // $(".switch").click(tosetpage);
|
|
|
- thisClass.InitVip(r);
|
|
|
- extend(1);
|
|
|
- }else{
|
|
|
- if(vm.rootInfo.memberStatus <= 0) {
|
|
|
- if(myInfo.userType == 'entniche') {
|
|
|
- $('.header_header').hide()
|
|
|
- $(".switch").addClass('switch_zj')
|
|
|
- // $(".switch_right").hide()
|
|
|
- $(".switch .switch_icon").addClass('icon_ent')
|
|
|
- $(".switch .user_pro").text("商机管理").css('margin-right','.08rem')
|
|
|
- $(".switch").show()
|
|
|
- thisClass.InitPersonal(r);
|
|
|
- if(historyVt === 's') {
|
|
|
- $(".switch").click(toEntNichePage);
|
|
|
- }
|
|
|
- extend(1)
|
|
|
- return
|
|
|
- }
|
|
|
- setTimeout(function(){
|
|
|
- if (scrollTop==0 && r.haskey){
|
|
|
- $(".header_header").show();
|
|
|
- }
|
|
|
- },200)
|
|
|
-
|
|
|
- // 获取一下cache的列表数据
|
|
|
- var listString = sessionStorage.getItem('historypushDataCache')
|
|
|
- if (listString) {
|
|
|
- listString = JSON.parse(listString)
|
|
|
- }
|
|
|
-
|
|
|
- // 非vip
|
|
|
- if (myInfo.userType !== 'vip') {
|
|
|
- if (listString) {
|
|
|
- $('.header_header').show()
|
|
|
- }
|
|
|
- }
|
|
|
- $(".app-content").css("justify-content","flex-start");
|
|
|
- $(".switch").addClass("only-personal");
|
|
|
- $(".switch .user_pro").text("立即使用 超级订阅");
|
|
|
- $(".switch").click(tointroducepage);
|
|
|
- $(".switch_ext").click(tointroducepage);
|
|
|
- thisClass.InitPersonal(r);
|
|
|
- extend(0);
|
|
|
- // 免费用户删除类名
|
|
|
- vm.RemoveClass('vip')
|
|
|
- vm.RemoveClass('big')
|
|
|
- } else {
|
|
|
- thisClass.InitPersonal(r);
|
|
|
- extend(1)
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- // 是否有未读的周报月报
|
|
|
- function reportHtml(r){
|
|
|
- if (r.unread > 0) {
|
|
|
- $(".vip_report>a").show();
|
|
|
- }else{
|
|
|
- $(".vip_report>a").hide();
|
|
|
- }
|
|
|
- if (r.tip) {
|
|
|
- if (r.tip.type == 2) {
|
|
|
- $(".vip_report_tip .weekly>span").text("周");
|
|
|
- } else {
|
|
|
- $(".vip_report_tip .weekly>span").text("月");
|
|
|
- }
|
|
|
- $(".vip_report_tip .term").text(new Date(Number(r.tip.startdate + "000")).Format("yyyy年M月d日") + "-" + new Date(Number(r.tip.enddate + "000")).Format("yyyy年M月d日"));
|
|
|
- $('.vip_report_tip').fadeIn();
|
|
|
- $('.vip_report_todetail').on('click', function () {
|
|
|
- $('.vip_report_tip').fadeOut();
|
|
|
- localStorage.removeItem("reportTipTime");
|
|
|
- localStorage.removeItem("reportData");
|
|
|
- updateReportStatus(r.tip);
|
|
|
- });
|
|
|
- $('.weui-dialog img.vip_report_tip_close').click(function () {
|
|
|
- $('.vip_report_tip').fadeOut();
|
|
|
- localStorage.removeItem("reportTipTime");
|
|
|
- localStorage.removeItem("reportData");
|
|
|
- updateReportStatus();
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
-function extend(i){
|
|
|
- window.listScroll = function() {
|
|
|
- if (i==0){
|
|
|
- var nowT = $(".listcontent").scrollTop()
|
|
|
- if (nowT > 0) {
|
|
|
- if (nowT > 50) {
|
|
|
- // 修复非超级订阅用户,但是大会员会用户。在筛选结果只有4条数据时候滚动产生的无限循环
|
|
|
- // 无限循环触发条件:nowT<50,设置高度,触发scroll事件,nowT<50 ...以此无限循环触发
|
|
|
- $(".header_header").css({height: (60 - nowT) +'px'})
|
|
|
- $(".header_header").hide();
|
|
|
- $(".switch").fadeIn();
|
|
|
- }else{
|
|
|
- $(".header_header").show();
|
|
|
- $(".switch").fadeOut();
|
|
|
- }
|
|
|
- } else {
|
|
|
- $(".header_header").css({height: (60) +'px'})
|
|
|
- $(".header_header").show()
|
|
|
- $(".switch").fadeOut();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
- //下拉刷新
|
|
|
- function reloadFirstPage(me) {
|
|
|
- if($(".vip_report").is(":hidden")||$(".vip_report>a").is(":hidden")){
|
|
|
- afterJyObjInit();
|
|
|
- }
|
|
|
- selectArea = vm.area; // 地区
|
|
|
- selectCity = vm.city; // 城市
|
|
|
- selectIndustry = vm.subscopeclass // 行业
|
|
|
- selectCate = vm.buyerclass // 采购单位
|
|
|
- selectKeyword = vm.key // 关键词
|
|
|
- selectNotice = vm.subtype // 公告类型
|
|
|
- selectFile = vm.selectFile
|
|
|
- selectMoney = vm.selectMoney
|
|
|
- console.log('刷新-ajax', selectFile, selectMoney);
|
|
|
- $.ajax({
|
|
|
- type: 'post',
|
|
|
- url: '/publicapply/subscribe/historyPush?t=' + new Date().getTime(),
|
|
|
- data: {
|
|
|
- selectTime: firstTime || vm.time,
|
|
|
- pageNum: 1,
|
|
|
- area: selectArea,
|
|
|
- city: selectCity,
|
|
|
- subscopeclass: selectIndustry,
|
|
|
- buyerclass: selectCate,
|
|
|
- key: selectKeyword,
|
|
|
- subtype: selectNotice,
|
|
|
- fileExists: selectFile,
|
|
|
- price: selectMoney
|
|
|
- },
|
|
|
- async: false,
|
|
|
- dataType: 'json',
|
|
|
- success: function (data) {
|
|
|
- pageIndex = 1;
|
|
|
- lasttime = data.thistime;
|
|
|
- firstPage = data.data;
|
|
|
- hasNextPage = data.hasNextPage;
|
|
|
- words = data.matchkeys;
|
|
|
- count = 0;
|
|
|
- dataCache = new Array();
|
|
|
- $("#list>*").remove();
|
|
|
- hasNextPage = true;
|
|
|
- me.$domDown.html(me.opts.domDown.domLoad);
|
|
|
- me.isData = true;
|
|
|
- me.isLockUp = false;
|
|
|
- me.isLockDown = false;
|
|
|
- if (data.data.length == 0) {
|
|
|
- noMoreData(me);
|
|
|
- } else {
|
|
|
- pageIndex++;
|
|
|
- lasttime = data["thistime"];
|
|
|
- dataCache = dataCache.concat(data["data"]);
|
|
|
- structureHtml(data["data"], true);
|
|
|
- if (data.hasNextPage) {
|
|
|
- // 每次数据插入,必须重置
|
|
|
- me.resetload();
|
|
|
- } else {
|
|
|
- noMoreData(me);
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- error: function (xhr, type) {
|
|
|
- hasNoData(me);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
- function loadDatas(me, le) {
|
|
|
- wxflag = me;
|
|
|
- selectArea = vm.area; // 地区
|
|
|
- selectCity = vm.city; // 城市
|
|
|
- selectIndustry = vm.subscopeclass // 行业
|
|
|
- selectCate = vm.buyerclass // 采购单位
|
|
|
- selectKeyword = vm.key // 关键词
|
|
|
- selectNotice = vm.subtype // 公告类型
|
|
|
- selectFile = vm.selectFile
|
|
|
- selectMoney = vm.selectMoney
|
|
|
- if(vm.hasNextPage) {
|
|
|
- $.ajax({
|
|
|
- type: 'post',
|
|
|
- url: '/publicapply/subscribe/historyPaging',
|
|
|
- data: {
|
|
|
- pageNum: pageIndex,
|
|
|
- selectTime: firstTime || vm.time,
|
|
|
- area: selectArea,
|
|
|
- city: selectCity,
|
|
|
- subscopeclass: selectIndustry,
|
|
|
- buyerclass: selectCate,
|
|
|
- key: selectKeyword,
|
|
|
- subtype: selectNotice,
|
|
|
- vt:historyVt,
|
|
|
- fileExists: selectFile,
|
|
|
- price: selectMoney
|
|
|
- },
|
|
|
- dataType: 'json',
|
|
|
- success: function (data) {
|
|
|
- //没有数据
|
|
|
- if (data.data.length == 0) {
|
|
|
- noMoreData(me);
|
|
|
- } else {
|
|
|
- pageIndex++;
|
|
|
- lasttime = data["thistime"];
|
|
|
- dataCache = dataCache.concat(data["data"]);
|
|
|
- structureHtml(data["data"], false);
|
|
|
- if (data.hasNextPage) {
|
|
|
- // 每次数据插入,必须重置
|
|
|
- me.resetload();
|
|
|
- } else {
|
|
|
- noMoreData(me);
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- error: function (xhr, type) {
|
|
|
- noMoreData(me);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- function noMoreData(me) {
|
|
|
- if (me == null) {
|
|
|
- return;
|
|
|
- }
|
|
|
- wxflag = me;
|
|
|
- hasNextPage = false;
|
|
|
- // 锁定
|
|
|
- me.lock();
|
|
|
- // 无数据
|
|
|
- me.noData();
|
|
|
- // 即使加载出错,也得重置
|
|
|
- me.resetload();
|
|
|
- }
|
|
|
-
|
|
|
-function hasNoData() {
|
|
|
- var nokeyNoDataShow = $('.findnull-no-key').is(':visible')
|
|
|
- var NoDataShow = $('.findnull-no-key').is(':hidden')
|
|
|
- $(".listcontent").hide()
|
|
|
- $("#loading").hide()
|
|
|
- $('#select-meau').css({'visibility': 'initial'})
|
|
|
- $('#select-meau').css({'display': 'flex'})
|
|
|
- $(".color_top").hide()
|
|
|
- // 如果no-key-no-data 不显示,才会显示no-data
|
|
|
- if (!nokeyNoDataShow || !NoDataShow) {
|
|
|
- $(".findnull_").css("display", "block")
|
|
|
- $('.findnull_').siblings('.empty').hide()
|
|
|
- } else {
|
|
|
- $(".findnull_").css("display", "none")
|
|
|
- }
|
|
|
- if(!NoDataShow) {
|
|
|
- if(!myInfo.haskey){
|
|
|
- if(myInfo.userType == 'entniche') {
|
|
|
- $(".findnull_").css("display", "block").siblings('.empty').hide()
|
|
|
- } else {
|
|
|
- $('.findnull-no-key').css("display", "block").siblings('.empty').hide()
|
|
|
- }
|
|
|
- } else {
|
|
|
- $(".findnull_").css("display", "block").siblings('.empty').hide()
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
- function structureHtml(object, showAd) {
|
|
|
- $('.findnull').hide()
|
|
|
- $('.findnull_').hide()
|
|
|
- $('.findnull-no-key').hide()
|
|
|
- var listhtml = '';
|
|
|
- var ad = $("#advertscript").html();
|
|
|
- for (var index in object) {
|
|
|
- var obj = object[index];
|
|
|
- //标题(需要高亮)
|
|
|
- var title = obj.title;
|
|
|
- if(title==""||title==undefined){
|
|
|
- continue
|
|
|
- }
|
|
|
- count++;
|
|
|
- var mWords = "";
|
|
|
- var _words = "";
|
|
|
- if (obj.matchkeys != undefined && obj.matchkeys != null) {
|
|
|
- _words = obj.matchkeys;
|
|
|
- }
|
|
|
- if (_words != null && _words.length > 0) {
|
|
|
- for (var n = 0; n < _words.length; n++) {
|
|
|
- var keysTemp = _words[n].split("+");
|
|
|
- for (var m = 0; m < keysTemp.length; m++) {
|
|
|
- title = keyWordHighlight(title, keysTemp[m], '<font class="keyword">$1</font>');
|
|
|
- }
|
|
|
- }
|
|
|
- mWords = _words.join("_");
|
|
|
- }
|
|
|
- //地区
|
|
|
- var area = obj.area;
|
|
|
- var areaList = "";
|
|
|
- if (area != "") {
|
|
|
- area = $.trim(area);
|
|
|
- area = area == "A" ? "全国" : area;
|
|
|
- areaList = '<span class="location">' + area + '</span>';
|
|
|
- }
|
|
|
- //类型
|
|
|
- var datatype = obj.type;
|
|
|
- var datatypeList = "";
|
|
|
- var datatypeTable = "";
|
|
|
- if (datatype != "") {
|
|
|
- datatypeList = '<span class="type">' + datatype + '</span>'
|
|
|
- datatypeTable = datatype + "公告"
|
|
|
- }
|
|
|
- //行业
|
|
|
- var ca_isvip = obj.ca_isvip
|
|
|
- var industryname = "";
|
|
|
- var industryListname = "";
|
|
|
- if (ca_isvip) {
|
|
|
- if (obj.buyerclass != null && obj.buyerclass != "") {
|
|
|
- industryname = obj.buyerclass
|
|
|
- industryListname = '<span class="buyerclass">' + industryname + '</span>';
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (obj.s_subscopeclass != null && obj.s_subscopeclass != "") {
|
|
|
- industryname = obj.s_subscopeclass
|
|
|
- industryListname = '<span class="industry">' + industryname + '</span>';
|
|
|
- }
|
|
|
- }
|
|
|
- // 预算:budget;中标:bidamount
|
|
|
- var moneyList = "";
|
|
|
- if (obj.budget != null && obj.budget != "") {
|
|
|
- moneyList = '<span class="bidamount">' + utils.moneyUnit(obj.budget) + '</span>';
|
|
|
- }
|
|
|
- if (obj.bidamount != null && obj.bidamount != "") {
|
|
|
- moneyList = '<span class="bidamount">' + utils.moneyUnit(obj.bidamount) + '</span>';
|
|
|
- }
|
|
|
- //时间
|
|
|
- var showdateList = ""
|
|
|
- var showdateTable = ""
|
|
|
-
|
|
|
- if (obj.publishtime) {
|
|
|
- showdateList = utils.dateFromNow(obj.publishtime * 1000);
|
|
|
- showdateTable = formatDate(obj.publishtime)
|
|
|
- if (showdateList != null) {
|
|
|
- showdateList = '<span><i class="jyapp-icon jyapp-icon-bofangjilu" style="color:#7a7a7a;margin-right:2px;"></i>' + showdateList + '</span>'
|
|
|
- }
|
|
|
- }
|
|
|
- //
|
|
|
- var projectM = obj.ca_type;
|
|
|
- var projectMList = "";
|
|
|
- if (projectM == 1) {
|
|
|
- projectMList = '<span class="projectM">项目匹配</span>'
|
|
|
- } else {
|
|
|
- projectMList = areaList + industryListname + datatypeList + moneyList
|
|
|
- }
|
|
|
- //序号位置
|
|
|
- var paddingLeft = 20
|
|
|
- var countLength = count.toString().length;
|
|
|
- if (countLength > 1) {
|
|
|
- paddingLeft = (countLength + 1) * 9;
|
|
|
- }
|
|
|
- //是否浏览过
|
|
|
- var visited = "";
|
|
|
- if (obj.ca_isvisit == 1) {
|
|
|
- visited = "visited"
|
|
|
- }
|
|
|
- // 是否有附件
|
|
|
- var fileText = ''
|
|
|
- if (obj.ca_fileExists) {
|
|
|
- fileText = '<font class="keyword" style="margin-right:4px;">[有附件]</font>'
|
|
|
- }
|
|
|
- if (showAd && index == 3 && !closeAdvert) {//广告位
|
|
|
- var ad = $("#advertscript").html()
|
|
|
- if (ad != ""&&ad.length>20) {
|
|
|
- listhtml += '<div class="tslist ' + visited + '" style="border-bottom: none;" words="' + mWords + '">'
|
|
|
- if (obj.site == '剑鱼信息发布平台') {
|
|
|
- listhtml += '<div class="userPublish">用户发布</div>'
|
|
|
- }
|
|
|
- listhtml += '<div class="resnumb">'
|
|
|
- + '<div class="one">'
|
|
|
- + '<span class="xh ' + visited + '">' + count + '.</span>'
|
|
|
- + '</div>'
|
|
|
- + '<div class="two bt-parent" style="display: flex;justify-content: space-between;padding-left:' + paddingLeft + 'px;">'
|
|
|
- + '<a class="bt ' + visited + '" eid="' + obj["_id"] + '" push_date="' + obj["ca_date"] + '" list_index="' + obj["ca_index"] + '" projectM="' + obj["ca_type"] + '">' + fileText + title + '</a>'
|
|
|
- + '<div class="collec_star" collecnum="'+obj["collection"]+'" data-id="' + obj["_id"] + '">'
|
|
|
- + '<span class="shoucang"></span>'
|
|
|
- + '<span class="weishoucang"></span>'
|
|
|
- + '</div>'
|
|
|
- + '</div>'
|
|
|
- + '</div>'
|
|
|
- + '<div style="clear:both;">'
|
|
|
- + '</div>'
|
|
|
- + '<div class="restime time-diff">' + projectMList + showdateList + '</div>'
|
|
|
- + '<div style="clear:both;"></div>'
|
|
|
- + '</div>'
|
|
|
- + '<div class="adv-wxpush-center" adv_name="APP推送历史页-中部" id="E1">' + ad + '</div>'
|
|
|
- continue
|
|
|
- }
|
|
|
- }
|
|
|
- listhtml += '<div class="tslist ' + visited + '" words="' + mWords + '">'
|
|
|
- if (obj.site == '剑鱼信息发布平台') {
|
|
|
- listhtml += '<div class="userPublish">用户发布</div>'
|
|
|
- }
|
|
|
- listhtml += '<div class="resnumb">'
|
|
|
- + '<div class="one">'
|
|
|
- + '<span class="xh ' + visited + '">' + count + '.</span>'
|
|
|
- + '</div>'
|
|
|
- + '<div class="two bt-parent" style="display: flex;justify-content: space-between;padding-left:' + paddingLeft + 'px;">'
|
|
|
- + '<a class="bt ' + visited + '" eid="' + obj["_id"] + '" push_date="' + obj["ca_date"] + '" list_index="' + obj["ca_index"] + '" projectM="' + obj["ca_type"] + '">' + fileText + title + '</a>'
|
|
|
- + '<div class="collec_star" collecnum="'+obj["collection"]+'" data-id="' + obj["_id"] + '">'
|
|
|
- + '<span class="shoucang"></span>'
|
|
|
- + '<span class="weishoucang"></span>'
|
|
|
- + '</div>'
|
|
|
- + '</div>'
|
|
|
- + '</div>'
|
|
|
- + '<div style="clear:both;">'
|
|
|
- + '</div>'
|
|
|
- + '<div class="restime time-diff">' + projectMList + showdateList + '</div>'
|
|
|
- + '<div style="clear:both;"></div>'
|
|
|
- + '</div>'
|
|
|
- }
|
|
|
- if (object.length <= 3 && ad != undefined && ad != "" && !closeAdvert && showAd) {
|
|
|
- appendList($("<div>" + listhtml + "<div class='adv-wxpush-center' id='E1'>" + ad + "</div></div>"));
|
|
|
- } else {
|
|
|
- appendList($("<div>" + listhtml + "</div>"));
|
|
|
- }
|
|
|
- if (object.length <= 4 && ad != undefined && ad != "") {
|
|
|
- $(".closeadv").css("display", "none");
|
|
|
- $(".closeadv-bg").css("display", "none");
|
|
|
- } else {
|
|
|
- $(".closeadv").css("display", "");
|
|
|
- $(".closeadv-bg").css("display", "");
|
|
|
- }
|
|
|
- // 控制收藏五角星显示隐藏
|
|
|
- $('.collec_star').each(function(item, index) {
|
|
|
- // console.log($('.collec_star').eq(item)[0])
|
|
|
- let collecnum = $('.collec_star').eq(item).attr('collecnum')
|
|
|
- if(collecnum == 1) {
|
|
|
- $('.collec_star').eq(item).find('.shoucang').show()
|
|
|
- $('.collec_star').eq(item).find('.weishoucang').hide()
|
|
|
- }else{
|
|
|
- $('.collec_star').eq(item).find('.shoucang').hide()
|
|
|
- $('.collec_star').eq(item).find('.weishoucang').show()
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
- // 收藏或取消收藏
|
|
|
- $('.collec_star').on('click', function(e){
|
|
|
- const _this = this
|
|
|
- e.stopPropagation()
|
|
|
- const id = $(this).attr('data-id')
|
|
|
- var shoucang = $(_this).find('.weishoucang').is(':hidden')
|
|
|
- // 说明未收藏,点击收藏
|
|
|
- if (vKeepComponent) {
|
|
|
- vKeepComponent.changeBid(id, !shoucang)
|
|
|
- // if(listnum < 100) {
|
|
|
- // vKeepComponent.changeKeepStatus(!shoucang, _this)
|
|
|
- // }
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- var vKeepComponent = new Vue({
|
|
|
- delimiters: ['${', '}'],
|
|
|
- el: '#jyKeepComponent',
|
|
|
- data: {
|
|
|
- nowOpenBid: ''
|
|
|
- },
|
|
|
- methods: {
|
|
|
- changeBid (id, type) {
|
|
|
- this.nowOpenBid = id
|
|
|
- this.$refs.vKeepComponent.ajaxAddKeep(id, type)
|
|
|
- },
|
|
|
- changeKeepStatus (type, that) {
|
|
|
- if (!that) {
|
|
|
- that = $('*[data-id="'+this.nowOpenBid+'"]')
|
|
|
- }
|
|
|
- changeCollectStatus(type, that)
|
|
|
- changeCollectDataStatus(type, this.nowOpenBid)
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- function changeCollectDataStatus (type, id) {
|
|
|
- if (dataCache && $.isArray(dataCache)) {
|
|
|
- dataCache.forEach(function (item) {
|
|
|
- if (item._id == id) {
|
|
|
- item.collection = type ? 1 : 0
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
- function changeCollectStatus(type, that) {
|
|
|
- if(type) {
|
|
|
- $(that).find('.shoucang').show()
|
|
|
- $(that).find('.weishoucang').hide()
|
|
|
- listnum++
|
|
|
- } else {
|
|
|
- $(that).find('.shoucang').hide()
|
|
|
- $(that).find('.weishoucang').show()
|
|
|
- listnum--
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- //
|
|
|
- function formatDate(date, sl) {
|
|
|
- var myDate = new Date(date * 1000);
|
|
|
- var year = myDate.getFullYear();
|
|
|
- var month = myDate.getMonth() + 1;
|
|
|
- if (month < 10 && sl != "1") {
|
|
|
- month = "0" + month
|
|
|
- }
|
|
|
- var date = myDate.getDate();
|
|
|
- if (date < 10 && sl != "1") {
|
|
|
- date = "0" + date
|
|
|
- }
|
|
|
- var hour = myDate.getHours()
|
|
|
- var min = myDate.getMinutes()
|
|
|
- if (sl == "1") {
|
|
|
- if (hour < 10) {
|
|
|
- hour = "0" + hour
|
|
|
- }
|
|
|
- if (min < 10) {
|
|
|
- min = "0" + min
|
|
|
- }
|
|
|
- return year + "-" + month + "-" + date;
|
|
|
- } else if (sl == "2") {
|
|
|
- return year + "." + month + "." + date;
|
|
|
- } else {
|
|
|
- return year + "<br>" + month + "" + date;
|
|
|
- }
|
|
|
- }
|
|
|
- function hiddenTips2() {
|
|
|
- $('#tipsType').hide()
|
|
|
- }
|
|
|
- function updateJump2() {
|
|
|
- $('#tipsType').hide()
|
|
|
- location.href = '/jyapp/areaPack/page/set_area'
|
|
|
- // location.replace('/jyapp/vipsubscribe/toSubVipSetPage?vSwitch=v')
|
|
|
- // $.ajax({
|
|
|
- // url: '/publicapply/free/oneProvinceSet',
|
|
|
- // type: 'POST',
|
|
|
- // success: function (res) {
|
|
|
- // location.href = '/jyapp/areaPack/page/set_area'
|
|
|
- // }
|
|
|
- // })
|
|
|
- }
|
|
|
- //
|
|
|
- function appendList(content) {
|
|
|
- content.children(".tslist").on("click", function (event) {
|
|
|
- if (!window.userNewType&&!(vm.rootInfo.vipStatus>0||vm.rootInfo.memberStatus>0||myInfo.userType == 'entniche')) {
|
|
|
- $('#tipsType').show()
|
|
|
- } else {
|
|
|
- $('#tipsType').hide()
|
|
|
- var isv = $(this).find("a.bt").hasClass("visited");//是否为已读
|
|
|
- setVisitedIndex($(this), "");
|
|
|
- var sds = $(this).attr("words");
|
|
|
- var h = $(this).find("a.bt").attr("s");
|
|
|
- var eid = $(this).find("a.bt").attr("eid");
|
|
|
- var index = $(this).find("a.bt").attr("projectm");
|
|
|
- var pdate = $(this).find("a.bt").attr("push_date");
|
|
|
- beforeJump(eid, h, sds, index, pdate, isv);
|
|
|
- sessionStorage.setItem(vm.sessStorageKey, JSON.stringify(vm.$data))
|
|
|
- }
|
|
|
- })
|
|
|
- $("#list").append(content);
|
|
|
- $(".findnull").hide();
|
|
|
- $(".listcontent").show();
|
|
|
- setTimeout(function () {
|
|
|
- $("#loading").hide();
|
|
|
- }, 500)
|
|
|
- }
|
|
|
-
|
|
|
- function beforeJump(eid, h, sds, index, pd, vis) {
|
|
|
- if (!vis) {
|
|
|
- for (var i = 0; i < dataCache.length; i++) {
|
|
|
- if (dataCache[i]._id == eid && dataCache[i].ca_date == pd) {
|
|
|
- dataCache[i].ca_isvisit = 1;
|
|
|
- break
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- setSessionStorage();
|
|
|
- newredirect("", h, eid, "subkey_" + sds, index);
|
|
|
- }
|
|
|
-
|
|
|
- function setSessionStorage() {
|
|
|
- if (sessionStorage && dataCache.length >= 0) {
|
|
|
- sessionStorage.closeAdvert = closeAdvert;
|
|
|
- sessionStorage.historypushScrollTop = scrollTop;
|
|
|
- sessionStorage.historypushDataCache = JSON.stringify(dataCache);
|
|
|
- sessionStorage.historypushPageIndexCache = pageIndex;
|
|
|
- sessionStorage.historypushHasNextPage = hasNextPage;
|
|
|
- sessionStorage.superSearch_iosNoRefresh = 'detail'
|
|
|
- sessionStorage.hasFreeMore = $(".seeMore").is(":visible").toString()
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- function removeSessionStorage() {
|
|
|
- sessionStorage.removeItem("historypushDataCache");
|
|
|
- sessionStorage.removeItem("historypushPageIndexCache");
|
|
|
- sessionStorage.removeItem("historypushScrollTop");
|
|
|
- sessionStorage.removeItem("historypushHasNextPage");
|
|
|
- sessionStorage.removeItem("closeAdvert");
|
|
|
- sessionStorage.removeItem("hasFreeMore");
|
|
|
- }
|
|
|
-
|
|
|
- function setVisitedIndex(obj, eid) {
|
|
|
- if (obj.find("a.bt").hasClass("visited") || obj.hasClass("visited")) {
|
|
|
- return;
|
|
|
- }
|
|
|
- obj.find("a.bt").addClass("visited");
|
|
|
- obj.find("span.xh").addClass("visited");
|
|
|
- var vsid = obj.find("a.bt").attr("list_index");
|
|
|
- if (vsid) {
|
|
|
- $.ajax({
|
|
|
- type: 'post',
|
|
|
- url: '/publicapply/subscribe/setRead?t=' + new Date().getTime(),
|
|
|
- data: {vsid: vsid},
|
|
|
- async: false
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- //
|
|
|
- var ajaxFlag = true;
|
|
|
-
|
|
|
- function ajaxFun(time, area, city, subscopeclass, buyerclass, key, subtype, file, price) {
|
|
|
- if(historyVt == 's') {
|
|
|
- $(".set_keyword").hide();
|
|
|
- }
|
|
|
- if (!ajaxFlag) {
|
|
|
- return
|
|
|
- }
|
|
|
- ajaxFlag = false;
|
|
|
- $("#loading").show();
|
|
|
- if(!time && !area && !city && !subscopeclass && !buyerclass && !key && !subtype){
|
|
|
- afterJyObjInit();
|
|
|
- }
|
|
|
- if(isPageShow == '1') {
|
|
|
- localStorage.removeItem('hideBottom')
|
|
|
- JyObj.hiddenBottom("0");
|
|
|
- }
|
|
|
- // console.log(historyVt, 'historyVt');
|
|
|
- console.log('ajaxFun-ajax', file, price);
|
|
|
- $.ajax({
|
|
|
- type: 'post',
|
|
|
- url: '/publicapply/subscribe/historyPush?t=' + new Date().getTime(),
|
|
|
- data: {
|
|
|
- selectTime: time,
|
|
|
- area: area,
|
|
|
- city: city,
|
|
|
- subscopeclass: subscopeclass,
|
|
|
- pageNum: 1,
|
|
|
- buyerclass: buyerclass,
|
|
|
- key: key.replace(/\s/g, ','),
|
|
|
- subtype: subtype,
|
|
|
- vt:historyVt,
|
|
|
- fileExists: file,
|
|
|
- price: price
|
|
|
- },
|
|
|
- async: false,
|
|
|
- dataType: 'json',
|
|
|
- success: function (data) {
|
|
|
- if(!data.data) {
|
|
|
- hasNoData
|
|
|
- return
|
|
|
- }
|
|
|
- pageIndex = 2;
|
|
|
- lasttime = data.thistime;
|
|
|
- firstPage = data.data;
|
|
|
- hasNextPage = data.hasNextPage;
|
|
|
- vm.hasNextPage = data.hasNextPage
|
|
|
- userId = data.userId;
|
|
|
- ajaxFlag = true;
|
|
|
- if(!data.haskey) {
|
|
|
- if(historyVt == 'm' && vm.rootInfo.isSubCount) {
|
|
|
- $(".set_keyword").hide();
|
|
|
- } else if(historyVt == 's') {
|
|
|
- $(".set_keyword").hide();
|
|
|
- } else {
|
|
|
- $(".set_keyword").show();
|
|
|
- }
|
|
|
- } else {
|
|
|
- $(".set_keyword").hide();
|
|
|
- }
|
|
|
- if (time == undefined || time == "") {
|
|
|
- sessionStorage.removeItem(userId + "_searchTime");
|
|
|
- } else {
|
|
|
- sessionStorage.setItem(userId + "_searchTime", time);
|
|
|
- }
|
|
|
- if (!area) {
|
|
|
- sessionStorage.removeItem(userId + "_selectArea");
|
|
|
- }
|
|
|
- if (!city) {
|
|
|
- sessionStorage.removeItem(userId + "_selectCity");
|
|
|
- }
|
|
|
- if (!selectFile) {
|
|
|
- sessionStorage.removeItem(userId + "_selectFile");
|
|
|
- }
|
|
|
- if (!selectMoney) {
|
|
|
- sessionStorage.removeItem(userId + "selectMoney");
|
|
|
- }
|
|
|
- },
|
|
|
- error: function (xhr, type) {
|
|
|
- ajaxFlag = true;
|
|
|
- hasNoData();
|
|
|
- }
|
|
|
- });
|
|
|
- dataCache = firstPage;
|
|
|
- if (firstPage.length == 0) {
|
|
|
- if ($(".findnull").css("display") == "block") {
|
|
|
- $(".findnull").css("display", "none");
|
|
|
- }
|
|
|
- hasNoData();
|
|
|
- return;
|
|
|
- }
|
|
|
- $("#list").html("");
|
|
|
- count = 0;
|
|
|
- structureHtml(firstPage, true);
|
|
|
- setTimeout(function () {
|
|
|
- $(".listcontent").scrollTop(0);
|
|
|
- }, 300);
|
|
|
- //================================
|
|
|
- if (hasNextPage) {
|
|
|
- setTimeout(function () {
|
|
|
- wxflag = $('.listcontent').dropload({
|
|
|
- scrollArea: $(".listcontent"),
|
|
|
- // loadUpFn: function (me) {
|
|
|
- // //loadDatas(me,-1);
|
|
|
- // reloadFirstPage(me);//下拉刷新更新订阅词
|
|
|
- // },
|
|
|
- loadDownFn: function (me) {
|
|
|
- loadDatas(me, lasttime);
|
|
|
- }
|
|
|
- });
|
|
|
- }, 800);
|
|
|
- } else {
|
|
|
- wxflag = $('.listcontent').dropload({
|
|
|
- scrollArea: $(".listcontent"),
|
|
|
- // loadUpFn: function (me) {
|
|
|
- // loadDatas(me, -1);
|
|
|
- // },
|
|
|
- loadDownFn: function (me) {
|
|
|
- loadDatas(me, lasttime);
|
|
|
- }
|
|
|
- });
|
|
|
- noMoreData(wxflag);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- //免费用户关键词设置
|
|
|
- function tokeyset() {
|
|
|
- setSessionStorage()
|
|
|
- // 如果没有订阅过,先去引导页(keyset/index会被重定向到引导页)
|
|
|
- // 判断当前世大会员还是超级订阅
|
|
|
- let switchProduct = sessionStorage.getItem('switch-product')
|
|
|
- if(switchProduct) {
|
|
|
- if(switchProduct == 'bigmember') {
|
|
|
- window.location.href = '/jyapp/vipsubscribe/toSetKeyWordPage?vSwitch=m';
|
|
|
- } else if(switchProduct == 'entniche') {
|
|
|
- window.location.href = '/page_entniche_new/page/subsetting/keyWord.html'
|
|
|
- } else {
|
|
|
- if (isInTSguide) {
|
|
|
- window.location.href = '/jyapp/wxkeyset/keyset/index';
|
|
|
- } else {
|
|
|
- if (myInfo.haskey) {
|
|
|
- window.location.href = '/jyapp/wxkeyset/keyset/index';
|
|
|
- } else {
|
|
|
- if(myInfo.userType=="vip") {
|
|
|
- window.location.href = '/jyapp/vipsubscribe/toSetKeyWordPage'
|
|
|
- } else {
|
|
|
- //window.location.href = '/jyapp/vipsubscribe/toSetKeyWordPage'
|
|
|
- window.location.href = '/jyapp/vipsubscribe/toSubVipSetPage';
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (isInTSguide) {
|
|
|
- window.location.href = '/jyapp/wxkeyset/keyset/index';
|
|
|
- } else {
|
|
|
- if (myInfo.haskey) {
|
|
|
- window.location.href = '/jyapp/wxkeyset/keyset/index';
|
|
|
- } else {
|
|
|
- if(myInfo.userType=="vip") {
|
|
|
- window.location.href = '/jyapp/vipsubscribe/toSetKeyWordPage'
|
|
|
- } else {
|
|
|
- //window.location.href = '/jyapp/vipsubscribe/toSetKeyWordPage'
|
|
|
- window.location.href = '/jyapp/vipsubscribe/toSubVipSetPage';
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- // 清除超级订阅购买、续费、升级页面相关的优惠券、商品规格缓存
|
|
|
- sessionStorage.removeItem('vip-cur-select-coupon')
|
|
|
- sessionStorage.removeItem('$select-coupon')
|
|
|
- sessionStorage.removeItem('vip-cur-select-size')
|
|
|
- //介绍页
|
|
|
- function tointroducepage() {
|
|
|
- setSessionStorage();
|
|
|
- window.location.href = "/jyapp/vipsubscribe/introducePage";
|
|
|
- }
|
|
|
-
|
|
|
- //我的企业列表
|
|
|
- function toEntNichePage() {
|
|
|
- setSessionStorage();
|
|
|
- window.location.href = "/page_entniche_new/home";
|
|
|
- }
|
|
|
-
|
|
|
- //vip设置
|
|
|
- function tosetpage() {
|
|
|
- setSessionStorage();
|
|
|
- window.location.href = "/jyapp/vipsubscribe/toSubVipSetPage?vSwitch=v";
|
|
|
- }
|
|
|
-
|
|
|
- //vip关键词设置
|
|
|
- function tosetkeyspage() {
|
|
|
- setSessionStorage();
|
|
|
- window.location.href = "/jyapp/vipsubscribe/toSetKeyWordPage";
|
|
|
- }
|
|
|
-
|
|
|
- //续费
|
|
|
- function torepay() {
|
|
|
- setSessionStorage();
|
|
|
- // window.location.href = "/jyapp/vipsubscribe/vipsubscribe_renew";
|
|
|
- window.location.href = "/jy_mobile/common/order/create/svip?type=renew";
|
|
|
- }
|
|
|
-
|
|
|
- //购买
|
|
|
- function topay() {
|
|
|
- setSessionStorage();
|
|
|
- // window.location.href = "/jyapp/vipsubscribe/vipsubscribe_new";
|
|
|
- window.location.href = "/jy_mobile/common/order/create/svip?type=buy";
|
|
|
- }
|
|
|
- function updateReportStatus(tip) {
|
|
|
- $.post("/subscribepay/report/tipover?t=" + new Date().getTime(), {type:productType==2?"member":"vip"}, function (r) {
|
|
|
- if (tip) {
|
|
|
- if(productType == 2){//大会员
|
|
|
- if (tip.type == 2) { //周
|
|
|
- window.location.href = "/jyapp/big/page/report_detail_week?start=" + tip.startdate + "&end=" + tip.enddate + "&pushcount=" + tip.pushcount+"&type=member";
|
|
|
- }else{//月
|
|
|
- window.location.href = "/jyapp/big/page/report_detail_month?start=" + tip.startdate + "&end=" + tip.enddate + "&pushcount=" + tip.pushcount+"&type=member";
|
|
|
- }
|
|
|
- }else{//超级订阅
|
|
|
- window.location.href = "/vipreport/page/reportdetail.html?start=" + tip.startdate + "&end=" + tip.enddate + "&pushcount=" + tip.pushcount+"&type=vip";
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- function afterJyObjInit(){
|
|
|
- try{
|
|
|
- JyObj.hideRedSpotOnMenu("subscribe");
|
|
|
- }catch(e){}
|
|
|
- }
|
|
|
- function iphoneXInit(){
|
|
|
- $(".app-layout-content-b").css("top","89px");
|
|
|
- }
|
|
|
-</script>
|
|
|
-<script type="text/javascript" charset="UTF-8">
|
|
|
- function weuiDialog() {
|
|
|
- weui.dialog({
|
|
|
- title: '提示信息',
|
|
|
- content: '您未设置关键词<br/>设置后接收信息更精确',
|
|
|
- className: 'jymobile-setting-dialog',// 设置弹框的类名
|
|
|
- buttons: [
|
|
|
- {
|
|
|
- label: '去设置',
|
|
|
- type: 'primary',
|
|
|
- onClick: function () {
|
|
|
- // console.log('确定')
|
|
|
- tosetkeyspage();
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- label: '取消',
|
|
|
- type: 'default',
|
|
|
- onClick: function () {
|
|
|
- console.log('取消')
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
- $('.open_remind .icon-chahao').on('click', function () {
|
|
|
- $('.open_remind').hide()
|
|
|
- })
|
|
|
- //禁止默认行为方法
|
|
|
- function stopScroll(e) {
|
|
|
- e.preventDefault()
|
|
|
- }
|
|
|
- //用户合并
|
|
|
- $(".dialog_alert .close").on("click",function(){
|
|
|
- localStorage.canshowother=true
|
|
|
- $(".dialog_alert").hide()
|
|
|
- })
|
|
|
- $(".dialog_alert .dialog_ft").on("click",function(){
|
|
|
- localStorage.canshowother=true
|
|
|
- window.location.href='/page_entniche/page/user/account_merge.html'
|
|
|
- })
|
|
|
- //关闭 其他采购单位行业 弹窗
|
|
|
- function close_other(){
|
|
|
- $(".jy-alert-other").hide();
|
|
|
- }
|
|
|
-
|
|
|
- //
|
|
|
- $(function () {
|
|
|
- $('#list').on('tap longTap', '.tslist',function(e){
|
|
|
- var tempS = $(this).addClass("hover")
|
|
|
- setTimeout(function () {
|
|
|
- tempS.removeClass('hover')
|
|
|
- }, 50)
|
|
|
- })
|
|
|
- try{
|
|
|
- document.querySelector('.screen').addEventListener('touchmove', stopScroll, {passive: false});
|
|
|
- document.querySelector('.tab_left').addEventListener('touchmove', stopScroll, {passive: false});
|
|
|
- document.querySelector('.tab_right').addEventListener('touchmove', stopScroll, {passive: false});
|
|
|
- document.querySelector('.handle_menu').addEventListener('touchmove', stopScroll, {passive: false});
|
|
|
- }catch(e){}
|
|
|
- if (firstTime != "" && firstTime != null) {
|
|
|
- date = formatDate(firstTime / 1000, "1");
|
|
|
- }
|
|
|
-
|
|
|
- // 关闭设置弹窗
|
|
|
- $('#close_set').on('click', function () {
|
|
|
- $('.set_keyword').hide()
|
|
|
- })
|
|
|
- $('#close_renew').on('click', function () {
|
|
|
- $('.renew_toast').hide()
|
|
|
- })
|
|
|
- $('#_close_renew').on('click', function () {
|
|
|
- $('._renew_toast').hide()
|
|
|
- })
|
|
|
- $('#nv_close_renew').on('click', function () {
|
|
|
- localStorage.setItem("nv_vip_" + userId, "T");
|
|
|
- $('.nv_renew_toast').hide()
|
|
|
- })
|
|
|
-
|
|
|
- })
|
|
|
- var mergedlist = []
|
|
|
- var merge_industry = ["国土","林业","环保","卫生","工商","质监","食药","安监","地震","公安","文化","旅游","银监","保监"]
|
|
|
- function checkmerge(state) {
|
|
|
- if (checkindustry(state)){
|
|
|
- var tips = "<span style='font-size:15px;font-family:PingFang SC;font-weight:bold;color:rgba(29,29,29,1);opacity:1;'>随着政府机构改革和职能转变工作深入推进,部分采购单位行业与现实不一致,为了提高订阅推送数据的准确性,剑鱼标讯需要针对采购单位行业名称进行优化。</span><br><span style='font-size:13px;font-family:PingFang SC;font-weight:400;color:rgba(104,104,104,1);opacity:1;'>采购单位名称的调整不影响所购买的采购单位数量,您仍可按需调整。<br><br>您订阅的:<br></span>"
|
|
|
- var hasMerged = isread
|
|
|
- var s_count=h_count=m_count=p_count=cultural_count=CBRC_count=t_count = 0
|
|
|
- var nature_source = ["国土","林业"];
|
|
|
- var health_commission = ["卫生"]
|
|
|
- var market_supervision = ["工商","质监","食药"]
|
|
|
- var contingency_management = ["安监","地震","公安"]
|
|
|
- var cultural_tourism = ["文化","旅游"]
|
|
|
- var CBRC = ["银监","保监"]
|
|
|
- var ecological_environment = ["环保"]
|
|
|
-
|
|
|
- state.forEach(function (item,index) {
|
|
|
- if (merge_industry.indexOf(item)>-1){
|
|
|
- if (item == "国土"||item == "林业"){
|
|
|
- mergedlist.push("自然资源")
|
|
|
- // hasMerged = true
|
|
|
- nature_source = Highlight(nature_source,item)
|
|
|
- s_count++
|
|
|
- } else if (item == "环保"){
|
|
|
- mergedlist.push("生态环境")
|
|
|
- // hasMerged = true
|
|
|
- ecological_environment = Highlight(ecological_environment,item)
|
|
|
- h_count++
|
|
|
-
|
|
|
- } else if ( item == "卫生"){
|
|
|
- mergedlist.push("卫健委")
|
|
|
- // hasMerged = true
|
|
|
- health_commission= Highlight(health_commission,item)
|
|
|
- p_count++
|
|
|
- } else if (item == "工商"||item == "质监"||item == "食药"){
|
|
|
- mergedlist.push("市场监管")
|
|
|
- // hasMerged = true
|
|
|
-
|
|
|
- market_supervision = Highlight(market_supervision,item)
|
|
|
- m_count++
|
|
|
- } else if (item == "地震"||item=="安监"||item=="公安"){
|
|
|
- if (item !=="公安"){
|
|
|
- mergedlist.push("应急管理")
|
|
|
- }else{
|
|
|
- mergedlist.push("公安")
|
|
|
- }
|
|
|
- // hasMerged = true
|
|
|
- contingency_management = Highlight(contingency_management,item)
|
|
|
- t_count++
|
|
|
- } else if (item=="文化"||item == "旅游"){
|
|
|
- mergedlist.push("文旅")
|
|
|
- // hasMerged = true
|
|
|
- cultural_tourism = Highlight(cultural_tourism,item)
|
|
|
- cultural_count++
|
|
|
- } else if (item == "银监"||item == "保监"){
|
|
|
- mergedlist.push("银保监")
|
|
|
- // hasMerged = true
|
|
|
- CBRC= Highlight(CBRC,item)
|
|
|
- CBRC_count++
|
|
|
- }
|
|
|
- }else{
|
|
|
- mergedlist.push(item)
|
|
|
- }
|
|
|
- })
|
|
|
- if(s_count>=1){
|
|
|
- tips +=nature_source.join('、')+" 合并为 【自然资源】<br>"
|
|
|
- }
|
|
|
- if (h_count>=1){
|
|
|
- tips +=ecological_environment.join('、')+" 整合其他部门部分职能后更改为 【生态环境】<br>"
|
|
|
- }
|
|
|
- if (p_count>=1){
|
|
|
- tips +=health_commission.join('、')+" 变更为 【卫健委】<br>"
|
|
|
- }
|
|
|
- if (m_count>=1){
|
|
|
- tips +=market_supervision.join('、')+" 合并为 【市场监管】<br>"
|
|
|
- }
|
|
|
- if (t_count>=1){
|
|
|
- tips +=contingency_management.join('、')+"中的消防 合并为 【应急管理】<br>"
|
|
|
- }
|
|
|
- if (cultural_count>=1){
|
|
|
- tips +=cultural_tourism.join('、')+" 合并为 【文旅】<br>"
|
|
|
- }
|
|
|
- if (CBRC_count>=1){
|
|
|
- tips +=CBRC.join('、')+" 合并为 【银保监】<br>"
|
|
|
- }
|
|
|
- if (!hasMerged){
|
|
|
- $("#merge_content").html(tips)
|
|
|
- $("#merge_dialog").show()
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- function acceptchange() {
|
|
|
- var q = removeDuplicatedItem(mergedlist)
|
|
|
- $.post("/subscribepay/vipsubscribe/mergeIndustry",{"industry":q.toString(),"isread":true},function (r) {
|
|
|
- if (r.success){
|
|
|
- console.log("行业合并成功")
|
|
|
- }else{
|
|
|
- console.log("行业合并失败")
|
|
|
- }
|
|
|
- })
|
|
|
- $("#merge_dialog").hide()
|
|
|
- }
|
|
|
- function Highlight(a_list,key) {
|
|
|
- a_list.forEach(function (item,index) {
|
|
|
- if (item == key){
|
|
|
- var m = "<span style='color:red'>"+item+"</span>"
|
|
|
- a_list[index] = m
|
|
|
-
|
|
|
- }
|
|
|
- })
|
|
|
- return a_list
|
|
|
- }
|
|
|
- function removeDuplicatedItem(ar) {
|
|
|
- var ret = [];
|
|
|
-
|
|
|
- for (var i = 0, j = ar.length; i < j; i++) {
|
|
|
- if (ret.indexOf(ar[i]) === -1) {
|
|
|
- ret.push(ar[i]);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- return ret;
|
|
|
- }
|
|
|
- function checkindustry(industry){
|
|
|
- var isinclude = false
|
|
|
- if(!industry) {
|
|
|
- return isinclude
|
|
|
- }
|
|
|
- industry.forEach(function (item,index) {
|
|
|
- if (merge_industry.indexOf(item)>-1){
|
|
|
- isinclude = true
|
|
|
- return
|
|
|
- }
|
|
|
- })
|
|
|
- return isinclude
|
|
|
- }
|
|
|
-</script>
|
|
|
-
|
|
|
+<script src='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/history-push/js/historypush.js?v={{Msg "seo" "version"}}'></script>
|
|
|
+<script src=//cdn-common.jianyu360.com/cdn/lib/weui.js/1.2.1/weui.min.js></script>
|
|
|
+<script src='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/history-push/js/old-page-script.js?v={{Msg "seo" "version"}}'></script>
|
|
|
</html>
|