<view class="add-con">
  <view class="c-info">

    <van-popup show="{{ show }}" position="bottom" bind:close="onClose">
      <view class="pick-view">
        <view bindtap="handleItem" data-val="{{item.name}}" data-item="{{item.item}}" wx:for="{{popArray}}">
          {{item.name}}
        </view>
        <view bindtap="onClose" class="p-cancel">
          取消
        </view>
      </view>
    </van-popup>
   
    <view class="add-item">
      <text>客户信息</text>
    </view>

    <view class="add-item">
      <text>手机号码</text>
      <!-- <input placeholder="请输入手机号码" disabled="{{ is_edit }}" value="{{ params.user_phone }}" bindblur="getUserList" bindinput="bindInput" data-key="params.user_phone"></input> -->
      <input placeholder="请输入手机号码" disabled="{{ is_edit }}" value="{{ params.user_phone }}"  bindinput="bindInput" data-key="params.user_phone"></input>
    </view>

    <view class="add-item">
      <text>姓名</text>
      <input bindinput="bindInput" value="{{ params.user_name }}" data-key="params.user_name" placeholder="请输入姓名"></input>
    </view>

    <view class="add-item">
      <text>号码归属地</text>
      <input bindinput="bindInput" value="{{ params.user_phone_belong }}" data-key="params.user_phone_belong" placeholder="请输入号码归属地"></input>
      <!-- <span class="subtxt">{{params['user_phone_belong']||'暂无信息'}}</span> -->
    </view>

    <view class="add-item">
      <text>性别</text>
      <picker value="{{params.user_gender}}" bindchange="changeGenter" range="{{StrGenter}}">{{genderMap[params['user_gender']] || '请选择性别'}}</picker>
      <!-- <span class="subtxt" bindtap="showGender">{{genderMap[params['user_gender']] || ''}}</span> -->
    </view>

    <view class="add-item">
      <text>购房意愿强度</text>
      <view class="star-con">
        <van-rate icon-class="vi-star" allow-half="{{true}}" count="{{ 3 }}" color="#F56C6C" value="{{ params.user_wish }}" bind:change="onRateChange" />
      </view>
    </view>
  </view>

  <view class="c-more">
    <view class="add-item">
      <!-- <text>客户需求1（选填）</text> -->
      <text>客户需求</text>
      <!-- <text style="color:#1FE4DC">添加</text> -->
    </view>

    <view class="add-item">
      <text>首付预算</text>
      <view class="range">
        <input placeholder="最小" value="{{ first_budget_p1 }}" bindinput="bindInput" data-key="first_budget_p1"></input>万
        <text>—</text>
        <input placeholder="最大" value="{{ first_budget_p2 }}" bindinput="bindInput" data-key="first_budget_p2"></input>万
      </view>
    </view>

    <!-- <view class="add-item" bindtap="showPopup" data-type="buy_house_address">
      <text>购房位置</text>
      <view class="gsd {{params['buy_house_address']?'':'subtxt'}}">{{params['buy_house_address']||'请选择'}}<text class="iconfont iconmy_list_arrow"></text></view>
    </view> -->

    <view class="add-item" bindtap="showPopup" data-type="purpose">
      <text>置业目的</text>
      <view class="gsd {{params['purpose']?'':'subtxt'}}">{{params['purpose']||'请选择'}}<text class="iconfont iconmy_list_arrow"></text></view>
    </view>

    <view class="add-item">
      <text>面积</text>
      <view class="range">
        <input placeholder="最小" value="{{ ideal_area_1 }}" bindinput="bindInput" data-key="ideal_area_1"></input>平
        <text>—</text>
        <input placeholder="最大" value="{{ ideal_area_2 }}" bindinput="bindInput" data-key="ideal_area_2"></input>平
      </view>
    </view>

    <view class="add-item" bindtap="showPopup" data-type="rooms">
      <text>居室</text>
      <view class="gsd {{params['rooms']?'':'subtxt'}}">{{params['rooms']||'请选择'}}<text class="iconfont iconmy_list_arrow"></text></view>
    </view>
    
  </view>

  <view class="c-beizhu">
    <view class="add-item">
      <text>备注</text>
    </view>
    <view class="ta-con">
      <textarea  focus="{{true}}" bindblur="hideText" value="{{ params.remarks }}" wx:if="{{textShow}}" bindinput="bindInput"  data-key='params.remarks' placeholder="请输入备注内容"></textarea>
      <view class="textarea" wx:else bindtap="showText">{{params.remarks || '请输入备注内容'}}</view>
      <view class="tip">{{params.remarks.length}}/200</view>
    </view>
  </view>
    
  <view class="submit-con">
    <view bindtap='handleSubmit' class="btn">
      提交
    </view>
  </view>
    
    
</view>
    
  