Commit 9e630ebe1b4203e39bcbd6ca241954d8c2006e16

Authored by pengye
1 parent 439eb8a8

邀请函图片设置为宽度100%,高度自适应

... ... @@ -110,7 +110,7 @@
<block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}">
<view class="chefText font36r">餐厅环境</view>
<block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
<image src="{{item}}" mode="aspectFill" />
<image src="{{item}}" mode="widthFix" />
</block>
<view class="lines"></view>
</block>
... ... @@ -127,7 +127,7 @@
</view>
</view>
<block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}">
<image src="{{chef.image}}" mode="aspectFill" />
<image src="{{chef.image}}" mode="widthFix" />
</block>
<view wx:if="{{chef.is_introduce || chef.is_images}}" class="{{(!chef.is_images || chef.is_images!='0')?'lines':'lines mtnone'}}"></view>
</view>
... ... @@ -139,7 +139,7 @@
<view class="chefText font36r">特色菜品</view>
</view>
<block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
<image src="{{item}}" mode="aspectFill" />
<image src="{{item}}" mode="widthFix" />
</block>
<view class="lines"></view>
</view>
... ...
... ... @@ -231,7 +231,6 @@
.imgMask image {
width: 100%;
height: calc(100vw * 0.82) !important;
margin-bottom: 20rpx;
display: block !important;
vertical-align: top;
... ...
... ... @@ -118,7 +118,7 @@
<block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}">
<view class="chefText font36r">餐厅环境</view>
<block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
<image src="{{item}}" mode="aspectFill" />
<image src="{{item}}" mode="widthFix" />
</block>
<view class="lines"></view>
</block>
... ... @@ -135,7 +135,7 @@
</view>
</view>
<block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}">
<image src="{{chef.image}}" mode="aspectFill" />
<image src="{{chef.image}}" mode="widthFix" />
</block>
<view wx:if="{{chef.is_introduce || chef.is_images}}" class="{{(!chef.is_images || chef.is_images!='0')?'lines':'lines mtnone'}}"></view>
</view>
... ... @@ -147,7 +147,7 @@
<view class="chefText font36r">特色菜品</view>
</view>
<block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
<image src="{{item}}" mode="aspectFill" />
<image src="{{item}}" mode="widthFix" />
</block>
<view class="lines"></view>
</view>
... ...
... ... @@ -272,7 +272,6 @@
.imgMask image {
width: 100%;
height: calc(100vw * 0.82) !important;
margin-bottom: 20rpx;
display: block !important;
vertical-align: top;
... ...
... ... @@ -95,7 +95,7 @@
<block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}">
<view class="text font36r rubric">餐厅环境</view>
<block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
<image src="{{item}}" mode="aspectFill" />
<image src="{{item}}" mode="widthFix" />
</block>
<view class="lines"></view>
</block>
... ... @@ -111,7 +111,7 @@
</view>
</view>
<block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}">
<image src="{{chef.image}}" mode="aspectFill" />
<image src="{{chef.image}}" mode="widthFix" />
</block>
<view wx:if="{{chef.is_introduce || chef.is_images}}" class="{{(!chef.is_images || chef.is_images!='0')?'lines':'lines mtnone'}}"></view>
</view>
... ... @@ -122,7 +122,7 @@
<view class="text font36r rubric texts">特色菜品</view>
</view>
<block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
<image src="{{item}}" mode="aspectFill" />
<image src="{{item}}" mode="widthFix" />
</block>
<view class="lines"></view>
</view>
... ...
... ... @@ -231,7 +231,6 @@
.imgMask image {
width: 100%;
height: calc(100vw * 0.82) !important;
margin-bottom: 20rpx;
display: block !important;
vertical-align: top;
... ...
... ... @@ -92,7 +92,7 @@
<block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}">
<view class="text font36r rubric">餐厅环境</view>
<block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
<image src="{{item}}" mode="aspectFill" />
<image src="{{item}}" mode="widthFix" />
</block>
<view class="lines"></view>
</block>
... ... @@ -108,7 +108,7 @@
</view>
</view>
<block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}">
<image src="{{chef.image}}" mode="aspectFill" />
<image src="{{chef.image}}" mode="widthFix" />
</block>
<view wx:if="{{chef.is_introduce || chef.is_images}}" class="{{(!chef.is_images || chef.is_images!='0')?'lines':'lines mtnone'}}"></view>
</view>
... ... @@ -119,7 +119,7 @@
<view class="text font36r rubric texts">特色菜品</view>
</view>
<block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
<image src="{{item}}" mode="aspectFill" />
<image src="{{item}}" mode="widthFix" />
</block>
<view class="lines"></view>
</view>
... ...
... ... @@ -234,7 +234,6 @@
.imgMask image {
width: 100%;
height: calc(100vw * 0.82) !important;
margin-bottom: 20rpx;
display: block !important;
vertical-align: top;
... ...
... ... @@ -109,7 +109,7 @@
<view class="introduce" wx:if="{{(store && store.images.length && store.is_above && store.is_above=='1' && store.is_images=='1' && store.is_introduce=='1') || (store && !store.is_above && store.style=='1')}}">
<view class="IntroductionItems" wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
<view class="imgMask">
<image src="{{item}}" mode="aspectFill" />
<image src="{{item}}" mode="widthFix" />
<view class="IntroduceColor Introducepublic" wx:if="{{arryIndex=='0'}}">
<view class="englishText font28r">Introduce</view>
<view class="chefText font32r">品牌介绍</view>
... ... @@ -142,7 +142,7 @@
</view>
</block>
</view>
<image wx:if="{{store && (!store.is_images || store.is_images!='0')}}" src="{{item}}" mode="aspectFill" />
<image wx:if="{{store && (!store.is_images || store.is_images!='0')}}" src="{{item}}" mode="widthFix" />
</view>
</view>
</view>
... ... @@ -151,7 +151,7 @@
<view class="introduce famousChefBox" wx:if="{{(chef && chef.image && chef.is_above && chef.is_above=='1' && chef.is_images=='1' && chef.is_introduce=='1') || (chef && !chef.is_above && chef.style=='1')}}">
<view class="IntroductionItems">
<view class="imgMask">
<image src="{{chef.image}}" mode="aspectFill" />
<image src="{{chef.image}}" mode="widthFix" />
<view class="IntroduceColor Introducepublic">
<view class="englishText font28r">Chief Cook</view>
<view class="chefText">知名主厨</view>
... ... @@ -186,7 +186,7 @@
</view>
</block>
</view>
<image wx:if="{{chef && (!chef.is_images || chef.is_images!='0')}}" src="{{chef.image}}" mode="aspectFill" />
<image wx:if="{{chef && (!chef.is_images || chef.is_images!='0')}}" src="{{chef.image}}" mode="widthFix" />
</view>
</view>
</view>
... ... @@ -194,7 +194,7 @@
<view class="introduce vegetableBox" wx:if="{{signboard && signboard.swich=='1'}}">
<view class="IntroductionItems" wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
<view class="imgMask">
<image src="{{item}}" mode="aspectFill" />
<image src="{{item}}" mode="widthFix" />
<view class="IntroduceColor Introducepublic" wx:if="{{arryIndex=='0'}}">
<view class="englishText font28r">Favorites</view>
<view class="chefText">菜品展示</view>
... ...
... ... @@ -251,7 +251,6 @@
}
.imgMask image {
height: calc(100vw * 0.82) !important;
margin-bottom: 20rpx;
display: block !important;
vertical-align: top;
... ...
... ... @@ -112,7 +112,7 @@
<block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}">
<view class="chefText texts1 font36r">餐厅环境</view>
<block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
<image src="{{item}}" mode="aspectFill" />
<image src="{{item}}" mode="widthFix" />
</block>
<view class="lines"></view>
</block>
... ... @@ -129,7 +129,7 @@
</view>
</view>
<block wx:if="{{!chef.is_images || chef.is_images!='0'}}">
<image src="{{chef.image}}" mode="aspectFill" />
<image src="{{chef.image}}" mode="widthFix" />
</block>
<view class="{{(!chef.is_images || chef.is_images!='0')?'lines':'lines mtnone'}}"></view>
</view>
... ... @@ -141,7 +141,7 @@
<view class="chefText font36r">特色菜品</view>
</view>
<block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
<image src="{{item}}" mode="aspectFill" />
<image src="{{item}}" mode="widthFix" />
</block>
<view class="lines"></view>
</view>
... ...
... ... @@ -238,7 +238,6 @@
.imgMask image {
width: 100%;
height: calc(100vw * 0.82) !important;
margin-bottom: 20rpx;
display: block !important;
vertical-align: top;
... ...
... ... @@ -99,7 +99,7 @@
<block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}">
<view class="chefText texts1 font36r">餐厅环境</view>
<block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
<image src="{{item}}" mode="aspectFill" />
<image src="{{item}}" mode="widthFix" />
</block>
<view class="lines"></view>
</block>
... ... @@ -116,7 +116,7 @@
</view>
</view>
<block wx:if="{{!chef.is_images || chef.is_images!='0'}}">
<image src="{{chef.image}}" mode="aspectFill" />
<image src="{{chef.image}}" mode="widthFix" />
</block>
<view class="{{(!chef.is_images || chef.is_images!='0')?'lines':'lines mtnone'}}"></view>
</view>
... ... @@ -128,7 +128,7 @@
<view class="chefText font36r">特色菜品</view>
</view>
<block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
<image src="{{item}}" mode="aspectFill" />
<image src="{{item}}" mode="widthFix" />
</block>
<view class="lines"></view>
</view>
... ...
... ... @@ -261,7 +261,6 @@
.imgMask image {
width: 100%;
height: calc(100vw * 0.82) !important;
margin-bottom: 20rpx;
display: block !important;
vertical-align: top;
... ...