提交 de10ee93 authored 作者: huaxinzhu's avatar huaxinzhu

Merge branch 'test_xy_phone_logo' into test

...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
"vue-awesome-swiper": "^4.1.1", "vue-awesome-swiper": "^4.1.1",
"vue-count-to": "1.0.13", "vue-count-to": "1.0.13",
"vue-cropper": "0.4.9", "vue-cropper": "0.4.9",
"vue-meta-info": "^0.1.7",
"vue-quill-editor": "^3.0.6", "vue-quill-editor": "^3.0.6",
"vue-router": "3.0.2", "vue-router": "3.0.2",
"vue-splitpane": "1.0.4", "vue-splitpane": "1.0.4",
......
...@@ -49,6 +49,10 @@ Vue.prototype.msgInfo = function (msg) { ...@@ -49,6 +49,10 @@ Vue.prototype.msgInfo = function (msg) {
this.$message.info(msg); this.$message.info(msg);
} }
// 动态修改meta
import MetaInfo from 'vue-meta-info'
Vue.use(MetaInfo)
//引入拖拽排序插件 //引入拖拽排序插件
import VueDND from 'awe-dnd' import VueDND from 'awe-dnd'
......
...@@ -267,8 +267,27 @@ ...@@ -267,8 +267,27 @@
export default { export default {
name: "newyuncang", name: "newyuncang",
metaInfo () {
return {
title: this.keyTitle,
meta: [
{
name: 'keywords',
content: this.keyWords
},
{
name: 'description',
content: this.keyDescriptions
}
]
}
},
data() { data() {
return { return {
// meta 信息
keyTitle: '',
keyWords: '',
keyDescriptions: '',
// banner 图 // banner 图
bannerList: [], bannerList: [],
// 核心优势 // 核心优势
...@@ -409,6 +428,9 @@ ...@@ -409,6 +428,9 @@
indexInfo(data).then(res => { indexInfo(data).then(res => {
if (res.code == 1) { if (res.code == 1) {
this.channel_id = res.data.channel_id this.channel_id = res.data.channel_id
this.keyTitle = res.data.title;
this.keyWords = res.data.keywords;
this.keyDescriptions = res.data.describe;
this.getWebSite() this.getWebSite()
this.getDomain() this.getDomain()
this.getAllcloud() this.getAllcloud()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论