index.wxml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!--pages/account/index.wxml-->
  2. <view class="sg-container">
  3. <view class="sg-index-bg sg-pad">
  4. <view class="sg-flex sg-align-center">
  5. <image class="sg-avatar sg-margin-right" style="width:100rpx" src="{{ userInfo.avatar }}" mode="widthFix"></image>
  6. <view class="sg-white" style="width:100%">
  7. <view class="sg-font-lg sg-flex sg-align-center" style="justify-content: space-between;margin-bottom:15rpx;">
  8. <view>{{ userInfo ? userInfo.name : '请登录' }}</view>
  9. <view class="sg-align-center sg-flex" wx:if="{{userInfo}}" bindtap="logout">
  10. <image src="./out.png" alt="" mode="widthFix" style="width:40rpx"></image>
  11. </view>
  12. </view>
  13. <view class="sg-font-small sg-flex sg-align-center" style="justify-content: space-between;" >
  14. <view wx:if="userInfo">所属项目个数 | {{project_num}}个</view>
  15. <view bindtap="navigate" data-url="{{userInfo ? '/pages/user/index' : '/pages/login/index'}}">{{ userInfo ? '修改用户信息' : '点击按钮进行登录操作' }}</view>
  16. </view>
  17. <view wx:if="{{project_num <= 0}}" class="sg-margin-tb-sm sg-pad-sm sg-primary sg-font-xs sg-white sg-flex sg-align-center sg-space-between" style="background: #4281F0; border-radius: 5px" bindtap="navigate" data-url="/pages/bind/index">
  18. <view>联系管理员进行授权,进行项目查看</view>
  19. <van-icon name="arrow"></van-icon>
  20. </view>
  21. </view>
  22. </view>
  23. <view wx:if="{{!userInfo}}"
  24. class="sg-pad-sm sg-font-small sg-margin-tb sg-white sg-deep-blue-bg sg-flex sg-align-center sg-space-between"
  25. bindtap="navigate" data-url="/pages/login/index">
  26. <text>你还未登录,暂时不能查看项目相关数据</text>
  27. <van-icon name="arrow" class="sg-icon"></van-icon>
  28. </view>
  29. </view>
  30. <view class="sg-white-bg">
  31. <!-- <view class="sg-flex sg-align-center sg-space-between sg-pad sg-bottom-border" bindtap="navigate"
  32. data-url="/pages/bind/index">
  33. <view>绑定微信</view>
  34. <van-icon class="sg-icon" name="arrow"></van-icon>
  35. </view> -->
  36. <view class="sg-flex sg-align-center sg-space-between sg-pad sg-bottom-border" bindtap="navigate"
  37. data-url="/pages/password/index">
  38. <view>修改密码</view>
  39. <van-icon class="sg-icon" name="arrow"></van-icon>
  40. </view>
  41. <view class="sg-flex sg-align-center sg-space-between sg-pad sg-bottom-border" bindtap="navigate"
  42. data-url="/pages/feedback/index">
  43. <view>用户反馈</view>
  44. <van-icon class="sg-icon" name="arrow"></van-icon>
  45. </view>
  46. <view class="sg-flex sg-align-center sg-space-between sg-pad sg-bottom-border" bindtap="navigate"
  47. data-url="/pages/about/index">
  48. <view>关于我们</view>
  49. <van-icon class="sg-icon" name="arrow"></van-icon>
  50. </view>
  51. <!-- <view class="sg-flex sg-align-center sg-space-between sg-pad sg-bottom-border" bindtap="logout">
  52. <view>退出登录</view>
  53. <van-icon class="sg-icon" name="arrow"></van-icon>
  54. </view> -->
  55. </view>
  56. </view>