Эх сурвалжийг харах

feat:标讯详情新增拟建、采购意向广告

zhangsiya 2 жил өмнө
parent
commit
920ed6ad14

BIN
src/web/staticres/images/focontent/ad_bigmember.png


BIN
src/web/staticres/images/focontent/ad_bigmember2.png


+ 45 - 13
src/web/templates/weixin/wxinfocontent_rec.html

@@ -841,6 +841,14 @@ body .loading_ p span {
 .border-tel_hide{
   display:none;
 }
+.big-ad-img {
+    display: none;
+}
+.big-ad-img img{
+    width:100%;
+    cursor: pointer;
+    display:none
+}
 </style>
 </head>
 <body>
@@ -1043,6 +1051,13 @@ body .loading_ p span {
 	<div class="newuser hidden">
 	<img src="{{Msg "seo" "cdn"}}/images/wx/newuser.png"/>
 	</div>
+<!--    免费用户-->
+    <div class="big-ad-img" onclick="jumpBigPage()">
+<!--        拟建项目显示-->
+        <img class="nj-ad" src="{{Msg "seo" "cdn"}}/images/focontent/ad_bigmember2.png"/>
+<!--        采购意向显示-->
+        <img class="cgyx-ad" src="{{Msg "seo" "cdn"}}/images/focontent/ad_bigmember.png"/>
+    </div>
 	<div class="fatNav" style="display:none;">
 		<div class="childNav">
 			<div class="tab1 active" onclick="tabCh(1)">
@@ -1826,13 +1841,24 @@ function checkShowDialog () {
 		$(".tab-ct").hide() // 正文信息
 		$(".abs").hide() // 阅读原文和意见反馈
 		$(".atta-list").hide() // 附件列表
-		$(".mask-zz").removeClass("hidden");
+		// $(".mask-zz").removeClass("hidden");
 		$(".reward").hide();
 	} else {
 		$(".prebuilt").css('height', 'unset')
 		$('.third-party-verify').show()
 	}
 }
+// 是否展示详情上方的广告位
+function showTopAd () {
+  if(window.isFree) {
+    $('.big-ad-img').show()
+    if (subtype == '采购意向') {
+      $('.cgyx-ad').show()
+    } else if(subtype == '拟建') {
+      $('.nj-ad').show()
+    }
+  }
+}
 
 //留资弹窗页面
 $('.free-btn-reword').on('click', function() {
@@ -1879,18 +1905,20 @@ function isOpening() {
           window.fileNum = res.data.fileNum // 超级订阅用户可下载附件次数
           //拟建--采购意向
           checkShowDialog()
-					// 不是大会员
-					if (bigstatus <= 0) {
-							getDrainInfo()
-							$('.lead-btn').hide()
-							if({{.T.obj.subtype}}!="拟建") {
-									$('.lead-btn').hide()
-							} else {
-									$('.lead-btn').hide()
-									$('.bigvip_drain').hide()
-							}
-					} else {
-							$('.bigvip_drain').hide()
+          //拟建--采购意向
+          showTopAd()
+        // 不是大会员
+        if (bigstatus <= 0) {
+                getDrainInfo()
+                $('.lead-btn').hide()
+                if({{.T.obj.subtype}}!="拟建") {
+                        $('.lead-btn').hide()
+                } else {
+                        $('.lead-btn').hide()
+                        $('.bigvip_drain').hide()
+                }
+        } else {
+                $('.bigvip_drain').hide()
           }
           if (res.data.power && res.data.power.indexOf(6) > -1) {
             $('#analysis-in').hide()
@@ -3705,6 +3733,10 @@ function changeClaimState (f) {
     $('.icon_state').removeClass('icon-add-claim').addClass('icon-claim')
   }
 }
+
+function jumpBigPage() {
+  location.href = '/big/wx/page/landingPage'
+}
 </script>
 {{include "/common/baiducc.html"}}
 </body>