|
@@ -5,7 +5,7 @@ $(function(){
|
|
|
//获取id
|
|
|
var https=window.location.href;
|
|
|
var indexs = https.indexOf('id=');
|
|
|
- var ids=https.substr(indexs+3,https.length);
|
|
|
+ var ids=parseInt(indexs)>0?https.substr(indexs+3,https.length):'';
|
|
|
//数据获取
|
|
|
|
|
|
function DataList(){
|
|
@@ -23,7 +23,7 @@ $(function(){
|
|
|
var dataList=[]; //所需资料
|
|
|
var specificationList=[]; //服务规格
|
|
|
var promiseLsit=[];
|
|
|
- if(data.data.length){
|
|
|
+ if(data.data&&data.data.length){
|
|
|
describeList.push([
|
|
|
"<div><p>"+theData[0].introduce!='null'?theData[0].introduce:''+"</p></div>",
|
|
|
].join(','));
|