index.wxml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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
  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 class="currentBnt acea-row row-center-wrapper font-color" wx:if="{{item.uid === userInfo.uid}}">
  30. 当前账号
  31. </view>
  32. <view class="bnt font-color acea-row row-center-wrapper" wx:else> 使用账号 </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}}" /></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" />
  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" />
  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"> 点击管理<text class="iconfont icon-xiangyou"></text> </view>
  61. </view>
  62. <view class="item acea-row row-between-wrapper" wx:if="{{userInfo.phone && userInfo.user_type == 'h5'}}">
  63. <view>密码</view>
  64. <navigator url="/pages/user_pwd_edit/index" hover-class="none" class="input">
  65. 点击修改密码<text class="iconfont icon-xiangyou"></text>
  66. </navigator>
  67. </view>
  68. </view>
  69. <button class="modifyBnt bg-color" formType="submit">保存修改</button>
  70. <view
  71. class="logOut cart-color acea-row row-center-wrapper"
  72. bindtap="outLogin"
  73. wx:if="{{userInfo.phone && userInfo.user_type == 'h5'}}"
  74. >退出登录</view
  75. >
  76. </view>
  77. </form>
  78. <authorize bind:onLoadFun="onLoadFun"></authorize>