Commit a0726c4d8b12326c76e94edc0f8b90963496400a

Authored by yiren
1 parent 315bd19f

提前点餐分享页面菜品加数量

... ... @@ -70,9 +70,9 @@
<image src="{{themeColor!='251,246,241,1'?'https://qn.colorcun.com/WechatIMG697.png':'https://qn.colorcun.com/Line2.png'}}" mode="aspectFill" class="reduceImg" bindtap="subtraction" data-item="{{item}}" />
<view class="box flex-cc">
<view class="num flex-cc">
{{item.count}}<view wx:if="{{item.name}}" style="color:rgba({{textColor}})">{{item.name}}</view>
{{item.count}}<view wx:if="{{item.specs || item.unit}}" style="color:rgba({{textColor}})">{{item.specs?item.specs:item.unit}}</view>
</view>
<view class="practice" wx:if="{{item.specs || item.unit}}" style="color:rgba({{textColor}})">{{item.specs?item.specs:item.unit}}</view>
<view class="practice" wx:if="{{item.name}}" style="color:rgba({{textColor}})">{{item.name}}</view>
</view>
<image src="{{themeColor!='251,246,241,1'?'https://qn.colorcun.com/WechatIMG696.png':'https://qn.colorcun.com/Line1.png'}}" mode="aspectFill" class="imgs" data-type="0" bindtap="addition" data-item="{{item}}" data-key="{{index}}" data-indexs="{{indexs}}" />
</view>
... ...
... ... @@ -59,6 +59,11 @@
<view class="imgOneBox">
<image wx:if="{{item.image}}" catch:tap="preview" style="height: {{item.imageHeight>height?height+'px':item.imageHeight+'px'}};width: {{item.imageHeight>height?'':item.imageHeight==height?'100%':'100%'}}" mode="{{(item.imageHeight>height || item.imageHeight==height)?'aspectFit':''}}" src="{{item.image}}" bindload="imageLoad" data-item="{{item}}" data-index="{{index}}" data-indexs="{{indexs}}" data-idx="{{idx}}" />
</view>
<view class="countNum">
<view class="num">{{item.count}}</view>
<view class="text texts" wx:if="{{item.specs || item.unit}}" style="color: rgba({{textColor}});">{{item.specs?item.specs:item.unit}}</view>
<view class="text" wx:if="{{item.specs || item.name}}" style="color: rgba({{textColor}});">{{item.name?item.name:''}}</view>
</view>
</view>
</block>
</block>
... ...
... ... @@ -3,7 +3,7 @@
font-family: PingFang SC;
width: 100%;
box-sizing: border-box;
padding-bottom: 20rpx;
padding-bottom: 140rpx;
}
.info {
... ... @@ -261,6 +261,7 @@
width: 100%;
display: flex;
justify-content: center;
font-size: 24rpx;
}
.normsBox{
... ... @@ -283,6 +284,7 @@
.oneBox {
display: flex;
margin-right: 20rpx;
flex-wrap: wrap;
}
.content {
padding: 20rpx 0 20rpx 20rpx;
... ... @@ -291,16 +293,40 @@
}
.dishTexts {
display: flex;
flex-wrap: wrap;
padding: 0 40rpx 30rpx 20rpx;
color: #000;
font-family: PingFang SC;
font-weight: 500;
font-size: 40rpx;
font-size: 28rpx;
width: 100%;
font-family: PingFang SC;
font-weight: 500;
font-size: 28rpx;
}
.dishTexts .texts {
margin-right: 30rpx;
}
.countNum{
display: flex;
align-items: center;
justify-content: center;
border-bottom: 4rpx solid #dbdbdb ;
}
.countNum .num{
color: #e34d59;
font-family: PingFang SC;
font-weight: 500;
font-size: 80rpx;
height: 100rpx;
line-height: 100rpx;
padding-right: 10rpx;
}
.countNum .text{
font-family: PingFang SC;
font-weight: 500;
font-size: 32rpx;
}
.countNum .texts{
margin: 0 20rpx;
}
\ No newline at end of file
... ...