|
@@ -1,5 +1,5 @@
|
|
<template>
|
|
<template>
|
|
- <div class="page" :class="{ isPCWeb: !isMobile }">
|
|
|
|
|
|
+ <div class="page" :class="{ isPCWeb: !isMobile }" :style="style">
|
|
<template v-if="isMobile">
|
|
<template v-if="isMobile">
|
|
<template v-if="!error">
|
|
<template v-if="!error">
|
|
<v-view v-if="page" :options="page"></v-view>
|
|
<v-view v-if="page" :options="page"></v-view>
|
|
@@ -30,6 +30,7 @@ export default {
|
|
interval: 3000,
|
|
interval: 3000,
|
|
logo: "",
|
|
logo: "",
|
|
uuid:'',
|
|
uuid:'',
|
|
|
|
+ style:'',
|
|
nodeList: [],
|
|
nodeList: [],
|
|
itemList: [],
|
|
itemList: [],
|
|
paperId: 1,
|
|
paperId: 1,
|
|
@@ -70,7 +71,6 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
getPageInfo() {
|
|
getPageInfo() {
|
|
const { data } = this.$store.state.pages;
|
|
const { data } = this.$store.state.pages;
|
|
- console.log("getinfo", data)
|
|
|
|
const { pages, main } = data;
|
|
const { pages, main } = data;
|
|
const { id = 'main'} = this.$route.params;
|
|
const { id = 'main'} = this.$route.params;
|
|
let page = pages[id]||{};
|
|
let page = pages[id]||{};
|
|
@@ -81,7 +81,6 @@ export default {
|
|
},
|
|
},
|
|
init(){
|
|
init(){
|
|
let {uuid} = this.$route.params;
|
|
let {uuid} = this.$route.params;
|
|
- console.log("loadData", uuid);
|
|
|
|
if(this.loading) return;
|
|
if(this.loading) return;
|
|
this.loading = true;
|
|
this.loading = true;
|
|
fetch("paper.getpaper", {uuid}).then((res) => {
|
|
fetch("paper.getpaper", {uuid}).then((res) => {
|