Browse Source

完善问答

luyanan 7 years ago
parent
commit
8deea6e96e
6 changed files with 24 additions and 21 deletions
  1. 7 5
      app/css/app.css
  2. 5 5
      app/js/discoverNew.js
  3. 1 1
      app/js/leaveWords.js
  4. 5 5
      app/js/qa-my-wenda.js
  5. 4 3
      app/js/qa-question-show.js
  6. 2 2
      app/js/qa-waiting-a.js

+ 7 - 5
app/css/app.css

@ -1009,7 +1009,7 @@ footer.chatFooter .mui-icon-paperplane {font-size: 16px;word-break: keep-all;lin
1009 1009
.showDetail .attenedSpan:before{content:"";}
1010 1010
.showDetail .invite{min-width: 56px;text-align:center;margin-top: -14px;border-radius: 4px;display: inline-block;line-height: normal; position: absolute;top: 50%;right: 15px;padding: 6px 8px; background-color:#ff9900;color: #fff;font-size: 14px;}
1011 1011
.showDetail .invite.invite2{/*width:56px;*/}
1012
.showDetail .showMain{font-size:15px;color:#333;line-height:28px;/*text-indent: 2em;*/}
1012
.showDetail .showMain{font-size:15px;color:#333;line-height:28px; word-break: break-word;}
1013 1013
.showDetail .showMain img{max-width: 100%;/*margin-left:-32px;*/}
1014 1014
.showDetail .showMain p{margin-bottom:16px;font-size:15px;color:#333;text-align:justify}
1015 1015
.showDetail .showMain *{ -webkit-user-select:text; word-break: break-word;}
@ -1062,8 +1062,8 @@ ul.tagList>li .h2Font{color: #666; -webkit-user-select:text;}
1062 1062
.commentBlock .madiaInfo{padding-left:52px;}
1063 1063
.commentBlock .operateSpan{margin:8px 0 0;color:#9d9ea8;font-size: 13px;color: #999;cursor: pointer;}
1064 1064
.commentBlock .madiaInfo .h2Font{ -webkit-user-select:text;word-break:break-word;}
1065
.leaveWord .madiaInfo .h1Font{font-size:14px} 
1066
.leaveWord .madiaInfo .h2Font{font-size:14px} 
1065
.leaveWord .madiaInfo .h1Font{font-size:14px;word-break: break-word;} 
1066
.leaveWord .madiaInfo .h2Font{font-size:14px;word-break: break-word;} 
1067 1067
/*资源文章底部操作栏*/
1068 1068
.mui-bar-tab.footbox .artfoot.mui-row{padding:2px 15px 0;text-align: center;}
1069 1069
.mui-bar-tab.footbox .artfoot.mui-row>[class*=mui-col-]{}
@ -1165,7 +1165,9 @@ ul.tagList>li .h2Font{color: #666; -webkit-user-select:text;}
1165 1165
.qa-owner .owner-info{padding-left:38px;width: 100%;overflow: hidden;height: 26px;}
1166 1166
.owner-name{float: left;}
1167 1167
.owner-tit{padding-left:8px;color:#888888}
1168
.qa-con{font-size:14px;line-height: 22px;color:#666;}
1168
.qa-con{font-size:14px;line-height: 22px;color:#666;word-break: break-word;}
1169
.showliSpan{overflow: hidden;margin-top:10px;margin-right:-10px;}
1170
.showliSpan>span{font-size:13px;line-height: 22px;color: #999999;padding-right:10px}
1169 1171
.mui-table-view.partLine{background: none;}
1170 1172
.mui-table-view.partLine>.mui-table-view-cell{margin-bottom: 10px;background: #fff;}
1171 1173
.mui-table-view.partLine>.mui-table-view-cell:after{content:none;}
@ -1201,7 +1203,7 @@ ul.tagList>li .h2Font{color: #666; -webkit-user-select:text;}
1201 1203
.list-hold-count>ul>li.active>span{background: #ff9900;color:#fff;border-color: #ff9900}
1202 1204
.list-hold .qa-owner{margin: 0;}
1203 1205
.item_detail .h1Font{font-weight:normal;font-size:18px;line-height:24px;color:#000}
1204
.item_detail .list_con{font-size: 15px;color: #333;line-height: 24px;margin: 6px 0;text-align:justify}
1206
.item_detail .list_con{font-size: 15px;color: #333;line-height: 24px;margin: 6px 0;text-align:justify;word-break: break-word;}
1205 1207
.list_image,.item-btn{overflow: hidden;}
1206 1208
.list-main .list_image{display: none;}
1207 1209
.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;}

+ 5 - 5
app/js/discoverNew.js

@ -454,7 +454,7 @@
454 454
                    }
455 455
                    var hd = "";
456 456
                    if (dataStr.replyCount > 0) {
457
                        hd = '<span>' + dataStr.replyCount + '回答</span>'
457
                        hd = '<span>回答 ' + dataStr.replyCount + '</span>'
458 458
                    }
459 459
                    this.setAttribute("data-id", dataStr.id);
460 460
                    this.setAttribute("data-type",3);
@ -479,13 +479,13 @@
479 479
				leaveMsgCount: function(data) {
480 480
					if(data.success) {
481 481
						if(data.data > 0) {
482
							this.innerHTML = data.data + "留言"
482
							this.innerHTML ="留言 " + data.data
483 483
						}
484 484
					}
485 485
				},
486 486
				attendCount:function(data) {
487 487
					if(data.data > 0) {
488
						this.innerHTML = data.data + "关注"
488
						this.innerHTML = "关注 " + data.data
489 489
					}
490 490
				},
491 491
				createFragment: function(data) {
@ -715,7 +715,7 @@
715 715
							var hd = "",
716 716
								hl = "";
717 717
							if($data[i].agree > 0) {
718
								hd = '<span>' + $data[i].agree + '</span>'
718
								hd = '<span>' + $data[i].agree + '</span>'
719 719
							}
720 720
							liStr.setAttribute("data-id", $data[i].id);
721 721
							liStr.className = "mui-table-view-cell";
@ -723,7 +723,7 @@
723 723
								'<p class="h1Font mui-ellipsis-2 qa-question"></p>'+
724 724
								'<div class="flexCenter qa-owner"></div>' +
725 725
								'<p class="qa-con mui-ellipsis-5">' + ($data[i].cnt).replace(/\n/g,"<br />") + '</p>' +
726
								'<div class="showli mui-ellipsis">' +
726
								'<div class="showliSpan mui-ellipsis">' +
727 727
								'<span>' + commenTime($data[i].createTime) + '</span>' + hd + '<span class="leaveMsgCount"></span>' +
728 728
								'</div>' +
729 729
								'</div>'

+ 1 - 1
app/js/leaveWords.js

@ -88,7 +88,7 @@
88 88
					'</div>' +
89 89
					'</div>' +
90 90
					'<div class="madiaInfo">' +
91
					'<p class="h1Font">' + data[i].cnt + '</p>' +
91
					'<p class="h1Font messageContent">' + data[i].cnt + '</p>' +
92 92
					'<p class="operateSpan">' +
93 93
					'<span class="spanitem commenttime">' + commenTime(data[i].createTime) + '</span>' + re + oText +
94 94
					'</p>' +

+ 5 - 5
app/js/qa-my-wenda.js

@ -241,7 +241,7 @@ mui.ready(function () {
241 241
				}
242 242
                var hd = "";
243 243
                if (dataStr.replyCount > 0) {
244
                    hd = '<span>' + dataStr.replyCount + ' 回答</span>'
244
                    hd = '<span>回答 ' + dataStr.replyCount + '</span>'
245 245
                }
246 246
                liStr.setAttribute("data-id", dataStr.id);
247 247
                liStr.className = "mui-table-view-cell";
@ -261,7 +261,7 @@ mui.ready(function () {
261 261
				}, "get", function(data) {
262 262
					if(data.success) {
263 263
						if(data.data > 0) {
264
							$str.find(".attendCount").html(data.data + "关注");
264
							$str.find(".attendCount").html("关注 " + data.data);
265 265
						}
266 266
					}
267 267
				})
@ -269,7 +269,7 @@ mui.ready(function () {
269 269
            answerModule = function (dataStr, liStr) {
270 270
                var hd = "";
271 271
                if (dataStr.agree > 0) {
272
                    hd = '<span>' + dataStr.agree + '</span>'
272
                    hd = '<span>' + dataStr.agree + '</span>'
273 273
                }
274 274
                liStr.setAttribute("data-id", dataStr.id);
275 275
                liStr.className = "mui-table-view-cell";
@ -277,7 +277,7 @@ mui.ready(function () {
277 277
                    '<p class="h1Font mui-ellipsis-2 qa-question"></p>' +
278 278
                    '<div class="flexCenter qa-owner"></div>' +
279 279
                    '<p class="qa-con mui-ellipsis-5">' + (dataStr.cnt).replace(/\n/g,"<br />") + '</p>' +
280
                    '<div class="showli mui-ellipsis">' +
280
                    '<div class="showliSpan mui-ellipsis">' +
281 281
                    '<span>' + commenTime(dataStr.createTime) + '</span>' + hd +'<span class="leaveMsgCount"></span>'+
282 282
                    '</div>' +
283 283
                    '</div>'
@ -293,7 +293,7 @@ mui.ready(function () {
293 293
				}, "get", function(data) {
294 294
					if(data.success) {
295 295
						if(data.data > 0) {
296
							$str.find(".leaveMsgCount").html(data.data + "留言");
296
							$str.find(".leaveMsgCount").html("留言 " + data.data);
297 297
						}
298 298
					}
299 299
				})

+ 4 - 3
app/js/qa-question-show.js

@ -220,14 +220,14 @@ mui.ready(function() {
220 220
				var hd = "",
221 221
					hl = "";
222 222
				if(dataStr.agree > 0) {
223
					hd = '<span>' + dataStr.agree + '</span>'
223
					hd = '<span>' + dataStr.agree + '</span>'
224 224
				}
225 225
				liStr.setAttribute("data-id", dataStr.id);
226 226
				liStr.className = "mui-table-view-cell";
227 227
				liStr.innerHTML = '<div class="madiaInfo">' +
228 228
					'<div class="flexCenter qa-owner"></div>' +
229 229
					'<p class="qa-con mui-ellipsis-5">' + (dataStr.cnt).replace(/\n/g,"<br />") + '</p>' +
230
					'<div class="showli mui-ellipsis">' +
230
					'<div class="showliSpan mui-ellipsis">' +
231 231
					'<span>' + commenTime(dataStr.createTime) + '</span>' + hd + '<span class="leaveMsgCount"></span>' +
232 232
					'</div>' +
233 233
					'</div>'
@ -242,7 +242,7 @@ mui.ready(function() {
242 242
				}, "get", function(data) {
243 243
					if(data.success) {
244 244
						if(data.data > 0) {
245
							$str.find(".leaveMsgCount").html(data.data + "留言");
245
							$str.find(".leaveMsgCount").html("留言 " + data.data);
246 246
						}
247 247
					}
248 248
				})
@ -406,6 +406,7 @@ mui.ready(function() {
406 406
			dataO = {time: "",id: "",score:""}
407 407
			anExist();
408 408
			answerList();
409
			getConmain();
409 410
		});
410 411
		yaoanswer.addEventListener('tap', function() {
411 412
			if(userid && userid != null && userid != "null") {

+ 2 - 2
app/js/qa-waiting-a.js

@ -76,7 +76,7 @@ mui.ready(function() {
76 76
			}
77 77
			var hd = "";
78 78
			if(dataStr.replyCount > 0) {
79
				hd = '<span>' + dataStr.replyCount + ' 回答</span>'
79
				hd = '<span>回答 ' + dataStr.replyCount + '</span>'
80 80
			}
81 81
			liStr.className = "mui-table-view-cell";
82 82
			liStr.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
@ -95,7 +95,7 @@ mui.ready(function() {
95 95
			}, "get", function(data) {
96 96
				if(data.success) {
97 97
					if(data.data > 0) {
98
						$str.find(".attendCount").html(data.data + "关注");
98
						$str.find(".attendCount").html("关注 " + data.data);
99 99
					}
100 100
				}
101 101
			})