Commit 60abca8dc9fc4a406c24b3f45236d6394bb7eab5

Authored by pengye
1 parent 9e630ebe

模板6、7、8有首图的,设置图片宽度百分百,高度自适应

... ... @@ -9,7 +9,7 @@
{{home.slogan}}
</view>
</view>
<image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" class="homeImage" mode="aspectFill"></image>
<image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" class="homeImage" mode="widthFix"></image>
<view class="reservationInfo flex-ll">
<view class="line">
</view>
... ...
... ... @@ -3,7 +3,7 @@
<nav hasHome class="navhome" place="{{true}}">{{seller.name||reserve.seller_name}}</nav>
<scroll-view scroll-y class="{{themeColor}}">
<view class="reservationInfo">
<image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" class="homeImage" mode="aspectFill"></image>
<image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" class="homeImage" mode="widthFix"></image>
<view class="begin">
<view class="font40r">尊敬的贵宾,您好!非常感谢您选择</view>
<view class="centerBox font40r">【{{seller.name?seller.name:reserve.seller_name}}】</view>
... ...
... ... @@ -4,10 +4,10 @@
<scroll-view scroll-y class="{{themeColor}}">
<view class="reservationInfo">
<view class="infoImg">
<image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" class="homeImage" mode="aspectFill"></image>
<image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" class="homeImage" mode="widthFix"></image>
<view class="infoImgName font48r"><text>【{{seller.name||reserve.seller_name}}】</text></view>
</view>
<view class="infoItem" wx:if="{{seller.date}}">
<view class="infoItem oneInfoItem" wx:if="{{seller.date}}">
<view class="label font28r">【宴会日期】</view>
<view class="contentData font40r">{{seller.date}}</view>
</view>
... ...
... ... @@ -15,7 +15,7 @@
.infoImgName {
position: absolute;
left: 0;
bottom: 0;
bottom: -94rpx;
background: #515151;
width: 96%;
padding: 16rpx 0;
... ... @@ -60,6 +60,10 @@
font-family: PingFang SC;
}
.reservationInfo .oneInfoItem{
margin-top: 94rpx;
}
.label {
flex-shrink: 0;
font-family: PingFang SC;
... ...