user-info.wxml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 disabled">15919136555</view>
  29. </view>
  30. <view class="info-item">
  31. <view class="label">邮箱</view>
  32. <view class="content">
  33. <input value="{{ userInfo.email }}" data-key="email" bindinput="bindInput" placeholder="请输入邮箱地址" />
  34. </view>
  35. </view>
  36. <view class="info-item">
  37. <view class="label">公司全称</view>
  38. <view class="content"><input value="{{ userInfo.companyName }}" data-key="companyName" bindinput="bindInput" placeholder="请输入公司全称" /></view>
  39. </view>
  40. <view class="info-item">
  41. <view class="label">公司地址</view>
  42. <view class="content"><input value="{{ userInfo.companyAddress }}" data-key="companyAddress" bindinput="bindInput" placeholder="请输入公司地址" /></view>
  43. </view>
  44. <view class="info-item">
  45. <view class="label">职位</view>
  46. <view class="content"><input value="{{ userInfo.companyPosition }}" data-key="companyPosition" bindinput="bindInput" placeholder="请输入职位" /></view>
  47. </view>
  48. <view class="info-item">
  49. <view class="label">公司所在行业</view>
  50. <view class="content">
  51. <picker bindchange="bindPickerChange" value="{{index}}" range="{{tradeList}}">
  52. <view class="picker">
  53. {{ userInfo.companyTrade || '请选择行业' }}
  54. <text class="iconfont iconscene_tit_arrow" />
  55. </view>
  56. </picker>
  57. </view>
  58. </view>
  59. <view class="info-item">
  60. <view class="label">固定电话</view>
  61. <view class="content"><input value="{{ userInfo.telNum }}" data-key="telNum" bindinput="bindInput" placeholder="区号-座机号" /></view>
  62. </view>
  63. <view class="submit-w">
  64. <view class="submit-btn" bindtap="updateUserInfo">保存</view>
  65. </view>
  66. </view>