Browse Source

增加浏览量

luyanan 7 years ago
parent
commit
a3e9714c08
3 changed files with 31 additions and 6 deletions
  1. 16 4
      app/html/professorArticle.html
  2. 2 2
      app/js/public/base.js
  3. 13 0
      app/js/qa-question-show.js

+ 16 - 4
app/html/professorArticle.html

@ -17,6 +17,11 @@
17 17
			html,body{height:100%;margin:0;padding:0px;overflow: hidden;background: #FFFFFF;}
18 18
			.mui-content{height:100%;overflow: auto;background: #FFFFFF;}
19 19
		</style>
20
		<script type="text/javascript">
21
			addscript("ad_article_app_ding");
22
			addscript("ad_article_app_top");
23
			addscript("ad_article_app_bottom");
24
		</script>
20 25
	</head>
21 26

22 27
	<body>
@ -66,6 +71,10 @@
66 71
						        </li>
67 72
						    </ul>
68 73
			    		</div>
74
			    		<!--广告模块-->
75
					<div class="madiaBlock advertItem advertItem-ding">
76
						
77
					</div>
69 78
				    	<!--文章内容区-->
70 79
					<div class="showMain" id="articleContent">
71 80
						</div>
@ -96,7 +105,7 @@
96 105
						<span class="thumbBtn">赞 <span id="snum"></span></span><!-- thumbedBtn 已赞 201-->
97 106
					</div>
98 107
					<!--广告模块-->
99
					<div class="madiaBlock swiper-container advertItem" style="margin:30px 0 10px">
108
					<div class="madiaBlock swiper-container advertItem advertItem-top" style="margin:30px 0 10px">
100 109
					  
101 110
					</div>
102 111
					<!--您可能感兴趣的文章-->
@ -113,12 +122,17 @@
113 122
					    </ul>
114 123
					</div>
115 124
					<!--留言-->
116
					<div class="madiaBlock" style="padding-bottom:50px;">
125
					<div class="madiaBlock">
117 126
						<div class="madiaTit" id="olisten">留言</div>
118 127
						<ul class="mui-table-view commentBlock noactiveTab">
119 128
					     
120 129
					   </ul>
121 130
					</div>
131
					
132
					<!--广告模块-->
133
					<div class="madiaBlock swiper-container advertItem advertItem-bottom" style="margin:30px 0 50px;">
134
					  
135
					</div>
122 136
			    </div>
123 137
			
124 138
			</div>
@ -144,8 +158,6 @@
144 158
		</div>
145 159

146 160
		<script type="text/javascript"> 
147
			addscript();//动态调用js
148
			
149 161
			document.getElementById("listenClick").addEventListener("tap",function(){
150 162
				$(".mui-content").animate({"scrollTop": document.getElementById("olisten").offsetTop-20+"px"}, 400); 
151 163
			})

+ 2 - 2
app/js/public/base.js

@ -540,10 +540,10 @@ function client1() {
540 540
					}
541 541
	
542 542
//广告轮播操作
543
function addscript(){
543
function addscript(that){
544 544
	var script=document.createElement("script");  
545 545
	script.setAttribute("type", "text/javascript");  
546
	var srclink= "http://www.ekexiu.com/data/inc/ad/ad_article_app.js?r=" + new Date().getTime();
546
	var srclink= "http://www.ekexiu.com/data/inc/ad/"+ that +".js?r=" + new Date().getTime();
547 547
	script.setAttribute("src", srclink);  
548 548
	var heads = document.getElementsByTagName("head");  
549 549
	if(heads.length){  

+ 13 - 0
app/js/qa-question-show.js

@ -310,6 +310,19 @@ mui.ready(function() {
310 310
					})
311 311
				})
312 312
			}
313
		mui.ajax(baseUrl + '/ajax/question/pageViews',{
314
			"type" :  "POST" ,
315
			"dataType" : "json",
316
			"data" :{"qid":questionId},
317
			"success" : function(data) {
318
				console.log(data);
319
				if (data.success){
320
				}
321
			},
322
			"error":function(){
323
				
324
			}
325
		});
313 326
		
314 327
		pullEvent();
315 328
		getConmain();