center.wxml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. </view>
  12. </view>
  13. <view class='main'>
  14. <view class='context'>
  15. <view class='context_input'>
  16. <view class='input_view'>
  17. <view class="input_text_view">
  18. <image class='account_img' src='/images/account.png'></image>
  19. <text class="input_text">用户名</text>
  20. </view>
  21. <input disabled='true' value='{{userInfo.loginName}}'></input>
  22. </view>
  23. <view class='input_view'>
  24. <view class="input_text_view">
  25. <image class='man_img' src='/images/man.png'></image>
  26. <text class="input_text">性别</text>
  27. </view>
  28. <input wx:if='{{userInfo.sex==1}}' disabled='true' type='text' placeholder-class='placeholder' value='男'></input>
  29. <input wx:if='{{userInfo.sex==2}}' disabled='true' type='text' placeholder-class='placeholder' value='女'></input>
  30. <picker wx:if='{{userInfo.sex==null||(userInfo.sex!=1&&userInfo.sex!=2)}}' class="picker" bindchange="inputSex" range-key="text" range="{{sexType}}">
  31. <text wx:if='{{sexIndex==null}}'>请选择性别</text>
  32. <text wx:if='{{sexIndex!=null}}'>{{sexType[sexIndex].text}}</text>
  33. </picker>
  34. </view>
  35. <view class='input_view'>
  36. <view class="input_text_view">
  37. <image class='phone_img' src='/images/phone.png'></image>
  38. <text class="input_text">电话</text>
  39. </view>
  40. <input placeholder='请输入电话' maxlength='11' bindinput='inputPhone' type='number' placeholder-class='placeholder' value='{{phone}}'></input>
  41. </view>
  42. <view class='input_view'>
  43. <view class="input_text_view">
  44. <image class='email_img' src='/images/email.png'></image>
  45. <text class="input_text">邮箱</text>
  46. </view>
  47. <input placeholder='请输入邮箱' maxlength='48' bindinput='inputEmail' type='text' placeholder-class='placeholder' value='{{email}}'></input>
  48. </view>
  49. </view>
  50. <view class="errorMsg">
  51. <text>{{errorMsg}}</text>
  52. </view>
  53. <button class='{{checkPass?"login_button":"login_button_disable"}}' bindtap="{{checkPass?'bindUpdateUser':''}}">
  54. 保存
  55. </button>
  56. </view>
  57. </view>