Browse Source

添加回答和问题的统计

luyanan 7 years ago
parent
commit
8b54632a13
4 changed files with 6 additions and 1 deletions
  1. 1 1
      e/a.html
  2. 1 0
      e/da.html
  3. 1 0
      e/wen.html
  4. 3 0
      js/qa-show.js

+ 1 - 1
e/a.html

@ -127,7 +127,7 @@
127 127
		var appid = '';
128 128
		var articleId = GetQueryString("id");
129 129
		module.lWord(articleId,1);
130
		wlog("article", articleId, 3)
130
		wlog("article", articleId, '3')
131 131
		//进入发布者详情页面
132 132
		$("#personAL").on("click", function() {
133 133
			var reType = this.getAttribute("data-type");

+ 1 - 0
e/da.html

@ -72,6 +72,7 @@
72 72
					shareTitle,
73 73
					appid = '';
74 74
				var answerId = GetQueryString("id");
75
				wlog("answer",answerId,'3');
75 76
				module.lWord(answerId,4);
76 77
				var oAjax = function(url, dataS, otype, oFun) {
77 78
						$.ajax({

+ 1 - 0
e/wen.html

@ -71,6 +71,7 @@
71 71
					shareTitle,
72 72
					appid = '';
73 73
				var questionId = GetQueryString("id");
74
				wlog("question",questionId,'3');
74 75
				var rows = 5,
75 76
					dataO = {
76 77
						time: "",

+ 3 - 0
js/qa-show.js

@ -179,6 +179,7 @@ $(function() {
179 179
			})
180 180
		},
181 181
		answerList = function() {
182
			wlog("question",questionId,"1");
182 183
			var byway = document.querySelector('.list-hold-count>ul').querySelector("li.active").getAttribute("data-type");
183 184
			var typeurl,dataStr={};
184 185
			if(byway == 1) {
@ -248,6 +249,7 @@ $(function() {
248 249
			})
249 250
		},
250 251
		answerTop=function(answerId){
252
			wlog("answer",answerId,"1");
251 253
			oAjax('/ajax/question/answer', {
252 254
				"id": answerId
253 255
			}, "get", function(res) {
@ -258,6 +260,7 @@ $(function() {
258 260
			})
259 261
		},
260 262
		answerThisShow=function(){
263
			
261 264
			var typeurl = "/ajax/question/answer/qes/byScore",
262 265
				dataStr={
263 266
					"qid": questionId,