seckill-detail.wxml 3.03 KB
<wxs module="filter" src="../../utils/utilswxs.wxs"></wxs>
<view class="page">
  <view class="app__bgc bgc"></view>
  <view class="app__bg bg"></view>
  <!-- <view class="app__top-shadow"></view> -->
  <view class="app__content main">
    <view class="top-space"></view>
    <view class="content">
      <!-- 产品图 -->
      <view class="img-wrap">
        <swiper class="swiper" indicator-color="rgba(0,0,0,.3)" indicator-active-color="rgba(255,255,255,1)" indicator-dots="{{true}}" autoplay="{{true}}" interval="{{5000}}" duration="{{500}}">
          <block wx:for="{{productInfo.seckillImages}}" wx:key="{{index}}">
            <swiper-item>
              <image class="swiper-image" src="{{item}}" mode="aspectFit" />
            </swiper-item>
          </block>
        </swiper>
      </view>
      <!-- 价格栏 -->
      <view class="func">
        <view class="arrow"></view>
        <view class="func-ele func-left">
          <text class="price">¥{{filter.Fen2Yuan(productInfo.specialPrice)}}</text>
          <text class="t1 line-th">¥{{filter.Fen2Yuan(productInfo.originalPrice)}}</text>
          <text class="t1">仅剩{{productInfo.stock}}个</text>
        </view>
        <view class="func-ele func-right {{productInfo.status != 1 || isTimeEnd ? 'disable' : ''}}">
          <text wx:if="{{productInfo.status == 0}}" class="t1 t2">秒杀未开始</text>
          <text wx:if="{{productInfo.status == 1}}" class="t1">秒杀进行中</text>
          <text wx:if="{{productInfo.status == 2}}" class="t1 t2">秒杀已结束</text>
          <text wx:if="{{productInfo.status == 1}}" class="t1 date">{{lastTime}}</text>
        </view>
      </view>
      <!-- 描述 -->
      <view class="desc">
        <view class="desc-tit">{{productInfo.seckillName}}</view>
        <!-- <view class="desc-t1">{{productInfo.seckillDescription}}</view> -->
        <text class="desc-t1">{{productInfo.seckillDescription}}</text>
        <view class="desc-t1">
          秒杀数量:{{productInfo.minNum == productInfo.maxNum ? productInfo.minNum+'个' :  productInfo.minNum+' - '+productInfo.maxNum+'个'}}
        </view>
        <view class="desc-t1">活动区域:{{productInfo.district}}</view>
      </view>
    </view>
    <!-- 按钮 -->
    <view bindtap="onSubmitHandler" class="submit-btn {{productInfo.status != 1 || isTimeEnd ? 'disable' : ''}}">
      立即秒杀
    </view>
  </view>
</view>
<van-popup show="{{ authorizeVisible }}">
  <authorize-comp bind:evtcomp="evtcomp"></authorize-comp>
</van-popup>
<van-popup show="{{ seckillOrderVisible }}">
  <seckill-order-comp id="seckillOrderComp" product-info="{{productInfo}}" user-info="{{userInfo}}" order-status="{{orderStatus}}" is-sell-out="{{isSellOut}}" bind:evtcomp="evtcomp"></seckill-order-comp>
</van-popup>
<van-popup show="{{ commonTipsCompVisible }}">
  <common-tips-comp bind:evtcomp="evtcomp" inner-title="{{innerTitle}}" inner-text="{{innerText}}"></common-tips-comp>
</van-popup>

<van-popup show="{{ signTipsCompVisible }}">
  <sign-tips-comp bind:evtcomp="evtcomp"></sign-tips-comp>
</van-popup>