CooperationApply.wxml 2.94 KB
<!-- components/CooperationApply/CooperationApply.wxml -->
<view class="apply-main">
  <view class="tab-top">
    <view wx:for="{{tabData}}" wx:key="index" class="tab-title {{item.value == tabIndex ? 'tab-title-active' : ''}}" bindtap="selectTab" data-index="{{item.value}}">
      {{item.name}}
    </view>
  </view>
  <form>
    <view class="apply-info">
      <view class='info-list'>
        <text class="info-lable">合作方式<text class="require">*</text>
        </text>
        <radio-group name="applyType" class="radio-wrap" bindchange="applyChange">
          <label class="cooperate-left">
            <radio value="1" checked />门店合作
          </label>
          <label>
            <radio value="2" />代理商合作
          </label>
        </radio-group>
      </view>
      <view class='info-list'>
        <text class="info-lable">{{tabIndex == 0 ? '门店名称' : '企业名称'}}<text class="require">*</text>
        </text>
        <input name="merchantName" type='text' placeholder-style='font-size:28rpx;color: #9E9EA8;' placeholder='请输入门店名称' value="{{applyForm.merchantName}}" bindinput="handleInput" data-name="merchantName" maxlength="30"></input>
      </view>
      <view class='info-list'>
        <text class="info-lable">{{tabIndex == 0 ? '主营品牌' : '合作品牌'}}</text>
        <input name="carModel" type='text' placeholder-style='font-size:28rpx;color: #9E9EA8;' placeholder="{{tabIndex == 0 ? '请输入主营品牌' : '请输入合作品牌'}}" value="{{applyForm.carModel}}" bindinput="handleInput" data-name="carModel" maxlength="30"></input>
      </view>
      <view class='info-list'>
        <text class="info-lable">联系人<text class="require">*</text>
        </text>
        <input name="contactName" type='text' placeholder-style='font-size:28rpx;color: #9E9EA8;' placeholder='请输入姓名' value="{{applyForm.contactName}}" bindinput="handleInput" data-name="contactName" maxlength="30"></input>
      </view>
      <view class='info-list'>
        <text class="info-lable">联系电话<text class="require">*</text>
        </text>
        <input name="contactPhone" type='text' maxlength="11" placeholder-style='font-size:28rpx;color: #9E9EA8;' placeholder='请输入手机号' value="{{applyForm.contactPhone}}" bindinput="handleInput" data-name="contactPhone"></input>
      </view>
    </view>
  </form>
  <!-- 展开收起 -->
  <view class="apply-fold" bindtap="handleFold">
      <text wx:if="{{!foldFlag}}">选择业务场景</text>
      <text wx:else>收起</text>
      <image wx:if="{{!foldFlag}}" class="fold-icon" mode="widthFix" webp src="{{IMGURL}}application/down_icon.png?v={{img_version}}"></image>
      <image wx:else class="fold-icon" mode="widthFix" webp src="{{IMGURL}}application/up_icon.png?v={{img_version}}"></image>
    </view>
  <!-- 选择产品和场景 -->
  <view class="scene-box">
    <scene id="sceneBox" foldFlag="{{foldFlag}}" selectApply="{{tabIndex}}"></scene>
  </view>
</view>