<wxs module="filter" src="c_filter.wxs"></wxs>
<wxs src="filter.wxs" module="util"></wxs>
<image class="xc-coupon-img" src="{{h_pic}}">
</image>

<!-- 券内容 -->
<view class="q_content">
  <view class="item" wx:for="{{quan_list}}">

  
    <view class="xc-coupon-frame flex-center">
      <view class="coupon-frame flex rel">
          <!-- 锯齿 -->
          <view class="circle-frame abs">
              <view class='circle circle-sawtooth'></view>
              <view class='circle circle-sawtooth'></view>
              <view class='circle circle-sawtooth'></view>
              <view class='circle circle-sawtooth'></view>
              <view class='circle circle-sawtooth'></view>
              <view class='circle circle-sawtooth'></view>
              <view class='circle circle-sawtooth'></view>
              <view class='circle circle-sawtooth'></view>
              <view class='circle circle-sawtooth'></view>
              <view class='circle circle-sawtooth'></view>
              <view class='circle circle-sawtooth'></view>
              <view class='circle circle-sawtooth'></view>
              <view class='circle circle-sawtooth'></view>
              <view class='circle circle-sawtooth'></view>
              <view class='circle circle-sawtooth'></view>
              <view class='circle circle-sawtooth'></view>
              <view class='circle circle-sawtooth'></view>
              <view class='circle circle-sawtooth'></view>
              <view class='circle circle-sawtooth'></view>
              <view class='circle circle-sawtooth'></view>
          </view>

          <view class="coupon-left  rel {{filter.setcolor(item.UseObjectType)}} flex-center">

              <view class="white oval abs" style='background: {{filter.setbgcolor(item.UseObjectType)}};' wx:if="{{item.ObtainTimes>0}}">
                  <view class=" xc-valuer">x{{item.ObtainTimes}}</view>
              </view>

              <view class="white xc-money-frame">
                <view class="f_text">
                  <text class="xc-rmb-symbol">￥</text>
                  <text class="xc-rmb-val">{{item.CashSum}}</text>
                </view>

            <view class="coupon-explain" wx:if="{{item.BuySum==0}}">   
            无使用门槛            
            </view>
          <view class="coupon-explain t-c" wx:if="{{item.BuySum>0}}"> 
            满{{item.BuySum}}元可用
            </view>

          </view>
         </view>
         <view class="coupon-right flex-center rel">
            <view class="coupon-annotation  flex">

               <view class="flex  top-frame">

               <view class="frame">
                  <!-- <view class="flex"> -->
             
                      <view class="coupon-wode ib flex ellipsis-2 ">  

                               <text class="xc-brand t-c ib white {{filter.setcolor(item.UseObjectType)}}">{{filter.get_type_card(item.UseObjectType)}}
                      </text>
                         {{item.PrivilegeName}}
                      <!-- </view> -->
                    </view>
                    <view class="coupon-time">
                      {{filter.format_time(now)}}至{{item.Validay}}</view>
                   </view>
               </view>
                   <view wx:if="{{item.Obtain>0}}" class="code-img" bindtap="show_quan" data-ind="{{index}}"  data-now="{{filter.format_time(now)}}">
                       <image class="coupon-code" src='{{iurl}}/miniapp/images/user_r_code.png'></image>
                   </view>
                   <view wx:else class="code-img">
                       <image class="coupon-code" src='{{iurl}}/miniapp/images/hui-ewm.png'></image>
                   </view>
             </view>

           <view class="clik-get t-c white five-level-word abs {{item.get_quan_ing?'g_gray':filter.setcolor(item.UseObjectType)}} "
                   wx:if="{{item.ObtainTimes>0 || item.SecondNo==0 }}" bindtap="get_quan" data-ind="{{index}}" > {{item.get_quan_ing?'领取中':'立即领取'}}</view>
           <view class="clik-get t-c white five-level-word abs g_gray" wx:else  bindtap="get_out" data-ind="{{index}}"
                    >已领取</view>

            
           <view class="abs flex-vertical-between bottmo-explain" bindtap='clik_coupon' data-ind="{{index}}">
               <view></view>
           <view class="font-word flex">优惠券使用说明
           <view class="circle circle-size flex t-c">
           <view class="xc-jiantou"></view>
           </view>
           </view>
           </view>
        </view>
      </view>

    </view>
    <view class="xc-buttom "wx:if="{{item.is_open==1}}">
        <view style="padding: 10rpx">
           <text class="five-level-word  explain-coupon">{{util.format(item.Remark)}}</text>
        </view>
    </view>
  </view>

		<block wx:if="{{is_get}}">
			<!-- 没有更多数据 -->
			<view class="noMore 1">—— 已经到底了 ——</view>
		</block>
</view>

<!-- 弹出框扫描 -->
<qr_code id="qc_com"></qr_code>
<pop_txt id="pop_txt"></pop_txt>
<warn id="warn"></warn>











