|
@@ -10,8 +10,14 @@ $(function(){
|
|
|
var colorArr=['#e22e2e','#2542ef','#10d4f1','#f9750b','#0bf964'];
|
|
|
//获取id
|
|
|
var https=window.location.href;
|
|
|
- var idtt = https.indexOf('id=');
|
|
|
- var idk=https.substr(idtt+3,https.length);
|
|
|
+ window.onload=function(){
|
|
|
+ if(https.indexOf('tt#')==-1){
|
|
|
+ window.location.href=https+"tt#"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ var newHttp=window.location.href;
|
|
|
+ var idtt = newHttp.indexOf('id=');
|
|
|
+ var idk=newHttp.substr(idtt+3);
|
|
|
//数据获取
|
|
|
function DataList(){
|
|
|
if(idtt){
|
|
@@ -20,7 +26,7 @@ $(function(){
|
|
|
dataType:'json',
|
|
|
url: globalConfig.context + "/portal/Service/ProjectDetail",
|
|
|
data:{
|
|
|
- id:idk
|
|
|
+ id:idk.substr(0,idk.length-3)
|
|
|
},
|
|
|
success:function(data){
|
|
|
var theData=data.data;
|