index.vue 926 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <view class="content">
  3. <image class="logo" src="/static/logo.png"></image>
  4. <view class="text-area">
  5. <text class="title">{{title}}</text>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. import {wel} from '@/config/api.js';
  11. export default {
  12. data() {
  13. return {
  14. title: 'Hello'
  15. }
  16. },
  17. async onLoad() {
  18. // console.log(lifeData)
  19. // if(!this.$u.utils.isLogin()) return
  20. const res= await wel()
  21. console.log(res)
  22. var encrypt = this.aes_decrypt(res.data)
  23. console.log(encrypt)
  24. },
  25. methods: {
  26. }
  27. }
  28. </script>
  29. <style>
  30. .content {
  31. display: flex;
  32. flex-direction: column;
  33. align-items: center;
  34. justify-content: center;
  35. }
  36. .logo {
  37. height: 200rpx;
  38. width: 200rpx;
  39. margin-top: 200rpx;
  40. margin-left: auto;
  41. margin-right: auto;
  42. margin-bottom: 50rpx;
  43. }
  44. .text-area {
  45. display: flex;
  46. justify-content: center;
  47. }
  48. .title {
  49. font-size: 36rpx;
  50. color: #8f8f94;
  51. }
  52. </style>