clientInfoEdit.wxml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. <view class="item flex-align-center">
  7. <view class="flex-column flex1">
  8. <text class="title">昵称</text>
  9. <text class="flex1" wx:if="{{ userInfo.nickname }}">{{ userInfo.nickname }}</text>
  10. <text class="flex1" wx:else style="font-size: 28rpx;color: #ccc;">请填写昵称</text>
  11. </view>
  12. <!-- <image class="icon-right" src="/images/icon_02.png"></image> -->
  13. </view>
  14. <!-- <navigator url="/pages/name/name?name={{ userInfo.nickname }}&type=nickname&userId={{ userInfo.user_id }}" hover-class="none">
  15. <view class="item flex-align-center">
  16. <view class="flex-column flex1">
  17. <text class="title">昵称</text>
  18. <text class="flex1" wx:if="{{ userInfo.nickname }}">{{ userInfo.nickname }}</text>
  19. <text class="flex1" wx:else style="font-size: 28rpx;color: #ccc;">请填写昵称</text>
  20. </view>
  21. <image class="icon-right" src="/images/icon_02.png"></image>
  22. </view>
  23. </navigator> -->
  24. <navigator url="/subpackage/user/pages/name/name?name={{ userInfo.realname }}&type=realname&userId={{ userInfo.user_id }}" hover-class="none">
  25. <view class="item flex-align-center">
  26. <view class="flex-column flex1">
  27. <text class="title">姓名</text>
  28. <text class="flex1" wx:if="{{ userInfo.realname }}">{{ userInfo.realname }}</text>
  29. <text class="flex1" wx:else style="font-size: 28rpx;color: #ccc;">请填写姓名</text>
  30. </view>
  31. <image class="icon-right" src="/images/icon_02.png"></image>
  32. </view>
  33. </navigator>
  34. <picker bindchange="bindGenderChange" value="{{userInfo.sex == 0 ? 0 : userInfo.sex -1}}" range="{{genders}}">
  35. <view class="item flex-align-center">
  36. <view class="flex-column flex1">
  37. <text class="title">性别</text>
  38. <text class="flex1">{{ userInfo.sex == 0 ? '保密' : genders[userInfo.sex -1 ] }}</text>
  39. <!-- <text class="flex1">{{genders[genderIndex]}}</text> -->
  40. </view>
  41. <image class="icon-right" src="/images/icon_02.png"></image>
  42. </view>
  43. </picker>
  44. <picker mode="date" value="{{userInfo.birthday}}" start="1980-09-01" bindchange="bindDateChange">
  45. <view class="item flex-align-center">
  46. <view class="flex-column flex1">
  47. <text class="title">生日</text>
  48. <text class="flex1" wx:if="{{ userInfo.birthday }}">{{userInfo.birthday}}</text>
  49. <text class="flex1" wx:else style="font-size: 28rpx;color: #ccc;">请选择生日</text>
  50. </view>
  51. <image class="icon-right" src="/images/icon_02.png"></image>
  52. </view>
  53. </picker>
  54. <navigator url="/pages/phoneEdit/phoneEdit?phone={{ userInfo.mobile }}&userId={{ userInfo.user_id }}" hover-class="none">
  55. <view class="item flex-align-center" data-key="visible" data-value="{{true}}">
  56. <!-- bindtap="onPopupState" -->
  57. <view class="flex-column flex1">
  58. <text class="title">手机号码</text>
  59. <text class="flex1">{{ userInfo.mobile }}</text>
  60. </view>
  61. <image class="icon-right" src="/images/icon_02.png"></image>
  62. </view>
  63. </navigator>
  64. <picker mode="region" bindchange="bindRegionChange">
  65. <view class="item flex-align-center">
  66. <view class="flex-column flex1">
  67. <text class="title">所在地</text>
  68. <text class="flex1" wx:if="{{ userInfo.city }}">{{ userInfo.city }}</text>
  69. <text class="flex1" wx:else style="font-size: 28rpx;color: #ccc;">请选择常驻城市</text>
  70. <!-- <text class="flex1">{{region[0]}},{{region[1]}},{{region[2]}}</text> -->
  71. </view>
  72. <image class="icon-right" src="/images/icon_02.png"></image>
  73. </view>
  74. </picker>
  75. <navigator url="/pages/tagsEdit/tagsEdit?user_id={{ userInfo.user_id }}" hover-class="none">
  76. <view class="item flex-align-center" style="height: auto;padding: 40rpx 24rpx 30rpx;">
  77. <view class="flex-column flex1">
  78. <text class="title">客户标签</text>
  79. <block wx:if="{{ userInfo.tags && userInfo.tags.length > 0 }}">
  80. <view class="tags-list flex">
  81. <view class="tags-item" wx:for="{{ userInfo.tags }}" wx:key="index">{{ item }}</view>
  82. </view>
  83. </block>
  84. <text class="flex1" wx:else style="font-size: 28rpx;color: #ccc;">暂无客户标签</text>
  85. <!-- <text class="flex1" wx:if="{{ userInfo.realname }}">{{ userInfo.realname }}</text>
  86. <text class="flex1" wx:else style="font-size: 28rpx;color: #ccc;">请填写昵称</text> -->
  87. </view>
  88. <image class="icon-right" src="/images/icon_02.png"></image>
  89. </view>
  90. </navigator>
  91. </view>
  92. <wux-landscape visible="{{ visible }}" maskClosable="{{ true }}" closable="{{ false }}" bind:close="onPopupState" data-key="visible" data-value="{{false}}">
  93. <view class="use-popup flex-column">
  94. <text style="font-size: 36rpx;">更换手机</text>
  95. <text style="color: #666666;margin: 28rpx 0 78rpx;">您确定要更换绑定的手机吗?</text>
  96. <view class="use-btn">
  97. <view class="btn cancel flex-center" bindtap="onPopupState" data-key="visible" data-value="{{false}}">取消</view>
  98. <navigator url="/pages/phone/phone?phone={{userInfo.mobile}}" hover-class="none">
  99. <view class="btn confirm flex-center">更换</view>
  100. </navigator>
  101. </view>
  102. <!-- [温馨提示] 确认激活后,该会员卡将立即生效; 如暂不激活,可在“已购会员卡”中去选择激活。 -->
  103. </view>
  104. </wux-landscape>