Commit 5a019db1 authored by linjw's avatar linjw

修改seo管理

parent 60b0aabc
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="box"> <div class="box">
<ul> <ul>
<li v-for="(item, index) in list" :key="item.id" :class="index === current ? 'active' : ''" @click="bannerClick(index, item)"> <li v-for="(item, index) in list" :key="item.id" :class="index === current ? 'active' : ''" @click="bannerClick(index, item)">
<img :src= "item.cover" style="width:100%;height:560px;min-height: 350px;" :alt="item.title"/> <img :src= "item.cover" style="width:100%;height:560px;min-height: 350px;" :alt="item.alt"/>
</li> </li>
</ul> </ul>
<div class="status"> <div class="status">
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="box"> <div class="box">
<ul> <ul>
<li v-for="(item, index) in list" :key="item.id" :class="index === current ? 'active' : ''" @click="bannerClick(index, item)"> <li v-for="(item, index) in list" :key="item.id" :class="index === current ? 'active' : ''" @click="bannerClick(index, item)">
<img :src= "item.cover" style="width:100%;min-width: 1120px;height: 240px;object-fit: cover;" :alt="item.title"/> <img :src= "item.cover" style="width:100%;min-width: 1120px;height: 240px;object-fit: cover;" :alt="item.alt"/>
</li> </li>
</ul> </ul>
<!--<div class="status">--> <!--<div class="status">-->
......
...@@ -147,7 +147,9 @@ ...@@ -147,7 +147,9 @@
//关于欣新banner 0:首页,1:旅游 2:营地 3:房车 4:活动 5:新闻 6:关于欣新 //关于欣新banner 0:首页,1:旅游 2:营地 3:房车 4:活动 5:新闻 6:关于欣新
const { data } = await axios.get('/api/app/banner/app/unauth/findBannerlist?type=6&platform=1'); const { data } = await axios.get('/api/app/banner/app/unauth/findBannerlist?type=6&platform=1');
let cc = data.data; let cc = data.data;
return { bannerList: cc} let headData = await axios.get('/api/uccn/seo/app/unauth/officialWebsite/7');
let head = headData.data.data;
return { bannerList: cc ,headList : head}
}, },
created(){ created(){
if (typeof window !== 'undefined') { if (typeof window !== 'undefined') {
...@@ -221,10 +223,14 @@ ...@@ -221,10 +223,14 @@
}, },
}, },
head () { head () {
return { return {
title: "关于欣新|欣新房车股份有限公司官网|欣新房车有限公司官网|东莞欣新房车股份有限公司【总部】|关于欣新APP" title: this.headList.title,
} meta: [
}, {name:this.headList.keywords, content: this.headList.keywords },
{ hid: 'description', name: this.headList.description, content: this.headList.description }
],
}
}
}; };
</script> </script>
......
...@@ -140,11 +140,20 @@ ...@@ -140,11 +140,20 @@
this.dataDetail = data.data; this.dataDetail = data.data;
}, },
}, },
head () { async asyncData() {
return { let headData = await axios.get('/api/uccn/seo/app/unauth/officialWebsite/5');
title: "欣新活动|欣新沙龙|欣新高峰论坛|欣新论坛|欣新俱乐部|欣新展会|欣新活动直播链接|欣新活动APP" let head = headData.data.data;
} return { headList : head}
}, },
head () {
return {
title: this.headList.title,
meta: [
{name:this.headList.keywords, content: this.headList.keywords },
{ hid: 'description', name: this.headList.description, content: this.headList.description }
],
}
}
}; };
</script> </script>
......
...@@ -194,13 +194,19 @@ export default { ...@@ -194,13 +194,19 @@ export default {
async asyncData() { async asyncData() {
const { data } = await axios.get('/api/app/banner/app/unauth/findBannerlist?type=2&platform=1'); const { data } = await axios.get('/api/app/banner/app/unauth/findBannerlist?type=2&platform=1');
let cc = data.data; let cc = data.data;
return { bannerList: cc} let headData = await axios.get('/api/uccn/seo/app/unauth/officialWebsite/4');
let head = headData.data.data;
return { bannerList: cc, headList : head}
}, },
head () { head () {
return { return {
title: "欣新房车营地|房车营地|房车露营|房车自驾营地|房车出行景点|房车营地APP" title: this.headList.title,
meta: [
{name:this.headList.keywords, content: this.headList.keywords },
{ hid: 'description', name: this.headList.description, content: this.headList.description }
],
} }
}, }
}; };
</script> </script>
<style scoped> <style scoped>
......
...@@ -350,7 +350,10 @@ export default { ...@@ -350,7 +350,10 @@ export default {
// 首页推荐旅游 // 首页推荐旅游
let tourData = await axios.get('/api/uccn/app/unauth/tour/shopList?page=1&limit=6'); let tourData = await axios.get('/api/uccn/app/unauth/tour/shopList?page=1&limit=6');
let tour = tourData.data.data; let tour = tourData.data.data;
return { activityList: cc, bannerList: banner, newsList: news, tourList: tour} // 首页seo
let headData = await axios.get('/api/uccn/seo/app/unauth/officialWebsite/1');
let head = headData.data.data;
return { activityList: cc, bannerList: banner, newsList: news, tourList: tour , headList : head}
}, },
methods: { methods: {
handleScroll: function () { handleScroll: function () {
...@@ -480,7 +483,11 @@ export default { ...@@ -480,7 +483,11 @@ export default {
}, },
head () { head () {
return { return {
title: "欣新房车[官网]-房车租赁|房车旅游|房车营地|房车托管|房车销售|房车广告|房车APP官网" title: this.headList.title,
meta: [
{name:this.headList.keywords, content: this.headList.keywords },
{ hid: 'description', name: this.headList.description, content: this.headList.description }
],
} }
} }
} }
......
...@@ -139,11 +139,21 @@ ...@@ -139,11 +139,21 @@
this.dataDetail = data.list; this.dataDetail = data.list;
}, },
}, },
head () { async asyncData() {
return {
title: "欣新新闻|房车新闻|房车资讯|房车动态|房车市场信息|房车旅游动态|房车路线分享|房车新闻APP" let headData = await axios.get('/api/uccn/seo/app/unauth/officialWebsite/6');
} let head = headData.data.data;
}, return { headList : head}
},
head () {
return {
title: this.headList.title,
meta: [
{name:this.headList.keywords, content: this.headList.keywords },
{ hid: 'description', name: this.headList.description, content: this.headList.description }
],
}
}
}; };
</script> </script>
......
...@@ -108,8 +108,17 @@ ...@@ -108,8 +108,17 @@
swiper: galleryThumbs swiper: galleryThumbs
} }
}); });
},
head () {
return {
title: this.detail.tagTitle,
meta: [
{name:this.detail.keywords, content: this.detail.keywords },
{ hid: 'description', name: this.detail.description, content: this.detail.description }
],
} }
} }
}
</script> </script>
<style scoped> <style scoped>
.r-content{ .r-content{
......
...@@ -175,14 +175,20 @@ ...@@ -175,14 +175,20 @@
bannerClick () {}, bannerClick () {},
}, },
head () { head () {
return { return {
title: "欣新房车旅游|房车自驾游|房车旅行|房车一日游|房车出行|房车旅游景点|房车旅行攻略|房车旅游APP" title: this.headList.title,
} meta: [
}, {name:this.headList.keywords, content: this.headList.keywords },
{ hid: 'description', name: this.headList.description, content: this.headList.description }
],
}
},
async asyncData() { async asyncData() {
const { data } = await axios.get('/api/app/banner/app/unauth/findBannerlist?type=1&platform=1'); const { data } = await axios.get('/api/app/banner/app/unauth/findBannerlist?type=1&platform=1');
let cc = data.data; let cc = data.data;
return { bannerList: cc} let headData = await axios.get('/api/uccn/seo/app/unauth/officialWebsite/3');
let head = headData.data.data;
return { bannerList: cc , headList : head}
}, },
} }
</script> </script>
......
...@@ -81,6 +81,7 @@ ...@@ -81,6 +81,7 @@
}, },
data() { data() {
return { return {
// headList:{},
totalCount: 0, totalCount: 0,
dataDetail: [], dataDetail: [],
bannerList: [],//车型banner列表 bannerList: [],//车型banner列表
...@@ -104,6 +105,7 @@ ...@@ -104,6 +105,7 @@
created() { created() {
this.getAll(); this.getAll();
this.getBanner(); this.getBanner();
// this.getHead()
}, },
mounted() { mounted() {
window.addEventListener("scroll", this.scrollHandle); // 绑定页面的滚动事件 window.addEventListener("scroll", this.scrollHandle); // 绑定页面的滚动事件
...@@ -160,12 +162,22 @@ ...@@ -160,12 +162,22 @@
mounted() { mounted() {
window.addEventListener('scroll', this.scrollHandle); // 绑定页面的滚动事件 window.addEventListener('scroll', this.scrollHandle); // 绑定页面的滚动事件
}, },
},
async asyncData() {
const { data } = await axios.get('/api/uccn/seo/app/unauth/officialWebsite/2');
let cc = data.data;
return { headList: cc}
}, },
head () { head () {
return { return {
title: "欣新房车租赁|房车出租|房车服务|租用房车|出租房车|房车租赁APP" title: this.headList.title,
} meta: [
{name:this.headList.keywords, content: this.headList.keywords },
{ hid: 'description', name: this.headList.description, content: this.headList.description }
],
} }
}
}; };
</script> </script>
......
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