index.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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({
  28. url: '/pages/login/login'
  29. });
  30. }
  31. }
  32. }
  33. </script>
  34. <style>
  35. .guide-bg {
  36. width: 100vw;
  37. height: 100vh;
  38. position: relative;
  39. overflow: hidden;
  40. }
  41. .bg-img {
  42. position: absolute;
  43. left: 0; top: 0;
  44. width: 100vw;
  45. height: 100vh;
  46. z-index: 0;
  47. }
  48. .guide-content {
  49. position: relative;
  50. z-index: 1;
  51. width: 100vw;
  52. display: flex;
  53. flex-direction: column;
  54. align-items: center;
  55. margin-top: 38vh;
  56. }
  57. .guide-title {
  58. font-size: 90rpx;
  59. color: #fff;
  60. font-weight: bold;
  61. margin-bottom: 80rpx;
  62. letter-spacing: 8rpx;
  63. text-shadow: 0 4rpx 12rpx rgba(0,0,0,0.2);
  64. margin-top: -10rpx;
  65. }
  66. .guide-welcome {
  67. font-size: 40rpx;
  68. color: #fff;
  69. margin-bottom: 80rpx;
  70. font-weight: 500;
  71. }
  72. .guide-desc {
  73. font-size: 28rpx;
  74. color: #fff;
  75. text-align: center;
  76. margin-bottom: 80rpx;
  77. line-height: 1.8;
  78. text-shadow: 0 2rpx 8rpx rgba(0,0,0,0.15);
  79. }
  80. .guide-line {
  81. width: 60rpx;
  82. height: 6rpx;
  83. background: #fff;
  84. border-radius: 3rpx;
  85. margin-bottom: 80rpx;
  86. }
  87. .guide-btn {
  88. width: 70vw;
  89. height: 80rpx;
  90. background: #7ac81e;
  91. color: #fff;
  92. font-size: 32rpx;
  93. border-radius: 40rpx;
  94. margin-top: 80rpx;
  95. box-shadow: 0 4rpx 16rpx rgba(122,200,30,0.15);
  96. }
  97. </style>