index.vue 971 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <view class="header">
  3. <view class="leftBox">
  4. <image src="@/static/logo.png"></image>
  5. <view>
  6. <view class="greet">早上好</view>
  7. <view class="name">XXXX</view>
  8. </view>
  9. </view>
  10. <view class="rightBox">
  11. <image src="@/static/img/logout.png"></image>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. avatar: "@/static/logo.png",
  20. };
  21. }
  22. }
  23. </script>
  24. <style lang="scss" scoped>
  25. .header {
  26. width: 100%;
  27. height: 100rpx;
  28. display: flex;
  29. align-items: center;
  30. justify-content: space-between;
  31. // background-color: red;
  32. padding: 0 40rpx;
  33. .leftBox {
  34. display: flex;
  35. align-items: center;
  36. .greet{
  37. font-size: 20rpx;
  38. margin-bottom: 6rpx;
  39. }
  40. .name{
  41. font-size: 32rpx;
  42. }
  43. image {
  44. width: 100rpx;
  45. height: 100rpx;
  46. border-radius: 32rpx;
  47. margin-right: 20rpx;
  48. }
  49. }
  50. .rightBox {
  51. image {
  52. width: 50rpx;
  53. height: 50rpx;
  54. }
  55. }
  56. }
  57. </style>