index.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <!-- 场馆漫游 -->
  2. <template>
  3. <div class='layout'>
  4. <div class="cards">
  5. <swCard></swCard>
  6. </div>
  7. </div>
  8. </template>
  9. <script>
  10. import swCard from '@/components/swCard'
  11. export default {
  12. components:{
  13. swCard
  14. },
  15. data() {
  16. //这里存放数据
  17. return {
  18. };
  19. },
  20. //监听属性 类似于data概念
  21. computed: {},
  22. //监控data中的数据变化
  23. watch: {},
  24. //方法集合
  25. methods: {
  26. },
  27. //生命周期 - 创建完成(可以访问当前this实例)
  28. created() {
  29. },
  30. //生命周期 - 挂载完成(可以访问DOM元素)
  31. mounted() {
  32. },
  33. beforeCreate() {}, //生命周期 - 创建之前
  34. beforeMount() {}, //生命周期 - 挂载之前
  35. beforeUpdate() {}, //生命周期 - 更新之前
  36. updated() {}, //生命周期 - 更新之后
  37. beforeDestroy() {}, //生命周期 - 销毁之前
  38. destroyed() {}, //生命周期 - 销毁完成
  39. activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
  40. }
  41. </script>
  42. <style lang='less' scoped>
  43. //@import url(); 引入公共css类
  44. .layout {
  45. width: 100%;
  46. height: 100%;
  47. background: url('../../assets/images/inner-bg.png');
  48. background-size: cover;
  49. overflow: hidden;
  50. background-clip: 100% 100%;
  51. &::before {
  52. content:url('../../assets/images/bottom_icon2.png');
  53. position:absolute;
  54. bottom:0;
  55. right:0;
  56. }
  57. .cards {
  58. margin:180px auto;
  59. }
  60. }
  61. </style>