index.vue 791 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <view class="content">
  3. <!-- <u--image :showLoading="true" :src="src" width="80px" height="80px" @click="click"></u--image> -->
  4. 我是首页
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. data() {
  10. return {
  11. src: 'https://cdn.uviewui.com/uview/album/1.jpg'
  12. }
  13. },
  14. onLoad() {
  15. let _isHave = this.$utils.getRoles('aaa')
  16. console.log(_isHave)
  17. },
  18. methods: {
  19. }
  20. }
  21. </script>
  22. <style>
  23. .content {
  24. display: flex;
  25. flex-direction: column;
  26. align-items: center;
  27. justify-content: center;
  28. }
  29. .logo {
  30. height: 200rpx;
  31. width: 200rpx;
  32. margin-top: 200rpx;
  33. margin-left: auto;
  34. margin-right: auto;
  35. margin-bottom: 50rpx;
  36. }
  37. .text-area {
  38. display: flex;
  39. justify-content: center;
  40. }
  41. .title {
  42. font-size: 36rpx;
  43. color: #8f8f94;
  44. }
  45. </style>