index.wxml 4.2 KB

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