FirstStep.wxml 2.47 KB
<!-- packageUsedCar/pages/evaluationForm/components/FirstStep/FirstStep.wxml -->
<view class="firstStep">
  <view class="box employeeBox">
    <gl-form wx:if="{{ isShowObj.customer }}" id="customer" formData="{{ serviceInfo }}" dataAttrName="{{ dataAttrName }}" formDataList="{{ secondObj.customerFormList }}" bind:inputEvent="inputEvent" bind:inputBlur="inputBlur">
      <!-- 使用 slot 插入自定义内容 -->
      <view slot="referrerId" class="picker" catchtap="handleReferrerPicker">
        <image class="pickerArrow" src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/components/images/arrow-x.png" />
        <view class="text-hide" wx:if="{{evalOrderBasicReqDTO.sellerUserId}}">
          {{evalOrderBasicReqDTO.sellerName}}
        </view>
        <text class="placeholder" wx:else>请选择</text>
      </view>
      <view slot="buyNewCar" class="radio-box">
        <van-radio-group value="{{ serviceInfo.buyNewCar }}" bind:change="onBuyNewCarChange" direction="horizontal" class="flex">
          <van-radio name="{{ 1 }}">是</van-radio>
          <van-radio name="{{ 0 }}">否</van-radio>
        </van-radio-group>
      </view>
      <view slot="hasAccident" class="radio-box">
        <van-radio-group value="{{ serviceInfo.hasAccident }}" bind:change="onHasAccidentChange" direction="horizontal" class="flex">
          <van-radio name="{{ 1 }}">是</van-radio>
          <van-radio name="{{ 0 }}">否</van-radio>
        </van-radio-group>
      </view>
      <view slot="conditionDescription" class="textarea-box">
        <view class="textArea_box">
          <textarea value="{{ serviceInfo.conditionDescription }}" placeholder="请输入(200字以内)" class="textarea" maxlength="200" bindinput="handleInput" />
          <view class="currentWordNumber">
            {{serviceInfo.conditionDescription.length || 0}} / 200
          </view>
        </view>
        <!-- <van-field type="textarea" class="textarea" custom-style="padding: var(--fontSize20) 0; font-size: var(--fontSize28); min-height: 100rpx;" value="{{serviceInfo.conditionDescription}}" autosize placeholder="请输入(200字以内)" maxlength="200" bindinput="handleInput" /> -->
      </view>
    </gl-form>
  </view>
</view>
<!-- popup 和 picker 组件已移到页面级别(addEvaluationForm.wxml),避免被 scroll-view 遮挡 -->
<!-- van-dialog 组件(必须在 wxml 中引入) -->
<van-dialog id="van-dialog" custom-class="firstStep-dialog" confirm-button-color="#347BFF" z-index="99999" />