portal html css js resource

resourceShow.js 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  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 + '"><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. location.href = "articalShow.html?articleId=" + $(this).attr("data-id");
  313. })
  314. /*感兴趣的资源*/
  315. function interestingResources() {
  316. $.ajax({
  317. "url": "/ajax/resource/ralateResources",
  318. "type": "GET",
  319. "data":{"resourceId": resourceId},
  320. "traditional": true,
  321. dataType: "json",
  322. "success": function(data) {
  323. //console.log(data);
  324. if(data.success) {
  325. if(data.data.length == 0) {
  326. return;
  327. }
  328. $("#relateArt").parents(".otherShow").removeClass("displayNone");
  329. var StrData = data.data
  330. var lengthT;
  331. if(StrData.length>5){
  332. lengthT=5;
  333. }else{
  334. lengthT=StrData.length
  335. }
  336. for(var i = 0; i < lengthT; i++) {
  337. interestingResourcesHtml(StrData[i]);
  338. }
  339. }
  340. },
  341. 'error': function() {
  342. $.MsgBox.Alert('提示', '服务器连接超时!');
  343. }
  344. });
  345. }
  346. /*感兴趣资源的html*/
  347. function interestingResourcesHtml($respond) {
  348. var imgL="../images/default-resource.jpg";
  349. if($respond.images.length){
  350. imgL='/data/resource/' + $respond.images[0].imageSrc
  351. }
  352. var oURL;
  353. if($respond.resourceType==1) {
  354. oURL="/ajax/professor/baseInfo/"+$respond.professorId;
  355. }else{
  356. oURL="/ajax/org/" + $respond.orgId;
  357. }
  358. $.ajax({
  359. "url":oURL,
  360. "type": "GET",
  361. 'dataType': "json",
  362. "success": function(data) {
  363. if(data.success){
  364. //console.log(data)
  365. var thisName,userType,thisAuth,thisTitle
  366. if(data.data.forShort){
  367. thisName=data.data.forShort;
  368. }else{
  369. thisName=data.data.name;
  370. }
  371. if($respond.resourceType==1) {
  372. userType = autho(data.data.authType, data.data.orgAuth, data.data.authStatus);
  373. thisTitle = userType.title;
  374. thisAuth = userType.sty;
  375. }else {
  376. if(data.data.authStatus==3) {
  377. thisTitle = "科袖认证企业";
  378. thisAuth = "authicon-com-ok";
  379. }
  380. }
  381. var add = document.createElement("li");
  382. add.className = "mui-table-view-cell";
  383. add.setAttribute("data-id",$respond.resourceId);
  384. var itemlist = '<a class="flexCenter OflexCenter"><div class="madiaHead resourceHead" style="background-image:url('+imgL+')"></div>';
  385. itemlist += '<div class="madiaInfo OmadiaInfo">';
  386. itemlist += '<p class="ellipsisSty h1Font" id="usertitle">'+$respond.resourceName+'</p>';
  387. itemlist += '<p><span class="h2Font">'+thisName+'</span><em class="authiconNew '+thisAuth+'" title="'+thisTitle+'"></em></p>';
  388. itemlist += '<p class="ellipsisSty-2 h2Font">用途:'+$respond.supportedServices+'</p>';
  389. itemlist += '</div></a>';
  390. add.innerHTML=itemlist;
  391. document.getElementById("relateArt").appendChild(add);
  392. }
  393. },
  394. 'error': function() {
  395. $.MsgBox.Alert('提示', '服务器连接超时!');
  396. }
  397. });
  398. }
  399. /*点击资源列表*/
  400. $("#relateArt").on("click", "li", function() {
  401. location.href = "resourceShow.html?resourceId=" + $(this).attr("data-id");
  402. })
  403. /*点击咨询*/
  404. $("#consultin").on('click', function(){
  405. if(userid && userid != null && userid != 'null' && userid != undefined && userid != 'undefined') {
  406. location.href="tidings.html?id="+professorId
  407. } else {
  408. quickLog();
  409. operatTab();
  410. closeLog();
  411. }
  412. });
  413. $("#expertli").on("click",".addbtn",function() {
  414. if(userid && userid != null && userid != 'null' && userid != undefined && userid != 'undefined') {
  415. var id=$(this).attr("data-id");
  416. location.href="tidings.html?id="+id;
  417. } else {
  418. quickLog();
  419. operatTab();
  420. closeLog();
  421. }
  422. });
  423. // $("#consultin").on("click", function() {
  424. // clickResouceConsultHandler();
  425. // });
  426. // $("#expertli").on("click", ".addbtn", function() {
  427. // var $this = $(this);
  428. // clickResouceConsultHandler($this);
  429. // })
  430. /*咨询函数*/
  431. // function clickResouceConsultHandler($this) {
  432. // if(userid && userid != "null" && userid != null) {
  433. // ConsultApply();
  434. // if(!professorId) {
  435. // concultProInfo($this.attr("data-id")); //专家信息common.js中
  436. // } else {
  437. // concultProInfo(professorId); //专家信息common.js中
  438. // }
  439. //
  440. // //默认选中资源咨询和标题
  441. // for(var i = 0; i < $("ul.menucon").children().length; i++) {
  442. // $("ul.menucon").children().eq(i).removeClass("clicknow");
  443. // $("ul.menucon").children().eq(1).addClass("clicknow");
  444. // }
  445. // var consultTitleVal = $("#resourceName").text();
  446. // $("#consultTitle").val("关于" + consultTitleVal + "的咨询");
  447. // //点击的发送
  448. // $("#sendConsultBtn").click(function() {
  449. // sendConsultHandler(professorId); //common.js中
  450. // });
  451. // } else {
  452. // quickLog();
  453. // operatTab();
  454. // closeLog();
  455. // }
  456. //
  457. // };
  458. //点击专家关注
  459. $("#person").on("click",'.attenSpan',function() {
  460. if(userid && userid != "null" && userid != null) {
  461. if($(this).is('.attenedSpan')){
  462. cancelCollectionAbout(professorId,$(this), 1)
  463. } else {
  464. collectionAbout(professorId,$(this),1);
  465. }
  466. } else {
  467. quickLog();
  468. operatTab();
  469. closeLog();
  470. }
  471. })
  472. $("#enterprise").on("click",'.attenSpan',function() {
  473. if(userid && userid != "null" && userid != null) {
  474. if($(this).is('.attenedSpan')){
  475. cancelCollectionAbout($(".qiyego").attr('dataid'),$(this), 6)
  476. } else {
  477. collectionAbout($(".qiyego").attr('dataid'),$(this),6);
  478. }
  479. } else {
  480. quickLog();
  481. operatTab();
  482. closeLog();
  483. }
  484. })
  485. //点击资源收藏
  486. $('#attention em').click(function() {
  487. if (userid && userid != "null" && userid != null) {
  488. if($(this).is('.icon-collected')){
  489. cancelCollectionAbout(resourceId,$(this),2)
  490. }else{
  491. collectionAbout(resourceId,$(this),2)
  492. }
  493. } else {
  494. quickLog();
  495. operatTab();
  496. closeLog();
  497. }
  498. })
  499. //资源浏览量
  500. function pageViewsVal() {
  501. $.ajax({
  502. "url": "/ajax/resource/pageViews",
  503. "type": "POST",
  504. "dataType": "json",
  505. "data": {
  506. "resourceId": resourceId
  507. },
  508. "success": function(data) {
  509. console.log(data);
  510. if(data.success) {}
  511. },
  512. "error": function() {
  513. $.MsgBox.Alert('提示', '链接服务器超时')
  514. }
  515. });
  516. }
  517. pageViewsVal();
  518. selUse();
  519. function selUse() {
  520. $.ajax({
  521. url: "/ajax/resource/qaLinkman",
  522. type: "GET",
  523. timeout: 10000,
  524. dataType: "json",
  525. async: true,
  526. data: {
  527. "resourceId": resourceId,
  528. },
  529. success: function(data, textState) {
  530. console.log(data)
  531. if(data.success) {
  532. if(data.data.length>0){
  533. $("#expertli").parents(".currentBlock").removeClass("displayNone");
  534. unauthUser(data.data);
  535. }else{
  536. $("#expertli").parents(".currentBlock").addClass("displayNone");
  537. }
  538. }
  539. },
  540. error: function(XMLHttpRequest, textStats, errorThrown) {
  541. $.MsgBox.Alert('提示', '服务器请求失败')
  542. }
  543. })
  544. }
  545. function unauthUser($res) {
  546. var osting = ""
  547. for(var i = 0; i < $res.length; i++) {
  548. var img;
  549. var styC = "";
  550. var oClass = autho($res[i].professor.authType, $res[i].professor.orgAuth, $res[i].professor.authStatus);
  551. var oTitle = "";
  552. if($res[i].professor.title) {
  553. oTitle = $res[i].professor.title;
  554. } else {
  555. if($res[i].professor.office) {
  556. oTitle = $res[i].professor.office;
  557. }
  558. }
  559. if($res[i].professor.hasHeadImage) {
  560. img = "/images/head/" + $res[i].professor.id + "_l.jpg";
  561. } else {
  562. img = "../images/default-photo.jpg"
  563. }
  564. var oSt = '<li class="flexCenter">'
  565. oSt += '<div class="madiaHead useHead" id="userimg" style="background-image: url(' + img + ');"></div>'
  566. oSt += '<div class = "madiaInfo">'
  567. oSt += '<p class = "ellipsisSty">'
  568. oSt += '<span class = "h1Font" id="name">' + $res[i].professor.name + '</span><em class="authiconNew ' + oClass.sty + '" title="' + oClass.title + '"></em >'
  569. oSt += '</p>'
  570. oSt += '<p class="h2Font ellipsisSty">' + oTitle + '</p>'
  571. oSt += '</div>'
  572. oSt += '<span class="addbtn" data-id="' + $res[i].professor.id + '">联系</span>'
  573. oSt += '</li>'
  574. osting += oSt;
  575. }
  576. $("#expertli").html(osting);
  577. }
  578. //纠错反馈
  579. $(".correctSubmit").on("click",function(){
  580. var cntCon=$(this).siblings(".correctCon").val();
  581. var cntUser="";
  582. if(userid && userid != null && userid != "null") {
  583. cntUser = userid;
  584. }
  585. if(cntCon.length>500){
  586. $.MsgBox.Alert('提示', '纠错反馈内容不得超过500个字');
  587. return;
  588. }else{
  589. $.ajax({
  590. "url": "/ajax/feedback/error/resource",
  591. "type": "POST",
  592. "dataType": "json",
  593. "async": true,
  594. "data": {
  595. "id": resourceId,
  596. "cnt":cntCon,
  597. "user":cntUser
  598. },
  599. "success": function(data) {
  600. if(data.success) {
  601. backSuccessed();
  602. }
  603. },
  604. "error": function() {
  605. $.MsgBox.Alert('提示', '链接服务器超时')
  606. }
  607. });
  608. }
  609. })
  610. })