a> Kwesties 0 Pull-aanvragen 0 Commits 1521 Publicaties 0 Wiki

60 Commits (6c1c3d4e5b40e484413ac2c95344bea90571c102)

Auteur SHA1 Bericht Datum
  luyanan 9b977b1b32 企业信息联系按钮无默认联系人时置灰 6 jaren geleden
  LIPENGTAO1313 e667bc77ad 修正 6 jaren geleden
  luyanan 5956bd9b26 完善用户体验 6 jaren geleden
  luyanan 21cdd3ab58 企业、文章 6 jaren geleden
  luyanan ad6b065b34 修改工作台菜单权限 6 jaren geleden
  luyanan b73ac29a1c 改版员工,修改企业主页、,修改文章发布、新增上传附件 6 jaren geleden
  LIPENGTAO1313 60832993af 修正 6 jaren geleden
  LIPENGTAO1313 c5aeefbc04 修正需求 6 jaren geleden
  luyanan dfbab02591 修改个人企业主页关注操作 6 jaren geleden
  luyanan 569159ebfe 调整完善主页 6 jaren geleden
  luyanan 3788f9a76f 个人和企业用户主页显示 6 jaren geleden
  luyanan 413ce4d357 Merge branch 'dev' of http://121.42.53.174:3000/jiapeng/portal-front.git 6 jaren geleden
  luyanan 51d486a199 删除之前废弃咨询模块 6 jaren geleden
  luyanan d3fb314e49 增加服务、改版企业工作台 6 jaren geleden
  luyanan a915cf4ca6 搜索和企业加载更多 6 jaren geleden
  luyanan 8b3e9002c0 广告统一整理,右侧广告滚动效果 6 jaren geleden
  luyanan 28ecbe95ef 提取留言样式 6 jaren geleden
  luyanan 7e71b5b178 Merge branch 'test' 7 jaren geleden
  luyanan 1f81b95bc9 Merge remote-tracking branch 'origin/dev' into test 7 jaren geleden
  luyanan c8773b04cf h5 首页搜索以及各个页面判断是否为移动端跳转H5页面 7 jaren geleden
  jack f8efc336e4 11 7 jaren geleden
  jack f00e7f2f68 11 7 jaren geleden
  luyanan f3e2206efb Merge remote-tracking branch 'origin/dev' 7 jaren geleden
  luyanan 16ee8a48af Merge remote-tracking branch 'origin/dev' into test 7 jaren geleden
  luyanan 89e2f8cb28 专家和企业浏览页面关注隐藏不完全问题 7 jaren geleden
  luyanan fe778e0393 修改咨询按钮为联系 7 jaren geleden
  jack c818c4135f 1 7 jaren geleden
  luyanan f0f7b9ee25 企业和个人详情关注者相关 7 jaren geleden
  luyanan c7d3919cec 用户详情页面和企业详情页面添加关注收藏 7 jaren geleden
  luyanan abb8559e4d 修改需求列表时间显示规则。首页需求发布规则 7 jaren geleden
  luyanan c76d2f236e 添加链接地址,以及添加下载简历功能 7 jaren geleden
  luyanan 16487fa789 需求列表以及搜索 7 jaren geleden
  luyanan 323c496a2d 新版需求相关 7 jaren geleden
  luyanan 239afcf80e Merge remote-tracking branch 'origin/test' 7 jaren geleden
  luyanan eedb27c286 用户详情,搜索和文章相关修改 7 jaren geleden
  luyanan 669dd0c968 修改文章h5感兴趣的文章显示不出来 7 jaren geleden
  luyanan da2b4077c9 修改文章感兴趣的文章显示不出来 7 jaren geleden
  luyanan be6b713cf3 修改1.9.1 bug 7 jaren geleden
  luyanan 1eb0cd17dc 专家和企业浏览页面额度一些bug 7 jaren geleden
  luyanan d3505389aa 搜索相关调整 7 jaren geleden
  luyanan 69f6b61b49 相关添加圆 7 jaren geleden
  luyanan 0273016eee 企业和个人相关内容的添加 7 jaren geleden
  luyanan 809859e561 个人和企业浏览页面中翻页bug 7 jaren geleden
  luyanan a3de1e5b79 文章企业添加关注 7 jaren geleden
  luyanan 4c43c50c24 企业应用行业显示 7 jaren geleden
  luyanan 553813b8b8 修改1.9版本bug 7 jaren geleden
  luyanan 78753a270e 分享页面的一些bug 7 jaren geleden
  jack 646f32fadb 11 7 jaren geleden
  luyanan 00d6880983 企业应用行业字段 7 jaren geleden
  luyanan c572102694 修改企业没有数据的时候显示的缺省状态 7 jaren geleden
portal-front - Gogs: Go Git Service

portal html css js resource

news-list.js 9.3KB

    $(function() { $(".onlogin .headnavbtn li").eq(0).addClass("navcurrent"); loginStatus();//判断个人是否登录 var userid = $.cookie("userid"); var articleId; newslist();//科研新闻列表 $("#workmysrc").on("click", ".newsadd", function() { newsBombBox();//插入弹框 addDele();//编辑学术领域和应用行业 $("#inputb").on("click", function() { if($("#newsName").val()!=""){ newsAdd(); }else{ $(".workmsg1").text("发布文章名称不能为空"); } }); }); $("#workmysrc").on("click", ".resoumag", function() { articleId = $(this).attr("data-title"); newsBombBox();//插入弹框 addDele();//编辑学术领域和应用行业 modifyDisplay(); $("#inputb").on("click", function() { if($("#newsName").val()!=""){ $.MsgBox.Confirm("消息", "确定修改文章信息吗?", newsModify) }else{ $(".workmsg1").text("发布文章名称不能为空"); } }); }); /*科研新闻列表*/ function newslist() { $.ajax({ "url": "/ajax/article/qaPro", "type": "get", "async": true, "data": { "professorId": userid }, "beforeSend": function() { $("#newsbox").append('<img src="../images/loading.gif" class="loading" />'); }, "success": function(data) { //console.log(data); if(data.success) { var add = ''; $("#newsbox").html(""); var addbut = ' <div class="addworkbtn newsadd" ></div>'; $("#newsbox").append(addbut); for(var i = 0; i < data.data.length; i++) { var add = '<div class="addworkbtn-list addworkbtn-list2" ><div class="resoumag" data-title="">' add += '<div class="art_topicBox art_topicBox2"><div class="art_img" style=""></div>' add += '<div class="art_tbox"><h6 id="artical_topic" >'+ data.data[i].articleTitle + '</h6></div>' add += '</div><div class="tagsBox"><span></span></div>' add += '</div></div>'; $add = $(add); $("#newsbox").append($add); $add.find('.resoumag').attr("data-title", data.data[i].articleId); $add.find('.tagsBox span').text(data.data[i].industry); if(data.data[i].articleImg) { $add.find(".art_img").attr("style", "background: url(/data/article/"+data.data[i].articleImg+") center center no-repeat;background-size:cover;"); } $(".loading").remove(); } } else { $.MsgBox.Alert('message', "系统异常!"); } }, "error": function() { $.MsgBox.Alert('message', 'failed') } }); } /*科研新闻添加*/ function newsAdd(){ var $data = {}; $data.professorId = userid; $data.articleTitle = $("#newsName").val(); $data.subject = captiureSubInd("SubjectList .deleteSubject"); $data.industry = captiureSubInd("industryList .deleteIndustry"); $data.articleContent = ue.getContent(); if(cacheImageKey) { $data.articleImg = cacheImageKey; } $.ajax({ "url" : "/ajax/article", "type" : "post" , "dataType" : "json", "data" :$data, "success" : function(data) { //console.log(data); if (data.success){ newsname = data.data; //console.log(newsname); $.MsgBox.Alert("消息","文章发表成功!"); $("#mb_msgicon").css("background", 'url("images/sign_icon_chenggong_nor.png") 0% 0% / contain'); newslist(); $(".blackcover").remove(); UE.delEditor('editor'); } else { $.MsgBox.Alert("消息","文章发表失败!"); } }, "error":function(){ $.MsgBox.Alert('消息','链接服务器超时') } }); } /*科研新闻修改回显内容*/ function modifyDisplay(){ $.ajax({ "url" : "/ajax/article/query", "type" : "GET", "dataType" : "json", "data": { "articleId": articleId }, "success" : function($data) { //console.log($data); if ($data.success) { $("#newsName").val($data.data.articleTitle); industryShow($data.data.subject,"SubjectList","deleteSubject"); industryShow($data.data.industry,"industryList","deleteIndustry"); ue.ready(function() { if($data.data.articleContent==undefined){ var datadescp =""; }else{ var datadescp = $data.data.articleContent; } ue.setContent(datadescp); }); if($data.data.articleImg) { var $liMages = $( '<div id="WU_FILE" class="file-item thumbnail ResImgBox" style="max-width:226px;width:226px;height: 226px;">'+ '<img class="resImg headRadius resourceImg" style="display: inline;" src="data/article/'+$data.data.articleImg+'">'+ '</div>' ) }else{ var $liMages = $( '<div id="WU_FILE" class="file-item thumbnail ResImgBox" style="max-width:226px;width:226px;height: 226px;">'+ '<img class="resImg headRadius resourceImg" style="display: inline;" src="/images/default-artical.jpg">'+ '</div>' ) } $("#fileList").append($liMages); } }, "error":function(){ $.MsgBox.Alert('消息','链接服务器超时') } }) $("#deletedResource").show(); //$.MsgBox.Confirm("消息", "确定修改文章信息吗?", newsAdd()) $("#deletedResource").on("click", function() { $.MsgBox.Confirm("消息", "执行删除后文章信息将无法恢复,确定继续吗?",newsDelet) }); } /*科研新闻修改*/ function newsModify() { var $data = {}; $data.articleId = articleId; $data.articleTitle = $("#newsName").val(); $data.subject = captiureSubInd("SubjectList .deleteSubject"); $data.industry = captiureSubInd("industryList .deleteIndustry"); $data.articleContent = ue.getContent(); if(cacheImageKey) { $data.articleImg = cacheImageKey; } //console.log($data); $.ajax({ "url" : "/ajax/article/updateArt", "type" : "POST", "dataType" : "json", "data" :$data, "success" : function($data) { //console.log($data); if ($data.success) { newslist(); $(".blackcover").remove(); UE.delEditor('editor'); } }, "error":function(){ $.MsgBox.Alert('消息','链接服务器超时') } }) $("#deletedResource").show(); //$.MsgBox.Confirm("消息", "确定修改文章信息吗?", newsAdd()) $("#deletedResource").on("click", function() { $.MsgBox.Confirm("消息", "执行删除后文章信息将无法恢复,确定继续吗?",newsDelet) }); } /*科研新闻删除*/ function newsDelet() { $.ajax({ "url" : "/ajax/article/delete", "type" : "POST", "dataType" : "json", "data": { "articleId": articleId }, "success" : function($data) { if ($data.success) { $(".blackcover").remove(); UE.delEditor('editor'); newslist(); } }, "error":function(){ $.MsgBox.Alert('消息','链接服务器超时') } }) } //组合应用行业及学术领域 function captiureSubInd(subIndu) { var industrys = $("#" + subIndu + ""); var industryAll = ""; if(industrys.size() > 0) { for(var i = 0; i < industrys.size(); i++) { industryAll += industrys[i].innerText; industryAll += ','; }; industryAll = industryAll.substring(0, industryAll.length - 1); } return industryAll; } //拆解应用行业及学术领域 function industryShow(data,industryList,deleteIndustry){ if(data != undefined && data.length != 0 ){ var subs = new Array(); if(data.indexOf(',')){ subs = data.split(','); }else{ subs[0] = data; } if(subs.length>0){ for (var i = 0; i < subs.length; i++) { $("#"+industryList+"").append("<div class='"+deleteIndustry+"'>"+ subs[i] +"<span class='removeNu'><img src='images/move.png'></span></div>"); }; } } } //添加或者删除应用行业及学术领域 function addDele() { $("#industryList").on("click", ".removeNu", function() { $(this).parent().remove(); }); $("#industryAdd").click(function() { var val = $("#industry").val(); if(val==""){ $(".workmsg4").text("请填写应用行业"); return; } var vallist = $("#industryList .deleteIndustry em"); for(var i=0;i<vallist.length;i++){ if(vallist[i].innerText==val){ $(".workmsg4").text("不能添加重复内容"); return; } } $("#industryList").append("<div class='deleteIndustry'><em>" + val + "</em><span class='removeNu'><img src='images/move.png'></span></div>") $("#industry").val(""); $(".workmsg4").text(""); }); $("#SubjectList").on("click", ".removeNu", function() { $(this).parent().remove(); }); $("#subjectAdd").click(function() { var val = $("#subject").val(); if(val==""){ $(".workmsg3").text("请填写学术领域"); return; } var vallist = $("#SubjectList .deleteSubject em"); for(var i=0;i<vallist.length;i++){ if(vallist[i].innerText==val){ $(".workmsg3").text("不能添加重复内容"); return; } } $("#SubjectList").append("<div class='deleteSubject'><em>" + val + "</em><span class='removeNu'><img src='images/move.png'></span></div>") $("#subject").val(""); $(".workmsg3").text(""); }); } });