Bladeren bron

问题被关注数量

luyanan 7 jaren geleden
bovenliggende
commit
8290ead7ef
4 gewijzigde bestanden met toevoegingen van 52 en 17 verwijderingen
  1. 5 5
      app/css/app.css
  2. 2 2
      app/js/qa-answer-show.js
  3. 31 9
      app/js/qa-my-wendaTT.js
  4. 14 1
      app/js/qa-waiting-a.js

+ 5 - 5
app/css/app.css

@ -631,7 +631,7 @@ footer.chatFooter .mui-icon-paperplane {font-size: 16px;word-break: keep-all;lin
631 631
.nodatabox .txtbox .currword{font-size: 14px;color: #999999;line-height: 14px;}
632 632
.nodatabox .txtbox .currtip{ font-size:13px;color: #AAAAAA;}
633 633
.nodatabox .txtbox .keyword{ padding:0 6px;}
634
.con-kong{line-height: 60px;color: #aaa;font-size: 14px;text-align: center;margin:20% auto;}
634
.con-kong{line-height: 60px;color: #aaa;font-size: 14px;text-align: center;padding:20% 0;}
635 635
/***********************缺省页面*******************/
636 636

637 637
/***********************科袖用户协议*******************/
@ -1156,8 +1156,8 @@ ul.tagList>li .h2Font{color: #666; -webkit-user-select:text;}
1156 1156
.qa-owner .owner-head{position:absolute;top:50%;background-position: center;background-size: cover;}
1157 1157
.qa-owner .owner-head.useHead{width:32px;height:32px;margin-top:-16px;background-image: url(../images/default-photo.jpg);border-radius: 50%;}
1158 1158
.qa-owner .owner-info{padding-left:38px;}
1159
.owner-name{float: left;}
1160
.owner-tit{margin-left:10px;float: left;max-width:52%;color:#888888}
1159
.owner-name{float: left;width:100%;}
1160
.owner-tit{margin-left:10px;float: left;max-width:70%;color:#888888}
1161 1161
.qa-con{font-size:14px;line-height: 22px;color:#666;}
1162 1162
.mui-table-view.partLine{background: none;}
1163 1163
.mui-table-view.partLine>.mui-table-view-cell{margin-bottom: 10px;background: #fff;}
@ -1195,7 +1195,7 @@ ul.tagList>li .h2Font{color: #666; -webkit-user-select:text;}
1195 1195
.item_detail .h1Font{font-weight:normal;font-size:18px;line-height:24px;color:#000}
1196 1196
.item_detail .list_con{font-size: 15px;color: #333;line-height: 24px;margin: 6px 0;text-align:justify}
1197 1197
.list_image,.item-btn{overflow: hidden;}
1198
.list_image li,.item-btn li{display: inline-block; overflow: hidden; width: 33.3%; -webkit-box-sizing: border-box;box-sizing: border-box;position: relative;}
1198
.list_image li,.item-btn li{display: inline-block; overflow: hidden;float:left; width: 33.3%; -webkit-box-sizing: border-box;box-sizing: border-box;position: relative;}
1199 1199
.list_image li>.imgspan{display: block;width: 98%;height:90px;background-size: cover;background-position: center;}
1200 1200
@media only screen and (min-width:640px) and (max-width:980px)  {
1201 1201
	.list_image li>.imgspan{height:140px;width: 96%;}
@ -1204,7 +1204,7 @@ ul.tagList>li .h2Font{color: #666; -webkit-user-select:text;}
1204 1204
	.list_image li>.imgspan{height:200px;width: 96%;}
1205 1205
}
1206 1206
.item-btn{margin:6px -16px -15px -15px;border-top:1px solid #e5e5e5;}
1207
.item-btn li{border-right:1px solid #e5e5e5;height: 36px;}
1207
.item-btn li{border-right:1px solid #e5e5e5;height: 46px;}
1208 1208
.item-btn li>span{display: inline-block;width: 100%;text-align: center;color:#666;font-size:14px;padding:8px 0;}
1209 1209
.item-btn li.answered>span{color:#FF0000}
1210 1210
.item-btn li.collectBtn>span{position:absolute;width:20px;left:50%;margin-left:-10px;top:5px;}

+ 2 - 2
app/js/qa-answer-show.js

@ -112,11 +112,11 @@ mui.ready(function() {
112 112
						data: {
113 113
							content: document.getElementById("answerCnt").innerHTML.substring(0, 40),
114 114
							title: document.getElementById("questTit").innerHTML,
115
							href: baseUrl + "/e/d.html?id=" + answerId,
115
							href: baseUrl + "/e/da.html?id=" + answerId,
116 116
							thumbs: [oUrl]
117 117
						},
118 118
						weiboData: {
119
							content: document.getElementById("questTit").innerHTML + baseUrl + "/e/d.html?id=" + answerId,
119
							content: document.getElementById("questTit").innerHTML + baseUrl + "/e/da.html?id=" + answerId,
120 120
						}
121 121
					})
122 122
				})

+ 31 - 9
app/js/qa-my-wendaTT.js

@ -245,17 +245,27 @@ mui.ready(function () {
245 245
                    '<div class="madiaHead qa-Head" style="background-image:url(' + baImg + ')"></div>' +
246 246
                    '<div class="madiaInfo OmadiaInfo">' +
247 247
                    '<p class="mui-ellipsis-2 h1Font">' + dataStr.title + '</p>' +
248
                    '<p class="show-item mui-ellipsis h2Font">' + hd + '<span>N 关注</span></p>' +
249
                    '</div></div>'
250
            },
248
                    '<p class="show-item mui-ellipsis h2Font">' + hd + '<span class="attendCount"></span></p>' +
249
				'</div></div>'
250
				attendCount(dataStr.id, $str);
251
	        },
252
			attendCount=function(id, $str) {
253
				oAjax("/ajax/watch/countProfessor", {
254
					id:id,
255
					type: 9
256
				}, "get", function(data) {
257
					if(data.success) {
258
						if(data.data > 0) {
259
							$str.find(".attendCount").html(data.data + "关注");
260
						}
261
					}
262
				})
263
			},
251 264
            answerModule = function (dataStr, liStr) {
252
                var hd = "", hl = "";
265
                var hd = "";
253 266
                if (dataStr.agree > 0) {
254 267
                    hd = '<span>' + dataStr.agree + ' 赞</span>'
255 268
                }
256
                if (dataStr.ballot > 0) {
257
                    hl = '<span>' + dataStr.ballot + ' 留言</span>'
258
                }
259 269
                liStr.setAttribute("data-id", dataStr.id);
260 270
                liStr.className = "mui-table-view-cell";
261 271
                var str = '<div class="madiaInfo">' +
@ -263,15 +273,27 @@ mui.ready(function () {
263 273
                    '<div class="flexCenter qa-owner"></div>' +
264 274
                    '<p class="qa-con mui-ellipsis-5">' + dataStr.cnt + '</p>' +
265 275
                    '<div class="showli mui-ellipsis">' +
266
                    '<span>' + commenTime(dataStr.createTime) + '</span>' + hd + hl +
276
                    '<span>' + commenTime(dataStr.createTime) + '</span>' + hd +'<span class="leaveMsgCount"></span>'+
267 277
                    '</div>' +
268 278
                    '</div>'
269 279
                var $str = $(str)
270 280
                $str.appendTo(liStr);
271 281
                questioninfo(dataStr.qid, $str);
272 282
                proinfo(dataStr.uid, $str);
273
283
				leaveMsgCount(dataStr.id, $str);
274 284
            },
285
			leaveMsgCount=function(id, $str) {
286
				oAjax("/ajax/leavemsg/count", {
287
					sid:id,
288
					stype: "4"
289
				}, "get", function(data) {
290
					if(data.success) {
291
						if(data.data > 0) {
292
							$str.find(".leaveMsgCount").html(data.data + "留言");
293
						}
294
					}
295
				})
296
			},
275 297
            insertAfter = function (newStr, targetE) {
276 298
                var parent = document.getElementById(targetE).parentNode;
277 299
                var kong = document.createElement("div");

+ 14 - 1
app/js/qa-waiting-a.js

@ -83,8 +83,21 @@ mui.ready(function() {
83 83
				'<div class="madiaHead qa-Head" style="background-image:url(' + baImg + ')"></div>' +
84 84
				'<div class="madiaInfo OmadiaInfo">' +
85 85
				'<p class="mui-ellipsis-2 h1Font">' + dataStr.title + '</p>' +
86
				'<p class="show-item mui-ellipsis h2Font">' + hd + '<span>N 关注</span></p>' +
86
				'<p class="show-item mui-ellipsis h2Font">' + hd + '<span class="attendCount"></span></p>' +
87 87
				'</div></div>'
88
			attendCount(dataStr.id, $str);
89
        },
90
		attendCount=function(id, $str) {
91
			oAjax("/ajax/watch/countProfessor", {
92
				id:id,
93
				type: 9
94
			}, "get", function(data) {
95
				if(data.success) {
96
					if(data.data > 0) {
97
						$str.find(".attendCount").html(data.data + "关注");
98
					}
99
				}
100
			})
88 101
		},
89 102
		inviteStatus = function(id, $str) {
90 103
			oAjax("/ajax/question/invite", {