<!--myComponents/pay/pay.wxml-->
<van-popup
  show="{{ show }}"
  closeable
  round
  position="bottom"
  custom-style="height: auto;"
  bind:close="onClose"
>
  <view class="popup">
    <view class="content">
      <view class="title">{{data.title}}</view>
      <view>
        <view class="cell">
          <view class="cell_left">具体内容</view>
          <view class="cell_right">
            <span wx:for="{{data.goods}}">
              {{item.name}} 
              <span wx:if="{{item.price}}">(￥{{item.price}})</span> 
              <span> x{{item.num}}</span>
            </span>
          </view>
        </view>
        <view class="cell" >
          <view class="cell_left">折扣</view>
          <view class="cell_right">{{data.discountText || '暂无折扣'}}</view>
        </view>
        <van-cell custom-class='vanCell' title="优惠券" is-link value="{{voucherShow}}" bind:click="checkCoupons"/>
      </view>
      <wux-divider wux-class="line" show-text="{{ false }}" />
      <view class="cell">
        <view class="cell_left">总计：</view>
        <view class="cell_right">￥{{data.price}}</view>
      </view>
    </view>
    
     <view class="foot">
      <view> <span wx:if="{{data.discountPrice}}">已优惠￥{{data.discountPrice}}</span></view>
      <view class="foot_btn" bind:tap="payMoney">
        <view class="foot_btn_price">￥{{data.finalPrice}}</view>
        <view>立即支付</view>
      </view>
    </view>
  </view>
 
</van-popup>