<navbar back home text="拼团券" background='#fff'></navbar>
<view style="height:{{navigationBarHeight}} "></view>
<view class="content-box">
  <view class='content'>
    <view wx:if="{{coverPicture.length>0}}" class="banner" style="{{mouldConfig.groupSwiperH}}">
      <swiper class="index-slide swiper-box" style="{{mouldConfig.groupSwiperH}}" bindchange="swiperChange" indicator-dots="true" autoplay="true" circular="false" current="{{swiperCurrent}}">
        <block wx:for="{{coverPicture}}" wx:key="unique">
          <swiper-item>
            <image data-data="{{item}}" style="{{mouldConfig.groupSwiperH}}" src="{{item}}" class="index-slide-image" />
          </swiper-item>
        </block>
      </swiper>
    </view>
    <view class='title'>{{data.title}}</view>
    <view class='text'>
      <view class='remark'>{{data.subTitle}}</view>
      <view class='fenxiang' wx:if="{{data.type!=50&&data.type!=51}}" bindtap='showshare'>
        <image src='{{fenxiang}}' mode="widthFix"></image>
        <text class='gift'>分享</text>
      </view>
      <view class='des'>
        <view class='des-peoplenum'>「拼团价」{{data.pressLimitNum}}人拼团成功,单价仅需￥</view>
        <view class='des-saleprice'>{{data.salePriceStr}}</view>
        <view class='yj'>{{data.priceStr}}元</view>
      </view>
      <view style="background:#fff;">
        <text wx:if="{{data.autoRefund == 1}}">
          <text class='time refound'><text class="use">过期不退款</text></text>
        </text>
      </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>
        <text class='timess' wx:if='{{limitCondition==1}}'>仅限新用户活动</text>
        <text class='timess' wx:if='{{limitCondition==2&&(minLimit||minLimit==0)&&maxLimit}}'>({{minLimit}}-{{maxLimit}}成长值)</text>
        <text class='timess' wx:if='{{limitCondition==2&&minLimit&&!maxLimit}}'>(大于{{minLimit}}成长值)</text>
        <view class='right-text'>剩余{{data.remainInventory}}张</view>
      </view>
      <view class='status' wx:if="{{spellData!=null}}">
        <view class='status01 st'>
          <image src='{{spellData.avatarUrl}}'></image>
        </view>
        <view class='status02 st'>{{spellData.nickName}}的团还差<view class='r-p-num'>1人</view>
        </view>
        <view class='status03 st'>
          <view class='mm'>{{day}}</view><text class='day-box' style='font-size:32rpx;'> 天 </text>
          <view class='hh'>{{hour}}</view><text class='mao'>:</text>
          <view class='mm'>{{min}}</view><text class='mao'>:</text>
          <view class='ss'>{{sec}}</view>
        </view>
        <view class='status04 st'>
          <view class='s-button' bindtap='gotoPartner'>去拼团</view>
        </view>
      </view>
      <!-- 适用门店 -->
      <!-- <store wx:if="{{merchantVoList.length>0}}" merchantVoList="{{merchantVoList}}"></store> -->
      <shop wx:if="{{mallList.length>0}}" mallList="{{mallList}}"></shop>
      <view class='notes'>
        <view>
          <text>购买须知</text>
        </view>
        <view>
          <text><text class='spot'></text>{{data.remark}}</text>
        </view>
      </view>
      <view class='detailImg' wx:if="{{detailPicture.length>0}}">
        <image mode='widthFix' wx:for="{{detailPicture}}" wx:key="index" wx:for-item="item" src='{{item}}'></image>
      </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 class='edit-left' form-type="submit">
            <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 class='modal' wx:if="{{isshowposter}}" bindtap='hidemodal'>
      <view class='modal-content'>
        <view>
          <button class='share user-motto' data-id='{{data.id}}' data-couponId='{{data.couponId}}' data-title='{{data.title}}' id="shareBtn" open-type="share" hover-class="other-button-hover"></button>
          <image src='./../../../assets/images/wechat.png' mode='aspectFit'></image>
          <text>微信好友</text>
        </view>
        <view bindtap='showPoster'>
          <image src='./../../../assets/images/picture.png' mode='aspectFit'></image>
          <text>生成海报</text>
        </view>
      </view>
    </view>
    <!-- 问卷调查 -->
    <view class="b1" style="opacity:{{opacity}};display: {{display}};position: fixed;top:{{navigationBarHeight}};bottom: 0px;left: 0px;right: 0px;background: rgba(0, 0, 0, 0.8);overflow: hidden;z-index: 13;" animation="{{queueData}}">
      <view id='con' class='con'>
        <image class='wmclose' mode='widthFix' src="{{closedUrl}}" bindtap="closeQuestion"></image>
        <image class='ques_gou' mode='widthFix' src="{{quesGouUrl}}"></image>
        <image class='image' src="{{headbgUrl}}" mode='widthFix'></image>
        <image class='img image' src="{{quesBgUrl}}" mode='widthFix'></image>
        <view class='question'>
          <text class='titles'>{{questionnaire.title}}</text>
          <!-- 单选 -->
          <radio-group class="radio-group" wx:if="{{questionnaire.flag=='single'}}" data-flags="single" bindchange="formSubmit" data-questionId="{{questionId}}">
            <label class="radios" wx:for="{{questionnaire.answers}}" wx:key="index">
              <radio value="{{item.id}}" checked="{{item.checked}}" />{{item.name}}
            </label>
          </radio-group>
          <!-- 多选 -->
          <checkbox-group bindchange="checkboxChange" wx:if="{{questionnaire.flag=='multi'}}" bindchange="checkboxChange">
            <label class="radio ques" wx:for="{{questionnaire.answers}}" wx:key="index">
              <checkbox value="{{item.id}}" />{{item.name}}
            </label>
          </checkbox-group>
          <view class='ques btnss' wx:if="{{questionnaire.flag=='multi'}}" data-flags='multi' bindtap='formSubmit' data-questionId="{{questionId}}">确定</view>
        </view>
      </view>
    </view>
  </view>
</view>