index.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!-- 场馆漫游 -->
  2. <template>
  3. <div class='layout'>
  4. <div class="title"><img :src="`images/title.png`" alt=""></div>
  5. <swCard></swCard>
  6. <div class="bottom_line"><img :src="`images/scene_bottom.png`" alt=""></div>
  7. </div>
  8. </template>
  9. <script>
  10. //这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
  11. //例如:import 《组件名称》 from '《组件路径》';
  12. import swCard from '@/components/swCard'
  13. export default {
  14. //import引入的组件需要注入到对象中才能使用
  15. components:{
  16. swCard
  17. },
  18. data() {
  19. //这里存放数据
  20. return {
  21. };
  22. },
  23. //监听属性 类似于data概念
  24. computed: {},
  25. //监控data中的数据变化
  26. watch: {},
  27. //方法集合
  28. methods: {
  29. },
  30. //生命周期 - 创建完成(可以访问当前this实例)
  31. created() {
  32. },
  33. //生命周期 - 挂载完成(可以访问DOM元素)
  34. mounted() {
  35. },
  36. beforeCreate() {}, //生命周期 - 创建之前
  37. beforeMount() {}, //生命周期 - 挂载之前
  38. beforeUpdate() {}, //生命周期 - 更新之前
  39. updated() {}, //生命周期 - 更新之后
  40. beforeDestroy() {}, //生命周期 - 销毁之前
  41. destroyed() {}, //生命周期 - 销毁完成
  42. activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
  43. }
  44. </script>
  45. <style lang='less' scoped>
  46. //@import url(); 引入公共css类
  47. .layout {
  48. width: 100%;
  49. height: 100%;
  50. background: url('../../assets/images/inner-bg.png');
  51. background-size: cover;
  52. overflow: hidden;
  53. background-clip: 100% 100%;
  54. &::before {
  55. content:url('../../assets/images/bottom_icon2.png');
  56. position:absolute;
  57. bottom:0;
  58. right:0;
  59. }
  60. .title {
  61. position:relative;
  62. margin-top:112px;
  63. text-align:center;
  64. img {
  65. width:272px;
  66. height:auto;
  67. }
  68. }
  69. .bottom_line {
  70. position:absolute;
  71. bottom:0;
  72. }
  73. }
  74. </style>