<wxs src='../../../utils/format.wxs' module="utils"></wxs>
<wxs src='../../../utils/formatFuc.wxs' module="format"></wxs>

 <view>

    
  <!-- 筛选 -->
  <van-sticky>
 
   
<view class="drop-block">
  <van-dropdown-menu active-color="#09afff">
  <van-dropdown-item value="{{ type }}" options="{{ typeList }}"  bind:change="dropdownChange"/>
 
</van-dropdown-menu>
<view class="after-wrapper">
  
  <view class="arrow after-arrow"></view>
<view class="date-wrapper" bindtap="dateSelect">
   <view>{{date}}
   </view>
   <view class="arrow"></view>

</view>
</view>
</view>

  </van-sticky>
 
 <view class="coupon-list">
   <view class="coupon-item" wx:for="{{couponList}}" wx:key="index">
      <view class="coupon-left"> 
        <view class="name">{{item.name}}</view>
        <view class="date">{{item.date}}</view>
      </view>
      <view class="coupon-right" bindtap="showOrderCoupon">
       <view>立即</view>
       <view>开单</view>
      </view>
    
   </view>
 </view>

 <view class="no-msg" wx:if="{{couponList.length==0}}">暂无内容~</view>

</view>
<van-popup
  show="{{ pickerShow }}"
  position="bottom"
 
 
>
<van-datetime-picker
  type="year-month"
  value="{{ currentDate }}"
  min-date="{{ minDate }}"
  bind:confirm="onConfirm"
  bind:cancel="onCancel"
/>
</van-popup>

<!-- 课程评价 -->
<van-overlay show="{{orderShow}}" custom-style="background: rgba(194,191,191,0.61); z-index:999;"bind:click="onClickShow">
  <view class="overlay-wrapper"  >
    <view class="qrcode-wrapper" catchtap="stop"> 
       <image src="https://jzmall.lifejingzhi.com/file/wx-servant/coupon-bg.png">
       </image>
       <view class="name">
        优惠券名称：48次大促 4000-99元</view>
    </view>
   
  </view>
</van-overlay> 