index.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <view class="guide-bg">
  3. <image class="bg-img" src="/static/bg.png" mode="aspectFill"></image>
  4. <view class="guide-content">
  5. <view class="guide-title">悠游</view>
  6. <view class="guide-welcome">欢迎</view>
  7. <view class="guide-desc">
  8. 分享你的美妙瞬间照片,<br />
  9. 即刻开始你的交友旅程!
  10. </view>
  11. <view class="guide-line"></view>
  12. <button class="guide-btn" @click="goLogin">马上进入</button>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. data() {
  19. return {
  20. title: 'Hello'
  21. }
  22. },
  23. onLoad() {
  24. },
  25. methods: {
  26. goLogin() {
  27. uni.navigateTo({ url: '/pages/login/login' });
  28. }
  29. }
  30. }
  31. </script>
  32. <style>
  33. .guide-bg {
  34. width: 100vw;
  35. height: 100vh;
  36. position: relative;
  37. overflow: hidden;
  38. }
  39. .bg-img {
  40. position: absolute;
  41. left: 0; top: 0;
  42. width: 100vw;
  43. height: 100vh;
  44. z-index: 0;
  45. }
  46. .guide-content {
  47. position: relative;
  48. z-index: 1;
  49. width: 100vw;
  50. display: flex;
  51. flex-direction: column;
  52. align-items: center;
  53. margin-top: 38vh;
  54. }
  55. .guide-title {
  56. font-size: 90rpx;
  57. color: #fff;
  58. font-weight: bold;
  59. margin-bottom: 80rpx;
  60. letter-spacing: 8rpx;
  61. text-shadow: 0 4rpx 12rpx rgba(0,0,0,0.2);
  62. margin-top: -10rpx;
  63. }
  64. .guide-welcome {
  65. font-size: 40rpx;
  66. color: #fff;
  67. margin-bottom: 80rpx;
  68. font-weight: 500;
  69. }
  70. .guide-desc {
  71. font-size: 28rpx;
  72. color: #fff;
  73. text-align: center;
  74. margin-bottom: 80rpx;
  75. line-height: 1.8;
  76. text-shadow: 0 2rpx 8rpx rgba(0,0,0,0.15);
  77. }
  78. .guide-line {
  79. width: 60rpx;
  80. height: 6rpx;
  81. background: #fff;
  82. border-radius: 3rpx;
  83. margin-bottom: 80rpx;
  84. }
  85. .guide-btn {
  86. width: 70vw;
  87. height: 80rpx;
  88. background: #7ac81e;
  89. color: #fff;
  90. font-size: 32rpx;
  91. border-radius: 40rpx;
  92. margin-top: 80rpx;
  93. box-shadow: 0 4rpx 16rpx rgba(122,200,30,0.15);
  94. }
  95. </style>