luyanan 7 years ago
parent
commit
bbc2d0a729
4 changed files with 7 additions and 12 deletions
  1. 6 6
      js/answerLeaveW.js
  2. 0 1
      js/qa-show.js
  3. 1 1
      qa-show.html
  4. 0 4
      userInforShow.html

+ 6 - 6
js/answerLeaveW.js

@ -158,13 +158,13 @@
158 158
	}
159 159
	LeaveWord.prototype.bindEvent = function() {
160 160
		var self = this;
161
		$("#curAnswers").on('click',".ifLogin input",function() {
161
		$(".list-hold-list").on('click',".ifLogin input",function() {
162 162
			if(!lgin()) {
163 163
				return;
164 164
			}
165 165
			self.topLw(this);
166 166
		});
167
		$("#curAnswers").on("click", ".commentList li", function(e) {
167
		$(".list-hold-list").on("click", ".commentList li", function(e) {
168 168
			if(!lgin()) {
169 169
				return;
170 170
			}
@ -183,18 +183,18 @@
183 183
					break;
184 184
			}
185 185
		});
186
		$("#curAnswers").on("click", ".answerWord .btnCancel", function(e) {
186
		$(".list-hold-list").on("click", ".answerWord .btnCancel", function(e) {
187 187
				var $obj=$(this).data('obj');
188 188
				self.init($(this).siblings("ul"),{sid: $obj.sid,stype: $obj.sType,time: $obj.time,id: $obj.id});
189 189
		})
190
		$(".show-list-allAn").on("input",".ifLogin textarea",function(){
190
		$(".list-hold-list").on("input",".ifLogin textarea",function(){
191 191
			if($.trim($(this).val()).length>0) {
192 192
					$(this).siblings(".msgconNum").find("em").text($(this).val().length).parents(".msgContbox").siblings("input").removeAttr("disabled");
193 193
				}else{
194 194
					$(this).parents(".msgContbox").siblings("input").attr("disabled","disabled");
195 195
				}
196 196
		})
197
		$(".show-list-allAn").on("input", ".commentList textarea", function(e) {
197
		$(".list-hold-list").on("input", ".commentList textarea", function(e) {
198 198
				if($.trim($(this).val()).length>0) {
199 199
					$(this).siblings().find(".btnModel").removeAttr("disabled");
200 200
					self.autoGrow.call(this);
@ -258,7 +258,7 @@
258 258
			sid: lid.sid,
259 259
			stype: lid.stype
260 260
		}, "get", function($data) {
261
			$($th).parents(".list-qa").find(".pageview").text($data);
261
			$($th).parents(".list-qa").find(".leaveMsgCount").text($data);
262 262
		})
263 263
	}
264 264


+ 0 - 1
js/qa-show.js

@ -452,7 +452,6 @@ $(function() {
452 452
			//留言
453 453
			$str.find(".leaveWo").on('click', function() {
454 454
				if(userid && userid != null && userid != "null") {
455
					alert("ppp")
456 455
					module.lWord.init($(this).parents(".list-qa").find(".answerWord"),{sid:anid,stype:4});
457 456
				}else{
458 457
					quickLog();

+ 1 - 1
qa-show.html

@ -128,7 +128,7 @@
128 128
												</div>
129 129
												<div class="operateBlock bottomShow floatL">
130 130
								            		<ul class="clearfix">
131
								            			<li><span>留言</span> <span class="pageview">1000</span></li>
131
								            			<li><span>留言</span> <span class="leaveMsgCount">1000</span></li>
132 132
								            			<li class="attention"><span>收藏</span> <em class="operateicon operateicon2 icon-collect" id="collectBtn"></em></li>
133 133
														<li>
134 134
															<span>分享到</span>

+ 0 - 4
userInforShow.html

@ -12,10 +12,6 @@
12 12
<link type="text/css" href="css/popup.css" rel="stylesheet">
13 13
<link type="text/css" href="css/genindex.css" rel="stylesheet">
14 14
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
15
<style type="text/css">
16
	#item7user>.coninfobox{display: none;}
17
	#item7user>.coninfobox:first-child{display:block;}
18
</style>
19 15
</head>
20 16
21 17
<body>