Browse Source

feat: 留资字段调整

zhangyuhan 3 years ago
parent
commit
6c625024dd

+ 35 - 5
src/web/staticres/big-member/js/public_big.js

@@ -15,11 +15,24 @@ if (!pageUserInfo) {
         logid: ''
         logid: ''
     }
     }
 }
 }
+
+var canShowFooter =  (pageUserInfo.memberStatus < 0 || !pageUserInfo.memberStatus)
+if (pageUserInfo.memberTrial) {
+    canShowFooter = false
+}
+
 // 修改底部横幅广告
 // 修改底部横幅广告
-if (pageUserInfo.memberStatus < 0 || !pageUserInfo.memberStatus) {
+if (canShowFooter) {
     $('.footer-banner').show()
     $('.footer-banner').show()
 } else {
 } else {
     $('.footer-banner').hide()
     $('.footer-banner').hide()
+}
+
+if (pageUserInfo.memberStatus < 0 || !pageUserInfo.memberStatus) {
+    changeButtonText()
+}
+
+function changeButtonText () {
     $(".subpage-button").each(function () {
     $(".subpage-button").each(function () {
         var nType = $(this).text().trim()
         var nType = $(this).text().trim()
         if (nType === '立即体验') {
         if (nType === '立即体验') {
@@ -33,9 +46,7 @@ if (pageUserInfo.memberStatus < 0 || !pageUserInfo.memberStatus) {
         }
         }
     })
     })
 }
 }
-if (pageUserInfo.memberTrial) {
-    $('.footer-banner').hide()
-}
+
 function initInsetSwiper () {
 function initInsetSwiper () {
     return new Swiper('.swiper-container', {
     return new Swiper('.swiper-container', {
         pagination: {
         pagination: {
@@ -76,6 +87,10 @@ $(function () {
     } catch (err) {}
     } catch (err) {}
 
 
     var sourceMap = {
     var sourceMap = {
+        商机管理: {
+          info: '',
+          source: 'ent-manage-pc'
+        },
         业务拓展分析: {
         业务拓展分析: {
             info: 'yw',
             info: 'yw',
             source: 'function_Business_analysis'
             source: 'function_Business_analysis'
@@ -168,6 +183,14 @@ $(function () {
         } catch (e) {
         } catch (e) {
             console.log('未初始化百度统计')
             console.log('未初始化百度统计')
         }
         }
+        if (typeKey === '商机管理') {
+            if (nType === '了解更多') {
+                nType = '立即体验'
+            } else {
+                nType = '去使用'
+            }
+
+        }
         switch (nType) {
         switch (nType) {
             case '点此购买': {
             case '点此购买': {
                 if (!loginflag) {
                 if (!loginflag) {
@@ -189,6 +212,10 @@ $(function () {
                 location.href = '/big/page/' + sourceMap[typeKey].info
                 location.href = '/big/page/' + sourceMap[typeKey].info
                 break
                 break
             }
             }
+            case '去使用': {
+                location.href = '/entpc/bus'
+                break
+            }
             case '立即使用': {
             case '立即使用': {
                 location.href = '/swordfish/page_big_pc'
                 location.href = '/swordfish/page_big_pc'
                 break
                 break
@@ -219,6 +246,9 @@ $(function () {
 
 
     // 底部横幅立即体验
     // 底部横幅立即体验
     $(".footer-banner area").on('click', function () {
     $(".footer-banner area").on('click', function () {
+        if ($(this).hasClass('open-customer')) {
+            return
+        }
         if (!loginflag) {
         if (!loginflag) {
             openLoginDig()
             openLoginDig()
             return
             return
@@ -250,7 +280,7 @@ $(function () {
         }
         }
         // 数字滚动
         // 数字滚动
         var numberBox = $(".show-number-box")
         var numberBox = $(".show-number-box")
-        if (numberBox) {
+        if (numberBox.length) {
             var numberBoxH = numberBox.offset().top
             var numberBoxH = numberBox.offset().top
             if ($(window).scrollTop() + $(window).height()  >= numberBoxH) {
             if ($(window).scrollTop() + $(window).height()  >= numberBoxH) {
                 if (!numberBox.attr('data-show-an')) {
                 if (!numberBox.attr('data-show-an')) {

+ 5 - 1
src/web/staticres/js/pc-collect-user-info.js

@@ -384,7 +384,8 @@ var vm = new Vue({
         function_: '请留下联系方式,我们会尽快联系您体验大会员全部功能!', // 大会员功能介绍
         function_: '请留下联系方式,我们会尽快联系您体验大会员全部功能!', // 大会员功能介绍
         jylab_see500_plus: '请留下联系方式,我们会尽快联系您!开通大会员可查看更多招标项目,实时监控更多潜在商机!', // 标讯搜索500条
         jylab_see500_plus: '请留下联系方式,我们会尽快联系您!开通大会员可查看更多招标项目,实时监控更多潜在商机!', // 标讯搜索500条
         article_purchase_intention: '请留下联系方式,我们会尽快联系您!开通大会员可抢先对接采购单位,帮助企业拓客!', // 三级页-采购意向
         article_purchase_intention: '请留下联系方式,我们会尽快联系您!开通大会员可抢先对接采购单位,帮助企业拓客!', // 三级页-采购意向
-        article_proposed_project: '请留下联系方式,我们会尽快联系您!开通大会员可抢先获知拟建商机动态,提高中标机率!' // 三级页-拟建项目
+        article_proposed_project: '请留下联系方式,我们会尽快联系您!开通大会员可抢先获知拟建商机动态,提高中标机率!', // 三级页-拟建项目
+        'ent-manage-pc': '请留下联系方式,我们会尽快联系您体验商机管理全部功能!', // 三级页-拟建项目
       },
       },
       isRefresh: false // 留完资是否需要刷新页面
       isRefresh: false // 留完资是否需要刷新页面
     }
     }
@@ -420,6 +421,9 @@ var vm = new Vue({
         }
         }
         return '恭喜您,成功解锁【' + text + '】权益1次。如需查看更多,请开通超级订阅,为您提供最新的商业情报,抢占先机。'
         return '恭喜您,成功解锁【' + text + '】权益1次。如需查看更多,请开通超级订阅,为您提供最新的商业情报,抢占先机。'
       } else {
       } else {
+        if (this.source.indexOf('ent-manage-pc') > -1) {
+          return '我们会尽快联系您并预约演示时间,请耐心等待~<br>您将获得免费体验商机管理全部功能!'
+        }
         return '我们会尽快联系您并预约演示时间,请耐心等待~<br>您将获得免费体验大会员全部功能!'
         return '我们会尽快联系您并预约演示时间,请耐心等待~<br>您将获得免费体验大会员全部功能!'
       }
       }
     }
     }

+ 30 - 8
src/web/templates/frontRouter/pc/entpc/sess/enptc_index.html

@@ -21,7 +21,7 @@
         .enptc-index {
         .enptc-index {
             padding-top: 0;
             padding-top: 0;
         }
         }
-        .enptc-index .footer-banner {           
+        .enptc-index .footer-banner {
             background: linear-gradient(360deg, #085CDA 0%, #0CA2E2 98%);
             background: linear-gradient(360deg, #085CDA 0%, #0CA2E2 98%);
         }
         }
         .enptc-index .footer-banner img {
         .enptc-index .footer-banner img {
@@ -41,7 +41,7 @@
 <div class=" enptc-index">
 <div class=" enptc-index">
     <div class="w-box" style=" text-align: center;">
     <div class="w-box" style=" text-align: center;">
         <img style="width: 100%;height: 600px;" src='{{Msg "seo" "cdn"}}/enptc/images/top-bg.png' alt="">
         <img style="width: 100%;height: 600px;" src='{{Msg "seo" "cdn"}}/enptc/images/top-bg.png' alt="">
-        <div class="subpage-button white">了解更多</div>
+        <div class="subpage-button white" data-source="商机管理">了解更多</div>
     </div>
     </div>
     <div class="w-box" style="margin-top: -60px;background: linear-gradient(134deg, #F0FCFF 0%, #E2F1FF 100%);" >
     <div class="w-box" style="margin-top: -60px;background: linear-gradient(134deg, #F0FCFF 0%, #E2F1FF 100%);" >
         <div class="w1200">
         <div class="w1200">
@@ -119,7 +119,7 @@
                 </div>
                 </div>
             </div>
             </div>
         </div>
         </div>
-        
+
     </div>
     </div>
     <div class="w-box bg-3 ">
     <div class="w-box bg-3 ">
         <div class="w1200" style="padding-top: 60px; padding-bottom: 80px;">
         <div class="w1200" style="padding-top: 60px; padding-bottom: 80px;">
@@ -244,16 +244,16 @@
                     </div>
                     </div>
                 </div>
                 </div>
             </div>
             </div>
-            <div class="subpage-button footer-blue">了解更多</div>
+            <div class="subpage-button footer-blue" data-source="商机管理">了解更多</div>
         </div>
         </div>
     </div>
     </div>
     <div id="iphoneX-box"></div>
     <div id="iphoneX-box"></div>
     <!--S-底部横幅-->
     <!--S-底部横幅-->
     <div class="w-box footer-banner" data-sticky-change>
     <div class="w-box footer-banner" data-sticky-change>
         <div class="w1200">
         <div class="w1200">
-            <img style="width: 1152px;" src='{{Msg "seo" "cdn"}}/enptc/images/footer-banner.png' alt="" usemap="#map1" />
+            <img style="width: 1200px;" src='{{Msg "seo" "cdn"}}/enptc/images/footer-banner.png' alt="" usemap="#map1" />
             <map name="map1" style="cursor: pointer">
             <map name="map1" style="cursor: pointer">
-                <area id="go-free-week1" data-need-bind-phone data-free-week shape="rect" coords="973,40,1134,85"  />
+                <area class="open-customer" id="go-free-week1" data-need-bind-phone data-free-week shape="rect" coords="929.5,44,1130.5,88" />
                 <!-- <area id="go-buy-18" data-need-bind-phone data-go-buy="0"  shape="rect" coords="950, 21, 1090, 67" /> -->
                 <!-- <area id="go-buy-18" data-need-bind-phone data-go-buy="0"  shape="rect" coords="950, 21, 1090, 67" /> -->
             </map>
             </map>
         </div>
         </div>
@@ -263,9 +263,9 @@
     </div>
     </div>
     <div class="w-box footer-banner" data-sticky>
     <div class="w-box footer-banner" data-sticky>
         <div class="w1200">
         <div class="w1200">
-            <img style="width: 1152px;" src='{{Msg "seo" "cdn"}}/enptc/images/footer-banner.png' alt="" usemap="#map2" />
+            <img style="width: 1200px;" src='{{Msg "seo" "cdn"}}/enptc/images/footer-banner.png' alt="" usemap="#map2" />
             <map name="map2" style="cursor: pointer">
             <map name="map2" style="cursor: pointer">
-                <area id="go-free-week2"  data-need-bind-phone data-free-week shape="rect" coords="973,40,1134,85"  />
+                <area class="open-customer" id="go-free-week2"  data-need-bind-phone data-free-week shape="rect" coords="929.5,44,1130.5,88"  />
                 <!-- <area id="go-buy-19" data-need-bind-phone data-go-buy="0"  shape="rect" coords="950, 21, 1090, 67" /> -->
                 <!-- <area id="go-buy-19" data-need-bind-phone data-go-buy="0"  shape="rect" coords="950, 21, 1090, 67" /> -->
             </map>
             </map>
         </div>
         </div>
@@ -365,6 +365,28 @@
     setNavTheme(firstTheme = 'dark')
     setNavTheme(firstTheme = 'dark')
 </script>
 </script>
 <script src='{{Msg "seo" "cdn"}}/big-member/js/public_big.js?v={{Msg "seo" "version"}}'></script>
 <script src='{{Msg "seo" "cdn"}}/big-member/js/public_big.js?v={{Msg "seo" "version"}}'></script>
+<script>
+    $(function () {
+        $.ajax({
+            url: '/entnicheNew/buy/whetherbuy',
+            type: 'POST',
+            success: function (res) {
+                if (res.data && res.data.status === 2) {
+                    $('.footer-banner').hide()
+                    $(".subpage-button").each(function () {
+                        var nType = $(this).text().trim()
+                        if (nType === '了解更多') {
+                            $(this).text('立即使用')
+                            if ($(this).hasClass('lightBlue')) {
+                                $(this).removeClass('lightBlue').addClass('gold')
+                            }
+                        }
+                    })
+                }
+            }
+        })
+    })
+</script>
 <!--S-百度统计-->
 <!--S-百度统计-->
 {{include "/common/pcbottom.html"}}
 {{include "/common/pcbottom.html"}}
 {{include "/common/baiducc.html"}}
 {{include "/common/baiducc.html"}}