Commit 761f6bd3b7dca1d3b5b0332e1584f41f30acc909

Authored by yiren
1 parent ca668893

提前点餐图片修改

... ... @@ -37,6 +37,8 @@ Page({
themeColor: '',
textColor: '',
navColor: '',
height:wx.getSystemInfoSync().windowWidth*1*2,
height2:wx.getSystemInfoSync().windowWidth,
},
checkModal: '',
classifyModal: '',
... ...
... ... @@ -62,7 +62,9 @@
<text wx:if="{{item.cooks}}">烹调:{{item.cooks}}</text>
</view>
</view>
<image wx:if="{{item.image}}" src="{{item.image}}" class="dishImg" mode="aspectFill" />
<view class="imgOneBox">
<image wx:if="{{item.image}}" style="height:{{height}}rpx;" src="{{item.image}}" class="dishImg" mode="aspectFit" />
</view>
<view class="greens" wx:if="{{item.desc}}">
<view class="news" style="color:rgba({{textColor}})">{{item.desc}}</view>
</view>
... ... @@ -83,7 +85,7 @@
<view wx:else class="twoBox" data-idx="{{item.image_type}}">
<view class="{{item.boderNone?'borderNone twoItem':'twoItem'}}">
<view class="twoTitle" style="color:rgba({{textColor}})">{{item.name}}</view>
<view class="twoInfo dishTexts" wx:if="{{item.taste}}">
<view class="twoInfo dishTexts" wx:if="{{item.taste}}" style="color:rgba({{textColor}})">
<text wx:if="{{item.taste}}" class="texts">味型:{{item.taste}}</text>
<text wx:if="{{item.cooks}}">烹调:{{item.cooks}}</text>
</view>
... ... @@ -97,7 +99,7 @@
{{item.price?'¥'+item.price+'/'+item.unit:''}}
{{item.member_price?'会员 ¥'+item.member_price+'/'+item.unit:''}}
</view>
<image wx:if="{{item.image}}" src="{{item.image}}" mode="aspectFill" />
<image wx:if="{{item.image}}" src="{{item.image}}" style="height:{{height2}}rpx;" mode="aspectFit" />
<view class="greens" wx:if="{{item.desc}}">
<view class="news" style="color:rgba({{textColor}})">{{item.desc}}</view>
</view>
... ...
... ... @@ -85,6 +85,11 @@ page {
.dishImg {
width: 100%;
}
.imgOneBox{
width: 100%;
display: flex;
justify-content: center;
}
.greens {
padding: 20rpx 32rpx 58rpx 32rpx;
... ... @@ -185,7 +190,7 @@ page {
}
.twoItem image {
height: 247rpx;
width: 100%;
}
.oneImg {
... ...