index.wxml 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. <!-- 顶部 -->
  2. <view class="page">
  3. <view class="top">
  4. <view class="top-area"></view>
  5. </view>
  6. <!-- 胶囊按钮区 -->
  7. <view style="box-sizing: border-box;height: {{CustomBar-StatusBar}}px; width: 100%;margin-top: {{StatusBar}}px; padding-left: 40rpx; line-height: {{CustomBar-StatusBar}}px;position: absolute;color: #fff;">会议室预约管理平台</view>
  8. <view class="user">
  9. <view class="user-msg">
  10. <view>
  11. <view class="head" wx:if="{{ !userInfo}}">
  12. <van-icon name="manager" color="#c7cde8" size="130rpx" custom-class="default-head" />
  13. </view>
  14. <image wx:if="{{userInfo}}" class="head" src="{{userInfo.avatar}}" mode="" bindtap="preview" data-src="{{userInfo.avatar}}"/>
  15. <text class="please m-t">
  16. {{userInfo?userInfo.appletUsername:'请先登录'}}
  17. </text>
  18. </view>
  19. </view>
  20. <view class="fun1 border-radius-20" wx:if="{{userInfo}}">
  21. <view class="item" bindtap="goto" data-id="{{item.id}}" wx:for="{{itemList}}" wx:key="index">
  22. <view>{{item.name}}</view>
  23. <view class="status">
  24. <!-- <text wx:if="{{item.id==1}}">未实名</text> -->
  25. <text class="arrow"></text>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="btn-area1 {{userInfo?'bgc':''}}">
  30. <button bindtap="{{userInfo?'loginOut':'goLogin'}}">{{userInfo?'退出登录':'登录'}}</button>
  31. </view>
  32. </view>
  33. </view>