|
@@ -7,7 +7,6 @@ $(function(){
|
|
|
var indexs = https.indexOf('id=');
|
|
|
var ids=parseInt(indexs)>0?https.substr(indexs+3,https.length):'';
|
|
|
//数据获取
|
|
|
-
|
|
|
function DataList(){
|
|
|
if(ids){
|
|
|
$.ajax({
|
|
@@ -24,12 +23,39 @@ $(function(){
|
|
|
var specificationList=[]; //服务规格
|
|
|
var promiseLsit=[];
|
|
|
if(data.data&&data.data.length){
|
|
|
- describeList.push([
|
|
|
- "<div><p>"+theData[0].introduce!='null'?theData[0].introduce:''+"</p></div>",
|
|
|
+ var urls;
|
|
|
+ if(theData[0].maxLogo!=null){
|
|
|
+ urls=globalConfig.avatarHost+'/upload'+theData[0].maxLogo;
|
|
|
+ }else{
|
|
|
+ urls=globalConfig.portalHost+'/img/appCognizance01.jpg';
|
|
|
+ }
|
|
|
+ $('#imgs').attr('src',urls)
|
|
|
+ var desArr=[];
|
|
|
+ var dataArr=[];
|
|
|
+ var proArr=[];
|
|
|
+ //项目描述
|
|
|
+ if(theData[0].introduce.match(/\n/g)){
|
|
|
+ desArr=theData[0].introduce.split(/\n/g)
|
|
|
+ }else{
|
|
|
+ desArr.push(theData[0].introduce)
|
|
|
+ };
|
|
|
+ for (var i=0;i<desArr.length;i++){
|
|
|
+ describeList.push([
|
|
|
+ "<p>"+desArr[i]+"</p>",
|
|
|
].join(','));
|
|
|
- dataList.push([
|
|
|
- "<div><p>"+theData[0].valueEffect!='null'?theData[0].valueEffect:''+"</p></div>",
|
|
|
+ };
|
|
|
+ //项目价值
|
|
|
+ if(theData[0].valueEffect.match(/\n/g)){
|
|
|
+ dataArr=theData[0].valueEffect.split(/\n/g)
|
|
|
+ }else{
|
|
|
+ dataArr.push(theData[0].valueEffect)
|
|
|
+ };
|
|
|
+ for (var i=0;i<dataArr.length;i++){
|
|
|
+ dataList.push([
|
|
|
+ "<p>"+dataArr[i]+"</p>",
|
|
|
].join(','));
|
|
|
+ };
|
|
|
+ //规格
|
|
|
if(theData[1].length){
|
|
|
for (var i=0;i<theData[1].length;i++){
|
|
|
specificationList.push([
|
|
@@ -39,9 +65,17 @@ $(function(){
|
|
|
}else{
|
|
|
specificationList=[];
|
|
|
}
|
|
|
- promiseLsit.push([
|
|
|
- "<div><p>"+theData[0].clientSize!='null'?theData[0].clientSize:''+"</p></div>",
|
|
|
+ //所需资料
|
|
|
+ if(theData[0].clientSize.match(/\n/g)){
|
|
|
+ proArr=theData[0].clientSize.split(/\n/g)
|
|
|
+ }else{
|
|
|
+ proArr.push(theData[0].clientSize)
|
|
|
+ };
|
|
|
+ for (var i=0;i<proArr.length;i++){
|
|
|
+ promiseLsit.push([
|
|
|
+ "<p>"+proArr[i]+"</p>",
|
|
|
].join(','));
|
|
|
+ };
|
|
|
$('#describe').html(describeList);
|
|
|
$('#data').html(dataList);
|
|
|
$('.specifications').html(specificationList);
|