Browse Source

Merge remote-tracking branch 'origin/dev' into dev

XMTT 7 years ago
parent
commit
5685842100

+ 4 - 4
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
/***********************科袖用户协议*******************/
@ -1157,7 +1157,7 @@ ul.tagList>li .h2Font{color: #666; -webkit-user-select:text;}
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 1159
.owner-name{float: left;}
1160
.owner-tit{margin-left:10px;float: left;max-width:52%;color:#888888}
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;}

+ 1 - 1
app/html/qa-my-wenda.html

@ -9,7 +9,7 @@
9 9
		<link href="../css/mui.min.css" rel="stylesheet" />
10 10
		<link href="../css/iconfont.css" rel="stylesheet" />
11 11
		<link href="../css/app.css" rel="stylesheet" />
12
		<script src="../js/public/zepto.min.js"></script>
12
		<script src="../js/public/jquery-1.11.1.js"></script>
13 13
	</head>
14 14

15 15
	<body>

+ 1 - 0
app/html/qa-waiting-a_sub.html

@ -10,6 +10,7 @@
10 10
		<link href="../css/mui.min.css" rel="stylesheet" />
11 11
		<link href="../css/iconfont.css" rel="stylesheet" />
12 12
		<link href="../css/app.css" rel="stylesheet" />
13
		<script src="../js/public/jquery-1.11.1.js"></script>
13 14
	</head>
14 15
15 16
	<body>

+ 3 - 1
app/js/moreItem.js

@ -150,7 +150,9 @@ mui.ready(function(){
150 150
						success: function(data) {
151 151
							if(data.success) {
152 152
								plus.nativeUI.toast("该回答已删除", toastStyle);
153
								mui.back();
153
								var w1 = plus.webview.getWebviewById('qa-answer-show.html');
154
							  	plus.webview.close(self);
155
							  	plus.webview.close(w1);
154 156
							}
155 157
						}
156 158
					});

+ 5 - 3
app/js/qa-answer-show.js

@ -12,6 +12,7 @@ mui.ready(function() {
12 12
		plus.nativeUI.closeWaiting();
13 13
		self.show("slide-in-right", 150);
14 14
		var answerId = self.anid;
15
		var flag=0;
15 16
		
16 17
		var oAjax = function(url, dataS, otype, oFun) {
17 18
				mui.ajax(baseUrl + url, {
@ -40,6 +41,7 @@ mui.ready(function() {
40 41
						ifcollectionAbout($da.uid,oattenSpan, 1,1);
41 42
					}else{
42 43
						isAgree($da.uid);
44
						flag=1
43 45
					}
44 46
					proinfo($da.uid)
45 47
					questioninfo($da.qid)
@ -107,16 +109,16 @@ mui.ready(function() {
107 109
					var webviewShow = plus.webview.create("../html/moreItem.html", 'moreItem.html', {}, {
108 110
						proid: answerId,
109 111
						quid:document.getElementById("questTit").getAttribute("data-id"),
110
						flag:1,
112
						flag:flag,
111 113
						name: "answer",
112 114
						data: {
113 115
							content: document.getElementById("answerCnt").innerHTML.substring(0, 40),
114 116
							title: document.getElementById("questTit").innerHTML,
115
							href: baseUrl + "/e/d.html?id=" + answerId,
117
							href: baseUrl + "/e/da.html?id=" + answerId,
116 118
							thumbs: [oUrl]
117 119
						},
118 120
						weiboData: {
119
							content: document.getElementById("questTit").innerHTML + baseUrl + "/e/d.html?id=" + answerId,
121
							content: document.getElementById("questTit").innerHTML + baseUrl + "/e/da.html?id=" + answerId,
120 122
						}
121 123
					})
122 124
				})

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

@ -249,10 +249,10 @@ mui.ready(function() {
249 249
			answerModule: function(dataStr, liStr) {
250 250
				var hd = "",hl="";
251 251
				if(dataStr.agree > 0) {
252
					hd = '<span>'+dataStr.agree+' 赞</span>'
252
					hd = '<span>'+dataStr.agree+'赞</span>'
253 253
				}
254 254
				if(dataStr.ballot > 0){
255
					hl='<span>'+dataStr.ballot+' 留言</span>'
255
					hl='<span>'+dataStr.ballot+'留言</span>'
256 256
				}
257 257
				liStr.setAttribute("data-id", dataStr.id);
258 258
				liStr.className = "mui-table-view-cell";

+ 35 - 13
app/js/qa-my-wendaTT.js

@ -245,33 +245,55 @@ 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
				var $str = $(liStr);
251
				attendCount(dataStr.id, $str);
252
	        },
253
			attendCount=function(id, $str) {
254
				oAjaxGet("/ajax/watch/countProfessor", {
255
					id:id,
256
					type: 8
257
				}, "get", function(data) {
258
					if(data.success) {
259
						if(data.data > 0) {
260
							$str.find(".attendCount").html(data.data + "关注");
261
						}
262
					}
263
				})
264
			},
251 265
            answerModule = function (dataStr, liStr) {
252
                var hd = "", hl = "";
266
                var hd = "";
253 267
                if (dataStr.agree > 0) {
254
                    hd = '<span>' + dataStr.agree + ' 赞</span>'
255
                }
256
                if (dataStr.ballot > 0) {
257
                    hl = '<span>' + dataStr.ballot + ' 留言</span>'
268
                    hd = '<span>' + dataStr.agree + '赞</span>'
258 269
                }
259 270
                liStr.setAttribute("data-id", dataStr.id);
260 271
                liStr.className = "mui-table-view-cell";
261
                var str = '<div class="madiaInfo">' +
272
                liStr.innerHTML = '<div class="madiaInfo">' +
262 273
                    '<p class="h1Font mui-ellipsis-2 qa-question"></p>' +
263 274
                    '<div class="flexCenter qa-owner"></div>' +
264 275
                    '<p class="qa-con mui-ellipsis-5">' + dataStr.cnt + '</p>' +
265 276
                    '<div class="showli mui-ellipsis">' +
266
                    '<span>' + commenTime(dataStr.createTime) + '</span>' + hd + hl +
277
                    '<span>' + commenTime(dataStr.createTime) + '</span>' + hd +'<span class="leaveMsgCount"></span>'+
267 278
                    '</div>' +
268 279
                    '</div>'
269
                var $str = $(str)
270
                $str.appendTo(liStr);
280
              	var $str = $(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");

+ 1 - 1
app/js/qa-question-show.js

@ -212,7 +212,7 @@ mui.ready(function() {
212 212
				var hd = "",
213 213
					hl = "";
214 214
				if(dataStr.agree > 0) {
215
					hd = '<span>' + dataStr.agree + ' 赞</span>'
215
					hd = '<span>' + dataStr.agree + '赞</span>'
216 216
				}
217 217
				liStr.setAttribute("data-id", dataStr.id);
218 218
				liStr.className = "mui-table-view-cell";

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

@ -83,8 +83,22 @@ 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
			var $str = $(liStr);
89
			attendCount(dataStr.id, $str);
90
        },
91
		attendCount=function(id, $str) {
92
			oAjax("/ajax/watch/countProfessor", {
93
				id:id,
94
				type: 8
95
			}, "get", function(data) {
96
				if(data.success) {
97
					if(data.data > 0) {
98
						$str.find(".attendCount").html(data.data + "关注");
99
					}
100
				}
101
			})
88 102
		},
89 103
		inviteStatus = function(id, $str) {
90 104
			oAjax("/ajax/question/invite", {