|
@@ -13,7 +13,7 @@ $(function(){
|
|
|
$.ajax({
|
|
|
type:"get",
|
|
|
dataType:'json',
|
|
|
- url: globalConfig.context + "/portal/Service/ProjectDetail",
|
|
|
+ url: globalConfig.context + "/app/service/ProjectDetail",
|
|
|
data:{
|
|
|
id:ids[0]
|
|
|
},
|
|
@@ -23,22 +23,22 @@ $(function(){
|
|
|
var dataList=[]; //所需资料
|
|
|
var specificationList=[]; //服务规格
|
|
|
var promiseLsit=[];
|
|
|
- if(data.data&&data.data.length){
|
|
|
+ if(data.data){
|
|
|
var urls;
|
|
|
- if(theData[0].maxLogo&&theData[0].maxLogo!=null){
|
|
|
- urls=globalConfig.avatarHost+'/upload'+theData[0].maxLogo;
|
|
|
+ if(theData.maxLogo&&theData.maxLogo!=null){
|
|
|
+ urls=globalConfig.avatarHost+'/upload'+theData.maxLogo;
|
|
|
$('#imgs').attr('src',urls)
|
|
|
};
|
|
|
- $('#dataName').html(theData[0].name)
|
|
|
+ $('#dataName').html(theData.name)
|
|
|
var desArr=[];
|
|
|
var dataArr=[];
|
|
|
var proArr=[];
|
|
|
//项目描述
|
|
|
- if(theData[0].introduce!=null){
|
|
|
- if(theData[0].introduce.match(/\n/g)){
|
|
|
- desArr=theData[0].introduce.split(/\n/g)
|
|
|
+ if(theData.introduce!=null){
|
|
|
+ if(theData.introduce.match(/\n/g)){
|
|
|
+ desArr=theData.introduce.split(/\n/g)
|
|
|
}else{
|
|
|
- desArr.push(theData[0].introduce)
|
|
|
+ desArr.push(theData.introduce)
|
|
|
};
|
|
|
for (var i=0;i<desArr.length;i++){
|
|
|
describeList.push([
|
|
@@ -48,11 +48,11 @@ $(function(){
|
|
|
}
|
|
|
|
|
|
//项目价值
|
|
|
- if(theData[0].valueEffect!=null){
|
|
|
- if(theData[0].valueEffect.match(/\n/g)){
|
|
|
- dataArr=theData[0].valueEffect.split(/\n/g)
|
|
|
+ if(theData.valueEffect!=null){
|
|
|
+ if(theData.valueEffect.match(/\n/g)){
|
|
|
+ dataArr=theData.valueEffect.split(/\n/g)
|
|
|
}else{
|
|
|
- dataArr.push(theData[0].valueEffect)
|
|
|
+ dataArr.push(theData.valueEffect)
|
|
|
};
|
|
|
for (var i=0;i<dataArr.length;i++){
|
|
|
dataList.push([
|
|
@@ -62,21 +62,21 @@ $(function(){
|
|
|
}
|
|
|
|
|
|
//规格
|
|
|
- if(theData[1].length){
|
|
|
- for (var i=0;i<theData[1].length;i++){
|
|
|
+ if(theData.projectSize.length){
|
|
|
+ for (var i=0;i<theData.projectSize.length;i++){
|
|
|
specificationList.push([
|
|
|
- "<div>"+theData[1][i]+"</div>",
|
|
|
+ "<div>"+theData.projectSize[i]+"</div>",
|
|
|
].join(','));
|
|
|
};
|
|
|
}else{
|
|
|
specificationList=[];
|
|
|
}
|
|
|
//所需资料
|
|
|
- if(theData[0].clientSize!=null){
|
|
|
- if(theData[0].clientSize.match(/\n/g)){
|
|
|
- proArr=theData[0].clientSize.split(/\n/g)
|
|
|
+ if(theData.clientSize!=null){
|
|
|
+ if(theData.clientSize.match(/\n/g)){
|
|
|
+ proArr=theData.clientSize.split(/\n/g)
|
|
|
}else{
|
|
|
- proArr.push(theData[0].clientSize)
|
|
|
+ proArr.push(theData.clientSize)
|
|
|
};
|
|
|
for (var i=0;i<proArr.length;i++){
|
|
|
promiseLsit.push([
|