Authored by caoyan

Cps消息列表

@@ -179,22 +179,6 @@ function getQueryString(url,name) { @@ -179,22 +179,6 @@ function getQueryString(url,name) {
179 $(function () { 179 $(function () {
180 initForm(); 180 initForm();
181 181
182 - /* $("#messageImage").imageUpload({  
183 - width:500,  
184 - heigth:50,  
185 - realInputName : "unionShareMessagePic",  
186 - url:contextPath + '/fileupload/upload',  
187 - queryParams : {  
188 - bucket : "unionimg"  
189 - },  
190 - filterFileName : function(data) {  
191 - if (!data || data.code != 200) {  
192 - $.messager.alert("失败", data.message, "error");  
193 - }  
194 - return data.data;  
195 - }  
196 - }); */  
197 -  
198 $("#cancelBtn").click(function () { 182 $("#cancelBtn").click(function () {
199 $.messager.confirm("确认", "您确定要取消更新信息吗?", function(flag) { 183 $.messager.confirm("确认", "您确定要取消更新信息吗?", function(flag) {
200 if (flag) { 184 if (flag) {
@@ -217,14 +201,16 @@ function getQueryString(url,name) { @@ -217,14 +201,16 @@ function getQueryString(url,name) {
217 201
218 requestObj.content = content; 202 requestObj.content = content;
219 203
220 - /* var arr = document.getElementsByName("unionShareMessagePic");  
221 - var image = arr[0].value;  
222 - if (image == "") {  
223 - alert("请上传消息图片");  
224 - return; 204 + var arr = document.getElementsByName("unionShareMessagePic");
  205 + if(undefined != arr[0]){
  206 + var image = arr[0].value;
  207 + if (image == "") {
  208 + alert("请上传消息图片");
  209 + return;
  210 + }
  211 + requestObj.image = image;
225 } 212 }
226 - requestObj.image = image; */  
227 - 213 +
228 var url = $("#url").val(); 214 var url = $("#url").val();
229 if (url == "") { 215 if (url == "") {
230 alert("链接url不能为空"); 216 alert("链接url不能为空");