<!--packageD/warranty/warrantyind/warrantyind.wxml-->
<view class="topBox">
    <view class="topBox_box">
      <view class=" box_left">
        <icon class="iconfont icon-all_baozhang"></icon>
        <view>保单数量:{{goods_length}}</view>
      </view>
      <view class="box_right" catchtap="tapAdd">
        添加保单
      </view>
    </view>
</view>

<view class="baodan" wx:for="{{datas}}" wx:key="index">
  <view class="conter_box">
    <view class="fir">
      <view class="fir_left">序号：{{item.serial_number}}</view>
      <view class="fir_right">
        {{ item.shop_name }}
        <icon class="iconfont icon-all_more" catchtap="edshow" data-lis="{{index}}"></icon>
        <view class="posabox" wx:if="{{item.edit_active}}">
          <view style="font-size: 14px;" catchtap="edit" data-id="{{item.id}}">
            <icon class="iconfont icon-edit" style="margin:0;"></icon>编辑
          </view>
          <view style="font-size: 14px;" catchtap="delete" data-id="{{item.id}}">
            <icon class="iconfont icon-delete" style="margin:0;"></icon>删除
          </view>
        </view>
      </view>
    </view>
    <view class="fir" catchtap="gojilu" data-id="{{item.id}}" style="margin: 20rpx 0;">
      <view class="two_left">查看记录</view>
      <view class="fir_right">
        <van-icon name="arrow" color="#cecece"></van-icon>
      </view>
    </view>
    <view class="fir" wx:if="{{item.is_pay}}">
      <view class="two_left">支付时间</view>
      <view class="fir_right">
        <view class="time">{{item.is_time}}</view>
        <view class="time_status">{{item.lo_time}}</view>
      </view>
    </view>
    <view class="bottom"></view>
    <view class="btn">
      <view class="btn_fir" wx:if="{{item.is_pay&&pay_status=='1'}}">已支付</view>
      <view class="btn_fir" wx:if="{{!item.is_pay&&pay_status=='1'}}" catchtap="goPay" data-id="{{item.id}}" data-supplier_id="{{item.supplier_id}}">未支付</view>
      <view class="btn_two" catchtap="showpop" wx:if="{{item.is_pay&&renew_status=='1'}}" data-id="{{item.id}}">一键续保</view>
    </view>
  </view>
</view>
<van-popup show="{{show1}}" bind:click-overlay="isCoverLayer">
  <view class="tostBox">
    <view class="tishi">
      提示
      <view class="postion_icon" catchtap="isCoverLayer">
        <van-icon name="cross" color="#999999"/>
      </view>
    </view>
    <view class="tishi_txt">
      暂不可用，如需修改，请拨打15237861276或154568987809
    </view>
    <view class="tishi_btn" catchtap="callphoto">
      一键拨号
      <!-- <button></button>   -->
    </view>
  </view>
</van-popup>
<van-popup show="{{show2}}" bind:click-overlay="isCoverLayer">
  <view class="twoBox">
    <view class="classList">
      <view class="clist">
        <view>1343521248</view>
        <view class="callbtn">呼叫</view>
      </view>
      <view class="clist">
        <view>1343521248</view>
        <view class="callbtn">呼叫</view>
      </view>
    </view>
    <view class="delbtn" catchtap="tapdel">取消</view>
  </view>
</van-popup>