clientInfoEdit.wxml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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="/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. <view class="item flex-align-center" data-key="visible" data-value="{{true}}">
  55. <!-- bindtap="onPopupState" -->
  56. <view class="flex-column flex1">
  57. <text class="title">手机号码</text>
  58. <text class="flex1">{{ userInfo.mobile }}</text>
  59. </view>
  60. <!-- <image class="icon-right" src="/images/icon_02.png"></image> -->
  61. </view>
  62. <picker mode="region" bindchange="bindRegionChange">
  63. <view class="item flex-align-center">
  64. <view class="flex-column flex1">
  65. <text class="title">所在地</text>
  66. <text class="flex1" wx:if="{{ userInfo.city }}">{{ userInfo.city }}</text>
  67. <text class="flex1" wx:else style="font-size: 28rpx;color: #ccc;">请选择常驻城市</text>
  68. <!-- <text class="flex1">{{region[0]}},{{region[1]}},{{region[2]}}</text> -->
  69. </view>
  70. <image class="icon-right" src="/images/icon_02.png"></image>
  71. </view>
  72. </picker>
  73. <navigator url="/pages/tagsEdit/tagsEdit?user_id={{ userInfo.user_id }}" hover-class="none">
  74. <view class="item flex-align-center" style="height: auto;padding: 40rpx 24rpx 30rpx;">
  75. <view class="flex-column flex1">
  76. <text class="title">客户标签</text>
  77. <block wx:if="{{ userInfo.tags && userInfo.tags.length > 0 }}">
  78. <view class="tags-list flex">
  79. <view class="tags-item" wx:for="{{ userInfo.tags }}" wx:key="index">{{ item }}</view>
  80. </view>
  81. </block>
  82. <text class="flex1" wx:else style="font-size: 28rpx;color: #ccc;">暂无客户标签</text>
  83. <!-- <text class="flex1" wx:if="{{ userInfo.realname }}">{{ userInfo.realname }}</text>
  84. <text class="flex1" wx:else style="font-size: 28rpx;color: #ccc;">请填写昵称</text> -->
  85. </view>
  86. <image class="icon-right" src="/images/icon_02.png"></image>
  87. </view>
  88. </navigator>
  89. </view>
  90. <wux-landscape visible="{{ visible }}" maskClosable="{{ true }}" closable="{{ false }}" bind:close="onPopupState" data-key="visible" data-value="{{false}}">
  91. <view class="use-popup flex-column">
  92. <text style="font-size: 36rpx;">更换手机</text>
  93. <text style="color: #666666;margin: 28rpx 0 78rpx;">您确定要更换绑定的手机吗?</text>
  94. <view class="use-btn">
  95. <view class="btn cancel flex-center" bindtap="onPopupState" data-key="visible" data-value="{{false}}">取消</view>
  96. <navigator url="/pages/phone/phone?phone={{userInfo.mobile}}" hover-class="none">
  97. <view class="btn confirm flex-center">更换</view>
  98. </navigator>
  99. </view>
  100. <!-- [温馨提示] 确认激活后,该会员卡将立即生效; 如暂不激活,可在“已购会员卡”中去选择激活。 -->
  101. </view>
  102. </wux-landscape>