<navbar back home text="拼团券" background='#fff'></navbar>
<view style="height:{{navigationBarHeight}} "></view>
<view class="content-box">
  <view class='content'>
    <view class='top-img' style="{{mouldConfig.groupSwiperH}}">
      <image src='{{data.coverImg}}' style="{{mouldConfig.groupSwiperH}}"></image>
    </view>
    <view class='title'>{{data.title}}</view>
    <view class='text'>
      <view class='remark'>{{data.subTitle}}</view>
      <view class='des'>
        <view class='des-peoplenum'>「拼团价」{{data.pressLimitNum}}人拼团成功,单价仅需￥</view>
        <view class='des-saleprice'>{{data.salePriceStr}}</view>
      </view>
      <view class='rest' wx:if="{{data.validType==1}}">有效期:
        <text class='time'>{{data.validStartDate}}至{{data.validEndDate}}<text class="use">(请在有效期内使用)</text></text>
      </view>
      <view class='rest'>
        <!-- <text class='txt01'>限购条件:</text> -->
        <view class='quan'></view>
        <text class='time'>每人限购{{data.useLimitQuantity}}张</text>
      </view>
      <view class='status'>
        <view class='status01 st'>
          <image src='{{avatarUrl}}'></image>
        </view>
        <view class='status04 st join-c' style='width:auto;'>
          <view class='j-f'>您正在参加 {{nickName}} 的拼团</view>
          <view class='j-t'>剩余时间：<view class='j-time'>{{day+' 天 '+hour+' : '+min+' : '+sec}}</view>
          </view>
        </view>
      </view>
    </view>
    <!-- 适用门店 -->
    <!-- <store wx:if="{{merchantVoList.length>0}}" merchantVoList="{{merchantVoList}}"></store> -->
    <shop wx:if="{{mallList.length>0}}" mallList="{{mallList}}"></shop>
    <view class='text'>
      <view class='p-des'>
        <view class='p-title'>购买须知：</view>
        <view class='p-list'>{{data.remark}}</view>
      </view>
      <view class='edit'>
        <button class='goback' bindtap='gotoIndex'>
          <image src='{{homeSelectedO}}' mode="widthFix"></image>
          <text class='btnTxt'>首页</text>
        </button>
        <form bindsubmit='{{canBuyIf?"gotoBuy":""}}' report-submit='true' wx:if='{{data.id}}'>
          <button form-type="submit" class='edit-left'>
            <view class='edit-left-top'>
              <view class='price'>{{data.price}}</view>
              <view class='price-unit'>元</view>
            </view>
            <view class='edit-left-bottom'>立即购买</view>
          </button>
        </form>
        <!-- <button class='edit-right' id="shareBtn" open-type="share"></button> -->
        <form bindsubmit='{{canSpell?"gotoSpell":""}}' report-submit='true' wx:if='{{data.id}}'>
          <button class='edit-right' form-type="submit">
            <view class='edit-left-top'>
              <view class='price'>{{data.salePrice}}</view>
              <view class='price-unit'>元</view>
            </view>
            <view class='edit-left-bottom'>参加拼团</view>
          </button>
        </form>
      </view>
    </view>
  </view>
  <view class='al-bg' wx:if='{{showErr}}'></view>
  <view class='al-content' wx:if='{{showErr}}'>
    <view class='al-top'>
      <image src='{{orderGroupFail}}' mode="widthFix"></image>
    </view>
    <view class='al-center'>您的拼团未成功，退款将在24小时内返回到您的支付账号</view>
    <view class='al-bottom' bindtap='gotoIndex'>返回首页</view>
  </view>
</view>