|  | <navbar back home text="{{barTitle}}" background='#fff'></navbar>
<view wx:if="{{showPage}}">
  <view style="height:{{navigationBarHeight}} "></view>
  <!-- 券的详情页面 -->
  <view class='coupons'>
    <view class="coupons-body">
      <view wx:if="{{coverPicture.length>0}}" class="banner">
        <swiper class="index-slide swiper-box" bindchange="swiperChange" indicator-dots="true" circular="false" current="{{swiperCurrent}}">
          <block wx:for="{{coverPicture}}" wx:key="unique">
            <swiper-item>
              <image data-data="{{item}}" src="{{item}}" class="index-slide-image" />
            </swiper-item>
          </block>
        </swiper>
        <!-- <view class="dots">
          <block wx:for="{{coverPicture}}" wx:key="unique">
            <view class="dot{{index == swiperCurrent ? ' active' : ''}}"></view>
          </block>
        </view> -->
      </view>
      <view class='coupons_info' style='position:relative;z-index:9'>
        <view class='fenxiang' wx:if="{{data.type!=50&&data.type!=51}}" bindtap='showshare' wx:if="{{data.sendType!=3}}">
          <image src='{{fenxiang}}' mode="widthFix"></image>
          <text class='gift'>分享</text>
        </view>
        <view>
          <view class='distance' wx:if="{{data.targetAd==2&&data.endTime!=undefined||data.type==10}}">
            <view style='text-align:center;display:inline-block;'>
              <image class='clock' src='{{clockUrl}}' mode='widthFix' wx:if="{{data.type!=10}}"></image>
              <image class='clock' src='{{yushouUrl}}' mode='widthFix' wx:if="{{data.type==10}}"></image>
              <text class="qiang" wx:if="{{data.activityStatus!=0}}">距结束 :</text>
              <text class="qiang" wx:if="{{data.activityStatus==0}}">距开始 :</text>
            </view>
            <view wx:if="{{clock=='00'||data.status==1}}" class='times'>
              已经结束
            </view>
            <view wx:if="{{clock!='00'}}" class='times'>
              <view style="display:inline-block;" wx:if="{{day!=0}}">
                <text>{{day}}</text>天:
              </view>
              <text>{{hour}}</text>:
              <text>{{min}}</text>:
              <text>{{sec}}</text>
            </view>
          </view>
          <text class='title'>{{data.title}}<text class="elecard" wx:if="{{data.type==100}}">电子卡</text></text>
          <text class="subTitle">{{data.subTitle}}</text>
          <!-- 预购 -->
          <view class="moneyBox" wx:if="{{data.type==10}}">
            <view class="earnest">定金:</view>
            <view class="earnestNum">¥ {{salePriceStr}}</view>
            <view class="final">尾款抵扣:</view>
            <view class="earnestNum">¥ {{priceStr}}</view>
          </view>
          <view class="pickFinal_Box" wx:if="{{data.type==10}}">
            <view class="earnest">提货尾款:</view>
            <view class="earnestNum">¥ {{tailPriceStr}}</view>
            <view class="original">{{origPriceStr}}</view>
          </view>
          <view class="earnestTime time" wx:if="{{data.type==10}}"> 预购时间:{{soldStartTime}}至{{soldEndTime}}</view>
          <view class="finalTime time" wx:if="{{data.type==10}}">提货时间:{{validStartDate}}至{{validEndDate}}</view>
          <!-- 预售 -->
          <view class='salePriceStr clearfix' wx:if="{{data.type!=10}}">
            <text class='rmb'>¥</text>
            <view class="fl" wx:if="{{data.type!=8}}">
              <text class="pri01" wx:if="{{data.type!=50&&data.type!=51}}">{{data.salePriceStr}}</text>
              <view class="pri01" wx:if="{{data.type==50||data.type==51}}">{{data.creditPrice}}
                <text class='jifen'>积分</text>
              </view>
              <!-- <text class="yuan" wx:if="{{data.type!=50&&data.type!=51}}">元</text> -->
              <text class='throgh' wx:if="{{data.unit==0&&data.type!=50&&data.type!=51}}">{{data.priceStr}}元</text>
              <text wx:if="{{data.unit==1&&data.type!=50&&data.type!=51}}">{{data.priceStr}}小时</text>
              <text class='rest' wx:if="{{data.autoRefund == 1}}">
                <text class='time refound'><text class="use">过期不退款</text></text>
              </text>
            </view>
            <view class="fl" wx:if="{{data.type==8}}">
              <!-- <text class="pri01 pri01Hr">¥</text> -->
              <text class="pri01">{{data.salePriceStr}}</text>
              <text class='presslimit' wx:if="{{data.type==8}}"><text>{{data.pressLimitNum+'人可砍至底价'}}</text></text>
              <text class='throgh'>{{data.priceStr}}元</text>
              <text class='rest' wx:if="{{data.autoRefund == 1}}">
                <text class='time refound'><text class="use">过期不退款</text></text>
              </text>
            </view>
          </view>
          <view class='rest' wx:if="{{data.validType==2}}">自领取之日起
            <text class='time'>{{validDays}}</text>天内有效
            <text class="use">(请在有效期内使用)</text>
          </view>
          <view class='rest' wx:if="{{data.validType==1&&data.type!=10}}">
            <text class='time'>{{validStartDate}}至{{validEndDate}}</text>
          </view>
          <view class='rest' wx:if="{{data.type==5}}">
            <text class='time'>当次有效</text>
          </view>
          <view class='rest' wx:if="{{data.type==1}}">
            <text class='txt01'>使用条件:</text>
            <text class='time'>满{{data.usePriceStr}}元可用</text>
          </view>
          <view class='rest' wx:if="{{data.sendType!=3}}">
            <!-- <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>
            <text class="restNum fr">剩余<text>{{data.remainInventory}}张</text></text>
          </view>
        </view>
      </view>
      <!-- 适用门店 -->
      <store merchantVoList="{{merchantVoList}}" wx:if="{{data.type!=12}}"></store>
      <!-- 券包子券样式 -->
      <!-- <view class="childText">购买须知</view> -->
      <view class="childBox">
        <view class="childItem" wx:for="{{data.giftCouponList}}" bindtap="gochild" data-id="{{item.id}}" wx:key="index">
          <image class="childImg" mode='widthFix' src="{{item.coverImg}}"></image>
          <view class="childName">{{item.title}}</view>
          <view class="childMoney">¥{{item.priceStr}}</view>
        </view>
      </view>
      <view class='notes'>
        <view>
          <text>购买须知</text>
        </view>
        <view wx:if="{{data.contentType==0}}">
          <text><text class='spot'></text>{{data.remark}}</text>
        </view>
        <view wx:if="{{data.contentType==1}}">
          <rich-text nodes="{{curHtml}}"></rich-text>
        </view>
      </view>
      <view wx:if="{{couponList.length!=0}}" style="color: #333;letter-spacing: 0;font-size: 30rpx;height: 70rpx;line-height: 70rpx;margin-left: 35rpx;">其他活动</view>
      <view class='couponsL clearfix'>
        <c-coupons wx:if="{{couponList.length!=0}}" wx:for="{{couponList}}" from="fromMerchant" paramAtoB="{{loading}}" wx:key="unique" data="{{item}}" list="{{couponList}}" />
      </view>
      <view class='detailImg' wx:if="{{detailPicture.length>0}}">
        <image wx:for="{{detailPicture}}" wx:key="index" wx:for-item="item" src='{{item}}' mode='widthFix'></image>
      </view>
    </view>
    <form bindsubmit="gotopay" data-type='{{data.type}}' report-submit='true'>
      <view class="buy-view app-border-top" style="position:fixed;z-index:{{zIndex}};">
        <button class='goback' bindtap='goback'>
          <image src='{{homeSelectedO}}' mode="widthFix"></image>
          <text class='btnTxt'>首页</text>
        </button>
        <button form-type="submit" disabled='{{showbutton}}' hover-class='active' class='buy' wx:if="{{data.type!=11&&data.type!=8&&data.type!=50&&data.type!=51&&data.salePriceStr!=0&&data.remainInventory!=0&&endtime!='活动已结束'&&data.activityStatus!=0}}">
          <text class='txt'>{{data.salePriceStr}}元</text>马上购买</button>
        <button wx:if="{{data.type==11}}" bindtap="gohome" data-couponchannelid="{{couponChannelId}}" data-couponid="{{couponId}}" data-shippingtype="2" class="home">配送到家
        </button>
        <button wx:if="{{data.type==11}}" bindtap="gohome" data-couponchannelid="{{couponChannelId}}" data-couponid="{{couponId}}" data-shippingtype="1" class="arrive">到店购买
        </button>
        <button form-type="submit" disabled='{{showbutton}}' class='buy' wx:if="{{data.type!=8&&data.type!=50&&data.type!=51&&data.salePriceStr==0&&data.remainInventory!=0&&endtime!='活动已结束'&&data.activityStatus!=0}}">免费领取</button>
        <button form-type="submit" disabled='{{showbutton}}' class='buy' wx:if="{{data.type==51&&data.remainInventory!=0||data.type==50&&data.remainInventory!=0}}">马上兑换</button>
        <button class='buy buyHr' disabled='true' wx:if="{{data.sendType!=3&&(data.remainInventory==0&&endtime!='活动已结束'||data.remainInventory==0&&data.type==8)}}">已售罄</button>
        <button class='buy' disabled='true' wx:if="{{data.remainInventory==0&&data.type==50||data.remainInventory==0&&data.type==51}}">已兑完</button>
        <button class='buy' disabled='true' wx:if="{{endtime=='活动已结束'&&data.activityStatus!=0}}">活动已结束</button>
        <button class='buy' disabled='true' wx:if="{{total_micro_second<=0&&data.activityStatus!=0}}">活动已结束</button>
        <button id='noBuy' disabled='true' wx:if="{{data.activityStatus==0}}">活动未开始</button>
      </view>
    </form>
  </view>
  <view wx:if="{{data.remainInventory!=0&&data.type==8}}" class="btns clearfix" hover-class="none" hover-stop-propagation="false">
    <button class='goback' bindtap='goback'>
      <image src='{{homeSelectedO}}' mode="widthFix"></image>
      <text class='btnTxt'>首页</text>
    </button>
    <form bindsubmit="gotopay" report-submit='true' class="fl">
      <button form-type="submit" style='background:transparent;color:#fff;' data-discount='discount1' disabled='{{showbutton}}'>
        <text>¥{{data.priceStr}}</text>
        <text>立即购买</text>
      </button>
    </form>
    <form bindsubmit="inviteFriend" report-submit='true' class="fr">
      <button form-type="submit" style='background:{{!showbutton1?"transparent":"#ccc"}};color:#fff;font-size:32rpx;line-height:94rpx;border-radius:60rpx;' disabled='{{showbutton1}}'>
        发起砍价
      </button>
    </form>
  </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 class='shaddow' wx:if='{{showCardOffer}}'></view>
  <view class='alert-box' wx:if='{{showCardOffer}}'>
    <view class='user-img'>
      <image src='{{cardData.avatarUrl}}'></image>
    </view>
    <view class='close' bindtap='closeAlert'>
      <image src='{{close02}}'></image>
    </view>
    <view class='a-title' wx:if='{{!isSamePeople&&isReceived}}'>{{cardData.userName}}</view>
    <view class='a-title' wx:if='{{!isSamePeople&&!isReceived}}'>{{cardData.userName+'送您一张消费卡'}}</view>
    <view class='a-title' wx:if='{{isSamePeople&&!isReceived}}'>等待好友领取</view>
    <view class='a-title' wx:if='{{isSamePeople&&isReceived}}'>{{cardData.userName}}</view>
    <view class='a-img'>
      <image src='{{cardData.coverImg}}'></image>
      <view class='a-received' wx:if="{{isReceived}}">{{statusText}}</view>
    </view>
    <button type="primary" wx:if='{{!isSamePeople&&!isReceived}}' disabled='{{receivedDisabled}}' class='support-tansfer' bindtap='checkPhoneStatus'>领取</button>
    <button type="primary" wx:if='{{isSamePeople||isReceived}}' class='support-tansfer' bindtap='closeAlert'>关闭</button>
  </view>
  <!-- 分享弹框 -->
  <!-- <c-shareposter  bind:myevent="" class="business" couponChannelId="{{data.id}}" wx:if="{{isshowposter}}"/> -->
  <!-- 分享弹框 -->
  <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>
 |