Browse Source

企业版删除文章接口

lyn7568 5 years ago
parent
commit
a3ec09e6d0
3 changed files with 47 additions and 46 deletions
  1. 17 17
      cmp-portal/cmpInformation.html
  2. 12 12
      cmp-portal/js/cmpInformation.js
  3. 18 17
      cmp-portal/js/public/workMenu.js

+ 17 - 17
cmp-portal/cmpInformation.html

@ -93,7 +93,7 @@
93 93
						<li class="productions" rel="item10user" id="tab10user">产品 <span class="counts" id="productCount"></span></li>
94 94
						<li class="establishments" rel="item9user">服务 <span class="counts" id="serCount"></span></li>
95 95
						<li class="establishments" rel="item2user">资源 <span class="counts" id="resCount"></span></li>
96
						<li rel="item3user">文章 <span class="counts" id="artCount"></span></li>
96
						<!-- <li rel="item3user">文章 <span class="counts" id="artCount"></span></li> -->
97 97
						<li rel="item6user">资料</li>
98 98
						<li rel="item8user" tmp="item8more" class="rightbtn">更多<em class="foldtr"></em></li>
99 99
					</ul>
@ -308,25 +308,25 @@
308 308
<script type="text/javascript" src="../js/public/baseUtil.js"></script> 
309 309
<script type="text/javascript" src="js/public/cmpCom.js"></script>   
310 310
<script type="text/javascript" src="js/cmpInformation.js"></script>
311
<script>
312
	//微信分享
313
	var qrcode = new QRCode(document.getElementById("qrcode"), {
314
		width: 100,
315
		height: 100
316
	});
317

318
	function makeCode() {
319
		var hurl = window.location.host;
320
		var orgId = GetQueryString("orgId");
321
		var elurl = "http://" + hurl + "/e/c.html?id=" + orgId;
322
		qrcode.makeCode(elurl);
323
	}
324
	makeCode();
325

311
<script>
312
	//微信分享
313
	var qrcode = new QRCode(document.getElementById("qrcode"), {
314
		width: 100,
315
		height: 100
316
	});
317
318
	function makeCode() {
319
		var hurl = window.location.host;
320
		var orgId = GetQueryString("orgId");
321
		var elurl = "http://" + hurl + "/e/c.html?id=" + orgId;
322
		qrcode.makeCode(elurl);
323
	}
324
	makeCode();
325
326 326
	//分享关注按钮
327 327
	$('.shareWeixin').hover(function(){$('.shareCode').stop(true,false).fadeToggle();});
328 328
329
	
329
	
330 330
</script>
331 331
</body>
332 332

+ 12 - 12
cmp-portal/js/cmpInformation.js

@ -65,16 +65,16 @@ $(function() {
65 65
					resourceListVal(true);
66 66
					serviceListVal(true);
67 67
					$(".establishments").show()
68
					$(".goworkspaceSpan").text('发布服务、资源、文章');
68
					$(".goworkspaceSpan").text('发布服务、资源');
69 69
				}
70 70
				if(!$info.colMgr && !$info.resMgr){
71 71
					productListVal(true);
72 72
					$(".productions").show()
73
					$(".goworkspaceSpan").text('发布需求产品和文章');
74
				}
75
				if($info.colMgr){
76
					$(".goworkspaceSpan").text('发布文章');
73
					$(".goworkspaceSpan").text('发布需求产品');
77 74
				}
75
				// if($info.colMgr){
76
				// 	$(".goworkspaceSpan").text('发布文章');
77
				// }
78 78
				$.cookie("colMgr",$info.colMgr);
79 79
				$.cookie("resMgr",$info.resMgr);
80 80
				//主页浏览量
@ -684,12 +684,12 @@ $(function() {
684 684
				$("#item2user").show();
685 685
			})
686 686
			//点击查看全部文章
687
			$(".coninfobox").on("click", "#seeMoreA", function() {
688
				document.body.scrollTop = document.documentElement.scrollTop = 0;
689
				$("#tab3user").addClass("liNow").siblings().removeClass("liNow");
690
				$("#item1user").hide();
691
				$("#item3user").show();
692
			})
687
			// $(".coninfobox").on("click", "#seeMoreA", function() {
688
			// 	document.body.scrollTop = document.documentElement.scrollTop = 0;
689
			// 	$("#tab3user").addClass("liNow").siblings().removeClass("liNow");
690
			// 	$("#item1user").hide();
691
			// 	$("#item3user").show();
692
			// })
693 693
			
694 694
			$("#attendmyGo").on("click",function(){
695 695
				$(".mainNavUl li.rightbtn").addClass("liNow").siblings().removeClass("liNow");
@ -703,7 +703,7 @@ $(function() {
703 703
	
704 704
	queryPubCount();
705 705
	getCmpInfo(); //获取详细信息
706
	articalListVal(true);
706
	// articalListVal(true);
707 707
	bindClickFun();
708 708
	
709 709
	attentMyself(true);

+ 18 - 17
cmp-portal/js/public/workMenu.js

@ -1,21 +1,22 @@
1 1
var colMgr = stringToBoolean($.cookie("colMgr"));
2 2
var resMgr = stringToBoolean($.cookie("resMgr"));
3 3
var Html = '';
4
	Html += '<ul>'+
5
			'<li><a>工作台</a></li>'+
6
	        '<li class="demandIcon"><a href="cmp-needList.html">需求</a></li>'
7
        	if(!colMgr && !resMgr){
8
        		Html += '<li class="productIcon"><a href="cmp-productList.html">产品</a></li>'
9
        	}
10
        	if(resMgr) {
11
        		Html +='<li class="serIcon"><a href="cmp-serviceList.html">服务</a></li>'+
12
        		       '<li class="resIcon"><a href="cmp-resourceList.html">资源</a></li>'
13
        	}
14
	Html += '<li class="artIcon"><a href="cmp-articalList.html">文章</a></li>'+
15
        	'<li class="staffIcon"><a href="cmp-staffList.html">员工</a></li>'+
16
	        '</ul>'+
17
	        '<ul>'+
18
	        	'<li><a href="cmpInformation.html">返回</a></li>'+
19
	        '</ul>';
20
	
4
Html += '<ul>' +
5
	'<li><a>工作台</a></li>' +
6
	'<li class="demandIcon"><a href="cmp-needList.html">需求</a></li>'
7
if (!colMgr && !resMgr) {
8
	Html += '<li class="productIcon"><a href="cmp-productList.html">产品</a></li>'
9
}
10
if (resMgr) {
11
	Html += '<li class="serIcon"><a href="cmp-serviceList.html">服务</a></li>' +
12
		'<li class="resIcon"><a href="cmp-resourceList.html">资源</a></li>'
13
}
14
Html +=
15
	// '<li class="artIcon"><a href="cmp-articalList.html">文章</a></li>'+
16
	'<li class="staffIcon"><a href="cmp-staffList.html">员工</a></li>' +
17
	'</ul>' +
18
	'<ul>' +
19
	'<li><a href="cmpInformation.html">返回</a></li>' +
20
	'</ul>';
21

21 22
document.write(Html);