index.wxml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <view class='userinfo' wx:if="{{userInfo.userId}}">
  2. <view class='userinfo-avatar'>
  3. <image src="/assets/icon/1.jpg" mode="widthFix" style="width:100%"></image>
  4. </view>
  5. <view class='userinfo-name'>
  6. <view> {{userInfo.nickname}}</view>
  7. </view>
  8. </view>
  9. <view class='userinfo ' wx:else>
  10. <view class='userinfo-avatar'>
  11. <image src="/assets/icon/1.jpg" mode="widthFix" style="width:100%"></image>
  12. </view>
  13. <view class='userinfo-name'>
  14. <i-button inline="true" size="small" type="success" shape="square" bindtap="goLogin" class="login-btn" >
  15. 微信登录
  16. </i-button>
  17. </view>
  18. </view>
  19. <view>
  20. <i-cell-group i-class="my-group-margin">
  21. <i-cell title="审核莅临" is-link bindtap="gotoConfirmVisit" value="{{visit||''}}" >
  22. <i-icon type="mine_fill" slot="icon" size="20" />
  23. </i-cell>
  24. <i-cell title="审核外出" is-link bindtap="gotoConfirmOut" value="{{out||''}}">
  25. <i-icon type="shop_fill" slot="icon" size="20" />
  26. </i-cell>
  27. <i-cell title="退出登入" bind:click="logOut">
  28. <i-icon type="flashlight_fill" slot="icon" size="20" />
  29. </i-cell>
  30. </i-cell-group>
  31. </view>
  32. <view class="copyright">莅临&外出</view>
  33. <i-spin size="large" fix wx:if="{{ spinShow }}"></i-spin>
  34. <i-message id="message" />