<view class="page">
  <!-- <view class="page__hd">
    <view class="page__title">Flex</view>
  </view> -->

  <view class="page__bd page__bd_spacing">
    <view style="margin-bottom:48px;">
    <view class="weui-flex" style="border-bottom:1px solid #ddd;padding:5px 10px;" wx:for="{{list}}">
      <view style="padding-top:20px;padding-right:10px;">
        <checkbox-group bindchange="chkChange" data-id="{{item.id}}">
          <label class="checkbox">
            <checkbox checked="{{item.check}}" value="{{item.id}}" />
          </label>
        </checkbox-group>
      </view>
      <view class="weui-flex__item" style="display:flex;flex-direction:row;">
        <view style="margin-right:8px;">
          <image src="{{item.proimg}}" style="width:80px;height:80px;"></image>
        </view>

        <view style="font-size:14px;">
          <view>{{item.proname}}</view>
          <view style="margin-top:5px;" class="red">¥ {{item.total}}</view>
          <view style="margin-top:5px;">
            <image src="../../image/mealBoxAdd.png" style="width:25px;height:25px;" data-id="{{item.id}}" bindtap="plus" />
            <text style="margin-left:15px;margin-right:15px;position:relative;top:-8px;">{{item.pronum}}</text>
            <image src="../../image/mealBoxMinus.png" style="width:25px;height:25px;" data-id="{{item.id}}" bindtap='minus' />
          </view>
        </view>

      </view>
      <view style="padding-top:20px;">
        <icon type="cancel" size="23" bindtap='del' data-id="{{item.id}}"></icon>
      </view>
    </view>
    </view>

    <!--底部-->
    <view class="weui-footer weui-footer_fixed-bottom" style="text-align:left;padding:5px 8px;border-top:1px solid #ddd;border-bottom:1px solid #ddd;background-color:#fff;bottom:0px;">
      <checkbox-group bindchange="chkAllChange" style="float:left;position:relative;top:15px;">
        <label class="checkbox" bindchange="chkAllChange">
          <checkbox checked="{{allCheck}}" />合计：¥ {{totalMoney}}
        </label>
      </checkbox-group>
      <button class="weui-btn mini-btn" type="warn" size="mini" style="float:right;" bindtap='checkOut'>结算</button>
    </view>
  </view>

</view>