user-info.wxml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <view class="user-info-w">
  2. <view class="info-item">
  3. <view class="label">我的头像</view>
  4. <view class="content" bindtap="chooseImage">
  5. <image class="avatar" src="{{userInfo.avatar}}" />
  6. <icon icon="my_list_arrow" class="icon" size="12" />
  7. </view>
  8. </view>
  9. <view class="info-item">
  10. <view class="label">姓名</view>
  11. <view class="content"><input value="{{userInfo.name}}" data-key="name" bindinput="bindInput" placeholder="请输入姓名" /></view>
  12. </view>
  13. <view class="info-item">
  14. <view class="label">性别</view>
  15. <view class="content">
  16. <view class="check-item" bindtap="changeCheckStatus" data-value="1">
  17. <text class="check-box {{ userInfo.gender == 1 ? 'checked' : '' }}"></text>
  18. <text>男</text>
  19. </view>
  20. <view class="check-item" data-value="2" bindtap="changeCheckStatus">
  21. <text class="check-box {{ userInfo.gender == 2 ? 'checked' : '' }}"></text>
  22. <text>女</text>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="info-item">
  27. <view class="label">手机号码</view>
  28. <view class="content">
  29. <input value="{{ userInfo.phoneNum }}" data-key="phoneNum" bindinput="bindInput" placeholder="请输入手机号码" />
  30. </view>
  31. </view>
  32. <view class="info-item">
  33. <view class="label">邮箱</view>
  34. <view class="content">
  35. <input value="{{ userInfo.email }}" data-key="email" bindinput="bindInput" placeholder="请输入邮箱地址" />
  36. </view>
  37. </view>
  38. <view class="info-item">
  39. <view class="label">公司全称</view>
  40. <view class="content"><input value="{{ userInfo.companyName }}" data-key="companyName" bindinput="bindInput" placeholder="请输入公司全称" /></view>
  41. </view>
  42. <view class="info-item">
  43. <view class="label">公司地址</view>
  44. <view class="content"><input value="{{ userInfo.companyAddress }}" data-key="companyAddress" bindinput="bindInput" placeholder="请输入公司地址" /></view>
  45. </view>
  46. <view class="info-item">
  47. <view class="label">职位</view>
  48. <view class="content"><input value="{{ userInfo.companyPosition }}" data-key="companyPosition" bindinput="bindInput" placeholder="请输入职位" /></view>
  49. </view>
  50. <view class="info-item">
  51. <view class="label">公司所在行业</view>
  52. <view class="content">
  53. <picker bindchange="bindPickerChange" value="{{index}}" range="{{tradeList}}">
  54. <view class="picker">
  55. {{ userInfo.companyTrade || '请选择行业' }}
  56. <text class="iconfont iconscene_tit_arrow" />
  57. </view>
  58. </picker>
  59. </view>
  60. </view>
  61. <view class="info-item">
  62. <view class="label">固定电话</view>
  63. <view class="content"><input value="{{ userInfo.telNum }}" data-key="telNum" bindinput="bindInput" placeholder="区号-座机号" /></view>
  64. </view>
  65. <view class="submit-w">
  66. <view class="submit-btn" bindtap="updateUserInfo">保存</view>
  67. </view>
  68. </view>