add-client.wxml 4.4 KB

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