portal html css js resource

articalIssue.html 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1.  <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <title>发布文章-科袖网</title>
  8. <link rel="shortcut icon" href="images/favicon.ico "/>
  9. <link type="text/css" rel="stylesheet" href="css/bootstrap.min.css">
  10. <link type="text/css" rel="stylesheet" href="css/bootstrap-datetimepicker.min.css">
  11. <link type="text/css" href="../css/webuploader/webuploader.css" rel="stylesheet">
  12. <link type="text/css" rel="stylesheet" href="css/glyIcon.css">
  13. <link type="text/css" href="css/common.css" rel="stylesheet">
  14. <link type="text/css" href="css/cmpindex.css" rel="stylesheet">
  15. <script type="text/javascript" src="js/public/jquery-1.11.1.js"></script>
  16. <style type="text/css">
  17. .rightconBox .conItem{display: none;}
  18. .rightconBox .conItem:first-child{display: block;}
  19. </style>
  20. </head>
  21. <body>
  22. <header id="header">
  23. <script src="js/public/cmpHeader.js"></script>
  24. </header>
  25. <!--定时发布弹框-->
  26. <div class="blackcover2"></div>
  27. <div class="setTimeBlock modelContain">
  28. <span class="mb_tit">提示</span>
  29. <a class="mb_close"></a>
  30. <div class="mb_msg" id="promotTh">
  31. </div>
  32. <div class="mb_btnbox" id="promotGt">
  33. <input class="mb_btn mb_btnNo" type="button" value="取消">
  34. </div>
  35. </div>
  36. <input type="hidden" id="hidearticleId" value="" />
  37. <div id="container">
  38. <div class="containerCon">
  39. <div class="contentCon clearfix conBlock">
  40. <div class="leftconBox floatL">
  41. <ul class="artAbout">
  42. <li>
  43. <div class="uploadFile">
  44. <div class="uploadblock" id="uploader" data-id>
  45. <span class="" id="filePicker">上传图片</span>
  46. <!--未上传图片时-->
  47. <div class="upFront">
  48. <p>文章封面图片<em class="requiredcon">*</em></p>
  49. <p class="uploadtip">JPG/JPEG/PNG格式,2M以内</p>
  50. <span class="upbtn">上传图片</span>
  51. </div>
  52. <!--已上传图片时-->
  53. <span class="upbtn upBackbtn">更换图片</span>
  54. </div>
  55. </div>
  56. <span class="frmconmsg imgtis" style="margin-left:0"></span>
  57. </li>
  58. <li>
  59. <div class="aboutTit" id="aboutTit">标题<em class="requiredcon">*</em><span class="frmconmsg"></span></div>
  60. <input type="text" class="frmtype frmcontype" value="" placeholder="请输入标题" id="newstitle"/>
  61. </li>
  62. <li class="form-item">
  63. <div class="aboutTit">关键词<span class="frmconmsg" id="keyPrompt"></span></div>
  64. <div class="col-w-12" style="position: relative;">
  65. <input type="text" class="frmcontype oinput" placeholder="请填写相关的关键词,如:腐蚀防护、石墨烯、纳米材料" data-pro="关键词不得超过15个字" data-num="5" data-fontSizeN="15" id="KeyWord" />
  66. <button type="button" class="frmcontype btnModel frmadd addButton">添加</button>
  67. <div class="form-drop keydrop">
  68. <ul>
  69. </ul>
  70. </div>
  71. </div>
  72. <div class="form-result keyResult" style="margin-top: -10px;">
  73. <ul class="ulspace editUlist clearfix" id="keyWordlist">
  74. <!--<li>dd<div class="closeThis"></div></li>-->
  75. </ul>
  76. </div>
  77. </li>
  78. <li>
  79. <div class="aboutTit">文章内容<span class="frmconmsg"></span></div>
  80. <!--这块还是使用编辑框插件-->
  81. <div class="editBlock">
  82. <script id="editor" name="content" type="text/plain" style="height:500px;"></script>
  83. </div>
  84. </li>
  85. </ul>
  86. </div>
  87. <div class="rightconBox floatR">
  88. <div class="conItem">
  89. <ul class="operateBlock">
  90. <li class="goFabu" id="release">
  91. <em class="operateicon icon-issue"></em>
  92. <p>发布</p>
  93. </li>
  94. <li id="setTimeIssue">
  95. <em class="operateicon icon-timeissue"></em>
  96. <p>定时发布</p>
  97. </li>
  98. <li class="articalPreview" id="preview">
  99. <em class="operateicon icon-preview"></em>
  100. <p>预览</p>
  101. </li>
  102. <li id="draft">
  103. <em class="operateicon icon-draft"></em>
  104. <p>存草稿</p>
  105. </li>
  106. <li class="disableLi" id="delete">
  107. <em class="operateicon icon-delete"></em>
  108. <p>删除</p>
  109. </li>
  110. </ul>
  111. </div>
  112. <div class="conItem">
  113. <div class="form-item otherBlock">
  114. <div class="aboutTit">相关专家<span class="frmconmsg"></span></div>
  115. <input type="text" class="frmtype frmcontype" placeholder="请输入专家姓名" id="checkZj" value="" />
  116. <div class="form-drop displayNone">
  117. <ul class="expertlist" id="expertlist">
  118. </ul>
  119. </div>
  120. <div class="form-result">
  121. <ul class="addexpert" id="expertli">
  122. </ul>
  123. </div>
  124. </div>
  125. </div>
  126. <div class="conItem">
  127. <div class="form-item otherBlock">
  128. <div class="aboutTit">本文相关服务<span class="frmconmsg"></span></div>
  129. <input type="text" class="frmtype frmcontype" placeholder="请输入服务名称" id="sevrice" value="">
  130. <div class="form-drop">
  131. <ul class="expertlist" id="sevricelist">
  132. </ul>
  133. </div>
  134. <div class="form-result">
  135. <ul class="addexpert" id="sevriceli">
  136. </ul>
  137. </div>
  138. </div>
  139. </div>
  140. <div class="conItem">
  141. <div class="form-item otherBlock">
  142. <div class="aboutTit">本文相关资源<span class="frmconmsg"></span></div>
  143. <input type="text" class="frmtype frmcontype" placeholder="请输入资源名称" id="checkZy" value="">
  144. <div class="form-drop">
  145. <ul class="expertlist" id="resouselist">
  146. <!--<li id="usid" class="flexCenter" data-id="4558F24B922E4FF9A5062AA9869808F8"><p class="h1Font ellipsisSty-2 childElement" style="width:95%;"id="resourceName">但渐渐地就的解决的记得记得就到家但渐渐地就但渐渐地就的解决的记得记得就到家但渐渐地就</p><div class="deleteThis"></div></li>-->
  147. </ul>
  148. </div>
  149. <div class="form-result">
  150. <ul class="addexpert" id="resources">
  151. <!--<li id="usid" class="flexCenter" data-id="4558F24B922E4FF9A5062AA9869808F8"><p class="h1Font ellipsisSty-2 childElement" style="width:78%;"id="resourceName">但渐渐地就的解决的记得记得就到家但渐渐地就但渐渐地就的解决的记得记得就到家但渐渐地就</p><div class="deleteThis"></div></li>-->
  152. </ul>
  153. </div>
  154. </div>
  155. </div>
  156. <div class="conItem">
  157. <div class="form-item otherBlock">
  158. <div class="aboutTit">本文相关企业<span class="frmconmsg"></span></div>
  159. <input type="text" class="frmtype frmcontype" placeholder="请输入企业名称" id="company" value="" />
  160. <div class="form-drop displayNone">
  161. <ul class="expertlist" id="companylist">
  162. </ul>
  163. </div>
  164. <div class="form-result">
  165. <ul class="addexpert" id="companys">
  166. </ul>
  167. </div>
  168. </div>
  169. </div>
  170. <div class="conItem">
  171. <div class="form-item otherBlock">
  172. <div class="aboutTit">本文相关产品<span class="frmconmsg"></span></div>
  173. <input type="text" class="frmtype frmcontype" placeholder="请输入产品名称" id="product" value="">
  174. <div class="form-drop">
  175. <ul class="expertlist" id="productlist">
  176. </ul>
  177. </div>
  178. <div class="form-result">
  179. <ul class="addexpert" id="productli">
  180. </ul>
  181. </div>
  182. </div>
  183. </div>
  184. <div class="conItem">
  185. <div class="form-item otherBlock">
  186. <div class="aboutTit">上传附件</div>
  187. <div id="upAttachPicker" class="upAttech">点击这里上传附件</div>
  188. <div class="form-result" style="margin-top:0">
  189. <ul class="addexpert" id="fileAttachList">
  190. </ul>
  191. </div>
  192. </div>
  193. </div>
  194. </div>
  195. </div>
  196. </div>
  197. </div>
  198. <div class="footer_tools">
  199. <a id="scrollUp" href="javascript:;" title="返回顶部"></a>
  200. </div>
  201. <footer>
  202. <script type="text/javascript" src="js/public/cmpFooter.js"></script>
  203. </footer>
  204. <script type="text/javascript" src="js/public/bootstrap.min.js"></script>
  205. <script type="text/javascript" src="js/public/bootstrap-datetimepicker.js"></script>
  206. <script type="text/javascript" src="../js/ueditor/ueditor.config.js"></script>
  207. <script type="text/javascript" src="../js/ueditor/ueditor.all.js"> </script>
  208. <script type="text/javascript" src="../js/webuploader/webuploader.js"></script>
  209. <script type="text/javascript"src="js/public/jquery.cookie.js"></script>
  210. <script type="text/javascript"src="js/public/jquery.similar.msgbox.js"></script>
  211. <script type="text/javascript" src="../js/public/baseUtil.js"></script>
  212. <script type="text/javascript" src="js/public/cmpCom.js"></script>
  213. <script type="text/javascript" src="js/articalIssue.js"></script>
  214. <script type="text/javascript">
  215. $(function () {
  216. //回到顶部
  217. var $body = $(document.body);;
  218. var $bottomTools = $('.footer_tools');
  219. $(window).scroll(function () {
  220. var scrollHeight = $(document).height();
  221. var scrollTop = $(window).scrollTop();
  222. var $footerHeight = $('footer').outerHeight(true);
  223. var $windowHeight = $(window).innerHeight();
  224. scrollTop > 50 ? $("#scrollUp").fadeIn(200).css("display","block") : $("#scrollUp").fadeOut(200);
  225. $bottomTools.css("bottom", scrollHeight - scrollTop - $footerHeight > $windowHeight ? 20 : $windowHeight + scrollTop + $footerHeight + 20 - scrollHeight);
  226. });
  227. $('#scrollUp').click(function (e) {
  228. e.preventDefault();
  229. $('html,body').animate({ scrollTop:0});
  230. });
  231. });
  232. //Model模态框打开关闭
  233. $(".mb_close,.mb_btnNo").click(function() {
  234. $(".modelContain").hide();
  235. $(".blackcover2").fadeOut();
  236. $("body").removeClass("modelOpen");
  237. })
  238. //初始引用编辑器
  239. ue = UE.getEditor('editor', {});
  240. // 上传图片
  241. var uploader = WebUploader.create({
  242. auto: true,
  243. swf: '../js/webuploader/Uploader.swf',
  244. server: '../ajax/cachedFileUpload',
  245. fileSingleSizeLimit: 2 * 1024 * 1024,
  246. duplicate:true,
  247. pick : {
  248. id : "#filePicker",
  249. multiple: false
  250. },
  251. accept: {// 只允许选择图片文件。
  252. title: 'Images',
  253. extensions: 'jpg,jpeg,png',
  254. mimeTypes: 'image/jpg,image/jpeg,image/png'
  255. }
  256. });
  257. uploader.onError = function(code) {
  258. if(code=="F_EXCEED_SIZE"){
  259. $.MsgBox.Alert('提示', '请上传jpg、jpeg、png格式的图片,大小不超过2M')
  260. }
  261. };
  262. // 当有文件添加进来的时候
  263. uploader.on( 'fileQueued', function( file ) {
  264. uploader.makeThumb( file, function( error, src ) {
  265. $("#uploader").css("background-image","url("+src+")");
  266. $(".imgtis").text("");
  267. $(".upFront").hide();
  268. $(".upBackbtn").show();
  269. }, 1, 1 );
  270. });
  271. cacheImageKey="";
  272. uploader.on( 'uploadSuccess', function(file,data) {
  273. if(data.success) {
  274. cacheImageKey =data.data[0].cacheKey;
  275. $("#uploader").attr("data-id",cacheImageKey);
  276. }else{
  277. $.MsgBox.Alert('提示', '只支持jpeg/jpg/png格式的图片');
  278. $("#uploader").css("background-image","url('')");
  279. }
  280. });
  281. </script>
  282. </body>
  283. </html>