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

+ 1 - 0
e/da.html

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

+ 1 - 0
e/wen.html

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

+ 3 - 0
js/qa-show.js

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