add-client.wxml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <view class="add-con">
  2. <view class="c-info">
  3. <van-popup show="{{ show }}" position="bottom" bind:close="onClose">
  4. <view class="pick-view">
  5. <view bindtap="handleItem" data-val="{{item.name}}" data-item="{{item.item}}" wx:for="{{popArray}}">
  6. {{item.name}}
  7. </view>
  8. <view bindtap="onClose" class="p-cancel">
  9. 取消
  10. </view>
  11. </view>
  12. </van-popup>
  13. <view class="add-item">
  14. <text>客户信息</text>
  15. </view>
  16. <view class="add-item">
  17. <text>手机号码</text>
  18. <input placeholder="请输入手机号码" disabled="{{ is_edit }}" value="{{ params.user_phone }}" bindblur="getUserList" bindinput="bindInput" data-key="params.user_phone"></input>
  19. </view>
  20. <view class="add-item">
  21. <text>姓名</text>
  22. <input bindinput="bindInput" value="{{ params.user_name }}" data-key="params.user_name" placeholder="请输入姓名"></input>
  23. </view>
  24. <view class="add-item">
  25. <text>号码归属地</text>
  26. <input bindinput="bindInput" value="{{ params.user_phone_belong }}" data-key="params.user_phone_belong" placeholder="请输入号码归属地"></input>
  27. <!-- <span class="subtxt">{{params['user_phone_belong']||'暂无信息'}}</span> -->
  28. </view>
  29. <view class="add-item">
  30. <text>性别</text>
  31. <picker value="{{params.user_gender}}" bindchange="changeGenter" range="{{StrGenter}}">{{genderMap[params['user_gender']] || '请选择性别'}}</picker>
  32. <!-- <span class="subtxt" bindtap="showGender">{{genderMap[params['user_gender']] || ''}}</span> -->
  33. </view>
  34. <view class="add-item">
  35. <text>购房意愿强度</text>
  36. <view class="star-con">
  37. <van-rate icon-class="vi-star" allow-half="{{true}}" count="{{ 3 }}" color="#F56C6C" value="{{ params.user_wish }}" bind:change="onRateChange" />
  38. </view>
  39. </view>
  40. </view>
  41. <view class="c-more">
  42. <view class="add-item">
  43. <text>客户需求1(选填)</text>
  44. <text style="color:#1FE4DC">添加</text>
  45. </view>
  46. <view class="add-item">
  47. <text>首付预算</text>
  48. <view class="range">
  49. <input placeholder="最小" value="{{ first_budget_p1 }}" bindinput="bindInput" data-key="first_budget_p1"></input>万
  50. <text>—</text>
  51. <input placeholder="最大" value="{{ first_budget_p2 }}" bindinput="bindInput" data-key="first_budget_p2"></input>万
  52. </view>
  53. </view>
  54. <view class="add-item" bindtap="showPopup" data-type="buy_house_address">
  55. <text>购房位置</text>
  56. <view class="gsd {{params['buy_house_address']?'':'subtxt'}}">{{params['buy_house_address']||'请选择'}}<text class="iconfont iconmy_list_arrow"></text></view>
  57. </view>
  58. <view class="add-item" bindtap="showPopup" data-type="purpose">
  59. <text>置业目的</text>
  60. <view class="gsd {{params['purpose']?'':'subtxt'}}">{{params['purpose']||'请选择'}}<text class="iconfont iconmy_list_arrow"></text></view>
  61. </view>
  62. <view class="add-item">
  63. <text>面积</text>
  64. <view class="range">
  65. <input placeholder="最小" value="{{ ideal_area_1 }}" bindinput="bindInput" data-key="ideal_area_1"></input>平
  66. <text>—</text>
  67. <input placeholder="最大" value="{{ ideal_area_2 }}" bindinput="bindInput" data-key="ideal_area_2"></input>平
  68. </view>
  69. </view>
  70. <view class="add-item" bindtap="showPopup" data-type="rooms">
  71. <text>居室</text>
  72. <view class="gsd {{params['rooms']?'':'subtxt'}}">{{params['rooms']||'请选择'}}<text class="iconfont iconmy_list_arrow"></text></view>
  73. </view>
  74. </view>
  75. <view class="c-beizhu">
  76. <view class="add-item">
  77. <text>备注</text>
  78. </view>
  79. <view class="ta-con">
  80. <textarea focus="{{true}}" bindblur="hideText" value="{{ params.remarks }}" wx:if="{{textShow}}" bindinput="bindInput" data-key='params.remarks' placeholder="请输入备注内容"></textarea>
  81. <view class="textarea" wx:else bindtap="showText">{{params.remarks || '请输入备注内容'}}</view>
  82. <view class="tip">{{params.remarks.length}}/200</view>
  83. </view>
  84. </view>
  85. <view class="submit-con">
  86. <view bindtap='handleSubmit' class="btn">
  87. 提交
  88. </view>
  89. </view>
  90. </view>