Commit 9e630ebe1b4203e39bcbd6ca241954d8c2006e16

Authored by pengye
1 parent 439eb8a8

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

@@ -110,7 +110,7 @@ @@ -110,7 +110,7 @@
110 <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}"> 110 <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}">
111 <view class="chefText font36r">餐厅环境</view> 111 <view class="chefText font36r">餐厅环境</view>
112 <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> 112 <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
113 - <image src="{{item}}" mode="aspectFill" /> 113 + <image src="{{item}}" mode="widthFix" />
114 </block> 114 </block>
115 <view class="lines"></view> 115 <view class="lines"></view>
116 </block> 116 </block>
@@ -127,7 +127,7 @@ @@ -127,7 +127,7 @@
127 </view> 127 </view>
128 </view> 128 </view>
129 <block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}"> 129 <block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}">
130 - <image src="{{chef.image}}" mode="aspectFill" /> 130 + <image src="{{chef.image}}" mode="widthFix" />
131 </block> 131 </block>
132 <view wx:if="{{chef.is_introduce || chef.is_images}}" class="{{(!chef.is_images || chef.is_images!='0')?'lines':'lines mtnone'}}"></view> 132 <view wx:if="{{chef.is_introduce || chef.is_images}}" class="{{(!chef.is_images || chef.is_images!='0')?'lines':'lines mtnone'}}"></view>
133 </view> 133 </view>
@@ -139,7 +139,7 @@ @@ -139,7 +139,7 @@
139 <view class="chefText font36r">特色菜品</view> 139 <view class="chefText font36r">特色菜品</view>
140 </view> 140 </view>
141 <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> 141 <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
142 - <image src="{{item}}" mode="aspectFill" /> 142 + <image src="{{item}}" mode="widthFix" />
143 </block> 143 </block>
144 <view class="lines"></view> 144 <view class="lines"></view>
145 </view> 145 </view>
@@ -231,7 +231,6 @@ @@ -231,7 +231,6 @@
231 231
232 .imgMask image { 232 .imgMask image {
233 width: 100%; 233 width: 100%;
234 - height: calc(100vw * 0.82) !important;  
235 margin-bottom: 20rpx; 234 margin-bottom: 20rpx;
236 display: block !important; 235 display: block !important;
237 vertical-align: top; 236 vertical-align: top;
@@ -118,7 +118,7 @@ @@ -118,7 +118,7 @@
118 <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}"> 118 <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}">
119 <view class="chefText font36r">餐厅环境</view> 119 <view class="chefText font36r">餐厅环境</view>
120 <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> 120 <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
121 - <image src="{{item}}" mode="aspectFill" /> 121 + <image src="{{item}}" mode="widthFix" />
122 </block> 122 </block>
123 <view class="lines"></view> 123 <view class="lines"></view>
124 </block> 124 </block>
@@ -135,7 +135,7 @@ @@ -135,7 +135,7 @@
135 </view> 135 </view>
136 </view> 136 </view>
137 <block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}"> 137 <block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}">
138 - <image src="{{chef.image}}" mode="aspectFill" /> 138 + <image src="{{chef.image}}" mode="widthFix" />
139 </block> 139 </block>
140 <view wx:if="{{chef.is_introduce || chef.is_images}}" class="{{(!chef.is_images || chef.is_images!='0')?'lines':'lines mtnone'}}"></view> 140 <view wx:if="{{chef.is_introduce || chef.is_images}}" class="{{(!chef.is_images || chef.is_images!='0')?'lines':'lines mtnone'}}"></view>
141 </view> 141 </view>
@@ -147,7 +147,7 @@ @@ -147,7 +147,7 @@
147 <view class="chefText font36r">特色菜品</view> 147 <view class="chefText font36r">特色菜品</view>
148 </view> 148 </view>
149 <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> 149 <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
150 - <image src="{{item}}" mode="aspectFill" /> 150 + <image src="{{item}}" mode="widthFix" />
151 </block> 151 </block>
152 <view class="lines"></view> 152 <view class="lines"></view>
153 </view> 153 </view>
@@ -272,7 +272,6 @@ @@ -272,7 +272,6 @@
272 272
273 .imgMask image { 273 .imgMask image {
274 width: 100%; 274 width: 100%;
275 - height: calc(100vw * 0.82) !important;  
276 margin-bottom: 20rpx; 275 margin-bottom: 20rpx;
277 display: block !important; 276 display: block !important;
278 vertical-align: top; 277 vertical-align: top;
@@ -95,7 +95,7 @@ @@ -95,7 +95,7 @@
95 <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}"> 95 <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}">
96 <view class="text font36r rubric">餐厅环境</view> 96 <view class="text font36r rubric">餐厅环境</view>
97 <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> 97 <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
98 - <image src="{{item}}" mode="aspectFill" /> 98 + <image src="{{item}}" mode="widthFix" />
99 </block> 99 </block>
100 <view class="lines"></view> 100 <view class="lines"></view>
101 </block> 101 </block>
@@ -111,7 +111,7 @@ @@ -111,7 +111,7 @@
111 </view> 111 </view>
112 </view> 112 </view>
113 <block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}"> 113 <block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}">
114 - <image src="{{chef.image}}" mode="aspectFill" /> 114 + <image src="{{chef.image}}" mode="widthFix" />
115 </block> 115 </block>
116 <view wx:if="{{chef.is_introduce || chef.is_images}}" class="{{(!chef.is_images || chef.is_images!='0')?'lines':'lines mtnone'}}"></view> 116 <view wx:if="{{chef.is_introduce || chef.is_images}}" class="{{(!chef.is_images || chef.is_images!='0')?'lines':'lines mtnone'}}"></view>
117 </view> 117 </view>
@@ -122,7 +122,7 @@ @@ -122,7 +122,7 @@
122 <view class="text font36r rubric texts">特色菜品</view> 122 <view class="text font36r rubric texts">特色菜品</view>
123 </view> 123 </view>
124 <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> 124 <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
125 - <image src="{{item}}" mode="aspectFill" /> 125 + <image src="{{item}}" mode="widthFix" />
126 </block> 126 </block>
127 <view class="lines"></view> 127 <view class="lines"></view>
128 </view> 128 </view>
@@ -231,7 +231,6 @@ @@ -231,7 +231,6 @@
231 231
232 .imgMask image { 232 .imgMask image {
233 width: 100%; 233 width: 100%;
234 - height: calc(100vw * 0.82) !important;  
235 margin-bottom: 20rpx; 234 margin-bottom: 20rpx;
236 display: block !important; 235 display: block !important;
237 vertical-align: top; 236 vertical-align: top;
@@ -92,7 +92,7 @@ @@ -92,7 +92,7 @@
92 <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}"> 92 <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}">
93 <view class="text font36r rubric">餐厅环境</view> 93 <view class="text font36r rubric">餐厅环境</view>
94 <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> 94 <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
95 - <image src="{{item}}" mode="aspectFill" /> 95 + <image src="{{item}}" mode="widthFix" />
96 </block> 96 </block>
97 <view class="lines"></view> 97 <view class="lines"></view>
98 </block> 98 </block>
@@ -108,7 +108,7 @@ @@ -108,7 +108,7 @@
108 </view> 108 </view>
109 </view> 109 </view>
110 <block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}"> 110 <block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}">
111 - <image src="{{chef.image}}" mode="aspectFill" /> 111 + <image src="{{chef.image}}" mode="widthFix" />
112 </block> 112 </block>
113 <view wx:if="{{chef.is_introduce || chef.is_images}}" class="{{(!chef.is_images || chef.is_images!='0')?'lines':'lines mtnone'}}"></view> 113 <view wx:if="{{chef.is_introduce || chef.is_images}}" class="{{(!chef.is_images || chef.is_images!='0')?'lines':'lines mtnone'}}"></view>
114 </view> 114 </view>
@@ -119,7 +119,7 @@ @@ -119,7 +119,7 @@
119 <view class="text font36r rubric texts">特色菜品</view> 119 <view class="text font36r rubric texts">特色菜品</view>
120 </view> 120 </view>
121 <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> 121 <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
122 - <image src="{{item}}" mode="aspectFill" /> 122 + <image src="{{item}}" mode="widthFix" />
123 </block> 123 </block>
124 <view class="lines"></view> 124 <view class="lines"></view>
125 </view> 125 </view>
@@ -234,7 +234,6 @@ @@ -234,7 +234,6 @@
234 234
235 .imgMask image { 235 .imgMask image {
236 width: 100%; 236 width: 100%;
237 - height: calc(100vw * 0.82) !important;  
238 margin-bottom: 20rpx; 237 margin-bottom: 20rpx;
239 display: block !important; 238 display: block !important;
240 vertical-align: top; 239 vertical-align: top;
@@ -109,7 +109,7 @@ @@ -109,7 +109,7 @@
109 <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')}}"> 109 <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')}}">
110 <view class="IntroductionItems" wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> 110 <view class="IntroductionItems" wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
111 <view class="imgMask"> 111 <view class="imgMask">
112 - <image src="{{item}}" mode="aspectFill" /> 112 + <image src="{{item}}" mode="widthFix" />
113 <view class="IntroduceColor Introducepublic" wx:if="{{arryIndex=='0'}}"> 113 <view class="IntroduceColor Introducepublic" wx:if="{{arryIndex=='0'}}">
114 <view class="englishText font28r">Introduce</view> 114 <view class="englishText font28r">Introduce</view>
115 <view class="chefText font32r">品牌介绍</view> 115 <view class="chefText font32r">品牌介绍</view>
@@ -142,7 +142,7 @@ @@ -142,7 +142,7 @@
142 </view> 142 </view>
143 </block> 143 </block>
144 </view> 144 </view>
145 - <image wx:if="{{store && (!store.is_images || store.is_images!='0')}}" src="{{item}}" mode="aspectFill" /> 145 + <image wx:if="{{store && (!store.is_images || store.is_images!='0')}}" src="{{item}}" mode="widthFix" />
146 </view> 146 </view>
147 </view> 147 </view>
148 </view> 148 </view>
@@ -151,7 +151,7 @@ @@ -151,7 +151,7 @@
151 <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')}}"> 151 <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')}}">
152 <view class="IntroductionItems"> 152 <view class="IntroductionItems">
153 <view class="imgMask"> 153 <view class="imgMask">
154 - <image src="{{chef.image}}" mode="aspectFill" /> 154 + <image src="{{chef.image}}" mode="widthFix" />
155 <view class="IntroduceColor Introducepublic"> 155 <view class="IntroduceColor Introducepublic">
156 <view class="englishText font28r">Chief Cook</view> 156 <view class="englishText font28r">Chief Cook</view>
157 <view class="chefText">知名主厨</view> 157 <view class="chefText">知名主厨</view>
@@ -186,7 +186,7 @@ @@ -186,7 +186,7 @@
186 </view> 186 </view>
187 </block> 187 </block>
188 </view> 188 </view>
189 - <image wx:if="{{chef && (!chef.is_images || chef.is_images!='0')}}" src="{{chef.image}}" mode="aspectFill" /> 189 + <image wx:if="{{chef && (!chef.is_images || chef.is_images!='0')}}" src="{{chef.image}}" mode="widthFix" />
190 </view> 190 </view>
191 </view> 191 </view>
192 </view> 192 </view>
@@ -194,7 +194,7 @@ @@ -194,7 +194,7 @@
194 <view class="introduce vegetableBox" wx:if="{{signboard && signboard.swich=='1'}}"> 194 <view class="introduce vegetableBox" wx:if="{{signboard && signboard.swich=='1'}}">
195 <view class="IntroductionItems" wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> 195 <view class="IntroductionItems" wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
196 <view class="imgMask"> 196 <view class="imgMask">
197 - <image src="{{item}}" mode="aspectFill" /> 197 + <image src="{{item}}" mode="widthFix" />
198 <view class="IntroduceColor Introducepublic" wx:if="{{arryIndex=='0'}}"> 198 <view class="IntroduceColor Introducepublic" wx:if="{{arryIndex=='0'}}">
199 <view class="englishText font28r">Favorites</view> 199 <view class="englishText font28r">Favorites</view>
200 <view class="chefText">菜品展示</view> 200 <view class="chefText">菜品展示</view>
@@ -251,7 +251,6 @@ @@ -251,7 +251,6 @@
251 } 251 }
252 252
253 .imgMask image { 253 .imgMask image {
254 - height: calc(100vw * 0.82) !important;  
255 margin-bottom: 20rpx; 254 margin-bottom: 20rpx;
256 display: block !important; 255 display: block !important;
257 vertical-align: top; 256 vertical-align: top;
@@ -112,7 +112,7 @@ @@ -112,7 +112,7 @@
112 <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}"> 112 <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}">
113 <view class="chefText texts1 font36r">餐厅环境</view> 113 <view class="chefText texts1 font36r">餐厅环境</view>
114 <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> 114 <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
115 - <image src="{{item}}" mode="aspectFill" /> 115 + <image src="{{item}}" mode="widthFix" />
116 </block> 116 </block>
117 <view class="lines"></view> 117 <view class="lines"></view>
118 </block> 118 </block>
@@ -129,7 +129,7 @@ @@ -129,7 +129,7 @@
129 </view> 129 </view>
130 </view> 130 </view>
131 <block wx:if="{{!chef.is_images || chef.is_images!='0'}}"> 131 <block wx:if="{{!chef.is_images || chef.is_images!='0'}}">
132 - <image src="{{chef.image}}" mode="aspectFill" /> 132 + <image src="{{chef.image}}" mode="widthFix" />
133 </block> 133 </block>
134 <view class="{{(!chef.is_images || chef.is_images!='0')?'lines':'lines mtnone'}}"></view> 134 <view class="{{(!chef.is_images || chef.is_images!='0')?'lines':'lines mtnone'}}"></view>
135 </view> 135 </view>
@@ -141,7 +141,7 @@ @@ -141,7 +141,7 @@
141 <view class="chefText font36r">特色菜品</view> 141 <view class="chefText font36r">特色菜品</view>
142 </view> 142 </view>
143 <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> 143 <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
144 - <image src="{{item}}" mode="aspectFill" /> 144 + <image src="{{item}}" mode="widthFix" />
145 </block> 145 </block>
146 <view class="lines"></view> 146 <view class="lines"></view>
147 </view> 147 </view>
@@ -238,7 +238,6 @@ @@ -238,7 +238,6 @@
238 238
239 .imgMask image { 239 .imgMask image {
240 width: 100%; 240 width: 100%;
241 - height: calc(100vw * 0.82) !important;  
242 margin-bottom: 20rpx; 241 margin-bottom: 20rpx;
243 display: block !important; 242 display: block !important;
244 vertical-align: top; 243 vertical-align: top;
@@ -99,7 +99,7 @@ @@ -99,7 +99,7 @@
99 <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}"> 99 <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}">
100 <view class="chefText texts1 font36r">餐厅环境</view> 100 <view class="chefText texts1 font36r">餐厅环境</view>
101 <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> 101 <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
102 - <image src="{{item}}" mode="aspectFill" /> 102 + <image src="{{item}}" mode="widthFix" />
103 </block> 103 </block>
104 <view class="lines"></view> 104 <view class="lines"></view>
105 </block> 105 </block>
@@ -116,7 +116,7 @@ @@ -116,7 +116,7 @@
116 </view> 116 </view>
117 </view> 117 </view>
118 <block wx:if="{{!chef.is_images || chef.is_images!='0'}}"> 118 <block wx:if="{{!chef.is_images || chef.is_images!='0'}}">
119 - <image src="{{chef.image}}" mode="aspectFill" /> 119 + <image src="{{chef.image}}" mode="widthFix" />
120 </block> 120 </block>
121 <view class="{{(!chef.is_images || chef.is_images!='0')?'lines':'lines mtnone'}}"></view> 121 <view class="{{(!chef.is_images || chef.is_images!='0')?'lines':'lines mtnone'}}"></view>
122 </view> 122 </view>
@@ -128,7 +128,7 @@ @@ -128,7 +128,7 @@
128 <view class="chefText font36r">特色菜品</view> 128 <view class="chefText font36r">特色菜品</view>
129 </view> 129 </view>
130 <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> 130 <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
131 - <image src="{{item}}" mode="aspectFill" /> 131 + <image src="{{item}}" mode="widthFix" />
132 </block> 132 </block>
133 <view class="lines"></view> 133 <view class="lines"></view>
134 </view> 134 </view>
@@ -261,7 +261,6 @@ @@ -261,7 +261,6 @@
261 261
262 .imgMask image { 262 .imgMask image {
263 width: 100%; 263 width: 100%;
264 - height: calc(100vw * 0.82) !important;  
265 margin-bottom: 20rpx; 264 margin-bottom: 20rpx;
266 display: block !important; 265 display: block !important;
267 vertical-align: top; 266 vertical-align: top;