<view class="container">
  <form catchsubmit="submit">
    <view class="weui-cells__group weui-cells__group_form">
      <view class="weui-cells weui-cells_form br8">
        <view class="weui-cell h56">
          <view class="weui-cell__hd">
            <view class="" style="width:100px"><text style="color:#E4000C;font-size: 25px;position: absolute;left:6px;top: 14px;">*</text>申请人名称</view>
          </view>
          <view class="weui-cell__bd">
            <input name="userName" type="text" bindinput="bothwayBind" data-type="userName" value="{{submitObj.userName}}" class="weui-input tr" placeholder="请输入申请人名称" placeholder-class="weui-input__placeholder" />
          </view>
        </view>
        <view class="weui-cell h56">
          <view class="weui-cell__hd">
            <label class="weui-label"><text style="color:#E4000C;font-size: 25px;position: absolute;left:6px;top: 14px;">*</text>联系电话</label>
          </view>
          <view class="weui-cell__bd">
            <input name="tel" type="number" maxlength="11" bindinput="bothwayBind" data-type="tel" value="{{submitObj.tel}}" class="weui-input tr" placeholder="请输入联系电话" placeholder-class="weui-input__placeholder" />
          </view>
        </view>
      </view>
    </view>
    
    <view class="weui-cells__group weui-cells__group_form mt10" wx:if="{{!iosDialogTobe}}">
      <view class="weui-cells weui-cells_form br8">
        <view class="weui-cell h56">
          <view class="weui-cell__hd p0">
            <label class="weui-label m0">企业名称</label>
          </view>
          <view class="weui-cell__bd textarea tr">
            <textarea name="companyName" value="{{submitObj.companyName}}" bindinput="bothwayBind" data-type="companyName" class="weui-textarea" placeholder="请输入企业名称" style placeholder-class="weui-input__placeholder" auto-height="true"></textarea>
          </view>
        </view>
        <view class="weui-cell">
          <view class="weui-cell__hd p0">
            <label class="weui-label m0">企业地址</label>
          </view>
          <view class="weui-cell__bd textarea tr">
            <textarea name="address" value="{{submitObj.address}}" class="weui-textarea" placeholder="请选择企业地址" style placeholder-class="weui-input__placeholder" auto-height="true"></textarea>
          </view>
          <view>
            <i class="iconfont icon-dingwei pl8" bindtap="chooseMap" style="padding:8px 0 8px 8px;"></i>
          </view>
        </view>
      </view>
    </view>
    <view class="weui-cells__group weui-cells__group_form mt10" wx:if="{{!iosDialogTobe}}">
      <view class="weui-cells weui-cells_form br8">
        <view class="weui-cell h56">
          <view class="weui-cell__hd p0">
            <label class="weui-label m0">备注</label>
          </view>
          <view class="weui-cell__bd textarea tr">
            <textarea name="desp" value="{{submitObj.desp}}" bindinput="bothwayBind" data-type="desp" class="weui-textarea" placeholder="请输入备注" style placeholder-class="weui-input__placeholder" auto-height="true"></textarea>
          </view>
        </view>
      </view>
    </view>

    <view class="imgContainer mt32 fsa" wx:if="{{!iosDialogTobe}}">
      <view class bindtap="chooseImg" data-type="yyzz" hover-class="none" hover-stop-propagation="false">
        <view class="fw500">营业执照</view>
        <view class="updateimg" hover-class="none" hover-stop-propagation="false">
          <image wx:if="{{submitObj.businessLicensePic}}" class src="{{submitObj.businessLicensePic}}" mode="aspectFit" lazy-load="false" binderror bindload></image>

          <i class="iconfont icon-paizhao3 c9"></i>
        </view>
      </view>
      <view class="ml12" bindtap="chooseImg" data-type="mtzp" hover-class="none" hover-stop-propagation="false">
        <view class="fw500">门头照片</view>
        <view class="updateimg" hover-class="none" hover-stop-propagation="false">
          <image wx:if="{{submitObj.companyPic}}" class src="{{submitObj.companyPic}}" mode="aspectFit" lazy-load="false" binderror bindload></image>
          <i class="iconfont icon-paizhao3 c9"></i>
        </view>
      </view>
    </view>
    <button class="loginOut normalBtn submit {{recording ? 'recording' : ''}}" formType="submit" wx:if="{{!iosDialogTobe}}">{{recording?'已申请':'提交申请'}}</button>
    <view class="connectManager fw500 f14" hover-class="none" hover-stop-propagation="false" bindtap="showTobe" wx:if="{{!iosDialogTobe}}">联系客户经理</view>
  </form>
</view>
<view aria-role="dialog" catchtouchmove="modalMove" aria-modal="true" class="fadeIn" wx:if="{{iosDialogTobe}}" style="z-index: 99998;">
  <view class="weui-mask"></view>
  <view class="weui-dialog contact tobe" style="box-sizing:border-box;z-index: 99999;">
    <i class="iconfont icon-guanbi guanbi c6 biggerSize" bindtap="closeTobe"></i>
    <view class="weui-dialog__hd">
      <view class="f20 bbd1 top" hover-class="none" hover-stop-propagation="false">
        <view class="fw500" hover-class="none" hover-stop-propagation="false">申请加入伯才</view>
        <view class="f16 c6" hover-class="none" hover-stop-propagation="false">请联系客户经理</view>
      </view>
      <view class="bottom" hover-class="none" hover-stop-propagation="false">
        <view class hover-class="none" hover-stop-propagation="false">
          <view class="fw500 f18" hover-class="none" hover-stop-propagation="false">客户经理</view>
          <view class="c3 f14">
            {{serviceInfo.userName }}
            <i class="mr4"></i>
            <p class>{{serviceInfo.tel || '0371-6611 3723'}}</p>
          </view>
          <image src="{{serviceInfo.qrCode}}" show-menu-by-longpress="{{true}}" style="width: 161px;height: 161px;"></image>
          <view class="f14 c9 mt6">长按识别二维码</view>
        </view>
      </view>
    </view>
  </view>
</view>


