index.wxml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <navbar parameter='{{parameter}}'></navbar>
  2. <form bindsubmit="formSubmit" report-submit='true'>
  3. <view class='personal-data'>
  4. <view class='list'>
  5. <view class='item acea-row row-between-wrapper'>
  6. <view>头像</view>
  7. <view class=" acea-row row-between-wrapper {{item.uid === userInfo.uid ? 'on' : ''}}" wx:for="{{switchUserInfo}}" wx:key bindtap='switchAccounts' data-index='{{index}}'>
  8. <view class="pictrue pic_img input" catchtap='uploadpic' wx:if='{{item.uid === userInfo.uid }}'>
  9. <image src='{{item.avatar}}'></image>
  10. <!-- <image src='/images/alter.png' class="alter"></image> -->
  11. </view>
  12. <view class="pictrue" wx:else>
  13. <image src='{{item.avatar}}'></image>
  14. </view>
  15. <text class="iconfont input_icon icon-xiangyou"></text>
  16. </view>
  17. </view>
  18. <view class='item acea-row row-between-wrapper'>
  19. <view>名字</view>
  20. <view class='input acea-row row-right'><input type='text' name='nickname' value='{{userInfo.nickname}}'></input><text class="iconfont input_icon icon-xiangyou"></text></view>
  21. </view>
  22. <view class='item acea-row row-between-wrapper'>
  23. <view>级别</view>
  24. <view class='input'><input type='text' disabled="disabled" value='{{userInfo.level}}'></input></view>
  25. </view>
  26. <view class='item acea-row row-between-wrapper'>
  27. <view>推荐人 </view>
  28. <view class='input'><input type='text' disabled="disabled" value='{{userInfo.spread_name.nickname}}'></input></view>
  29. </view>
  30. </view>
  31. <view class='personal-data'>
  32. <view class='list'>
  33. <view class='item acea-row row-between-wrapper'>
  34. <view>登录账号</view>
  35. <view class='input'><input type='text' disabled="disabled" value='{{userInfo.phone}}'></input></view>
  36. </view>
  37. <view class="item acea-row row-between-wrapper" wx:if="{{userInfo.phone && userInfo.user_type == 'h5'}}">
  38. <view>登录密码</view>
  39. <navigator url="/pages/user_pwd_edit/index" hover-class="none" class="input">
  40. 修改<text class="input_icon iconfont icon-xiangyou"></text>
  41. </navigator>
  42. </view>
  43. </view>
  44. </view>
  45. <button class='modifyBnt bg-color' formType="submit">保存修改</button>
  46. <view class="logOut cart-color acea-row row-center-wrapper" bindtap="outLogin" wx:if="{{userInfo.phone && userInfo.user_type == 'h5'}}">退出登录</view>
  47. </view>
  48. </form>
  49. <authorize bind:onLoadFun="onLoadFun"></authorize>