Authored by liangyi.chen@yoho.cn

页面优化

... ... @@ -303,9 +303,10 @@
}
$.get(serverContextPath + "/grassArticleComment/addGrassArticleComment?destId=" + articleId + "&addType=" + 0 + "&uid=" + replyUid + "&content=" + content, function (data) {
if (data.code != 200) {
alert(data.message);
$.messager.alert("失败", data.message, "error");
} else {
$.messager.show({
title:"提示",
msg: "回复成功!",
height: 120,
width:120
... ...
... ... @@ -288,10 +288,47 @@
$(activityList).myDialog({
title: title,
width: "42%",
height: "50%",
height: "60%",
resizable:false,
modal: true,
href: contextPath + "/html/grass/comment/commentReply.html"
href: contextPath + "/html/grass/comment/commentReply.html",
collapsible: true,
cache: false,
buttons: [{
text: "立即回复",
iconCls: "icon-save",
handler: function () {
var replyUid = $("#replyUid").textbox("getValue");
var content = $("#content").val();
if (!replyUid || replyUid == '') {
alert("请先选择马甲!");
return ;
}
if (!content || content == '') {
alert("请填写回复内容!");
return ;
}
$.get(serverContextPath + "/grassArticleComment/addGrassArticleComment?destId=" + articleId +
"&addType=" + 1 + "&uid=" + replyUid + "&content=" + content + "&commentId=" + commentId, function (data) {
if (data.code != 200) {
$.messager.alert("失败", data.message, "error");
} else {
$.messager.show({
title:"提示",
msg: "回复成功!",
height: 120
});
$(activityList).dialog("close");
}
});
}
}, {
text: "取消",
iconCls: "icon-cancel",
handler: function () {
$(activityList).dialog("close");
}
}]
});
}
... ...
... ... @@ -31,38 +31,6 @@
});
}
function replyNow(){
var articleId = paramObject.mkData.articleId;
var commentId = paramObject.mkData.commentId;
var replyUid = $("#replyUid").textbox("getValue");
var content = $("#content").val();
if (!replyUid || replyUid == '') {
alert("请先选择马甲!");
return ;
}
if (!content || content == '') {
alert("请填写回复内容!");
return ;
}
$.get(serverContextPath + "/grassArticleComment/addGrassArticleComment?destId=" + articleId +
"&addType=" + 1 + "&uid=" + replyUid + "&content=" + content + "&commentId=" + commentId, function (data) {
if (data.code != 200) {
$.messager.alert("失败", data.message, "error");
} else {
$.messager.show({
title:"提示",
msg: "回复成功!",
height: 120
});
//刷新当前页面
location.reload();
}
});
}
function closeNow(){
location.reload();
}
</script>
<div id="tt" class="easyui-layout" fit="true" style="margin:0;overflow-y: scroll">
... ... @@ -94,14 +62,14 @@
<!--<div style="clear: both;"> <span id="content-count">0</span>/500</div>-->
</td>
</tr>
<tr style="height: 20%">
<!--<tr style="height: 20%">
<td style="width:20% ">
<a href="#" class="easyui-linkbutton" onclick="replyNow()" data-options="menu:'#mm1',iconCls:'icon-edit'">立即回复</a>
<a href="#" class="easyui-linkbutton" onclick="closeNow()" data-options="menu:'#mm1',iconCls:'icon-cancel'">关闭</a>
<!--<input id="replyBtn" type="button" onclick="test()"/>-->
&lt;!&ndash;<input id="replyBtn" type="button" onclick="test()"/>&ndash;&gt;
</td>
</tr>
</tr>-->
</table>
</div>
... ...