Browse Source

企业认证ie端修改

xuchunyang 8 years ago
parent
commit
4d81259be3
5 changed files with 29 additions and 28 deletions
  1. 1 1
      cmp-portal/cmp-workspaces.html
  2. 6 5
      cmp-portal/js/cmp-setAuth-imgup.js
  3. 7 1
      cmp-portal/js/cmp-setAuth.js
  4. 0 8
      discover.html
  5. 15 13
      js/discover.js

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

@ -50,7 +50,7 @@
50 50
			            <div class="workblock identityState" id="authBad" style="display:none">
51 51
							<div class="nowState">
52 52
							   <p><span class="identProcess" id="identProcess">通过企业认证,员工可以在科袖网发布企业需求,<br />专家帮助您解决研发难题。</span><span class="identts" id="identts"></span></p>
53
							   <a href="cmp-setAuth.html"><button type="button" class="frmtype btnModel headRadius identBtn" id="identBtn">马上去认证</button></a>
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>
56 56
						<div class="workblock clearfix" id="authOk" style="display:none">

+ 6 - 5
cmp-portal/js/cmp-setAuth-imgup.js

@ -21,14 +21,15 @@ function uploadFun(_this, num) {
21 21
/*上传文件生成cacheKey码*/
22 22
function ajaxFileUpload(num) {
23 23
	$.ajaxFileUpload({
24
		url: '/ajax/cachedFileUpload',
24
		url: '/ajax/cachedFileUpload?text=1',
25 25
		secureuri: false,
26 26
		fileElementId: 'fileone' + num,
27
		dataType: 'json',
27
		type: "POST", 
28
		dataType:"text/html",
28 29
		success: function(data, status) {
29
			console.log(data)
30
			if(data.success) {
31
				$("#fileone" + num).attr("data-id", data.data[0].cacheKey);
30
			var $data = JSON.parse(data);
31
			if($data.success) {
32
				$("#fileone" + num).attr("data-id", $data.data[0].cacheKey);
32 33
			}
33 34
		}
34 35
	})

+ 7 - 1
cmp-portal/js/cmp-setAuth.js

@ -2,9 +2,15 @@
2 2
$(function() {
3 3

4 4
	var orgid = $.cookie('orgId');
5
	var auth = GetQueryString("auth");
5 6
	var temp = [];
6 7
	/*查询企业认证状态*/
7
	authStatus();
8
	if(auth==1){
9
		$(".authup").removeClass("displayNone");
10
	}else{
11
		authStatus();	
12
	}
13
	
8 14

9 15
	$("#authsubmet").on("click", function() {
10 16
		var fileoneVal = $("#fileone1").attr("data-id");

+ 0 - 8
discover.html

@ -47,13 +47,5 @@
47 47
<script type="text/javascript" src="js/common.js"></script>
48 48
<script type="text/javascript" src="js/discover.js"></script>
49 49

50
<script>
51
	$(".tcdPageCode").createPage({
52
		pageCount: Math.ceil(1/2),
53
		current: 1,
54
		backFn: function(p) {
55
		}
56
	});
57
</script>
58 50
</body>
59 51
</html>

+ 15 - 13
js/discover.js

@ -2,9 +2,9 @@
2 2
$(function() {
3 3
	loginStatus();//判断个人是否登录
4 4
	var userid = $.cookie("userid");
5
	discover(10, 1);
5
	discover(10, 1,true);
6 6
	/*发现列表显示*/
7
	function discover(pageSize, pageNo) {
7
	function discover(pageSize, pageNo,isbind) {
8 8
		$.ajax({
9 9
			"url": "/ajax/article/pqFind",
10 10
			"type": "get",
@ -66,15 +66,17 @@ $(function() {
66 66
						}
67 67
					}
68 68
					//分页
69
					$(".tcdPageCode").createPage({
70
						pageCount: Math.ceil(data.data.total / 10),
71
						current: data.data.pageNo,
72
						backFn: function(p) {
73
							$("#table-item").html("");
74
							discover(10, p);
75
							document.body.scrollTop = document.documentElement.scrollTop = 0;
76
						}
77
					});
69
					if(isbind==true){
70
						$(".tcdPageCode").createPage({
71
							pageCount: Math.ceil(data.data.total / 10),
72
							current: data.data.pageNo,
73
							backFn: function(p) {
74
								$("#table-item").html("");
75
								discover(10, p,false);
76
								document.body.scrollTop = document.documentElement.scrollTop = 0;
77
							}
78
						});
79
					}
78 80
					$(".loading").remove();
79 81
				}
80 82

@ -129,9 +131,9 @@ $(function() {
129 131
					$itemlist.find("#userUrl").attr("href", "companybrowinfor.html?orgid=" + data.data.id);
130 132
					if(data.data.authStatus==3){
131 133
						$itemlist.find(".authiconNew").addClass("authicon-com-ok").attr("title", "认证企业");;	
132
					}else{
134
					}/*else{
133 135
						$itemlist.find(".authiconNew").addClass("authicon-com-no").attr("title", "未认证企业");;
134
					}
136
					}*/
135 137
				
136 138
				}
137 139
			},