<import src="/components/local/wxParse/wxParse.wxml" />
<view class="item margin item-radius">
<!-- 店铺名字 -->
  <view class="item-top flex-align-center ">
    <text class="flex1">{{source=='goods'?store_name:cardDetailList.name}}</text>
  </view>

    <!-- 商品详情支付 -->
  <view class="good-list">
    <view class="item-content flex">
      <image class="img" src="{{source=='goods'?goodsDetailsList[0].cover_url:cardDetailList.banner_urls[0]}}"></image>
      <view class="content flex-column">
        <view class="content-text-box flex1">
          <text wx:if="{{source=='goods'}}" class="flex1">{{goodsDetailsList[0].goods_name}}</text>
          <text wx:else class="flex1">有效期:{{cardDetailList.days}}</text>
        </view>
        <view class="project-num">x1</view>
      </view>
    </view>
  </view>

  <view class="item-bottom">
    <view class="item-total">共1件</view>
    <view class="item-price"><text class="price-size">￥</text>{{groupPrice}}</view>
  </view>
</view>



<view class="margin order-sum  item-radius">
  <view class="bottom flex-align-center">
    <text style="font-size: 28rpx;color: #999;">合计：</text>
    <text class="total-price">￥{{groupPrice}}</text>
  </view>
</view>
<!-- 提交订单 -->
<view class="buy flex-align-center flex-justify-space-between" style="padding: 0 20rpx;">
  <view wx:if="{{!isGrouping}}" class="submitBtn" bindtap="onCardgoodsPay">
    提交订单
  </view>
  <view wx:else class="submitBtn" bindtap="onNewPay">
    提交订单
  </view>
</view>
<!-- 支付 -->
<wux-popup class="popup-radius" position="bottom" catchtouchmove="true" visible="{{ payNow }}" bind:close="onClosePay">
  <view class="coupon-popup payType">
    <view class="top flex-align-center">
      <text style="text-align: center;"></text>
      <image src="/images/icon_20.png" class="close-img" bindtap="onClosePay" />
    </view>
    <!-- 购物车订单 -->
    <view class="moneyShow"><text>¥</text>{{groupPrice}}</view>
    <view class="select-pay-methon" catchtap="pay_methonw">
      <image class="pay-img" src="/images/wx_pay.png"></image>
      <view class="pay-title">微信支付</view>
      <!-- <view class="pay-money"><text>￥</text>800</view> -->
      <image class="select-activity" src="{{pay_methon==1?'/images/icon_13.png':'/images/icon_12.png'}}"></image>
    </view>

    <view class="select-pay-methon" catchtap="pay_methonc" style="margin-bottom: 15rpx;">
      <image class="pay-img" src="/images/joli_pay.png"></image>
      <view class="pay-title">储值支付</view>
      <view class="pay-money"><text>￥</text>{{inserllAmount}}</view>
      <image class="select-activity" src="{{pay_methon==2?'/images/icon_13.png':'/images/icon_12.png'}}"></image>
    </view>
    <view class="coupon-popup-btm flex-center">
      <view class="coupon-popup-btm-btn flex-center" bindtap="payOrder">支付</view>
    </view>
  </view>
</wux-popup>