code.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <view class="content">
  3. <u--image :showLoading="true" src="/static/img/img_cover@2x.jpg" width="100vw" height="100vh"></u--image>
  4. <view class="fixed bottom-48 w-full text-center">
  5. <view class="absolute" style="left: calc(50% - 112px);bottom: 100px">
  6. <u--image src="/static/img/btn_enter@2x.png" width="224px" height="55px"></u--image>
  7. </view>
  8. <view class="butText text-center" @click="handleHome">开始云游</view>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. // import uButton from "uview-ui/components/u-button/u-button.vue";
  14. export default {
  15. components: {
  16. // uButton
  17. },
  18. data() {
  19. return {
  20. title: 'Hello'
  21. }
  22. },
  23. onLoad() {
  24. },
  25. methods: {
  26. handleHome() {
  27. console.log('开启云上观灯', uni)
  28. uni.$u.route('/pages/home/home')
  29. }
  30. }
  31. }
  32. </script>
  33. <style>
  34. .content {
  35. display: flex;
  36. flex-direction: column;
  37. align-items: center;
  38. justify-content: center;
  39. min-height: 100vh;
  40. }
  41. .butText{
  42. font-weight: 400;
  43. font-size: 24px;
  44. color: #FFFFFF;
  45. line-height: 36px;
  46. text-shadow: 0px 0px 8px #FFF9B1, 0px 0px 27px #FFF9B1, 0px 0px 4px #D86332;
  47. font-style: normal;
  48. text-transform: none;
  49. position: relative;
  50. top: -110px;
  51. z-index: 10;
  52. }
  53. </style>