clientInfoEdit.wxml 5.3 KB

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