user.wxml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <view>
  2. <auth bindlogin="loginSuccess" />
  3. <view class="photo">
  4. <view class="userinfo-avatar" bindtap="selectPhoto" style="background-image: url({{avatar}})">
  5. </view>
  6. <text class="userinfo-nickname">点击修改头像</text>
  7. <!-- {{userInfo.nickName}} -->
  8. </view>
  9. <view class="info">
  10. <view class="item">
  11. <text>用户昵称</text>
  12. <view class="ir">
  13. <input value="{{nickname}}" class="ipname" bindinput="updateNickName"></input>
  14. </view>
  15. </view>
  16. <view class="item">
  17. <text>性别</text>
  18. <view class="ir radio">
  19. <view class="checkbox" bindtap="updateSex" data-sex="{{1}}">
  20. <image src="{{gender === 1 ? '/static/images/icon-normal_checkbox-checked.png' :'/static/images/icon-normal_checkbox.png' }}" ></image>
  21. </view>
  22. <view class="checkbox" bindtap="updateSex" data-sex="{{0}}">
  23. <image src="{{gender === 0 ? '/static/images/icon-normal_checkbox-checked.png' :'/static/images/icon-normal_checkbox.png' }}" ></image>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="item">
  28. <text>生日</text>
  29. <view class="ir">
  30. <picker bindchange="bindDateChange" mode="date" value="{{birthday}}">
  31. <view class="picker-date">
  32. {{birthday ? birthday : ''}}
  33. <image src="/static/images/go.png"></image>
  34. </view>
  35. </picker>
  36. </view>
  37. </view>
  38. <view class="item">
  39. <text>城市</text>
  40. <view class="ir">
  41. <picker bindchange="bindRegionChange" mode="region" value="{{region}}" >
  42. <view class="picker-date">
  43. <block wx:if="{{region.length}}">
  44. {{region[0]}},{{region[1]}},{{region[2]}}
  45. </block>
  46. <image src="/static/images/go.png"></image>
  47. </view>
  48. </picker>
  49. </view>
  50. </view>
  51. </view>
  52. <view class="save">
  53. <button bindtap="save">保存</button>
  54. </view>
  55. </view>