Authored by liangyi.chen@yoho.cn

页面优化

... ... @@ -110,7 +110,7 @@
<tr style="height: 60px">
<td style="width:100% ">
<div style="float: left;width:700px;" >
<div style="float: left;width:400px;" >
<span style="color:red">*</span><label style="font-size: 14px;">选择马甲</label> <br>
<input id="replyUid" name="replyUid" style="width:300px " class="easyui-textbox"/>
<a id="userBotton" class="btn btn-small" style="font-size: 18px; " >确认</a>
... ... @@ -264,15 +264,8 @@
onClick: function () {
//发送请求
$.ajax({
/*type: "GET",
url: serverContextPath + "/grassArticle/getUserInfo?uid=" + $("#replyUid").textbox("getValue"),*/
type: "POST",
url: serverContextPath + "/grassArticle/getUserInfo", //提交到后端的url
dataType: 'json',
contentType : "application/json",
data:{
uid : $("#replyUid").textbox("getValue")
},success: function (result) {
type: "GET",
url: serverContextPath + "/grassArticle/getUserInfo?uid=" + $("#replyUid").textbox("getValue"),success: function (result) {
if (result.code == 200) {
if (result.data != null && result.data != '') {
var headIco = result.data.headIco.substring(0, result.data.headIco.indexOf("?"));
... ... @@ -310,9 +303,12 @@
if (data.code != 200) {
alert(data.message);
} else {
alert("操作成功");
//刷新当前页面
location.reload();
$.messager.show({
msg: "回复成功!",
height: 120
});
/*$("#replyUid").textbox('setValue','')*/
$("#content").val("");
}
});
}
... ...
... ... @@ -288,7 +288,7 @@
$(activityList).myDialog({
title: title,
width: "30%",
height: "40%",
height: "50%",
resizable:false,
modal: true,
href: contextPath + "/html/grass/comment/commentReply.html"
... ...
... ... @@ -49,7 +49,10 @@
if (data.code != 200) {
alert(data.message);
} else {
alert("操作成功");
$.messager.show({
msg: "回复成功!",
height: 120
});
//刷新当前页面
location.reload();
}
... ...