Browse Source

需求修改

jack 7 years ago
parent
commit
12749adc25
5 changed files with 13 additions and 11 deletions
  1. 2 2
      demandModify.html
  2. 1 1
      js/demandModify.js
  3. 0 1
      js/information.js
  4. 7 4
      js/postDemand.js
  5. 3 3
      postDemand.html

+ 2 - 2
demandModify.html

@ -109,7 +109,7 @@
109 109
									<option value="2">1-3个月</option>
110 110
									<option value="3">3-6个月</option>
111 111
									<option value="4">6-12个月</option>
112
									<option value="5">年以上</option>
112
									<option value="5">1年以上</option>
113 113
								</select>
114 114
								<span class="spanR"></span>
115 115
							</li>
@ -119,7 +119,7 @@
119 119
								<p class="demandTit">需求有效期<em class="requiredcon">*</em><span class="frmconmsg" style="display: none;">必填</span></p>
120 120
								<div class="input-append date form_date dateBtn" data-date="" data-date-format="yyyy-mm-dd" data-link-field="dtp_input2" data-link-format="yyyy-mm-dd">
121 121
									<em class="mr_sj"></em>
122
									<input size="16" type="text" value="" readonly class="frmtype frmcontype fColor" placeholder="请选择企业的创立时间" id="createTime">
122
									<input size="16" type="text" value="" readonly class="frmtype frmcontype fColor" placeholder="请选择企业的创立时间" id="createTime"style="background: #ffffff;;">
123 123
									<span class="dateIcon"><i class="icon-calendar"></i></span>
124 124
									<span class="add-on"><i class="icon-th displayNone"></i></span>
125 125
								</div>

+ 1 - 1
js/demandModify.js

@ -116,7 +116,7 @@ $(document).ready(function() {
116 116
	}
117 117
	$("#modia").click(function() {
118 118
		if(test()) {
119
			pDemand();
119
			$.MsgBox.Confirm("提示", "确认修改需求?", pDemand);
120 120
		}
121 121
	});
122 122
	$("#complete").click(function() {

+ 0 - 1
js/information.js

@ -218,7 +218,6 @@ $(function() {
218 218
			} else {
219 219
				$.MsgBox.Confirm("提示", "您修改了所在机构,您为企业发布的需求将关闭,确定修改?", function() {
220 220
					setTimeout(function() {
221
						alert(11)
222 221
						if(osty == "e") {
223 222
							if($("#name").val() != opName) {
224 223
								$.MsgBox.Confirm("提示", "您修改了姓名,您的专利和论文将取消关联,确定修改?", personUpdata);

+ 7 - 4
js/postDemand.js

@ -3,7 +3,7 @@ $(document).ready(function() {
3 3
	valUser();
4 4
	var userid = $.cookie("userid");
5 5
	var orgId = "";
6
	$("body").on("click", function(event) {
6
	/*$("body").on("click", function(event) {
7 7
		var event = event ? event : window.event;
8 8
		var obj = event.srcElement ? event.srcElement : event.target;
9 9
		if($('.boxHid').css("display") === "none") {
@ -18,6 +18,9 @@ $(document).ready(function() {
18 18
		}
19 19
		$('.boxHid').toggle();
20 20
		event.stopPropagation();
21
	})*/
22
	$(".btnModel,.closeFeed").click(function(){
23
		$('.boxHid').toggle();
21 24
	})
22 25
	var a = new Date();
23 26
	var c = a.getFullYear() + "-" + (Number(a.getMonth()) + 1) + "-" + (Number(a.getDate()) + 1);
@ -44,10 +47,10 @@ $(document).ready(function() {
44 47
	/*需求内容*/
45 48
	$("#remarkContent").bind({
46 49
		focus: function() {
47
			$(this).parent().siblings().find("span").show();
50
			$(this).parent().siblings().find(".frmconmsg").show();
48 51
		},
49 52
		blur: function() {
50
			$(this).parent().siblings().find("span").hide();
53
			$(this).parent().siblings().find(".frmconmsg").hide();
51 54
		},
52 55
		input: function() {
53 56
			$(".msgconNum").find("em").text($(this).val().length);
@ -101,7 +104,7 @@ $(document).ready(function() {
101 104
	}
102 105
	$(".posted").click(function() {
103 106
		if(test()) {
104
			pDemand();
107
			$.MsgBox.Confirm("提示", "确认发布需求?", pDemand);
105 108
		}
106 109
		event.stopPropagation();
107 110
	});

+ 3 - 3
postDemand.html

@ -52,7 +52,7 @@
52 52
					<div class="leftconBox floatL h3Font">
53 53
						<div class="banTheme clearfix postUl">
54 54
							<p class="floatL demandTit" style="margin-top: 0;">需求主题<em class="requiredcon">*</em><span class="frmconmsg" style="display: none;">50字以内</span></p>
55
							<input type="text" style="width: 100%;" class="frmcontype" placeholder="请用一句话概括的需求" maxlength="50" id="demandTitle"/>
55
							<input type="text" style="width: 100%;" class="frmcontype" placeholder="请用一句话概括的需求" maxlength="50" id="demandTitle"/>
56 56
						</div>
57 57
						<div class="clearfix postUl">
58 58
							<div class="banContent clearfix">
@ -123,7 +123,7 @@
123 123
									<option value="2">1-3个月</option>
124 124
									<option value="3">3-6个月</option>
125 125
									<option value="4">6-12个月</option>
126
									<option value="5">年以上</option>
126
									<option value="5">1年以上</option>
127 127
								</select>
128 128
								<span class="spanR"></span>
129 129
							</li>
@ -133,7 +133,7 @@
133 133
								<p class="demandTit">需求有效期<em class="requiredcon">*</em><span class="frmconmsg" style="display: none;">必填</span></p>
134 134
								<div class="input-append date form_date dateBtn" data-date="" data-date-format="yyyy-mm-dd" data-link-field="dtp_input2" data-link-format="yyyy-mm-dd">
135 135
									<em class="mr_sj"></em>
136
									<input size="16" type="text" value="" readonly class="frmtype frmcontype fColor" placeholder="请选择截止日期" id="createTime">
136
									<input size="16" type="text" value="" readonly class="frmtype frmcontype fColor" placeholder="请选择截止日期" id="createTime" style="background:#ffffff;">
137 137
									<span class="dateIcon"><i class="icon-calendar"></i></span>
138 138
									<span class="add-on"><i class="icon-th displayNone"></i></span>
139 139
								</div>