|
@ -51,13 +51,15 @@
|
51
|
51
|
'</div>' +
|
52
|
52
|
'<div class="form-item commentsArea">'+
|
53
|
53
|
'<ul class="commentList">' +
|
54
|
|
'</ul>' +
|
|
54
|
'</ul><div class="con-kong displayNone">暂无留言</div>' +
|
55
|
55
|
'<button class="frmconbtn btnCancel displayNone">查看更多留言</button>' +
|
56
|
56
|
'</div>'
|
57
|
57
|
var $strer=$(strer);
|
58
|
58
|
selecter.append($strer);
|
|
59
|
if(data.length==0) {
|
|
60
|
$strer.find(".con-kong").removeClass("displayNone");
|
|
61
|
}
|
59
|
62
|
$strer.find("input").data("ouse",obj);
|
60
|
|
//self.LwordTotal()
|
61
|
63
|
(data.length>4)?$strer.find(".btnCancel").removeClass("displayNone").data("obj",{
|
62
|
64
|
sid:obj.sid,
|
63
|
65
|
sType:4,
|
|
@ -163,6 +165,7 @@
|
163
|
165
|
return;
|
164
|
166
|
}
|
165
|
167
|
self.topLw(this);
|
|
168
|
self.LwordTotal($(this),$(this).data("ouse"));
|
166
|
169
|
});
|
167
|
170
|
$(".list-hold-list").on("click", ".commentList li", function(e) {
|
168
|
171
|
if(!lgin()) {
|
|
@ -240,16 +243,17 @@
|
240
|
243
|
ajaxRequist("/ajax/leavemsg/qo", {id:data},"GET",function(data) {
|
241
|
244
|
self.topHtml($($th).parents(".commentList"),[data])
|
242
|
245
|
})
|
243
|
|
self.LwordTotal($th,lid);
|
|
246
|
self.LwordTotal($($th),{sid:lid.refId,stype:lid.refType});
|
244
|
247
|
})
|
245
|
248
|
}
|
246
|
249
|
LeaveWord.prototype.LwordDel = function($this, lid) {
|
|
250
|
|
247
|
251
|
var self = this;
|
248
|
252
|
ajaxRequist("/ajax/leavemsg/del", {
|
249
|
253
|
id: lid.id
|
250
|
254
|
}, "GET", function(data) {
|
|
255
|
self.LwordTotal($($this).parents(".commentList"),{sid:lid.refId,stype:lid.refType});
|
251
|
256
|
$($this).parents(".flexCenter").remove();
|
252
|
|
self.LwordTotal($this,lid);
|
253
|
257
|
})
|
254
|
258
|
}
|
255
|
259
|
LeaveWord.prototype.LwordTotal = function($th,lid) {
|
|
@ -258,7 +262,10 @@
|
258
|
262
|
sid: lid.sid,
|
259
|
263
|
stype: lid.stype
|
260
|
264
|
}, "get", function($data) {
|
261
|
|
$($th).parents(".list-qa").find(".leaveMsgCount").text($data);
|
|
265
|
$th.parents(".list-qa").find(".leaveMsgCount").text($data);
|
|
266
|
if($data==0) {
|
|
267
|
$th.parents(".list-qa").find(".con-kong").removeClass("displayNone");
|
|
268
|
}
|
262
|
269
|
})
|
263
|
270
|
}
|
264
|
271
|
|