Commit 4a2dc31c authored by 黄奎's avatar 黄奎

页面修改

parent 6981d7f1
...@@ -35,16 +35,20 @@ ...@@ -35,16 +35,20 @@
}, },
desc: "這是一家非常牛逼的旅遊網站" desc: "這是一家非常牛逼的旅遊網站"
}, },
headType: 0, headType: 1,
dataList:{} dataList: {}
}; };
}, },
created() { created() {
console.log("111");
this.$root.$on('change-head-style', param => { this.$root.$on('change-head-style', param => {
this.changeHeadHandler(param); this.changeHeadHandler(param);
this.getData();
}) })
}, },
mounted() {
this.getData();
},
methods: { methods: {
changeHeadHandler(t) { changeHeadHandler(t) {
this.headType = t; this.headType = t;
...@@ -57,15 +61,13 @@ ...@@ -57,15 +61,13 @@
res => { res => {
console.log(res); console.log(res);
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.dataList=res.data.data; this.dataList = res.data.data;
if(this.dataList){ if (this.dataList) {
this.baseinfo.logo=this.dataList.Config.Logo; this.baseinfo.logo = this.dataList.Config.Logo;
this.baseinfo.name=this.dataList.Config.Name; this.baseinfo.name = this.dataList.Config.Name;
this.baseinfo.nav.navs=this.dataList.HeaderList; this.baseinfo.nav.navs = this.dataList.HeaderList;
this.baseinfo.nav.bg=this.dataList.Config.BgColor; this.baseinfo.nav.bg = this.dataList.Config.BgColor;
} }
} else {
} }
}, },
err => {} err => {}
......
<template> <template>
<div>
关于我们 <q-page>
</div> <div>
关于我们
</div>
</q-page>
</template> </template>
<script> <script>
export default { export default {
props: [], name: "PageAbout",
data() { data() {
return { return {
obj:{},
}; };
}, },
created() {}, created() {},
mounted() { mounted() {},
},
methods: { methods: {
}, },
......
const routes = [{ const routes = [{
path: '/', path: '/',
component: () => component: () =>
import ('layouts/HomeLayout.vue'), import('layouts/HomeLayout.vue'),
children: [{ children: [{
path: '', path: '/Index',
component: () => component: () =>
import ('pages/Index.vue') import('pages/Index.vue')
}] },
}] {
path: '/About',
component: () =>
import('pages/About.vue')
}
]
},
]
// Always leave this as last one // Always leave this as last one
if (process.env.MODE !== 'ssr') { if (process.env.MODE !== 'ssr') {
routes.push({ routes.push({
path: '*', path: '*',
component: () => component: () =>
import ('pages/Error404.vue') import('pages/Error404.vue')
}) })
} }
export default routes export default routes
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment