<wxs src='../../../utils/formatFuc.wxs' module="utils"></wxs>
<view class="container">

  <view class="card-title">合作协议</view>
  <view class="card">
    <view class="state">
      {{state}}
    </view>
    <view class="sign-time" wx:if="{{state!='未签约'}}" style="font-size:32rpx;">合同发起时间：{{signTime}}</view>
    <view class="sign-btn" wx:if="{{state=='未签约'}}" bindtap="signContract">
      发起签约
    </view>
    <view class="view-btn" wx:if="{{state!='未签约'}}" bindtap="viewContract">
      查看
    </view>
  </view>

  <view wx:if="{{ofJz==293}}">
    <view class="card-title">新农保告知书</view>
    <view class="card1" wx:if="{{nbstate=='未签约'}}">
      <view class="title">1.是否缴纳过【新型农村养老保险】</view>
      <view class="input-value">
        <van-cell-group>
          <van-field value="{{ insuranceA }}" placeholder="若是,请填写缴纳地区(例如河南省郑州市)" placeholder-style="color:#333!important" bind:change="onChangeA" />
        </van-cell-group>
      </view>
      <view class="title">2.是否缴纳过【新型农村合作医疗保险】</view>
      <view class="input-value">
        <van-cell-group>
          <van-field value="{{ insuranceB }}" placeholder="若是,请填写缴纳地区(例如河南省郑州市)" bind:change="onChangeB" placeholder-class="place" />
        </van-cell-group>
      </view>
      <view class="title">3.是否缴纳过【社会保险】</view>
      <view class="input-value">
        <van-cell-group>
          <van-field value="{{ insuranceC }}" placeholder="若是,请填写缴纳地区(例如河南省郑州市)" bind:change="onChangeC" />
        </van-cell-group>
      </view>
      <view class="tip">以上若未缴纳过，则无需填写</view>
      <view class="btn" bindtap="initiateSigning">
        发起签约
      </view>
    </view>
    <view wx:else class="card">
      <view class="state">
        {{nbstate}}
      </view>
      <view class="sign-time" style="font-size:32rpx;">合同发起时间：{{nbsignTime}}</view>
      <view class="view-btn" bindtap="viewnbContract">
        查看
      </view>
    </view>
  </view>

</view>