liting2017 7 년 전
부모
커밋
a7ac0e9727
3개의 변경된 파일36개의 추가작업 그리고 37개의 파일을 삭제
  1. 4 1
      src/css/news/appCognizance.css
  2. 27 34
      src/js/news/appCognizance.js
  3. 5 2
      template/news/appCognizance.html

+ 4 - 1
src/css/news/appCognizance.css

@@ -63,6 +63,7 @@ h3{margin: 0;padding: 0;}
 }
 
 .service .promiseText div p {
+	text-indent: 1rem;
 	line-height: 20px;
 	font-size: 1.2rem;
 	color: #3C3C3C;
@@ -101,4 +102,6 @@ h3{margin: 0;padding: 0;}
 .servicebj{
 	background: #f8f8f8;
 }
-
+#promise{
+	padding-bottom: 30px;
+}

+ 27 - 34
src/js/news/appCognizance.js

@@ -1,27 +1,18 @@
 import '../../css/news/appCognizance.css';
 
 $(function(){
-	//规格添加颜色
 	var colorArr=['#e22e2e','#2542ef','#10d4f1','#f9750b','#0bf964'];
-	for(var i=0;i<$('.specifications div').length;i++){
-		if(i>colorArr.length){
-			i=0
-		};
-		$('.specifications div').eq(i).css({color:colorArr[i]})
-	}
 	//获取id
 	var https=window.location.href;
 	var indexs = https.indexOf('=');
 	var ids=https.substr(indexs+1,https.length);
 	//数据获取
 	function DataList(){
-		
 		$.ajax({
 			type:"get",
 			dataType:'json',
-			//url: globalConfig.context + "/portal/search/achievementList",
-			url:"/portal/search/achievementList",
-			async:true,
+			url: globalConfig.context + "/portal/Service/ProjectDetail",
+			//url: "http://192.168.1.100:8080/portal/Service/ProjectDetail",
 			data:{
 				id:ids
 			},
@@ -30,37 +21,39 @@ $(function(){
 				var describeList=[];         //需求描述
 				var dataList=[];             //所需资料
 				var specificationList=[];    //服务规格
-				var promiseLsit=[];          //服务承诺
-				var guaranteeList=[];        //服务保障
-				if(data.data&&data.data.list){
-					let theData=data.data.list
-					for(var i=0;i<data.data.list.length;i++){
-						describeList.push([
-							"<div><p>"+i+'. '+theData[i].keyword+"</p></div>",
-						  ].join(','));
-						dataList.push([
-							
-						  ].join(','));
-						specificationList.push([
-							
-						  ].join(','));
-						promiseLsit.push([
-							
-						  ].join(','));
-						guaranteeList.push([
-							
-						  ].join(','));
-					}
+				var promiseLsit=[];
+				if(data.data.length){
+					console.log(theData[0])
+					describeList.push([
+						"<div><p>"+theData[0].introduce+"</p></div>",
+					  ].join(','));
+					dataList.push([
+						"<div><p>"+theData[0].valueEffect+"</p></div>",
+					  ].join(','));
+					for (var i=0;i<theData[1].length;i++){
+					  	specificationList.push([
+							"<div>"+theData[1][i]+"</div>",
+					  	].join(','));
+					};										
+					promiseLsit.push([
+						"<div><p>"+theData[0].clientSize+"</p></div>",
+					  ].join(','));
 					$('#describe').html(describeList);
 					$('#data').html(dataList);
 					$('.specifications').html(specificationList);
 					$('#promise').html(promiseLsit);
-					$('#guarantee').html(guaranteeList);
+					//规格添加颜色
+					for(var i=0;i<$('.specifications div').length;i++){
+						if(i>colorArr.length){
+							i=0
+						};
+						$('.specifications div').eq(i).css({color:colorArr[i]})
+					}
 				}
 			}
 		});
 	};
-	//DataList();
+	DataList();	
 })
 
 

+ 5 - 2
template/news/appCognizance.html

@@ -5,8 +5,11 @@
 	    <meta name="Keywords" content=""/>
 	    <meta name="Description" content=""/>
 		<meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1,user-scalable=no">
-		<meta http-equiv="x-ua-compatible" content="ie=edge">
-        <title>高新认定</title>
+       	<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
+       	<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
+		<meta http-equiv="Pragma" content="no-cache" />
+		<meta http-equiv="Expires" content="0" />
+       <title>高新认定</title>
        
 	</head>
 	<body>