liting2017 7 år sedan
förälder
incheckning
722b51acce

BIN
img/appCognizance01.jpg


+ 7 - 0
src/css/news/appCognizance.css

@@ -5,6 +5,13 @@
 	outline:  none;
 }
 h3{margin: 0;padding: 0;}
+#dataName{
+	font-weight: normal;
+	font-size: 16px;
+	line-height: 40px;
+	padding-left: 15px;
+	color: #3C3C3C;
+}
 .container {
 	padding: 0;
 	max-width: 768px;

+ 5 - 10
src/js/news/appCognizance.js

@@ -10,14 +10,8 @@ $(function(){
 	var colorArr=['#e22e2e','#2542ef','#10d4f1','#f9750b','#0bf964'];
 	//获取id
 	var https=window.location.href;
-	var indexs = https.indexOf('id=');
-	window.onload=function(){
-		location.href = location.href + "tt=" + new Date().valueOf();
-	}
-	var tt = https.indexOf('tt=')!=-1?https.indexOf('tt='):https.length;
-	var idk=parseInt(indexs)>0?https.substr(indexs+3,tt):'';
-	let idtt=idk.split('tt=')[0] ;
-	console.log(idtt)
+	var idtt = https.indexOf('id=');
+	var idk=https.substr(idtt+3,https.length);
 	//数据获取
 	function DataList(){
 		if(idtt){
@@ -26,7 +20,7 @@ $(function(){
 				dataType:'json',
 				url: globalConfig.context + "/portal/Service/ProjectDetail",
 				data:{
-					id:idtt
+					id:idk
 				},
 				success:function(data){
 					var theData=data.data;
@@ -39,7 +33,8 @@ $(function(){
 						if(theData[0].maxLogo&&theData[0].maxLogo!=null){
 							urls=globalConfig.avatarHost+'/upload'+theData[0].maxLogo;
 							$('#imgs').attr('src',urls)
-						}
+						};
+						$('#dataName').html(theData[0].name)
 						var desArr=[];
 						var dataArr=[];
 						var proArr=[];

+ 3 - 0
template/news/appCognizance.html

@@ -17,6 +17,9 @@
 			<img src="../../img/appCognizance01.jpg" alt="高企认定" id="imgs"/>
 			<div class="contant">
 				<div class="service">
+					<h3><img src="../../img/appCognizance02.jpg" alt="" /><span id="dataName"></span></h3>
+				</div>
+				<div class="service">
 					<h3><img src="../../img/appCognizance02.jpg" alt="" /><span>需求描述</span></h3>
 					<hr>
 					<div class="promiseText" id="describe">