فهرست منبع

微信添加广告代码

TANGSHIZHE 4 سال پیش
والد
کامیت
9714e7fa48

+ 70 - 2
src/jfw/modules/followent/src/web/templates/weixin/list.html

@@ -13,12 +13,21 @@ if(sessionStorage){
 }
 </script>
 <script src="/jylab/followent/js/rem.js"></script>
+<script src="https://cdn-common.jianyu360.com/cdn/lib/jquery/3.6.0/jquery.min.js"></script>
 <link href="/jylab/followent/css/weui.min.css" rel="stylesheet">
 <link href="/jylab/followent/css/common.css?v={{Msg "seo" "version"}}" rel="stylesheet">
 <link href="/jylab/followent/css/follow.css?v={{Msg "seo" "version"}}" rel="stylesheet">
 <link href="/jylab/followent/css/merge-wx.css?v={{Msg "seo" "version"}}" rel="stylesheet">
 
 </head>
+<style>
+    #pro_footer{
+		position: fixed;
+		left: 0;
+		right: 0;
+		bottom: 0;
+	}
+</style>
 <body class="listpage">
 	<ul>
 	</ul>
@@ -29,8 +38,51 @@ if(sessionStorage){
 		<img src="/jylab/followent/images/wx/jyprompt.png">剑鱼标讯提示:<front>可关注{{.T.followEntLimit}}个企业</front>
 	</div>
 	<div class="jylistbottom" style="display: none;">
-		<img src="/jylab/followent/images/wx/jydustbin.png"/>批量移除30天无更新企业
-	</div>
+        <img src="/jylab/followent/images/wx/jydustbin.png"/>批量移除30天无更新企业
+    </div>
+    <div class="_fhts92t44f" id="pro_footer"></div>
+    <script type="text/javascript">
+        $.ajax({
+            type: 'POST',
+            url: '/publicapply/bidcoll/power?t=' + new Date().getTime(),
+            success: function(res) {
+                console.log(res)
+                // res.data.entniche = false
+                // res.data.member = false
+                // res.data.vip = 0
+                if(res.error_code == 0) {
+                    if(!res.data.entniche && !res.data.member && res.data.vip <= 0){
+                        (window.slotbydup = window.slotbydup || []).push({
+                            id: "u6603901",
+                            container: "_fhts92t44f",
+                            async: true
+                        });
+                        getAjaxAdv()
+                    }
+                }
+            },
+            error: function(err) {
+                console.log(err)
+            }
+        })
+        function getAjaxAdv () {
+            $.ajax({
+                type: 'POST',
+                url: '/publicapply/adLeague/exposure',
+                data: {
+                        client: 'WX',
+                        id: 'ad8',
+                        position: '关注的企业列表页底部'
+                },
+                success: function(res) {
+                        console.log(res)
+                }
+            })
+        }
+    </script>
+    <!-- 多条广告如下脚本只需引入一次 -->
+    <script type="text/javascript" src="//cpro.baidustatic.com/cpro/ui/cm.js" async="async" defer="defer" >
+    </script>
 	<div class="easypopup" id="easypopup">
 		<div class="easypopup-main">
 			<div class="easypopup-header">提示信息</div>
@@ -52,6 +104,22 @@ if(sessionStorage){
 <script type="text/javascript">
 initShare({{.T.signature}},{{.T.openid}},2,"jy_extend",{{.T.nickname}},{{.T.avatar}});
     $(function () {
+        addEventListener('blur', function() {
+            if(document.activeElement = document.getElementById('iframeu6603901_0')) {
+                $.ajax({
+                    type: 'POST',
+                    url: '/publicapply/adLeague/click',
+                    data: {
+                        client: 'WX',
+                        id: 'ad8',
+                        position: '关注的企业列表页底部'
+                    },
+                    success: function(res) {
+                        console.log(res)
+                    }
+                })
+            }  
+        });
         $(window).bind("pageshow", function(event){
             if(event.originalEvent.persisted && sessionStorage.version == "1"){
                 hasReload = true;

+ 1 - 1
src/web/staticres/css/follow.css

@@ -299,7 +299,7 @@ top:17px;
 	background-color:#bfbfc3;
 	border-top:1px solid #ccc;
 	width:100%;
-	height:50px;
+	/* height:50px; */
 	display:block;
     position: fixed;
     left: 0px;

+ 35 - 2
src/web/staticres/js/wxSupersearch.js

@@ -1323,6 +1323,38 @@ var SuperSearch = {
           $(window).scrollTop(0);
             SuperSearch.initDropload(data.hasNextPage,2);
         }
+        console.log(sessionStorage.getItem('powerStatus'), '1')
+        var powerStatus = sessionStorage.getItem('powerStatus')
+        if(powerStatus) {
+          powerStatus = JSON.parse(powerStatus)
+          powerStatus.entniche = false
+          powerStatus.member = false
+          powerStatus.vip = 0
+          if(!powerStatus.entniche && !powerStatus.member && powerStatus.vip <= 0) {
+            (window.slotbydup = window.slotbydup || []).push({
+                id: "u6603898",
+                container: "_3vjxuru9waw",
+                async: true
+            });
+            (window.slotbydup = window.slotbydup || []).push({
+                id: "u6603898",
+                container: "_5kkgu31s5a4",
+                async: true
+            });
+            $.ajax({
+              type: 'POST',
+              url: '/publicapply/adLeague/exposure',
+              data: {
+                      client: 'WX',
+                      id: 'ad5',
+                      position: '搜索列表页'
+              },
+              success: function(res) {
+                      console.log(res)
+              }
+            })
+          }
+        }
       },
       error: function(xhr,type){
         $("#supersearchPage #wrapper .dropload-down").remove();
@@ -1341,11 +1373,11 @@ var SuperSearch = {
     for(var i=0;i<list.length;i++){
       if(pageNum == 1 && i == 9) {
         // 百青藤广告插入
-        ListHtml += '<div class="_ouq34ajmfig">'+'</div>'
+        ListHtml += '<div class="_3vjxuru9waw">'+'</div>'
       }
       if(pageNum == 1 && i == 24) {
         // 百青藤广告插入
-        ListHtml += '<div class="_nxko9k32d8d">'+'</div>'
+        ListHtml += '<div class="_5kkgu31s5a4">'+'</div>'
       }
       if(pageNum==1&&i==4&&!SuperSearch.advertIsClose){
         ListHtml+='<div  class="adv-wxsearch-center" id="E1"></div>'
@@ -2557,3 +2589,4 @@ var SuperSearch = {
     }
   }
 };
+

+ 29 - 1
src/web/staticres/vipsubscribe/js/historypush.js

@@ -185,15 +185,43 @@ var vm = new Vue({
         url: '/publicapply/bidcoll/power',
         type: 'POST',
         success: function(res) {
+          // res.data.entniche = false
+          // res.data.member = false
+          // res.data.vip = 0
           // 如果是商机管理、大会员、超级订阅会员有筛选权限
           if(res.data.entniche || res.data.member || res.data.vip > 0) {
             _this.screenShow = true
           } else {
-            _this.screenShow = false
+            _this.screenShow = false;
+            (window.slotbydup = window.slotbydup || []).push({
+              id: "u6603902",
+              container: "_36y1d8lbx9n",
+              async: true
+            });
+            (window.slotbydup = window.slotbydup || []).push({
+                id: "u6603902",
+                container: "_061vbh43quq3",
+                async: true
+            });
+            _this.getAjaxAdv()
           }
         }
       })
     },
+    getAjaxAdv () {
+        $.ajax({
+            type: 'POST',
+            url: '/publicapply/adLeague/exposure',
+            data: {
+                client: 'WX',
+                id: 'ad6',
+                position: '订阅推送列表页'
+            },
+            success: function(res) {
+                console.log(res)
+            }
+        })
+    },
     confirm: function(data){
       console.log(data)
       if(data.name === 'dateItem'){

+ 60 - 0
src/web/templates/weixin/follow/list.html

@@ -86,6 +86,7 @@ $(function(){
 	var nextarr = new Array();
 	var jyno = 0;
 	data.sort(function(a,b){return a.l_lastpushtime<b.l_lastpushtime});
+	console.log(data, 'data')
 	for (var i in data){
 		var lastpushtime = data[i]["l_lastpushtime"];
 		var timestamp = parseInt($.now()/ 1000);
@@ -248,6 +249,65 @@ $(function(){
 	</div>
 <div class="jylistbottom">
 	<img src="/images/wx/jydustbin.png"/>批量移除30天无更新项目
+	<div class="_s4kc1gcaqh8"></div>
+	<script>
+		$.ajax({
+			type: 'POST',
+			url: '/publicapply/bidcoll/power?t=' + new Date().getTime(),
+			success: function(res) {
+					console.log(res)
+					// res.data.entniche = false
+					// res.data.member = false
+					// res.data.vip = 0
+					if(res.error_code == 0) {
+						if(!res.data.entniche && !res.data.member && res.data.vip <= 0){
+							(window.slotbydup = window.slotbydup || []).push({
+									id: "u6603903",
+									container: "_s4kc1gcaqh8",
+									async: true
+							});
+							getAjaxAdv()
+						}
+					}
+			},
+			error: function(err) {
+					console.log(err)
+			}
+	})
+	function getAjaxAdv () {
+			$.ajax({
+				type: 'POST',
+				url: '/publicapply/adLeague/exposure',
+				data: {
+						client: 'WX',
+						id: 'ad9',
+						position: '关注的项目列表页底部'
+				},
+				success: function(res) {
+						console.log(res)
+				}
+			})
+	}
+	addEventListener('focus', function() {
+		if(document.activeElement = document.getElementById('iframeu6603903_0')) {
+			$.ajax({
+					type: 'POST',
+					url: '/publicapply/adLeague/click',
+					data: {
+						client: 'WX',
+						id: 'ad9',
+						position: '关注的项目列表页底部'
+					},
+					success: function(res) {
+							console.log(res)
+					}
+			})
+		}  
+	});
+	</script>
+	<!-- 多条广告如下脚本只需引入一次 -->
+	<script type="text/javascript" src="//cpro.baidustatic.com/cpro/ui/cm.js" async="async" defer="defer" >
+	</script>
 </div>
 	<div class="easypopup" id="easypopup">
 		<div class="easypopup-main">

+ 65 - 0
src/web/templates/weixin/historypush.html

@@ -804,6 +804,27 @@
         }
     })
 </script>
+<script type="text/javascript">
+addEventListener('focus', function() {
+    if(document.activeElement = document.getElementById('iframeu6603902_0')) {
+        $.ajax({
+            type: 'POST',
+            url: '/publicapply/adLeague/click',
+            data: {
+                client: 'WX',
+                id: 'ad6',
+                position: '订阅推送列表页'
+            },
+            success: function(res) {
+                    console.log(res)
+            }
+        })
+    }  
+});
+</script>
+<!-- 多条广告如下脚本只需引入一次 -->
+<script type="text/javascript" src="//cpro.baidustatic.com/cpro/ui/cm.js" async="async" defer="defer" >
+</script>
 <script>
   // @手机号绑定及账号合并 2021/1/25
   $("#toKeySet").on('click', tokeysetForFree)
@@ -1340,6 +1361,50 @@
                       continue
                   }
               }
+              if (index == 8) {//广告位
+                listhtml += '<div class="tslist" style="border-bottom: none;" words="' + mWords + '">'
+                    + '<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"] + '" href="javascript:void(0);"  push_date="' + obj["ca_date"] + '" list_index="' + obj["ca_index"] + '" projectM="' + obj["ca_type"] + '">' + 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="_36y1d8lbx9n">'+'</div>'
+                continue
+              }
+              if (index == 23) {//广告位
+                listhtml += '<div class="tslist" style="border-bottom: none;" words="' + mWords + '">'
+                    + '<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"] + '" href="javascript:void(0);"  push_date="' + obj["ca_date"] + '" list_index="' + obj["ca_index"] + '" projectM="' + obj["ca_type"] + '">' + 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="_061vbh43quq3">'+'</div>'
+                continue
+              }
               listhtml += '<div class="tslist" words="' + mWords + '">'
                   + '<div class="resnumb">'
                   + '<div class="one">'

+ 19 - 0
src/web/templates/weixin/search/mainSearch.html

@@ -877,6 +877,7 @@
       url: '/publicapply/bidcoll/power',
       type: 'POST'
     }).done(function (r) {
+			sessionStorage.setItem('powerStatus', JSON.stringify(r.data))
         if (r && r.error_msg == '' && r.data) {
           window.jyUserPower = {
             entniche: r.data.entniche,
@@ -1128,6 +1129,24 @@
     window.location.href="/active/livePage/index";
   }
 </script>
+<script>
+	addEventListener('focus', function() {
+			if(document.activeElement = document.getElementById('iframeu6603898_0')) {
+					$.ajax({
+							type: 'POST',
+							url: '/publicapply/adLeague/click',
+							data: {
+									client: 'WX',
+									id: 'ad5',
+									position: '搜索列表页'
+							},
+							success: function(res) {
+											console.log(res)
+							}
+					})
+			}  
+	});
+</script>
 <!--百度统计-->
 {{include "/common/baiducc.html"}}
 </body>

+ 54 - 6
src/web/templates/weixin/wxinfocontent_rec.html

@@ -686,13 +686,61 @@ pre {
   }
 </script>
 <div class="info">
-	<div class="_vt6grad49so"></div>
+<div class="_vt6grad49so"></div>
 <script type="text/javascript">
-    (window.slotbydup = window.slotbydup || []).push({
-        id: "u6603899",
-        container: "_vt6grad49so",
-        async: true
-    });
+		$.ajax({
+			type: 'POST',
+			url: '/publicapply/bidcoll/power?t=' + new Date().getTime(),
+			success: function(res) {
+					console.log(res)
+					// res.data.entniche = false
+					// res.data.member = false
+					// res.data.vip = 0
+					if(res.error_code == 0) {
+							if(!res.data.entniche && !res.data.member && res.data.vip <= 0) {
+									(window.slotbydup = window.slotbydup || []).push({
+											id: "u6603899",
+											container: "_vt6grad49so",
+											async: true
+									});
+									getAjaxAdv()
+							}
+					}
+			},
+			error: function(err) {
+							console.log(err)
+			}
+		})
+		function getAjaxAdv () {
+				$.ajax({
+				type: 'POST',
+				url: '/publicapply/adLeague/exposure',
+				data: {
+						client: 'WX',
+						id: 'ad7',
+						position: '公告详情页顶部'
+				},
+				success: function(res) {
+						console.log(res)
+				}
+				})
+		}
+		addEventListener('focus', function() {
+				if(document.activeElement = document.getElementById('iframeu6603899_0')) {
+						$.ajax({
+								type: 'POST',
+								url: '/publicapply/adLeague/click',
+								data: {
+										client: 'WX',
+										id: 'ad7',
+										position: '公告详情页顶部'
+								},
+								success: function(res) {
+										console.log(res)
+								}
+						})
+				}  
+		});
 </script>
 <!-- 多条广告如下脚本只需引入一次 -->
 <script type="text/javascript" src="//cpro.baidustatic.com/cpro/ui/cm.js" async="async" defer="defer" >