Browse Source

修改需求列表时间显示规则。首页需求发布规则

luyanan 7 years ago
parent
commit
abb8559e4d

+ 0 - 1
cmp-portal/css/cmpindex.css

@ -448,7 +448,6 @@ ul.tagList>li .h2Font{color:#666}
448 448
.form-need{min-height:130px;}
449 449
.form-need a{display:block;}
450 450
.itemListBolck .itemListCon .form-need .madiaInfo{padding-left:0px;}
451
.itemListBolck .itemListCon .form-need .madiaEdit{display: block;}
452 451
453 452
454 453
/*定时发送时间选择器*/

+ 1 - 1
cmp-portal/js/cmp-needList.js

@ -134,7 +134,7 @@ $(document).ready(function() {
134 134
			strCon+='<a class="madiaInfo urlHref" style="'+pdRight+'" target="_blank" href="../demandShow.html?demandId='+$data.id+'" data-id="'+$data.id+'">'
135 135
			strCon+='<p class="h1Font ellipsisSty">'+ $data.title +'</p>'
136 136
			strCon+='<ul class="showliTop h2Font clearfix">'
137
			strCon+='<li><span>发布于 '+commenTime($data.createTime)+'</span></li>'
137
			strCon+='<li><span>发布于 '+TimeTr($data.createTime)+'</span></li>'
138 138
			strCon+= sowU
139 139
			strCon+='<li><span class="creator"></span></li>'
140 140
			strCon+= statusU

+ 4 - 5
css/genindex.css

@ -36,8 +36,8 @@ input.frmtype[readonly]:focus{border:1px transparent solid;}
36 36
.btnModel{display:inline-block;color:#FFFFFF;text-align:center;border:none;background: #FFFFFF; padding:6px 20px;background:#ff9900;}
37 37
.btnModel:hover{background:#ff8f00;}
38 38
/*取消按钮*/
39
.btnCancel{background:#edeff4;color: #999;}
40
.btnCancel:hover,.btnCancel:active,.btnCancel:link{background:#d6d8de;border:none;}
39
.btnCancel{background:none;color: #666;}
40
.btnCancel:hover,.btnCancel:active,.btnCancel:link{background:none;border:none;}
41 41
/*按钮不可用状态*/
42 42
.btnModel[disabled]{background:#d6d8de;}
43 43
.btnModel[disabled]:hover{background:#d6d8de;}
@ -513,7 +513,6 @@ ul.tagList>li .h2Font{color:#666}
513 513
.form-need>li:after{content: "";position: absolute;bottom: 0;left:30px;right: 0;height: 1px;background: #E5E5E5;}
514 514
.form-need>li:last-child:after{background: transparent;}
515 515
.itemListBolck .itemListCon .form-need .madiaInfo{padding-left:0px;}
516
.itemListBolck .itemListCon .form-need .madiaEdit{display: block;}
517 516
/*.pointSp{position:relative;}
518 517
.pointSp:before{content:"";display: inline-block; width: 0; height: 0;border:2px #999 solid;margin: 2px 6px; border-radius:100%;}
519 518
*/
@ -534,7 +533,7 @@ ul.tagList>li .h2Font{color:#666}
534 533
.setTimeBlock .mb_btn{width: 100px; font-size: 14px; height: 32px; color: white; border: none; background-image: none; padding: 0px; margin: 0px 10px; border-radius: 6px;}
535 534
.setTimeBlock .mb_btnOk{ background-color:#ff9900;}
536 535
.setTimeBlock .mb_btnOk:disabled{background-color:#ccc;}
537
.setTimeBlock .mb_btnNo{ background-color:#ccc;}
536
.setTimeBlock .mb_btnNo{ background:none;color:#666}
538 537
539 538
.setTimeBlock{z-index: 999999; width: 400px; position: fixed; background-color: white; border-radius: 6px; box-shadow: rgb(102, 102, 102) 1px 1px 20px 4px;top:50%;left:50%;margin:-167px 0 0 -200px;}
540 539
.setTimeBlock .mb_tit{display: block; font-size: 18px; color: rgb(255, 255, 255); background-color: rgb(255, 153, 0); line-height: 60px; text-align: center; border-radius: 6px 6px 0 0; }
@ -543,7 +542,7 @@ ul.tagList>li .h2Font{color:#666}
543 542
.setTimeBlock .mb_msg .mb-list{margin:6px 6px 12px 6px}
544 543
.setTimeBlock .mb_msg .msg-tit{margin-bottom: 10px;font-size: 16px;}
545 544
.setTimeBlock .mb_msg .msg-tit>small{color:#999;font-size: 12px;}
546
.setTimeBlock .mb_msg .msg-tip{margin-top:16px;}
545
.setTimeBlock .mb_msg .msg-tip{margin-top:6px;}
547 546
.setTimeBlock .mb_msg .msg-tip>p{color:#999;font-size: 14px;margin: 0;}
548 547
.setTimeBlock .msg-warning{color:#fd5f39;display:none;font-size:13px;}
549 548

+ 1 - 0
index.html

@ -248,6 +248,7 @@
248 248
</footer>
249 249

250 250
<script type="text/javascript" src="/js/jquery.cookie.js"></script>
251
<script type="text/javascript"src="js/jquery.similar.msgbox.js"></script>
251 252
<script type="text/javascript" src="js/common.js"></script>
252 253
<script type="text/javascript" src="js/index.js"></script>
253 254
<script type="text/javascript">

+ 1 - 1
js/attention-list.js

@ -455,7 +455,7 @@ $(function() {
455 455
									'<div class="mediaBody">' +
456 456
									'<p><span class="listtit ellipsisSty">'+$data[i].title+'</span></p>'+
457 457
									'<ul class="showliTop listtit2 clearfix">'+
458
									'<li><span>发布于 '+commenTime($data[i].createTime)+'</span></li>'+ sowU +
458
									'<li><span>发布于 '+TimeTr($data[i].createTime)+'</span></li>'+ sowU +
459 459
									'<li><span class="creator"></span></li></ul>'+
460 460
									'</div></a></li>';
461 461
									var $itemlist=$(li);

+ 1 - 1
js/cmpInforShow.js

@ -623,7 +623,7 @@ $(function() {
623 623
			strCon+='<a class="" target="_blank" href="demandShow.html?demandId='+$data.id+'" class="madiaInfo">'
624 624
			strCon+='<p class="h1Font ellipsisSty">'+ $data.title +'</p>'
625 625
			strCon+='<ul class="showliTop h3Font clearfix">'
626
			strCon+='<li><span>发布于 '+commenTime($data.createTime)+'</span></li>'
626
			strCon+='<li><span>发布于 '+TimeTr($data.createTime)+'</span></li>'
627 627
			strCon+= sowU
628 628
			strCon+='</ul>'
629 629
			strCon+='<p class="h2Font ellipsisSty-2">'+$data.descp+'</p>'

+ 26 - 4
js/index.js

@ -2,6 +2,7 @@
2 2
$(function(){
3 3
	$(".headnav li").eq(0).addClass("navcurrent");
4 4
	loginStatus();//判断个人是否登录
5
	var userid = $.cookie('userid');
5 6
	//加载页面时,判断企业账号是否登录
6 7
	var orgid = $.cookie('orgId');
7 8
	$("#cmpSettled").on("click",function(){
@ -20,13 +21,14 @@ $(function(){
20 21
		}
21 22
	})
22 23
	var sureOrg ='<div class="mb-list mb-listL" style="text-align:left"><p class="msg-tit">请先确认您的所在机构:<small>(建议填写正式全称)</small></p>'+
23
		'<input type="text" class="form-control sureOrg" placeholder="如:北京科袖科技有限公司" /><p class="msg-warning">50字以内</p>'+
24
		'<div style="height:56px;"><input type="text" class="form-control sureOrg" placeholder="如:北京科袖科技有限公司" /><p class="msg-warning">50字以内</p></div>'+
24 25
		'<div class="msg-tip"><p>注:</p><p>1. 只能发布您所在机构的需求。</p><p>2. 当您在资料中变更了所在机构后,该需求将会自动关闭。</p></div></div>';
25 26

26
	$(".setTimeBlock").on("focus",".sureOrg",function(){
27
$(".setTimeBlock").on("focus",".sureOrg",function(){
27 28
		$(".msg-warning").show();
28 29
	}).on("blur",".sureOrg",function(){
29 30
		$(".msg-warning").hide();
31
		//$(".msg-warning").text("222")
30 32
	}).on("keyup",".sureOrg",function(){
31 33
		if($(this).val().length>0){
32 34
			$(".setTimeBlock").find(".mb_btnOkpub").removeAttr("disabled");
@ -34,6 +36,7 @@ $(function(){
34 36
			$(".setTimeBlock").find(".mb_btnOkpub").attr("disabled",true)
35 37
		}
36 38
	})
39
	
37 40
	/*发布需求*/
38 41
	$("#postNow").click(function(){
39 42
		if(userid=="null"||userid==undefined){
@ -80,7 +83,7 @@ $(function(){
80 83
						}
81 84
					});
82 85
					
83
					$(".mb_btnOkpub").on("click", function() {
86
					$(".setTimeBlock").on("click",".mb_btnOkpub", function() {
84 87
						$(".blackcover2").fadeOut();
85 88
						$(".modelContain").hide();
86 89
						$("body").removeClass("modelOpen");
@ -125,5 +128,24 @@ $(function(){
125 128
			"top": "58%"
126 129
		})
127 130
	})
128
	
131
	function updateOrgName(newName){
132
		$.ajax({
133
			"url": "/ajax/professor/org",
134
			"type": "POST",
135
			"async": true,
136
			"data":{
137
				"id":userid,
138
				"name":newName
139
			},
140
			"success": function(data) {
141
				if(data.success && data.data) {
142
					console.log(data)
143
					$.MsgBox.Confirm("提示", "机构名称修改成功",function(){
144
						location.href="postDemand.html";
145
					});
146
					$("#mb_msgicon").css("background", 'url("images/sign_icon_chenggong_nor.png") 0% 0% / contain');
147
				}
148
			}
149
		});
150
	}
129 151
})

+ 1 - 1
js/jquery.similar.msgbox.js

@ -57,7 +57,7 @@
57 57
        $("#mb_btnbox").css({ margin: '0 auto 30px', textAlign: 'center', position:'relative' });
58 58
        $("#mb_btn_ok,#mb_btn_no").css({ width: '100px', fontSize: '14px', height: '32px', color: 'white', border: 'none' });
59 59
        $("#mb_btn_ok").css({backgroundImage:'none', padding:'0',margin:'0', backgroundColor: '#ff9900',borderRadius: '6px',fontFamily: fontfamily});
60
        $("#mb_btn_no").css({backgroundImage:'none', padding:'0',margin:'0', backgroundColor: '#ccc', marginLeft: '20px',borderRadius: '6px',fontFamily: fontfamily });
60
        $("#mb_btn_no").css({padding:'0',margin:'0', background: 'none',color:'#666', marginLeft: '20px',borderRadius: '6px',fontFamily: fontfamily });
61 61

62 62
        var _widht = document.documentElement.clientWidth;  //屏幕宽
63 63
        var _height = document.documentElement.clientHeight; //屏幕高

+ 7 - 3
js/myDemand.js

@ -8,7 +8,7 @@ $(document).ready(function() {
8 8
	myDemandList(true, 1, 10);
9 9
	
10 10
	var sureOrg ='<div class="mb-list mb-listL" style="text-align:left"><p class="msg-tit">请先确认您的所在机构:<small>(建议填写正式全称)</small></p>'+
11
		'<input type="text" class="form-control sureOrg" placeholder="如:北京科袖科技有限公司" /><p class="msg-warning">50字以内</p>'+
11
		'<div style="height:56px;"><input type="text" class="form-control sureOrg" placeholder="如:北京科袖科技有限公司" /><p class="msg-warning">50字以内</p></div>'+
12 12
		'<div class="msg-tip"><p>注:</p><p>1. 只能发布您所在机构的需求。</p><p>2. 当您在资料中变更了所在机构后,该需求将会自动关闭。</p></div></div>';
13 13
	var seleTime = '<div class="mb-list mb-listR"><p class="msg-tit">请设置需求的有效期:</p>'+
14 14
		'<div class="formTime"><div class="form-group">'+
@ -26,6 +26,10 @@ $(document).ready(function() {
26 26
			$(".setTimeBlock").find(".mb_btnOkpub").attr("disabled",true)
27 27
		}
28 28
	})
29
	$(".setTimeBlock").on("mouseleave",".mb-list",function(){
30
		$(".msg-warning").hide();
31
		
32
	})
29 33
	$(".issueSpanBlock").on("click",".issueSpan",function(){
30 34
		var $status=["0","1"];
31 35
		$.ajax({//查询是否有发布中和已过期的需求
@ -151,7 +155,7 @@ $(document).ready(function() {
151 155
					if(data.success && data.data) {
152 156
						console.log(data);
153 157
						$(".madiaEdit").remove();
154
						demandList(true,10, 1);
158
						myDemandList(true,1, 10);
155 159
					}
156 160
				}
157 161
			});
@ -239,7 +243,7 @@ $(document).ready(function() {
239 243
			strCon+='<a class="madiaInfo urlHref" style="'+pdRight+'" target="_blank" data-id="'+$data.id+'">'
240 244
			strCon+='<p class="h1Font ellipsisSty">'+ $data.title +'</p>'
241 245
			strCon+='<ul class="showliTop h2Font clearfix">'
242
			strCon+='<li><span>发布于 '+commenTime($data.createTime)+'</span></li>'
246
			strCon+='<li><span>发布于 '+TimeTr($data.createTime)+'</span></li>'
243 247
			strCon+= sowU
244 248
			strCon+= statusU
245 249
			strCon+='</ul>'

+ 1 - 1
js/needList.js

@ -68,7 +68,7 @@ $(document).ready(function() {
68 68
			strCon+='<a class="" target="_blank" href="demandShow.html?demandId='+$data.id+'" class="madiaInfo">'
69 69
			strCon+='<p class="h1Font ellipsisSty">'+ $data.title +'</p>'
70 70
			strCon+='<ul class="showliTop h3Font clearfix">'
71
			strCon+='<li><span class="cmpName"></span></li><li><span>发布于 '+commenTime($data.createTime)+'</span></li>'
71
			strCon+='<li><span class="cmpName"></span></li><li><span>发布于 '+TimeTr($data.createTime)+'</span></li>'
72 72
			strCon+= sowU
73 73
			strCon+='</ul>'
74 74
			strCon+='<p class="h2Font ellipsisSty-2">'+$data.descp+'</p>'