|
@ -43,7 +43,7 @@
|
43
|
43
|
var oText = "",
|
44
|
44
|
reply = "",re="";
|
45
|
45
|
if(data[i].state=="1")
|
46
|
|
re = '<span class="replyLew" style="margin-right:10px;" data-id="' + data[i].id + '">回复</span>' + '<span class="mui-icon iconfont plusbtn icon-appreciate"style="padding-left:10px;margin-right:10px;font-size:14px;" data-id="' + data[i].id + '" data-num="' + data[i].agreeCount + '"></span><span class="zan"style="display:' + (data[i].agreeCount ? "inline-block" : "none") + '">' + data[i].agreeCount + ' 赞 </span>';
|
|
46
|
re = '<span class="replyLew" style="margin-right:10px;" data-id="' + data[i].id + '">回复</span>' + '<span class="mui-icon iconfont plusbtn icon-appreciate"style="padding-left:10px;font-size:14px;" data-id="' + data[i].id + '" data-num="' + data[i].agreeCount + '"></span><span class="zan"style="margin-left:5px;display:' + (data[i].agreeCount ? "inline-block" : "none") + '">' + data[i].agreeCount + '</span>';
|
47
|
47
|
|
48
|
48
|
if(id == data[i].sender) {
|
49
|
49
|
oText = "删除";
|
|
@ -142,14 +142,13 @@
|
142
|
142
|
}
|
143
|
143
|
})
|
144
|
144
|
}
|
145
|
|
LeaveWord.prototype.referThup = function(lid, li, num) {
|
|
145
|
LeaveWord.prototype.referThup = function(lid, li) {
|
146
|
146
|
ajaxRequist(baseUrl + "/ajax/leavemsg/agree", {
|
147
|
147
|
id: lid,
|
148
|
148
|
uid: plus.storage.getItem('userid')
|
149
|
149
|
}, "GET", function(data) {
|
150
|
150
|
if(data) {
|
151
|
151
|
li.getElementsByClassName("plusbtn")[0].classList.add("icon-appreciatefill");
|
152
|
|
li.getElementsByClassName("zan")[0].innerHTML = "已赞" + num;
|
153
|
152
|
}
|
154
|
153
|
})
|
155
|
154
|
}
|
|
@ -161,7 +160,7 @@
|
161
|
160
|
uname: plus.storage.getItem('name')
|
162
|
161
|
}, "POST", function(data) {
|
163
|
162
|
self.classList.add("icon-appreciatefill");
|
164
|
|
self.nextElementSibling.innerHTML = "已赞" + (Number(self.getAttribute("data-num")) + 1);
|
|
163
|
self.nextElementSibling.innerHTML = Number(self.getAttribute("data-num")) + 1;
|
165
|
164
|
self.nextElementSibling.style.display = "inline-block";
|
166
|
165
|
})
|
167
|
166
|
}
|