123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <!-- 场馆漫游 -->
- <template>
- <div class="layout">
- <div class="title">珠海市红色革命遗址</div>
- <div class="cards">
- <swCard></swCard>
- </div>
- </div>
- </template>
- <script>
- import swCard from "@/components/swCard";
- export default {
- components: {
- swCard,
- },
- data() {
- //这里存放数据
- return {};
- },
- //监听属性 类似于data概念
- computed: {},
- //监控data中的数据变化
- watch: {},
- //方法集合
- methods: {},
- //生命周期 - 创建完成(可以访问当前this实例)
- created() {},
- //生命周期 - 挂载完成(可以访问DOM元素)
- mounted() {},
- beforeCreate() {}, //生命周期 - 创建之前
- beforeMount() {}, //生命周期 - 挂载之前
- beforeUpdate() {}, //生命周期 - 更新之前
- updated() {}, //生命周期 - 更新之后
- beforeDestroy() {}, //生命周期 - 销毁之前
- destroyed() {}, //生命周期 - 销毁完成
- activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
- };
- </script>
- <style lang='less' scoped>
- //@import url(); 引入公共css类
- .layout {
- width: 100%;
- height: 100%;
- background: url("../../assets/images/cards-bg.png") center center no-repeat;
- background-size: 100% 100%;
- overflow: hidden;
- .title {
- font-size: 2vw;
- text-align: center;
- font-family: Source Han Sans CN;
- font-weight: bold;
- color: #9c0012;
- opacity: 1;
- margin-top:5vw;
- }
- .cards {
- margin: 2vw auto;
- }
- }
- @media screen and (max-width: 1024px) {
- .layout {
- width: 100%;
- height: 100%;
- background: url("../../assets/images/mobile-card-bg.png") center center
- no-repeat;
- background-size: 100% 100%;
- .title {
- margin-top:20vw;
- font-size: 5vw;
- }
- .cards {
- margin: 2vw auto;
- }
- }
- }
- </style>
|