index.wxml 3.3 KB

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