Browse Source

修改bug

LIPENGTAO1313 6 years ago
parent
commit
cda804ccbe

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

@ -49,7 +49,7 @@
49 49
				<div class="itemListBolck">
50 50
					<div class="workblock identityState" id="identityState" style="display:none">
51 51
						<div class="nowState">
52
						   <p><span class="identProcess" id="identProcess">通过企业认证,员工可以在科袖网发布企业需求,<br />您可以在这里管理这些需求。</span><span class="identts" id="identts"></span></p>
52
						   <p><span class="identProcess" id="identProcess">通过企业认证,发布您的需求,让专家找上门。</span><span class="identts" id="identts"></span></p>
53 53
						   <a href="cmp-setAuth.html?auth=1"><button type="button" class="frmtype btnModel headRadius identBtn" id="identBtn">马上认证</button></a>
54 54
						</div>
55 55
					</div>

+ 9 - 1
cmp-portal/cmp-productList.html

@ -31,6 +31,13 @@
31 31
	        <div class="workcon workconG">
32 32
				<div class="workcontit"><a class="worksamlltit worksamlltitnow">企业产品</a></div>
33 33
				<div class="itemListBolck">
34
					<div class="workblock identityState" id="identityState" style="display:none">
35
						<div class="nowState">
36
						   <p><span class="identProcess" id="identProcess">通过企业认证,发布您的产品,让客户找到您。</span><span class="identts" id="identts"></span></p>
37
						   <a href="cmp-setAuth.html?auth=1"><button type="button" class="frmtype btnModel headRadius identBtn" id="identBtn">马上认证</button></a>
38
						</div>
39
					</div>
40
					<div class="form-item itemListCon" id="companyDemandList" style="display:none;">
34 41
					<div class="topOperaBlock clearfix">
35 42
						<div class="searchAbout col-w-8">
36 43
							<input class="frmcontype" type="search" name="" placeholder="请输入产品名称、厂商型号、关键词" id="resouceName" maxlength="30">
@ -57,7 +64,8 @@
57 64
							<div class="tcdPageCode"></div>
58 65
						</div>
59 66
					</div>
60
				</div>
67
					</div>
68
					</div>
61 69
			</div>
62 70
	    </div>
63 71
    </div>

+ 9 - 1
cmp-portal/cmp-resourceList.html

@ -31,6 +31,13 @@
31 31
	        <div class="workcon workconG">
32 32
				<div class="workcontit"><a class="worksamlltit worksamlltitnow">企业资源</a></div>
33 33
				<div class="itemListBolck">
34
					<div class="workblock identityState" id="identityState" style="display:none">
35
						<div class="nowState">
36
						   <p><span class="identProcess" id="identProcess">通过企业认证,发布您的仪器设备,让客户找到您。</span><span class="identts" id="identts"></span></p>
37
						   <a href="cmp-setAuth.html?auth=1"><button type="button" class="frmtype btnModel headRadius identBtn" id="identBtn">马上认证</button></a>
38
						</div>
39
					</div>
40
					<div class="form-item itemListCon" id="companyDemandList" style="display:none;">
34 41
					<div class="topOperaBlock clearfix">
35 42
						<div class="searchAbout col-w-8">
36 43
							<input class="frmcontype" type="search" name="" placeholder="请输入资源名称、用途、关键词" id="resouceName">
@ -57,7 +64,8 @@
57 64
							<div class="tcdPageCode"></div>
58 65
						</div>
59 66
					</div>
60
				</div>
67
					</div>
68
					</div>
61 69
			</div>
62 70
	    </div>
63 71
    </div>

+ 9 - 1
cmp-portal/cmp-serviceList.html

@ -31,6 +31,13 @@
31 31
	        <div class="workcon workconG">
32 32
				<div class="workcontit"><a class="worksamlltit worksamlltitnow">企业服务</a></div>
33 33
				<div class="itemListBolck">
34
					<div class="workblock identityState" id="identityState" style="display:none">
35
						<div class="nowState">
36
						   <p><span class="identProcess" id="identProcess">通过企业认证,发布您的服务项目,让客户找到您。</span><span class="identts" id="identts"></span></p>
37
						   <a href="cmp-setAuth.html?auth=1"><button type="button" class="frmtype btnModel headRadius identBtn" id="identBtn">马上认证</button></a>
38
						</div>
39
					</div>
40
					<div class="form-item itemListCon" id="companyDemandList" style="display:none;">
34 41
					<div class="topOperaBlock clearfix">
35 42
						<div class="searchAbout col-w-8">
36 43
							<input class="frmcontype" type="search" name="" placeholder="请输入服务名称、内容、关键词" id="resouceName">
@ -57,7 +64,8 @@
57 64
							<div class="tcdPageCode"></div>
58 65
						</div>
59 66
					</div>
60
				</div>
67
					</div>
68
					</div>
61 69
			</div>
62 70
	    </div>
63 71
    </div>

+ 9 - 1
cmp-portal/cmp-staffList.html

@ -45,6 +45,13 @@
45 45
		    <div class="workcon workconG">
46 46
				<div class="workcontit"><a class="worksamlltit worksamlltitnow">企业员工</a></div>
47 47
				<div class="itemListBolck main-wrapper" id="staffContent">
48
					<div class="workblock identityState" id="identityState" style="display:none">
49
						<div class="nowState">
50
						   <p><span class="identProcess" id="identProcess">通过企业认证,让您的认证员工在科袖网开展业务。</span><span class="identts" id="identts"></span></p>
51
						   <a href="cmp-setAuth.html?auth=1"><button type="button" class="frmtype btnModel headRadius identBtn" id="identBtn">马上认证</button></a>
52
						</div>
53
					</div>
54
					<div class="form-item itemListCon" id="companyDemandList" style="display:none;">
48 55
					<div class="list-wrapper">
49 56
						<div class="block-title">默认联系人</div>
50 57
						<div class="block-wrapper">
@ -101,7 +108,8 @@
101 108
							<div class="tcdPageCode" id="UnauthtcdPageCode"></div>
102 109
						</div>
103 110
					</div>
104
				</div>
111
					</div>
112
					</div>
105 113
			</div>
106 114
		</div>
107 115
	</div>

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

@ -153,7 +153,7 @@ $(document).ready(function() {
153 153
			success: function(data, textState) {
154 154
				if(data.success) {
155 155
					if(data.data.length==0) {
156
						$.MsgBox.Confirm("提示", "请至少认证1位员工?", function(){
156
						$.MsgBox.Confirm("提示", "请至少认证1位员工</br><span style='margin-top:20px;font-size:14px;color:#ccc;'>选择认证员工作为联系人,代表企业与对方沟通。</span>", function(){
157 157
							location.href="cmp-staffList.html";
158 158
						});
159 159
						$("#mb_btn_no").val("稍后再说");

+ 27 - 1
cmp-portal/js/cmp-procuctList.js

@ -6,6 +6,32 @@ $(document).ready(function() {
6 6
		location.href = "cmp-settled-log.html";
7 7
	}
8 8
	var resourceId;
9
	function companyAuthentState() {
10
		$.ajax({
11
			url: '/ajax/org/authStatus',
12
			type: "GET",
13
			timeout: 10000,
14
			dataType: "json",
15
			data: {
16
				"id": orgId
17
			},
18
			beforeSend: function() {},
19
			success: function(data, textState) {
20
				if(data.success) {
21
					console.log(data);
22
					if(data.data == 3) {
23
						$("#companyDemandList").show();
24
					} else {
25
						$("#identityState").show();
26
					}
27
				}
28
			},
29
			error: function(XMLHttpRequest, textStats, errorThrown) {
30
				$.MsgBox.Alert('提示', '服务器请求失败')
31
			}
32
		})
33
	}
34
	companyAuthentState();
9 35
	$(".issueSpan").click(function(e){
10 36
		UnauthorizedUser()
11 37
		 e.preventDefault(); 
@ -24,7 +50,7 @@ $(document).ready(function() {
24 50
			success: function(data, textState) {
25 51
				if(data.success) {
26 52
					if(data.data.length==0) {
27
						$.MsgBox.Confirm("提示", "请至少认证1位员工?", function(){
53
						$.MsgBox.Confirm("提示", "请至少认证1位员工</br><span style='margin-top:20px;font-size:14px;color:#ccc;'>选择认证员工作为联系人,代表企业与对方沟通。</span>", function(){
28 54
							location.href="cmp-staffList.html";
29 55
						});
30 56
						$("#mb_btn_no").val("稍后再说");

+ 4 - 4
cmp-portal/js/cmp-staffListNew.js

@ -24,10 +24,10 @@ $(document).ready(function() {
24 24
			},
25 25
			success: function(data) {
26 26
				if(data.success) {
27
					if(data.data !== '3') {
28
						var str = '<div class="default-text"><div>您的企业账户还未进行认证,还不能认证企业员工</div>'+
29
						   '<a href="cmp-setAuth.html?auth=1">点击这里认证企业信息</a></div>';
30
						$("#staffContent").html(str);
27
					if(data.data == 3) {
28
						$("#companyDemandList").show();
29
					} else {
30
						$("#companyDemandList").show();
31 31
					}
32 32
				}
33 33
			}

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

@ -322,7 +322,7 @@ $(document).ready(function() {
322 322
			"dataType": "json",
323 323
			"success": function(data) {
324 324
				if(data.success) {
325
					location.href = "myDemand.html";
325
					location.href = "cmp-needList.html";
326 326
				}
327 327
			},
328 328
			"error": function() {

+ 27 - 1
cmp-portal/js/resourceList.js

@ -6,6 +6,32 @@ $(document).ready(function() {
6 6
		location.href = "cmp-settled-log.html";
7 7
	}
8 8
	var resourceId;
9
	function companyAuthentState() {
10
		$.ajax({
11
			url: '/ajax/org/authStatus',
12
			type: "GET",
13
			timeout: 10000,
14
			dataType: "json",
15
			data: {
16
				"id": orgId
17
			},
18
			beforeSend: function() {},
19
			success: function(data, textState) {
20
				if(data.success) {
21
					console.log(data);
22
					if(data.data == 3) {
23
						$("#companyDemandList").show();
24
					} else {
25
						$("#identityState").show();
26
					}
27
				}
28
			},
29
			error: function(XMLHttpRequest, textStats, errorThrown) {
30
				$.MsgBox.Alert('提示', '服务器请求失败')
31
			}
32
		})
33
	}
34
	companyAuthentState();
9 35
	$(".issueSpan").click(function(e){
10 36
		UnauthorizedUser()
11 37
		 e.preventDefault(); 
@ -24,7 +50,7 @@ $(document).ready(function() {
24 50
			success: function(data, textState) {
25 51
				if(data.success) {
26 52
					if(data.data.length==0) {
27
						$.MsgBox.Confirm("提示", "请至少认证1位员工?", function(){
53
						$.MsgBox.Confirm("提示", "请至少认证1位员工</br><span style='margin-top:20px;font-size:14px;color:#ccc;'>选择认证员工作为联系人,代表企业与对方沟通。</span>", function(){
28 54
							location.href="cmp-staffList.html";
29 55
						});
30 56
						$("#mb_btn_no").val("稍后再说");

+ 27 - 1
cmp-portal/js/serviceList.js

@ -6,6 +6,32 @@ $(document).ready(function() {
6 6
		location.href = "cmp-settled-log.html";
7 7
	}
8 8
	var resourceId;
9
	function companyAuthentState() {
10
		$.ajax({
11
			url: '/ajax/org/authStatus',
12
			type: "GET",
13
			timeout: 10000,
14
			dataType: "json",
15
			data: {
16
				"id": orgId
17
			},
18
			beforeSend: function() {},
19
			success: function(data, textState) {
20
				if(data.success) {
21
					console.log(data);
22
					if(data.data == 3) {
23
						$("#companyDemandList").show();
24
					} else {
25
						$("#identityState").show();
26
					}
27
				}
28
			},
29
			error: function(XMLHttpRequest, textStats, errorThrown) {
30
				$.MsgBox.Alert('提示', '服务器请求失败')
31
			}
32
		})
33
	}
34
	companyAuthentState();
9 35
	$(".issueSpan").click(function(e){
10 36
		UnauthorizedUser()
11 37
		 e.preventDefault(); 
@ -24,7 +50,7 @@ $(document).ready(function() {
24 50
			success: function(data, textState) {
25 51
				if(data.success) {
26 52
					if(data.data.length==0) {
27
						$.MsgBox.Confirm("提示", "请至少认证1位员工?", function(){
53
						$.MsgBox.Confirm("提示", "请至少认证1位员工</br><span style='margin-top:20px;font-size:14px;color:#ccc;'>选择认证员工作为联系人,代表企业与对方沟通。</span>", function(){
28 54
							location.href="cmp-staffList.html";
29 55
						});
30 56
						$("#mb_btn_no").val("稍后再说");

+ 1 - 1
js/serviceIssue.js

@ -370,7 +370,7 @@ $(document).ready(function() {
370 370
					if(!sevriceId)
371 371
						sevriceId = data.data;
372 372
					$("#deleteResource").removeClass("disableLi").addClass("deleteResource");
373
					window.open("sevricePreview.html?sevriceId=" + data.data);
373
					window.open("sevricePreview.html?sevriceId=" + sevriceId);
374 374
					getRecourceMe();
375 375
					//弹出预览
376 376
				} else if(pa2 == 2) {

+ 1 - 0
js/sevricePreview.js

@ -74,6 +74,7 @@ $(document).ready(function() {
74 74
	}
75 75
	/*处理资源html代码*/
76 76
	function resourceHtml($da) {
77
		
77 78
		$("#resourceName").text($da.name); //名字
78 79
		if($da.cnt){
79 80
			$("#application").text($da.cnt); //应用用途

+ 1 - 1
sevricePreview.html

@ -62,7 +62,7 @@
62 62
							
63 63
						</ul>
64 64
						<!--相关资源-->
65
						<div class="form-item otherShow">
65
						<div class="form-item otherShow displayNone">
66 66
							<div class="aboutTit">相关资源</div>
67 67
							<div class="form-result aboutRes pointOk">
68 68
								<ul id="oResource">