dossier.wxml 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <view class="list">
  2. <view class="item flex-align-center">
  3. <text class="flex1">头像</text>
  4. <image class="avatar" src="{{userInfo.avatar_url}}"></image>
  5. </view>
  6. <navigator url="/pages/name/name" hover-class="none">
  7. <view class="item flex-align-center">
  8. <view class="flex-column flex1">
  9. <text class="title">姓名</text>
  10. <text class="flex1" wx:if="{{ userInfo.realname }}">{{ userInfo.realname }}</text>
  11. <text class="flex1" wx:else style="font-size: 28rpx;color: #ccc;">请填写姓名</text>
  12. </view>
  13. <image class="icon-right" src="/images/right.png"></image>
  14. </view>
  15. </navigator>
  16. <view class="item flex-align-center">
  17. <view class="flex-column flex1">
  18. <text class="title">所属店铺</text>
  19. <text class="flex1" wx:if="{{ userInfo.realname }}">{{ userInfo.store_name }}</text>
  20. <text class="flex1" wx:else style="font-size: 28rpx;color: #ccc;">'-'</text>
  21. </view>
  22. <!-- <image class="icon-right" src="/images/right.png"></image> -->
  23. </view>
  24. <view class="item flex-align-center">
  25. <view class="flex-column flex1">
  26. <text class="title">直属上级</text>
  27. <text class="flex1" wx:if="{{ userInfo.realname }}">{{ userInfo.realname }}</text>
  28. <text class="flex1" wx:else style="font-size: 28rpx;color: #ccc;">'-'</text>
  29. </view>
  30. <!-- <image class="icon-right" src="/images/right.png"></image> -->
  31. </view>
  32. <picker bindchange="bindGenderChange" value="{{userInfo.sex == 0 ? 0 : userInfo.sex -1}}" range="{{genders}}">
  33. <view class="item flex-align-center">
  34. <view class="flex-column flex1">
  35. <text class="title">性别</text>
  36. <text class="flex1">{{ userInfo.sex == 0 ? '保密' : genders[userInfo.sex -1 ] }}</text>
  37. <!-- <text class="flex1">{{genders[genderIndex]}}</text> -->
  38. </view>
  39. <image class="icon-right" src="/images/right.png"></image>
  40. </view>
  41. </picker>
  42. <picker mode="date" value="{{userInfo.birthday}}" start="1980-09-01" bindchange="bindDateChange">
  43. <view class="item flex-align-center">
  44. <view class="flex-column flex1">
  45. <text class="title">生日</text>
  46. <text class="flex1" wx:if="{{ userInfo.birthday }}">{{userInfo.birthday}}</text>
  47. <text class="flex1" wx:else style="font-size: 28rpx;color: #ccc;">请选择生日</text>
  48. </view>
  49. <image class="icon-right" src="/images/right.png"></image>
  50. </view>
  51. </picker>
  52. <view class="item flex-align-center" bindtap="onPopupState" data-key="visible" data-value="{{true}}">
  53. <view class="flex-column flex1">
  54. <text class="title">手机号码</text>
  55. <text class="flex1">{{ userInfo.mobile }}</text>
  56. </view>
  57. <image class="icon-right" src="/images/right.png"></image>
  58. </view>
  59. <picker mode="region" bindchange="bindRegionChange" style="display: none;">
  60. <view class="item flex-align-center">
  61. <view class="flex-column flex1">
  62. <text class="title">所在地</text>
  63. <text class="flex1" wx:if="{{ userInfo.city }}">{{ userInfo.city }}</text>
  64. <text class="flex1" wx:else style="font-size: 28rpx;color: #ccc;">请选择常驻城市</text>
  65. <!-- <text class="flex1">{{region[0]}},{{region[1]}},{{region[2]}}</text> -->
  66. </view>
  67. <image class="icon-right" src="/images/right.png"></image>
  68. </view>
  69. </picker>
  70. </view>
  71. <wux-landscape visible="{{ visible }}" maskClosable="{{ true }}" closable="{{ false }}" bind:close="onPopupState" data-key="visible" data-value="{{false}}">
  72. <view class="use-popup flex-column">
  73. <text style="font-size: 36rpx;">更换手机</text>
  74. <text style="color: #666666;margin: 28rpx 0 78rpx;">您确定要更换绑定的手机吗?</text>
  75. <view class="use-btn">
  76. <view class="btn cancel flex-center" bindtap="onPopupState" data-key="visible" data-value="{{false}}">取消</view>
  77. <navigator url="/pages/phone/phone?phone={{userInfo.mobile}}" hover-class="none">
  78. <view class="btn confirm flex-center">更换</view>
  79. </navigator>
  80. </view>
  81. <!-- [温馨提示] 确认激活后,该会员卡将立即生效; 如暂不激活,可在“已购会员卡”中去选择激活。 -->
  82. </view>
  83. </wux-landscape>