瀏覽代碼

工作台本阶段的样式需要统一,目前每个栏目的标题和可视区域不一致
文章发布图片显示提示文字

luyanan 7 年之前
父節點
當前提交
7db29cdea4

+ 4 - 2
articalList.html

@ -32,7 +32,9 @@
32 32
	        	</ul>
33 33
	        </div>
34 34
		    <div class="workcon workconG">
35
				<div class="workcontit">科研文章</div>
35
		    	<div class="workcontit">
36
					<a class="worksamlltit worksamlltitnow">我的文章</a>
37
				</div>
36 38
				<div class="itemListBolck">
37 39
					<div class="topOperaBlock clearfix">
38 40
						<div class="searchAbout col-w-8">
@ -53,7 +55,7 @@
53 55
						        <div class="nodata">
54 56
						            <div class="picbox picNull"></div>
55 57
						            <div class="txtbox">
56
						            	<p class="noContip">暂时没有符合该搜索条件的内容</p>
58
						            	<p class="noContip"></p>
57 59
						            </div>
58 60
						        </div>
59 61
						    </div>

+ 2 - 2
cmp-portal/articalIssue.html

@ -54,8 +54,8 @@
54 54
       							<span class="" id="filePicker">上传图片</span>
55 55
	        					<!--未上传图片时-->
56 56
	        					<div class="upFront">
57
		        					<p>文章封面图<em class="requiredcon">*</em></p>
58
		        					<p>JPG/PNG格式,2M以内</p>
57
		        					<p>文章封面图<em class="requiredcon">*</em></p>
58
		        					<p>JPG/PNG格式,2M以内</p>
59 59
		        					<span class="upbtn">上传图片</span>
60 60
	        					</div>
61 61
	        					<!--已上传图片时-->

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

@ -52,7 +52,7 @@
52 52
						        <div class="nodata">
53 53
						            <div class="picbox picNull"></div>
54 54
						            <div class="txtbox">
55
						            	<p class="noContip">暂时没有符合该搜索条件的内容</p>
55
						            	<p class="noContip"></p>
56 56
						            </div>
57 57
						        </div>
58 58
						    </div>

+ 1 - 1
cmp-portal/css/common.css

@ -612,7 +612,7 @@ button.btnModelBig:hover{
612 612
.nodatatip{width:40%;margin:100px auto;overflow:hidden;height:100px; font-size:16px; text-align:center;color:#aaa;}
613 613
.nodatabox{/*width:100%;*/height: 100%;padding:40px; margin:20px auto;text-align: center;}
614 614
.nodatabox .nodata{overflow:hidden; width:50%; margin:auto;}
615
.nodatabox .picbox{margin:30px auto 8px;display:inline-block;width:160px;height:160px;background-position: center;background-repeat: no-repeat;background-size:cover;}
615
.nodatabox .picbox{margin:30px auto 8px;display:inline-block;width:140px;height:140px;background-position: center;background-repeat: no-repeat;background-size:cover;}
616 616
.nodatabox .picbox.picNull{background-image:url(../../images/points_icon_ku_nor.png);}
617 617
.nodatabox .txtbox { margin:6px auto;}
618 618
.nodatabox .noContip{font-size:18px;color: #999;line-height:40px;}

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

@ -23,7 +23,7 @@ $(function() {
23 23
	//校验关键字
24 24
	$("#KeyWord").on({
25 25
		focus: function() {
26
			$("#keyPrompt").text("最多可添加5个关键词每个关键词最多10个字");
26
			$("#keyPrompt").text("最多可添加5个关键词每个关键词10字以内");
27 27
		},
28 28
		blur: function() {
29 29
			$("#keyPrompt").text("");

+ 5 - 0
cmp-portal/js/cmp-articalList.js

@ -147,6 +147,11 @@ function articalList(pageSize, pageNo, isbind, num) {
147 147
			} else {
148 148
				$("#articalList").html("");
149 149
				$("#noartical").removeClass("displayNone");
150
				if(num==1){
151
					$(".noContip").text("您还未发布任何文章");
152
				}else{
153
					$(".noContip").text("没有符合该搜索条件的内容");
154
				}
150 155
				$(".tcdPageCode").css("display", "none");
151 156
			}
152 157
			$(".loading").remove();

+ 15 - 4
cmp-portal/js/resourceList.js

@ -19,11 +19,22 @@ $(document).ready(function(){
19 19
				console.log(data)
20 20
				if(data.success) {
21 21
					$("#resourceList").html("");
22
					if(data.data.data.length==0) {
23
						$("#noresource").removeClass("displayNone");
24
						return;
22
					if(num==1) {
23
						if(data.data.data.length==0) {
24
							$("#noresource").removeClass("displayNone");
25
							$(".noContip").text("您还未发布任何资源");
26
							return;
27
						}else{
28
							$("#noresource").addClass("displayNone");
29
						}
25 30
					}else{
26
						$("#noresource").addClass("displayNone");
31
						if(data.data.data.length==0) {
32
							$("#noresource").removeClass("displayNone");
33
							$(".noContip").text("没有符合该搜索条件的内容");
34
							return;
35
						}else{
36
							$("#noresource").addClass("displayNone");
37
						}
27 38
					}
28 39
					resourceHtml(data.data.data);
29 40
					if(isbind == true) {

+ 1 - 1
consult.html

@ -29,7 +29,7 @@
29 29
		</div>
30 30
		<div class="workcon">
31 31
			<div class="workconitem consublock">
32
				<div class="workcontit">咨询
32
				<div class="workcontit">
33 33
					<a class="worksamlltit worksamlltit3 worksamlltitnow nohide" href="consult.html" style="display: none;">收到咨询</a>
34 34
					<a class="worksamlltit worksamlltit3" href="myConsult.html">我的咨询</a>
35 35
				</div>

+ 1 - 1
css/common.css

@ -154,7 +154,7 @@ input{ outline:none;}
154 154
.nodatatip{width:40%;margin:100px auto;overflow:hidden;height:100px; font-size:16px; text-align:center;color:#aaa;}
155 155
.nodatabox{/*width:100%;*/height: 100%;padding:40px; margin:20px auto;text-align: center;}
156 156
.nodatabox .nodata{overflow:hidden; width:50%; margin:auto;}
157
.nodatabox .picbox{margin:30px auto 8px;display:inline-block;width:160px;height:160px;background-position: center;background-repeat: no-repeat;background-size:cover;}
157
.nodatabox .picbox{margin:30px auto 8px;display:inline-block;width:140px;height:140px;background-position: center;background-repeat: no-repeat;background-size:cover;}
158 158
.nodatabox .picbox.picNull{background-image:url(../images/points_icon_ku_nor.png);}
159 159
.nodatabox .txtbox { margin:6px auto;}
160 160
.nodatabox .noContip{font-size:18px;color: #999;line-height:40px;}

+ 5 - 1
css/genindex.css

@ -4,7 +4,7 @@ html,body{background: #f4f6f8;}
4 4
.userRadius{ border-radius: 50%;border:1px solid #E5E5E5;}
5 5
.otherRadius{ border-radius:0;border:1px solid #E5E5E5;}
6 6
.cmpRadius{border-radius:4px;border:1px solid #E5E5E5;}
7
.con-center{padding:20px 10px 40px; margin:10px auto;}
7
.con-center{padding:20px 0 40px; margin:10px auto;}
8 8
9 9
/*/////////////////////表单样式/////////////////////// */
10 10
/*div模拟textarea多行文本框*/
@ -526,3 +526,7 @@ div.zoomMask{position:absolute;background:url("../images/g-resource-mask.png") r
526 526
.workcontit a:link, .workcontit a:active, .workcontit a:visited {color: #313131;}
527 527
.conBlock .workconG .worksamlltit{font-size: 16px;line-height: 30px; margin-right:30px;padding: 10px 4px 8px;cursor: pointer;}
528 528
.conBlock .workconG .worksamlltit.worksamlltitnow{color:#ff9900;border-bottom: 2px solid #ff9900;}
529
/*--------------新版产品下载--------------*/
530
.downloadBtn .download-btn {position: relative;margin: 20px 10px;border: 1px solid #999;border-radius: 6px;padding: 10px 30px;color: #666;line-height: 46px;font-size: 16px;display: block;width: 240px;height: 70px;}
531
.app-android-icon,.app-ios-icon {float: left;display: block;width: 39px;height: 47px;margin-right: 10px;background: url(../images/app-icons.png) no-repeat;}
532
.downloadBtn .download-btn .app-android-icon { background-position: 0 -60px;}

+ 4 - 3
css/workspace.css

@ -39,9 +39,10 @@ a.subcolor{ background-color:#ff9900; color:#fff;}
39 39
/*我的资源、需求*/
40 40
.workmysrc{ margin-bottom:30px;}
41 41
.workmysrctit{font-size:16px;line-height:30px;position:relative;}
42
.worksamlltit{ font-size:13px;line-height:30px; margin:0 10px; padding:10px;cursor:pointer;}
43
.worksamlltitnow{ border-bottom:1px solid #ff9900; color:#ff9900;text-decoration: none;}
44
.workcontit a:link,.workcontit a:active,.workcontit a:visited  {color:#313131;}
42
43
.workcontit .worksamlltit{font-size: 16px;color:#313131;line-height: 30px; margin-right:30px;padding: 10px 4px 8px;cursor: pointer;}
44
.workcontit a.worksamlltitnow{ color:#ff9900;border-bottom: 2px solid #ff9900;text-decoration: none;}
45
45 46
46 47
.workmysrc{display:none;}
47 48
.workmysrc:first-child{display:block;}

+ 1 - 1
js/articalIssue.js

@ -24,7 +24,7 @@ $(function() {
24 24
	//校验关键字
25 25
	$("#KeyWord").on({
26 26
		focus: function() {
27
			$("#keyPrompt").text("最多可添加5个关键词每个关键词最多10个字");
27
			$("#keyPrompt").text("最多可添加5个关键词每个关键词10字以内");
28 28
		},
29 29
		blur: function() {
30 30
			$("#keyPrompt").text("");

+ 5 - 0
js/articalList.js

@ -148,6 +148,11 @@ function articalList(pageSize, pageNo, isbind, num) {
148 148
			} else {
149 149
				$("#articalList").html("");
150 150
				$("#noartical").removeClass("displayNone");
151
				if(num==1){
152
					$(".noContip").text("您还未发布任何文章");
153
				}else{
154
					$(".noContip").text("没有符合该搜索条件的内容");
155
				}
151 156
				$(".tcdPageCode").css("display", "none");
152 157
			}
153 158
			$(".loading").remove();

+ 24 - 13
js/resourceList.js

@ -4,7 +4,7 @@ $(document).ready(function(){
4 4
	var userid = $.cookie("userid");
5 5
	var resourceId;
6 6
	/*资源列表查询*/
7
	function getRecourceMe(n,isbind) {
7
	function getRecourceMe(n,isbind,num) {
8 8
		var resourceNameVa=$("#resouceName").val();
9 9
		var $info={};
10 10
		$info.professorId=userid;
@ -20,22 +20,33 @@ $(document).ready(function(){
20 20
				console.log(data)
21 21
				if(data.success) {
22 22
					$("#resourceList").html("");
23
					if(data.data.data.length==0) {
24
						$("#noresource").removeClass("displayNone");
25
						return;
23
					if(num==1) {
24
						if(data.data.data.length==0) {
25
							$("#noresource").removeClass("displayNone");
26
							$(".noContip").text("您还未发布任何资源");
27
							return;
28
						}else{
29
							$("#noresource").addClass("displayNone");
30
						}
26 31
					}else{
27
						$("#noresource").addClass("displayNone");
32
						if(data.data.data.length==0) {
33
							$("#noresource").removeClass("displayNone");
34
							$(".noContip").text("没有符合该搜索条件的内容");
35
							return;
36
						}else{
37
							$("#noresource").addClass("displayNone");
38
						}
28 39
					}
29 40
					resourceHtml(data.data.data);
30 41
					if(isbind == true) {
31
								$(".tcdPageCode").createPage({
32
									pageCount: Math.ceil(data.data.total / data.data.pageSize),
33
									current: data.data.pageNo,
34
									backFn: function(p) {
35
										getRecourceMe(p,false);
36
									}
37
								});
42
						$(".tcdPageCode").createPage({
43
							pageCount: Math.ceil(data.data.total / data.data.pageSize),
44
							current: data.data.pageNo,
45
							backFn: function(p) {
46
								getRecourceMe(p,false);
38 47
							}
48
						});
49
					}
39 50
				}
40 51
			},
41 52
			"data": $info,
@ -45,7 +56,7 @@ $(document).ready(function(){
45 56
			}
46 57
		});
47 58
	}
48
	 getRecourceMe(1,true);
59
	 getRecourceMe(1,true,1);
49 60
	 function resourceHtml($data) {
50 61
	 	for(var i=0;i<$data.length;i++) {
51 62
	 		var imgSrc="../images/default-resource.jpg";

+ 1 - 1
myConsult.html

@ -30,7 +30,7 @@
30 30
		</div>
31 31
		<div class="workcon">
32 32
			<div class="workconitem consublock">
33
				<div class="workcontit">咨询
33
				<div class="workcontit">
34 34
				<a class="worksamlltit worksamlltit3 nohide" href="consult.html" style="display: none;">收到咨询</a>
35 35
					<a class="worksamlltit worksamlltit3 worksamlltitnow" href="myConsult.html">我的咨询</a>
36 36
				</div>

+ 1 - 1
myDemand.html

@ -108,7 +108,7 @@
108 108
        </div>
109 109
        <div class="workcon">
110 110
			<div class="workconitem consublock">
111
    <div class="workcontit">需求<a  href="needList.html" class="worksamlltit worksamlltit3" id="searchDemand">搜索需求</a><a href="myDemand.html"class="worksamlltit worksamlltit3 worksamlltitnow">我的需求</a></div>
111
    <div class="workcontit"><a  href="needList.html" class="worksamlltit worksamlltit3" id="searchDemand">搜索需求</a><a href="myDemand.html"class="worksamlltit worksamlltit3 worksamlltitnow">我的需求</a></div>
112 112
    <div class="worksubcon"> 
113 113
        <div class="workmysrc workmysrc3" id="getReply"style="display:block;"> <!--displayNone-->
114 114
             <div class="workmenubox clearfix">

+ 1 - 1
needList.html

@ -31,7 +31,7 @@
31 31
        </div>
32 32
        <div class="workcon">
33 33
			<div class="workconitem consublock">
34
    <div class="workcontit">需求<a  href="needList.html" class="worksamlltit worksamlltit3 worksamlltitnow">搜索需求</a><a href="myDemand.html" class="worksamlltit worksamlltit3">我的需求</a></div>
34
    <div class="workcontit"><a  href="needList.html" class="worksamlltit worksamlltit3 worksamlltitnow">搜索需求</a><a href="myDemand.html" class="worksamlltit worksamlltit3">我的需求</a></div>
35 35
    <div class="worksubcon"> 
36 36
    	<div class="workmysrc workmysrc3 displayNone" id="getConsult">	
37 37
             <div class="workmenubox clearfix">

+ 1 - 1
resourceList.html

@ -57,7 +57,7 @@
57 57
						        <div class="nodata">
58 58
						            <div class="picbox picNull"></div>
59 59
						            <div class="txtbox">
60
						            	<p class="noContip">暂时没有符合该搜索条件的内容</p>
60
						            	<p class="noContip"></p>
61 61
						            </div>
62 62
						        </div>
63 63
						    </div>