<!--packageE/community_solitaire/components/yz_cartList/yz_cartList.wxml-->

<van-popup show="{{show}}" round  closeable custom-style="max-height: 80%;display:flex;flex-direction: column;" position="bottom" bind:close="popupcartListbtn">
  
	<view class="yz-cartList-top">
      <view class="text">
        已选择商品 <text class="em" style="color:#999;">（共{{ cardata.length }}件）</text>
      </view>
      <view class="clone-box"></view>
    </view>
    <view class="yz-cartList-main" style="overflow:scroll;">
      <view class="yz-cartList-list" wx:for="{{cardata}}" wx:key="id">
        <!-- 商品图片隐藏（PS:设计稿没有），后面如有添加直接去掉if条件 -->
        <image
          wx:if="{{false}}"
          src="{{item.option_id != 0 ? item.goods_option.thumb : item.goods.thumb}}"
          class="g-img"
        ></image>
        <view class="g-info">
          <view class="g-title">{{ item.goods.title }}</view>
          <view class="g-option">{{ item.option_str }}</view>
          <view class="g-price">
            <!-- <em>{{ $i18n.t('money') }}</em> -->
            {{ item.option_id != 0 ? item.goods_option.product_price : item.goods.price }}
          </view>
        </view>
        <view class="add-cart-btn">
			<icon bindtap="reduceCartNum" data-item="{{item}}" class="iconfont icon-life-game-sign"></icon>
			<input  bindblur="updateCartNum" data-item="{{item}}" type="number" data-item="{{item}}" value="{{item.total}}" style="width:50rpx;text-align:center;margin: 0px 8px;" />
			<icon bindtap="addCartNum" data-item="{{item}}" class="iconfont icon-life-game-plus"></icon>
        </view>
      </view>
      
	</view>
  <view style="height:4.5rem;"></view>
  <slot name="button"></slot>




</van-popup>























