Commit 92670cbfd4d00fcbd1f659c68ff0d3e6ccdb8e60

Authored by vking
1 parent f5c2071d

fix ui

... ... @@ -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,
})
}
... ...
... ... @@ -131,7 +131,7 @@
<view class="line"></view>
<view class="name">推荐菜品</view>
</view>
<scroll-view
<scroll-view wx:if="{{hasDishesImage}}"
scroll-x
class="cais"
scroll-into-view="{{toView}}"
... ...
... ... @@ -237,9 +237,6 @@
height: 460rpx;
margin-left: -5%;
}
.cais:not(:empty){
height: 0;
}
.cais-views{
display: inline-block;
margin-right: 20rpx;
... ...
... ... @@ -350,7 +350,7 @@
"id": 38,
"name": "pages/reserve/detail 在线订座 ",
"pathName": "pages/reserve/detail",
"query": "id=1",
"query": "id=7",
"scene": null
},
{
... ...