center.wxml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!--pages/ucenter/center/center.wxml-->
  2. <!-- <view class='title'>
  3. </view> -->
  4. <view class="container">
  5. <view class="user_text">
  6. <!--<open-data class="userAvatarUrl" bindtap="" type='userAvatarUrl'></open-data>-->
  7. <view class="userAvatarUrl" bindtap="">
  8. <image src='{{isLogin&&!userInfo.flag?userInfo.avatar:"/images/userhead.png"}}'></image>
  9. </view>
  10. <text class='bold'>{{userInfo.userName}}</text>
  11. <text class="edit">更换头像</text>
  12. </view>
  13. </view>
  14. <view class='main'>
  15. <view class='context'>
  16. <view class='context_input'>
  17. <view class='input_view'>
  18. <view class="input_text_view">
  19. <!-- <image class='account_img' src='/images/account.png'></image> -->
  20. <text class="input_text">用户名</text>
  21. </view>
  22. <input disabled='true' value='{{userInfo.loginName}}'></input>
  23. </view>
  24. <view class='input_view'>
  25. <view class="input_text_view">
  26. <!-- <image class='man_img' src='/images/man.png'></image> -->
  27. <text class="input_text">性别</text>
  28. </view>
  29. <!-- <input wx:if='{{userInfo.sex==1}}' disabled='true' type='text' placeholder-class='placeholder' value='男'></input>
  30. <input wx:if='{{userInfo.sex==2}}' disabled='true' type='text' placeholder-class='placeholder' value='女'></input>
  31. <input wx:if='{{userInfo.sex==3}}' disabled='true' type='text' placeholder-class='placeholder' value='保密'></input> -->
  32. <picker class="picker" bindchange="inputSex" range-key="text" range="{{sexType}}">
  33. <text wx:if='{{ sexIndex==null}}'>请选择性别</text>
  34. <text wx:if='{{ sexIndex!=null}}'>{{sexType[sexIndex-1].text}}</text>
  35. </picker>
  36. <view class="zan-ft">
  37. <image src='/images/enter.png'></image>
  38. </view>
  39. </view>
  40. <view class='input_view'>
  41. <view class="input_text_view">
  42. <!-- <image class='email_img' src='/images/email.png'></image> -->
  43. <text class="input_text">邮箱</text>
  44. </view>
  45. <input disabled='true' bindtap="inputEmail" type='text' placeholder-class='placeholder' value='{{!userInfo.email?"去填写":userInfo.email}}'>
  46. </input>
  47. <view class="zan-ft">
  48. <image src='/images/enter.png'></image>
  49. </view>
  50. </view>
  51. <view class='input_view'>
  52. <view class="input_text_view">
  53. <text class="input_text">车牌号</text>
  54. </view>
  55. <input disabled='true' bindtap="inputCarNum" type='text' placeholder-class='placeholder' value='{{!userInfo.license_number?"去填写":userInfo.license_number}}'>
  56. </input>
  57. <view class="zan-ft">
  58. <image src='/images/enter.png'></image>
  59. </view>
  60. </view>
  61. </view>
  62. <!-- <view style="width: 100%;margin-top:50rpx">
  63. <ad unit-id="adunit-8eb13875bcf592b0" ad-intervals="30"></ad>
  64. </view> -->
  65. <view class="errorMsg">
  66. <text>{{errorMsg}}</text>
  67. </view>
  68. </view>
  69. </view>