portal html css js resource

resourceShow.js 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631
  1. $(document).ready(function() {
  2. loginStatus(); //判断个人是否登录
  3. var userid = $.cookie("userid");
  4. $(".jqzoom").imagezoom();
  5. $("#thumblist").on("click", "li a", function() {
  6. $(this).parents("li").addClass("tb-selected").siblings().removeClass("tb-selected");
  7. $(".jqzoom").attr('src', $(this).find("img").attr("src"));
  8. $(".jqzoom").attr('rel', $(this).find("img").attr("src"));
  9. });
  10. $('.shareWeixin').hover(function() {
  11. $('.shareCode').stop(true, false).fadeToggle();
  12. });
  13. var resourceId = GetQueryString("resourceId");
  14. ifcollectionAbout(resourceId,$("#attention").find("em"), 2)
  15. var professorId = "";
  16. getRecourceMe();
  17. relatedArticles();
  18. interestingResources();
  19. //热门资源
  20. function recentlyRe(num,obj) {
  21. var ourl=num==1?"/ajax/resource/qaOrgPublish":"/ajax/resource/qaProPublish";
  22. $.ajax({
  23. "url" :ourl ,
  24. "type" : "GET" ,
  25. "dataType" : "json",
  26. "data" :obj,
  27. "success" : function(data) {
  28. if (data.success){
  29. var $data=data.data;
  30. var only=false;
  31. if($data.length>1){
  32. $(".recentlyList").parents(".currentBlock").removeClass("displayNone");
  33. var oLeng=$data.length<5?$data.length:5;
  34. for(var i=0;i<oLeng;i++) {
  35. if(resourceId==$data[i].resourceId) {
  36. only=true;
  37. continue;
  38. }
  39. if(only==true) {
  40. if(oLeng<5) {
  41. }else{
  42. oLeng=6;
  43. }
  44. }
  45. var resIM="../images/default-resource.jpg";
  46. if($data[i].images.length) {
  47. resIM='/data/resource/' + $data[i].images[0].imageSrc;
  48. }
  49. var str='<li><a class="flexCenter" style="min-height:46px;" href="resourceShow.html?resourceId='+$data[i].resourceId+'">'+
  50. '<div class="madiaHead resourceHead" style="width:50px;height:36px;margin-top:-18px;background-image: url('+ resIM +');"></div>'+
  51. '<div class="madiaInfo"><p class="h2Font ellipsisSty-2">'+$data[i].resourceName+'</p></div></a></li>'
  52. $(".recentlyList").append(str);
  53. }
  54. }
  55. }
  56. },
  57. "error":function(){
  58. $.MsgBox.Alert('提示','链接服务器超时')
  59. }
  60. });
  61. }
  62. /*获取资源信息*/
  63. function getRecourceMe() {
  64. $.ajax({
  65. "url": "/ajax/resource/queryOne",
  66. "type": "GET",
  67. "success": function(data) {
  68. console.log(data);
  69. if(data.success) {
  70. resourceHtml(data.data);
  71. var resourceName = data.data.resourceName + "-科袖网";
  72. window.setTimeout(function() {
  73. document.title = resourceName;
  74. }, 500);
  75. }
  76. },
  77. "data": {
  78. "resourceId": resourceId
  79. },
  80. dataType: "json",
  81. 'error': function() {
  82. $.MsgBox.Alert('提示', '服务器连接超时!');
  83. }
  84. });
  85. }
  86. /*合作备注及性能参数存储换行格式*/
  87. function outHTML(selecter) {
  88. var getValue = selecter;
  89. var aa = "";
  90. if(getValue) {
  91. var endValue = ((getValue.replace(/<(.+?)>/gi, "&lt;$1&gt;")).replace(/ /gi, "&nbsp;")).replace(/\n/gi, "|");
  92. var cc = endValue.split("|");
  93. for(var i = 0; i < cc.length; i++) {
  94. aa += cc[i] + '<br/>'
  95. }
  96. }
  97. return aa;
  98. }
  99. /*处理资源html代码*/
  100. function resourceHtml($da) {
  101. $("#resourceName").text($da.resourceName); //名字
  102. $("#application").text($da.supportedServices); //应用用途
  103. if($da.editProfessor) {
  104. $("#person").show();
  105. if($da.orgName) { //所属机构
  106. $("#organizationName").text($da.orgName).parents("li").show();
  107. }
  108. $("#nameS").text($da.editProfessor.name);
  109. if($da.editProfessor.title) {
  110. $("#titleOffice").text($da.editProfessor.title);
  111. } else {
  112. if($da.editProfessor.office) {
  113. $("#titleOffice").text($da.editProfessor.office);
  114. }
  115. }
  116. if($da.editProfessor.orgName) {
  117. $("#orgType").text($da.editProfessor.orgName);
  118. }
  119. professorId = $da.editProfessor.id;
  120. console.log(professorId);
  121. console.log(userid);
  122. if(userid != professorId) {
  123. ifcollectionAbout(professorId,$("#person").find(".attenSpan"), 1)
  124. $(".goSpan").show();
  125. }
  126. var professorFlag = autho($da.editProfessor.authType, $da.editProfessor.orgAuth, $da.editProfessor.authStatus);
  127. $("#authFlag").addClass(professorFlag.sty).attr("title", professorFlag.title);
  128. if($da.editProfessor.hasHeadImage == 1) {
  129. $("#headImg").css("background-image", 'url(/images/head/' + $da.editProfessor.id + '_l.jpg)');
  130. }else{
  131. $("#headImg").css("background-image", 'url(../images/default-photo.jpg)');
  132. }
  133. recentlyRe(2,{"professorId":professorId})
  134. }else{
  135. $("#enterprise").show();
  136. $(".qiyego").attr('dataid',$da.organization.id);
  137. $(".qiyego").attr("href","cmpInforShow.html?orgId="+$da.organization.id);
  138. if($da.organization.hasOrgLogo) {
  139. $("#companyImg").attr("src", "/images/org/" + $da.organization.id + ".jpg");
  140. }else{
  141. $("#companyImg").attr("src", "/images/default-icon.jpg");
  142. }
  143. if($da.organization.authStatus==3){
  144. $("#QauthFlag").addClass("authicon-com-ok").attr("title", "认证企业");
  145. }
  146. if($da.organization.forShort) {
  147. $("#Qname").text($da.organization.forShort).attr("href","cmpInforShow.html?orgId="+$da.organization.id);
  148. }else{
  149. $("#Qname").text($da.organization.name).attr("href","cmpInforShow.html?orgId="+$da.organization.id);
  150. }
  151. $("#Qindustry").text($da.organization.subject);
  152. $("#QorgType").text(orgTypeShow[$da.organization.orgType])
  153. if(userid){
  154. ifcollectionAbout($da.organization.id,$("#enterprise").find(".attenSpan"), 6)
  155. }
  156. recentlyRe(1,{"orgId":$da.organization.id})
  157. }
  158. if($da.spec) { //厂商型号
  159. $("#modelNumber").text($da.spec).parents("li").show();
  160. }
  161. if($da.parameter) { //性能参数
  162. $("#performancePa").html(outHTML($da.parameter)).parents("li").show();
  163. }
  164. if($da.cooperationNotes) { //合作备注
  165. $("#remarkContent").html(outHTML($da.cooperationNotes)).parents("li").show();
  166. }
  167. if($da.subject) {
  168. var oSub = $da.subject.split(",");
  169. var oSt = "";
  170. for(var i = 0; i < oSub.length; i++) {
  171. oSt += '<li><p class="h2Font">' + oSub[i] + '</p></li>'
  172. }
  173. $(".tagList").html(oSt);
  174. }
  175. if($da.descp) { //编辑器
  176. $("#descp").html($da.descp).parents("li").show();
  177. }
  178. var weibotitle = $da.resourceName;
  179. var weibourl = window.location.href;
  180. //return;
  181. if($da.images.length) {
  182. var weibopic = "http://" + window.location.host + "/data/resource/" + $da.images[0].imageSrc;
  183. $("#firstFigure").attr({
  184. "src": "/data/resource/" + $da.images[0].imageSrc,
  185. "rel": "/data/resource/" + $da.images[0].imageSrc
  186. }).parent().attr("href", "/data/resource/" + $da.images[0].imageSrc);
  187. var arr = "";
  188. for(var i = 0; i < $da.images.length; i++) {
  189. if($da.images[i] == $da.images[0]) {
  190. var oString = '<li class="tb-selected">' +
  191. '<div class="tb-pic tb-s66">' +
  192. '<a href="javascript:void(0);">' +
  193. '<img src="/data/resource/' + $da.images[i].imageSrc + '"/>' +
  194. '</a>' +
  195. '</div>' +
  196. '</li>'
  197. } else {
  198. var oString = '<li >' +
  199. '<div class="tb-pic tb-s66">' +
  200. '<a href="javascript:void(0);">' +
  201. '<img src="/data/resource/' + $da.images[i].imageSrc + '"/>' +
  202. '</a>' +
  203. '</div>' +
  204. '</li>'
  205. }
  206. arr += oString;
  207. }
  208. $("#thumblist").html(arr);
  209. } else {
  210. var weibopic = "http://" + window.location.host + "../images/default-resource.jpg";
  211. $("#firstFigure").attr({
  212. "src": '../images/default-resource.jpg',
  213. "rel": '../images/default-resource.jpg'
  214. });
  215. }
  216. $("#weibo").attr("href","http://service.weibo.com/share/share.php?appkey=3677230589&title="+encodeURIComponent(weibotitle)+"&url="+encodeURIComponent(weibourl)+"&pic="+encodeURIComponent(weibopic)+"&content=utf-8"+"&ralateUid=6242830109&searchPic=false&style=simple");
  217. }
  218. /*点击名字及头像跳转个人浏览页面*/
  219. $("#nameS,#headImg").click(function() {
  220. location.href = "userInforShow.html?professorId=" + professorId;
  221. })
  222. //关键词标签点击进去搜索
  223. $(".tagList").on("click","li",function(){
  224. var tagText = $(this).find("p").text();
  225. location.href = "searchNew.html?searchContent=" + tagText + "&tagflag=2";
  226. })
  227. /*资源里面相关文章*/
  228. function relatedArticles() {
  229. $.ajax({
  230. "url": "/ajax/article/byAssResource",
  231. "type": "GET",
  232. "data": {
  233. "id": resourceId,
  234. },
  235. dataType: "json",
  236. "success": function(data) {
  237. console.log(data);
  238. if(data.success) {
  239. if(data.data.length> 0) {
  240. $("#oArticle").parents(".otherShow").removeClass("displayNone");
  241. var StrData = data.data
  242. var lengthT;
  243. if(StrData.length>5){
  244. lengthT=5;
  245. }else{
  246. lengthT=StrData.length
  247. }
  248. for(var i = 0; i < lengthT; i++) {
  249. relatedArticlesHtml(StrData[i]);
  250. }
  251. }
  252. }
  253. },
  254. 'error': function() {
  255. $.MsgBox.Alert('提示', '服务器连接超时!');
  256. }
  257. });
  258. }
  259. /*资源相关文章html*/
  260. function relatedArticlesHtml($html) {
  261. var oURL;
  262. if($html.articleType==1) {
  263. oURL="/ajax/professor/baseInfo/" + $html.professorId;
  264. }else{
  265. oURL="/ajax/org/" + $html.orgId;
  266. }
  267. $.ajax({
  268. "url":oURL,
  269. "type": "GET",
  270. "success": function(data) {
  271. if(data.success) {
  272. console.log(data)
  273. var cmpname="";
  274. if(data.data.forShort){
  275. cmpname=data.data.forShort;
  276. }else{
  277. cmpname=data.data.name;
  278. }
  279. if($html.articleType==1) {
  280. var stl = autho(data.data.authType, data.data.orgAuth, data.data.authStatus);
  281. }else {
  282. var stl={};
  283. stl.sty="";
  284. stl.title="";
  285. if(data.data.authStatus==3) {
  286. stl.sty="authicon-com-ok";
  287. stl.title="认证企业";
  288. }
  289. }
  290. var str = ""
  291. str += '<li data-id="' + $html.articleId + '" data-createTime="' + $html.createTime + '" data-shareId="' + $html.shareId + '"><a class="flexCenter OflexCenter">'
  292. if($html.articleImg) {
  293. str += '<div class="madiaHead artHead" style="background-image: url(/data/article/' + $html.articleImg + ')"></div>'
  294. } else {
  295. str += '<div class="madiaHead artHead"></div>'
  296. }
  297. str += '<div class="madiaInfo" style="margin-top:18px;padding-bottom:8px">'
  298. str += '<p class="h1Font ellipsisSty">' + $html.articleTitle + '</p>'
  299. str += '<p><span class="h2Font" style="margin-right:10px">'+ cmpname +'</span><span class="time">'+commenTime($html.publishTime)+'</span></p>'
  300. str += '</div></a></li>'
  301. $("#oArticle").append(str);
  302. }
  303. },
  304. 'dataType': "json",
  305. 'error': function() {
  306. $.MsgBox.Alert('提示', '服务器连接超时!');
  307. }
  308. });
  309. }
  310. /*文章跳转*/
  311. $("#oArticle").on("click", "li", function() {
  312. var oArticle={
  313. shareId:$(this).attr("data-shareId"),
  314. createTime:$(this).attr("data-createTime")
  315. };
  316. location.href = "/"+pageUrl(oArticle)
  317. })
  318. /*感兴趣的资源*/
  319. function interestingResources() {
  320. $.ajax({
  321. "url": "/ajax/resource/ralateResources",
  322. "type": "GET",
  323. "data":{"resourceId": resourceId},
  324. "traditional": true,
  325. dataType: "json",
  326. "success": function(data) {
  327. //console.log(data);
  328. if(data.success) {
  329. if(data.data.length == 0) {
  330. return;
  331. }
  332. $("#relateArt").parents(".otherShow").removeClass("displayNone");
  333. var StrData = data.data
  334. var lengthT;
  335. if(StrData.length>5){
  336. lengthT=5;
  337. }else{
  338. lengthT=StrData.length
  339. }
  340. for(var i = 0; i < lengthT; i++) {
  341. interestingResourcesHtml(StrData[i]);
  342. }
  343. }
  344. },
  345. 'error': function() {
  346. $.MsgBox.Alert('提示', '服务器连接超时!');
  347. }
  348. });
  349. }
  350. /*感兴趣资源的html*/
  351. function interestingResourcesHtml($respond) {
  352. var imgL="../images/default-resource.jpg";
  353. if($respond.images.length){
  354. imgL='/data/resource/' + $respond.images[0].imageSrc
  355. }
  356. var oURL;
  357. if($respond.resourceType==1) {
  358. oURL="/ajax/professor/baseInfo/"+$respond.professorId;
  359. }else{
  360. oURL="/ajax/org/" + $respond.orgId;
  361. }
  362. $.ajax({
  363. "url":oURL,
  364. "type": "GET",
  365. 'dataType': "json",
  366. "success": function(data) {
  367. if(data.success){
  368. //console.log(data)
  369. var thisName,userType,thisAuth,thisTitle
  370. if(data.data.forShort){
  371. thisName=data.data.forShort;
  372. }else{
  373. thisName=data.data.name;
  374. }
  375. if($respond.resourceType==1) {
  376. userType = autho(data.data.authType, data.data.orgAuth, data.data.authStatus);
  377. thisTitle = userType.title;
  378. thisAuth = userType.sty;
  379. }else {
  380. if(data.data.authStatus==3) {
  381. thisTitle = "科袖认证企业";
  382. thisAuth = "authicon-com-ok";
  383. }
  384. }
  385. var add = document.createElement("li");
  386. add.className = "mui-table-view-cell";
  387. add.setAttribute("data-id",$respond.resourceId);
  388. var itemlist = '<a class="flexCenter OflexCenter"><div class="madiaHead resourceHead" style="background-image:url('+imgL+')"></div>';
  389. itemlist += '<div class="madiaInfo OmadiaInfo">';
  390. itemlist += '<p class="ellipsisSty h1Font" id="usertitle">'+$respond.resourceName+'</p>';
  391. itemlist += '<p><span class="h2Font">'+thisName+'</span><em class="authiconNew '+thisAuth+'" title="'+thisTitle+'"></em></p>';
  392. itemlist += '<p class="ellipsisSty-2 h2Font">用途:'+$respond.supportedServices+'</p>';
  393. itemlist += '</div></a>';
  394. add.innerHTML=itemlist;
  395. document.getElementById("relateArt").appendChild(add);
  396. }
  397. },
  398. 'error': function() {
  399. $.MsgBox.Alert('提示', '服务器连接超时!');
  400. }
  401. });
  402. }
  403. /*点击资源列表*/
  404. $("#relateArt").on("click", "li", function() {
  405. location.href = "resourceShow.html?resourceId=" + $(this).attr("data-id");
  406. })
  407. /*点击咨询*/
  408. $("#consultin").on('click', function(){
  409. if(userid && userid != null && userid != 'null' && userid != undefined && userid != 'undefined') {
  410. location.href="tidings.html?id="+professorId
  411. } else {
  412. quickLog();
  413. operatTab();
  414. closeLog();
  415. }
  416. });
  417. $("#expertli").on("click",".addbtn",function() {
  418. if(userid && userid != null && userid != 'null' && userid != undefined && userid != 'undefined') {
  419. var id=$(this).attr("data-id");
  420. location.href="tidings.html?id="+id;
  421. } else {
  422. quickLog();
  423. operatTab();
  424. closeLog();
  425. }
  426. });
  427. // $("#consultin").on("click", function() {
  428. // clickResouceConsultHandler();
  429. // });
  430. // $("#expertli").on("click", ".addbtn", function() {
  431. // var $this = $(this);
  432. // clickResouceConsultHandler($this);
  433. // })
  434. /*咨询函数*/
  435. // function clickResouceConsultHandler($this) {
  436. // if(userid && userid != "null" && userid != null) {
  437. // ConsultApply();
  438. // if(!professorId) {
  439. // concultProInfo($this.attr("data-id")); //专家信息common.js中
  440. // } else {
  441. // concultProInfo(professorId); //专家信息common.js中
  442. // }
  443. //
  444. // //默认选中资源咨询和标题
  445. // for(var i = 0; i < $("ul.menucon").children().length; i++) {
  446. // $("ul.menucon").children().eq(i).removeClass("clicknow");
  447. // $("ul.menucon").children().eq(1).addClass("clicknow");
  448. // }
  449. // var consultTitleVal = $("#resourceName").text();
  450. // $("#consultTitle").val("关于" + consultTitleVal + "的咨询");
  451. // //点击的发送
  452. // $("#sendConsultBtn").click(function() {
  453. // sendConsultHandler(professorId); //common.js中
  454. // });
  455. // } else {
  456. // quickLog();
  457. // operatTab();
  458. // closeLog();
  459. // }
  460. //
  461. // };
  462. //点击专家关注
  463. $("#person").on("click",'.attenSpan',function() {
  464. if(userid && userid != "null" && userid != null) {
  465. if($(this).is('.attenedSpan')){
  466. cancelCollectionAbout(professorId,$(this), 1)
  467. } else {
  468. collectionAbout(professorId,$(this),1);
  469. }
  470. } else {
  471. quickLog();
  472. operatTab();
  473. closeLog();
  474. }
  475. })
  476. $("#enterprise").on("click",'.attenSpan',function() {
  477. if(userid && userid != "null" && userid != null) {
  478. if($(this).is('.attenedSpan')){
  479. cancelCollectionAbout($(".qiyego").attr('dataid'),$(this), 6)
  480. } else {
  481. collectionAbout($(".qiyego").attr('dataid'),$(this),6);
  482. }
  483. } else {
  484. quickLog();
  485. operatTab();
  486. closeLog();
  487. }
  488. })
  489. //点击资源收藏
  490. $('#attention em').click(function() {
  491. if (userid && userid != "null" && userid != null) {
  492. if($(this).is('.icon-collected')){
  493. cancelCollectionAbout(resourceId,$(this),2)
  494. }else{
  495. collectionAbout(resourceId,$(this),2)
  496. }
  497. } else {
  498. quickLog();
  499. operatTab();
  500. closeLog();
  501. }
  502. })
  503. //资源浏览量
  504. function pageViewsVal() {
  505. $.ajax({
  506. "url": "/ajax/resource/pageViews",
  507. "type": "POST",
  508. "dataType": "json",
  509. "data": {
  510. "resourceId": resourceId
  511. },
  512. "success": function(data) {
  513. console.log(data);
  514. if(data.success) {}
  515. },
  516. "error": function() {
  517. $.MsgBox.Alert('提示', '链接服务器超时')
  518. }
  519. });
  520. }
  521. pageViewsVal();
  522. selUse();
  523. function selUse() {
  524. $.ajax({
  525. url: "/ajax/resource/qaLinkman",
  526. type: "GET",
  527. timeout: 10000,
  528. dataType: "json",
  529. async: true,
  530. data: {
  531. "resourceId": resourceId,
  532. },
  533. success: function(data, textState) {
  534. console.log(data)
  535. if(data.success) {
  536. if(data.data.length>0){
  537. $("#expertli").parents(".currentBlock").removeClass("displayNone");
  538. unauthUser(data.data);
  539. }else{
  540. $("#expertli").parents(".currentBlock").addClass("displayNone");
  541. }
  542. }
  543. },
  544. error: function(XMLHttpRequest, textStats, errorThrown) {
  545. $.MsgBox.Alert('提示', '服务器请求失败')
  546. }
  547. })
  548. }
  549. function unauthUser($res) {
  550. var osting = ""
  551. for(var i = 0; i < $res.length; i++) {
  552. var img;
  553. var styC = "";
  554. var oClass = autho($res[i].professor.authType, $res[i].professor.orgAuth, $res[i].professor.authStatus);
  555. var oTitle = "";
  556. if($res[i].professor.title) {
  557. oTitle = $res[i].professor.title;
  558. } else {
  559. if($res[i].professor.office) {
  560. oTitle = $res[i].professor.office;
  561. }
  562. }
  563. if($res[i].professor.hasHeadImage) {
  564. img = "/images/head/" + $res[i].professor.id + "_l.jpg";
  565. } else {
  566. img = "../images/default-photo.jpg"
  567. }
  568. var oSt = '<li class="flexCenter">'
  569. oSt += '<div class="madiaHead useHead" id="userimg" style="background-image: url(' + img + ');"></div>'
  570. oSt += '<div class = "madiaInfo">'
  571. oSt += '<p class = "ellipsisSty">'
  572. oSt += '<span class = "h1Font" id="name">' + $res[i].professor.name + '</span><em class="authiconNew ' + oClass.sty + '" title="' + oClass.title + '"></em >'
  573. oSt += '</p>'
  574. oSt += '<p class="h2Font ellipsisSty">' + oTitle + '</p>'
  575. oSt += '</div>'
  576. oSt += '<span class="addbtn" data-id="' + $res[i].professor.id + '">联系</span>'
  577. oSt += '</li>'
  578. osting += oSt;
  579. }
  580. $("#expertli").html(osting);
  581. }
  582. //纠错反馈
  583. $(".correctSubmit").on("click",function(){
  584. var cntCon=$(this).siblings(".correctCon").val();
  585. var cntUser="";
  586. if(userid && userid != null && userid != "null") {
  587. cntUser = userid;
  588. }
  589. if(cntCon.length>500){
  590. $.MsgBox.Alert('提示', '纠错反馈内容不得超过500个字');
  591. return;
  592. }else{
  593. $.ajax({
  594. "url": "/ajax/feedback/error/resource",
  595. "type": "POST",
  596. "dataType": "json",
  597. "async": true,
  598. "data": {
  599. "id": resourceId,
  600. "cnt":cntCon,
  601. "user":cntUser
  602. },
  603. "success": function(data) {
  604. if(data.success) {
  605. backSuccessed();
  606. }
  607. },
  608. "error": function() {
  609. $.MsgBox.Alert('提示', '链接服务器超时')
  610. }
  611. });
  612. }
  613. })
  614. })