index.wxml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <navbar parameter='{{parameter}}'></navbar>
  2. <form bindsubmit="formSubmit" report-submit='true'>
  3. <view class='personal-data'>
  4. <view class="wrapper">
  5. <view class="title">管理我的账号</view>
  6. <view class="wrapList">
  7. <view
  8. class="item acea-row row-between-wrapper {{item.uid === userInfo.uid ? 'on' : ''}}"
  9. wx:for="{{switchUserInfo}}"
  10. wx:key='index'
  11. bindtap='switchAccounts'
  12. data-index='{{index}}'
  13. >
  14. <view class="picTxt acea-row row-between-wrapper">
  15. <view class="pictrue" catchtap='uploadpic' wx:if='{{item.uid === userInfo.uid }}'>
  16. <image src='{{item.avatar}}'></image>
  17. <image src='/images/alter.png' class="alter"></image>
  18. </view>
  19. <view class="pictrue" wx:else>
  20. <image src='{{item.avatar}}'></image>
  21. </view>
  22. <view class="text">
  23. <view class="name line1">{{ item.nickname }}</view>
  24. <view class="phone" wx:if="{{item.phone && item.user_type !='h5' }}">绑定手机号:{{ item.phone }}</view>
  25. <view class="phone" wx:elif="{{item.phone && item.user_type =='h5' }}">账号:{{ item.phone }}</view>
  26. <view class="phone" wx:else>暂未绑定手机号</view>
  27. </view>
  28. </view>
  29. <view
  30. class="currentBnt acea-row row-center-wrapper font-color"
  31. wx:if='{{item.uid === userInfo.uid}}'
  32. >
  33. 当前账号
  34. </view>
  35. <view class="bnt font-color acea-row row-center-wrapper" wx:else>
  36. 使用账号
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. <view class='list'>
  42. <view class='item acea-row row-between-wrapper'>
  43. <view>昵称</view>
  44. <view class='input'><input type='text' name='nickname' value='{{userInfo.nickname}}'></input></view>
  45. </view>
  46. <view class='item acea-row row-between-wrapper'>
  47. <view>手机号码</view>
  48. <navigator url="/pages/user_phone/index" hover-class="none" class="input" wx:if="{{!userInfo.phone}}">
  49. 点击绑定手机号<text class="iconfont icon-xiangyou"></text>
  50. </navigator>
  51. <view class='input acea-row row-between-wrapper' wx:else>
  52. <input type='text' disabled='true' name='phone' value='{{userInfo.phone}}' class='id'></input>
  53. <text class='iconfont icon-suozi'></text>
  54. </view>
  55. </view>
  56. <view class='item acea-row row-between-wrapper'>
  57. <view>ID号</view>
  58. <view class='input acea-row row-between-wrapper'>
  59. <input type='text' value='{{userInfo.uid}}' disabled='true' class='id'></input>
  60. <text class='iconfont icon-suozi'></text>
  61. </view>
  62. </view>
  63. <view class='item acea-row row-between-wrapper'>
  64. <view>权限设置</view>
  65. <view class="input" bindtap="Setting">
  66. 点击管理<text class="iconfont icon-xiangyou"></text>
  67. </view>
  68. </view>
  69. <view class="item acea-row row-between-wrapper" wx:if="{{userInfo.phone && userInfo.user_type == 'h5'}}">
  70. <view>密码</view>
  71. <navigator url="/pages/user_pwd_edit/index" hover-class="none" class="input">
  72. 点击修改密码<text class="iconfont icon-xiangyou"></text>
  73. </navigator>
  74. </view>
  75. </view>
  76. <button class='modifyBnt bg-color' formType="submit">保存修改</button>
  77. <view class="logOut cart-color acea-row row-center-wrapper" bindtap="outLogin" wx:if="{{userInfo.phone && userInfo.user_type == 'h5'}}">退出登录</view>
  78. </view>
  79. </form>
  80. <authorize bind:onLoadFun="onLoadFun"></authorize>