Browse Source

企业账户设置

luyanan 6 years ago
parent
commit
61a171efe9

+ 2 - 1
cmp-portal/cmp-setAuth.html

@ -7,6 +7,7 @@
7 7
<title>企业认证</title>
8 8
<link rel="shortcut icon" href="images/favicon.ico "/>
9 9
<link type="text/css" rel="stylesheet" href="css/bootstrap.min.css">
10
<link type="text/css" href="../css/genindex.css" rel="stylesheet">
10 11
<link type="text/css" rel="stylesheet" href="css/common.css">
11 12
<link type="text/css" rel="stylesheet" href="css/cmpindex.css">
12 13
<script type="text/javascript" src="js/public/jquery-1.11.1.js"></script>
@ -21,7 +22,7 @@
21 22
<!--中间-->
22 23
<div id="container">
23 24
	<div class="containerCon con-center">
24
        <div class="workmenu">
25
        <div class="workmenu" style="background: #fff;">
25 26
            <a class="workmenutit accouttit">账户设置</a>
26 27
            <a href="cmp-setPwd.html" class="worksubmenu">密码修改</a>
27 28
            <a href="cmp-setBind.html" class="worksubmenu">账号绑定</a>

+ 2 - 1
cmp-portal/cmp-setBind.html

@ -7,6 +7,7 @@
7 7
<title>账户绑定</title>
8 8
<link rel="shortcut icon" href="images/favicon.ico "/>
9 9
<link type="text/css" rel="stylesheet" href="css/bootstrap.min.css">
10
<link type="text/css" href="../css/genindex.css" rel="stylesheet">
10 11
<link type="text/css" rel="stylesheet" href="css/common.css">
11 12
<link type="text/css" rel="stylesheet" href="css/cmpindex.css">
12 13
<script type="text/javascript" src="js/public/jquery-1.11.1.js"></script>
@ -49,7 +50,7 @@
49 50
<!--中间-->
50 51
<div id="container">
51 52
	<div class="containerCon con-center">
52
        <div class="workmenu">
53
        <div class="workmenu" style="background: #fff;">
53 54
            <a class="workmenutit accouttit">账户设置</a>
54 55
            <a href="cmp-setPwd.html" class="worksubmenu">密码修改</a>
55 56
            <a href="javascript:;" class="worksubmenu cmpBg">账号绑定</a>

+ 2 - 1
cmp-portal/cmp-setPwd.html

@ -7,6 +7,7 @@
7 7
<title>修改密码</title>
8 8
<link rel="shortcut icon" href="images/favicon.ico "/>
9 9
<link type="text/css" rel="stylesheet" href="css/bootstrap.min.css">
10
<link type="text/css" href="../css/genindex.css" rel="stylesheet">
10 11
<link type="text/css" rel="stylesheet" href="css/common.css">
11 12
<link type="text/css" rel="stylesheet" href="css/cmpindex.css">
12 13
<script type="text/javascript" src="js/public/jquery-1.11.1.js"></script>
@ -26,7 +27,7 @@
26 27
<!--中间-->
27 28
<div id="container">
28 29
	<div class="containerCon con-center">
29
        <div class="workmenu">
30
        <div class="workmenu" style="background: #fff;">
30 31
            <a class="workmenutit accouttit">账户设置</a>
31 32
            <a href="javascript:;" class="worksubmenu cmpBg">密码修改</a>
32 33
            <a href="cmp-setBind.html" class="worksubmenu">账号绑定</a>

+ 2 - 2
cmp-portal/js/cmp-procuctList.js

@ -120,9 +120,9 @@ $(document).ready(function() {
120 120
				'<div class="madiaInfo">' +
121 121
				'<p class="h1Font ellipsisSty">' + $data[i].name + '</p>' +
122 122
				'<ul class="h2Font clearfix">' +
123
				'<li><span>' + oTime + '</span></li>' + pageview + '<li><span id="oop" style="display:inline-block;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"></span></li>' +
123
				'<li><span>' + oTime + '</span></li>' + pageview + '<li><span class="ellipsisSty" id="oop" style="display:inline-block;max-width:200px;"></span></li>' +
124 124
				'</ul>' +
125
				'<p><span>' + draftLable + '</span><span class="crel" style="display:inline-block;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"></span></p>' +
125
				'<p><span>' + draftLable + '</span><span class="crel ellipsisSty" style="display:inline-block;max-width:200px;"></span></p>' +
126 126
				'</div>' +
127 127
				'</a>' +
128 128
				'<ul class="madiaEdit">' +

+ 40 - 6
cmp-portal/js/resourceList.js

@ -25,7 +25,7 @@ $(document).ready(function() {
25 25
				if(data.success) {
26 26
					if(data.data.length==0) {
27 27
						$.MsgBox.Confirm("提示", "请至少认证1位员工?", function(){
28
							location.href="cmp-UnstaffList.html";
28
							location.href="cmp-staffList.html";
29 29
						});
30 30
						$("#mb_btn_no").val("稍后再说");
31 31
						$("#mb_btn_ok").val("去认证");
@ -120,9 +120,9 @@ $(document).ready(function() {
120 120
				'<div class="madiaInfo">' +
121 121
				'<p class="h1Font ellipsisSty">' + $data[i].resourceName + '</p>' +
122 122
				'<ul class="h2Font clearfix">' +
123
				'<li><span>' + oTime + '</span></li>' + pageview + '<li><span id="oop" style="color:#e03b43;"></span></li>' +
123
				'<li><span>' + oTime + '</span></li>' + pageview + '<li><span class="ellipsisSty oop" style="display:inline-block;max-width:200px;"></span></li>' +
124 124
				'</ul>' +
125
				'<p><span>' + draftLable + '</span><span class="crel" style="margin-left:10px"></span></p>' +
125
				'<p><span>' + draftLable + '</span><span class="crel ellipsisSty" style="display:inline-block;max-width:200px;"></span></p>' +
126 126
				'</div>' +
127 127
				'</a>' +
128 128
				'<ul class="madiaEdit">' +
@ -132,13 +132,41 @@ $(document).ready(function() {
132 132
				'</li>'
133 133
			var $os = $(oStr);
134 134
			$("#resourceList").append($os);
135
			if($data[i].status == 0) {
135
			if($data[i].status == 2) {
136 136
				resourecRel.call($os.find(".crel"), $data[i].resourceId);
137 137
			} else {
138
				resourecRel.call($os.find("#oop"), $data[i].resourceId);
138
				resourecRel.call($os.find(".oop"), $data[i].resourceId);
139 139
			}
140 140
		}
141 141
	}
142
	function professList(par) {
143
		$.ajax({
144
			"url": "/ajax/professor/qm",
145
			"type": "GET",
146
			"context": this,
147
			"traditional":true,
148
			"success": function(data) {
149
				if(data.success) {
150
					var $data = data.data;
151
					var arr = []
152
					if($data.length) {
153
						for(var i=0;i<$data.length;i++) {
154
							arr.push($data[i].name)
155
						}
156
						this.text("联系人 " + arr.join("、"))
157
					}
158
					
159
				}
160
			},
161
			"data": {
162
				"id": par
163
			},
164
			dataType: "json",
165
			'error': function() {
166
				$.MsgBox.Alert('提示', '服务器连接超时!');
167
			}
168
		});
169
	}
142 170
	/*判断资源是否设置了资源联系人*/
143 171
	function resourecRel(rsd) {
144 172
		$.ajax({
@ -149,7 +177,13 @@ $(document).ready(function() {
149 177
				if(data.success) {
150 178
					var $data = data.data;
151 179
					if($data.length == 0) {
152
						this.text("未设置联系人");
180
						this.text("未设置联系人").css("color","#e03b43");
181
					}else {
182
						var arr = [];
183
						for(var i =0;i<$data.length;i++) {
184
							arr.push($data[i].professor.id)
185
						}
186
						professList.call(this,arr);
153 187
					}
154 188
				}
155 189
			},

+ 4 - 0
js/fillinfoNew.js

@ -14,6 +14,10 @@ $(function() {
14 14
						var imgvar = '<img src="/images/head/' + userid + '_l.jpg" style="width:100%"/>';
15 15
						$("#userimg").append(imgvar);
16 16
					}
17
					if($data.data.orgName){
18
						$("#orgName").text($data.data.orgName);
19
						$("#orgName").removeAttr("contenteditable");
20
					}
17 21
				}
18 22
			},
19 23
			error: function() {