123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <template>
- <div class="wrapper">
- <div class="bgimg">
- <div class="con">
- <div class="btn" @click="enter">
- <span class="btn-txt">点击进入</span>
- </div>
- </div>
- </div>
- </div>
- </template>
- <script>
- import browser from "@/utils/browser.js";
- export default {
- components: {
- /* bg */
- },
- data() {
- return {
- isMobile: browser.mobile,
- state: false,
- cdn_url: "https://4dscene.4dage.com/ShaoShan/audios/",
- };
- },
- computed: {},
- watch: {},
- created() {
- // this.$showLoading();
- const that = this;
- this.$nextTick(() => {
- document.getElementById("startvideo").addEventListener("canplay", () => {
- that.$hideLoading();
- });
- });
- },
- mounted() {},
- methods:{
- enter() {
- this.$router.push('/ruins')
- }
- }
- };
- </script>
- <style lang="less" scoped>
- .wrapper {
- width: 100%;
- height: 100%;
- }
- .mobileLayout {
- width: 100vw;
- height: 100vh;
- position: fixed;
- left: 0;
- bottom: 10vh;
- .bg {
- width: 100%;
- height: 100%;
- }
- .logo {
- position: fixed;
- top: 5vw;
- left: 5vw;
- width: 40%;
- z-index: 100;
- }
- .search-bar {
- position: fixed;
- top: 5vw;
- right: 5vw;
- width: 30%;
- z-index: 100;
- }
- }
- .layout {
- position: relative;
- z-index: 9;
- width: 100%;
- height: 100%;
- .xlz-bg {
- position: absolute;
- top: 50%;
- z-index: 89;
- transform: translateY(-50%);
- }
- .bg {
- position: absolute;
- z-index: 999;
- width: 100%;
- height: 100%;
- object-fit: fill;
- left: 0;
- }
- .bgimg {
- position: absolute;
- z-index: 99;
- width: 100%;
- left: 0;
- height: 100%;
- background: url("../../assets/images/index-bg.png") no-repeat center center;
- background-size: cover;
- .con {
- left: 50%;
- top: 25%;
- width: 20%;
- height: 10%;
- margin-left: -10%;
- position: relative;
- .btn {
- margin: 0 auto;
- margin-top: 26px;
- width: 100%;
- height: 74px;
- line-height: 74px;
- text-align: center;
- background: url(../../assets/images/btn-bg.png) no-repeat;
- background-size: 100% 100%;
- cursor: pointer;
- .btn-txt {
- font-size: 32px;
- font-family: Source Han Sans CN;
- font-weight: bold;
- line-height: 54px;
- color: #9c0012;
- opacity: 1;
- }
- }
- }
- }
- }
- </style>
|