|
@@ -2,7 +2,10 @@
|
|
|
<div class="page" :class="{ isPCWeb: !isMobile }" :style="style">
|
|
|
<template v-if="isMobile">
|
|
|
<template v-if="!error">
|
|
|
- <v-view v-if="page" :options="page"></v-view>
|
|
|
+ <template v-if="page">
|
|
|
+ <v-view v-show="!ad" :options="page"></v-view>
|
|
|
+ <img v-if="ad" class="ad" @click="adClick" :src="adUrl" />
|
|
|
+ </template>
|
|
|
<div class="back" v-if="!isMain" @click="back">返回</div>
|
|
|
</template>
|
|
|
<div v-else class="notFound">
|
|
@@ -27,7 +30,7 @@ export default {
|
|
|
loading: false,
|
|
|
backMain:false,
|
|
|
page: undefined,
|
|
|
- isMain: false,
|
|
|
+ isMain: true,
|
|
|
background:"",
|
|
|
interval: 3000,
|
|
|
logo: "",
|
|
@@ -46,7 +49,13 @@ export default {
|
|
|
computed: {
|
|
|
loaded(){
|
|
|
return this.$store.state.pages.loaded;
|
|
|
- }
|
|
|
+ },
|
|
|
+ adUrl() {
|
|
|
+ return this.$store.state.pages.data.main.adUrl;
|
|
|
+ },
|
|
|
+ ad(){
|
|
|
+ return this.$store.state.pages.ad && this.adUrl;
|
|
|
+ },
|
|
|
},
|
|
|
watch: {
|
|
|
loading(val) {
|
|
@@ -118,6 +127,9 @@ export default {
|
|
|
}else{
|
|
|
this.$router.back();
|
|
|
}
|
|
|
+ },
|
|
|
+ adClick(){
|
|
|
+ this.$store.commit('SET_AD', false);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -144,4 +156,9 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+.ad {
|
|
|
+ width: 100%;
|
|
|
+ height: 100vh;
|
|
|
+ object-fit: cover;
|
|
|
+}
|
|
|
</style>
|