cooklist.wxml
1.62 KB
<view class="food-single {{item.bg_color}} flex-vc" data-id="{{item.id}}" bindtap="selectcook">
<view class="font40r font-bold cook-list-name black-font smooth flex-ll" style="width:100%;">{{item.name}}</view>
<view class="font30r black-font flex-lr" style="margin-top:30rpx;width:100%;">
<view>{{item.price}}元/{{item.unit}}</view>
<block wx:if="{{pagetype=='cclist'}}">
<block wx:if="{{item.clear_num && item.clear_num==0}}">
<image src="/pages/image/clear.png" style="width:82rpx;height:52rpx;background:transparent;margin-right:10rpx;position:relative;top:-6rpx;"></image>
</block>
</block>
</view>
<block wx:if="{{pagetype!='cclist'}}">
<view class="black-circle {{item.isactive==false ? '' : 'bg_green'}} flex-cc">
<image src="/pages/image/{{item.isactive==false ? 'select-right.svg' : 'select-right-active.svg'}}" style="width:26rpx;height:26rpx;"></image>
<!--<icon type="success_no_circle" class="icon-success-block" color="{{item.isactive==false ? '#199095' : '#fff'}}" size="26rpx"></icon>-->
</view>
</block>
<block wx:else>
<block wx:if="{{item.clear_num && item.clear_num>0}}">
<view class="food-clear flex-ll" style="top:0;">
<view class="food-clear-angel">
<view class="angel angel-top"></view>
<view class="angel angel-bottom"></view>
</view>
<view class="food-clear-num white-font smooth font20r flex-cc">剩余:{{item.clear_num}}</view>
</view>
</block>
</block>
</view>