center.wxml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. <picker wx:if='{{userInfo.sex==null||(userInfo.sex!=1&&userInfo.sex!=2)}}' class="picker" bindchange="inputSex" range-key="text" range="{{sexType}}">
  32. <text wx:if='{{sexIndex==null}}'>请选择性别</text>
  33. <text wx:if='{{sexIndex!=null}}'>{{sexType[sexIndex].text}}</text>
  34. </picker>
  35. </view>
  36. <view class='input_view'>
  37. <view class="input_text_view">
  38. <!-- <image class='phone_img' src='/images/phone.png'></image> -->
  39. <text class="input_text">电话</text>
  40. </view>
  41. <input placeholder='请输入电话' maxlength='11' bindinput='inputPhone' type='number' placeholder-class='placeholder' value='{{phone}}'></input>
  42. </view>
  43. <view class='input_view'>
  44. <view class="input_text_view">
  45. <!-- <image class='email_img' src='/images/email.png'></image> -->
  46. <text class="input_text">邮箱</text>
  47. </view>
  48. <input placeholder='请输入邮箱' maxlength='48' bindinput='inputEmail' type='text' placeholder-class='placeholder' value='{{email}}'></input>
  49. </view>
  50. </view>
  51. <view class="errorMsg">
  52. <text>{{errorMsg}}</text>
  53. </view>
  54. <button class='{{checkPass?"login_button":"login_button_disable"}}' bindtap="{{checkPass?'bindUpdateUser':''}}">
  55. 保存
  56. </button>
  57. </view>
  58. </view>