index.wxml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <view class="person-info">
  2. <t-cell-group>
  3. <t-cell
  4. title="头像"
  5. center="{{true}}"
  6. data-type="avatarUrl"
  7. bind:click="onClickCell"
  8. arrow
  9. t-class-left="order-group__left"
  10. >
  11. <t-image slot="note" src="{{personInfo.avatarUrl}}" t-class="avatarUrl" mode="aspectFill" />
  12. </t-cell>
  13. <t-cell
  14. title="昵称"
  15. arrow
  16. note="{{personInfo.nickName}}"
  17. data-type="name"
  18. bind:click="onClickCell"
  19. t-class="t-cell-class"
  20. t-class-left="order-group__left"
  21. />
  22. <t-cell
  23. title="性别"
  24. arrow
  25. note="{{genderMap[personInfo.gender]}}"
  26. data-type="gender"
  27. bind:click="onClickCell"
  28. t-class="t-cell-class"
  29. t-class-left="order-group__left"
  30. />
  31. <t-cell
  32. bordered="{{false}}"
  33. title="手机号"
  34. arrow
  35. note="{{personInfo.phoneNumber ? personInfo.phoneNumber : '去绑定手机号'}}"
  36. data-type="phoneNumber"
  37. bind:click="onClickCell"
  38. t-class="t-cell-class"
  39. t-class-left="order-group__left"
  40. />
  41. </t-cell-group>
  42. </view>
  43. <view class="person-info__wrapper">
  44. <view class="person-info__btn" bind:tap="openUnbindConfirm"> 切换账号登录 </view>
  45. </view>
  46. <t-select-picker
  47. show="{{typeVisible}}"
  48. picker-options="{{pickerOptions}}"
  49. title="选择性别"
  50. value="{{personInfo.gender}}"
  51. bind:confirm="onConfirm"
  52. bind:close="onClose"
  53. />
  54. <t-toast id="t-toast" />