|
...
|
...
|
@@ -17,6 +17,7 @@ Page({ |
|
|
|
hasOnlineReserve:false,
|
|
|
|
activeTab:'detail',
|
|
|
|
hasFullHouse:false,//满房
|
|
|
|
hasDishesImage:false,//是否有菜品图
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
...
|
...
|
@@ -92,9 +93,11 @@ Page({ |
|
|
|
seller.room_image[i]=url.replace('//qn.colorcun','//nosqn.colorcun')
|
|
|
|
})
|
|
|
|
}
|
|
|
|
let hasDishesImage=false;
|
|
|
|
if(seller.dishes.length>0){
|
|
|
|
seller.dishes.some((dishes)=>{
|
|
|
|
if(dishes.image){
|
|
|
|
hasDishesImage=true
|
|
|
|
dishes.image=dishes.image.replace('//qn.colorcun','//nosqn.colorcun')
|
|
|
|
}
|
|
|
|
})
|
|
...
|
...
|
@@ -113,6 +116,7 @@ Page({ |
|
|
|
}
|
|
|
|
this.setData({
|
|
|
|
seller:seller,
|
|
|
|
hasDishesImage:hasDishesImage,
|
|
|
|
hasOnlineReserve:seller.is_online_reserve==1,
|
|
|
|
})
|
|
|
|
}
|
...
|
...
|
|