<view class="flex-col justify-start page">
  <view class="flex-col section">
    <view class="flex-col section_2">
      <text class="self-start font text">业务员姓名</text>
      <input class="flex-col justify-start items-start view text-wrapper input"
             placeholder="请输入"
             value="{{salespersonName}}"
             bindinput="onNameInput"
             disabled="{{mode === 'view'}}" />
      <view class="self-stretch divider"></view>
      <text class="self-start font text_3">业务员手机号</text>
      <input class="flex-col justify-start items-start view text-wrapper input_1"
             placeholder="请输入"
             value="{{salespersonPhone}}"
             bindinput="onPhoneInput"
             type="number"
             maxlength="16"
             disabled="{{mode === 'view'}}" />
      <view class="self-stretch divider"></view>
    </view>
    <view style="padding-top: {{mode === 'view' ? '0' : '80.63rpx'}}" class="flex-col group">
      <!-- “申请资料报备”按钮只在新增模式显示 -->
      <view class="flex-col justify-start items-center text-wrapper_2"
            bindtap="onApply"
            wx:if="{{mode !== 'view'}}">
        <text class="font text_4">申请资料报备</text>
      </view>
      <view class="flex-col justify-start section_3 mt-27">
        <view class="section_4">
          <rich-text class="promo-desc" nodes="{{promoCodeDesc}}"></rich-text>
        </view>
      </view>
    </view>
  </view>
</view>
