<view class='container mt16'>
  <view class='form' hover-class='none' hover-stop-propagation='false'>
    <form catchsubmit='beforeFormSubmit' class='form'>
      <view class='cellBox' hover-class='none' hover-stop-propagation='false'>
        <view class='weui-cell'>
          <view class='weui-cell__hd'>
            <label class='weui-label c6'>
              <!-- <text class="cfred">*</text> -->
              引导语
            </label>
          </view>
          <view class='weui-cell__bd'>
            <input class='weui-input' type name='title' data-type='userName' value='{{contactInfo.title}}' placeholder='例如：详情咨询' placeholder-class='c9' />
          </view>
        </view>
        <view class='weui-cell'>
          <view class='weui-cell__hd'>
            <label class='weui-label c6'>
              <!-- <text class="cfred">*</text> -->
              称呼
            </label>
          </view>
          <view class='weui-cell__bd'>
            <input class='weui-input' type='' name='userName' data-type='tel' value='{{contactInfo.userName}}' placeholder='例如：张三' placeholder-class='c9' />
          </view>
        </view>
        <view class='weui-cell'>
          <view class='weui-cell__hd'>
            <label class='weui-label c6'>
              <!-- <text class="cfred">*</text> -->
              手机号
            </label>
          </view>
          <view class='weui-cell__bd'>
            <input class='weui-input' type='number' name='tel' data-type='tel' value='{{contactInfo.tel}}' placeholder='请输入手机号' placeholder-class='c9' />
          </view>
        </view>
      </view>
      <button class='loginOut normalBtn f18' style='margin-top:120px;' hover-class="thover"  form-type='submit'>
        保存
      </button>
      <view class='mt16 f14' wx:if="{{type == 'update'}}" bindtap='deleteContact' style='text-align:center;color:#576B95' hover-class='thover' hover-stop-propagation='false'>删除联系人</view>
    </form>
  </view>
</view>
