|
@@ -32,6 +32,7 @@ var app = new Vue({
|
|
|
articalArray: [], //详情数组
|
|
|
articalArrayRelated: [], //相关新闻
|
|
|
columnTypes: [], //栏目类型
|
|
|
+ columnImage:'',//栏目图片
|
|
|
|
|
|
|
|
|
|
|
@@ -146,6 +147,9 @@ var app = new Vue({
|
|
|
for (let i = 0; i < res.data.length; i++) {
|
|
|
// console.log(res.data[i].sname)
|
|
|
// console.log(window.location.pathname)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
if (res.data[i].categoryName == '首页' && window.location.pathname == '/index.html') {
|
|
@@ -161,6 +165,7 @@ var app = new Vue({
|
|
|
}
|
|
|
if (res.data[i].categoryName == '产品服务' && window.location.pathname == '/product/read.html') {
|
|
|
_this.currentPath = '/product/index.html' //产品详情时栏目高亮
|
|
|
+ _this.columnImage=res.data[i].imagePath; //栏目图片获取
|
|
|
setTimeout(()=>{
|
|
|
_this.requestParams.title=''
|
|
|
_this.getArticalData( _this.requestParams,1)
|
|
@@ -169,6 +174,8 @@ var app = new Vue({
|
|
|
}
|
|
|
if (res.data[i].categoryName == '解决方案' && window.location.pathname == '/solution/read.html') {
|
|
|
_this.currentPath = '/solution/index.html' //产品详情时栏目高亮
|
|
|
+ _this.columnImage=res.data[i].imagePath; //栏目图片获取
|
|
|
+
|
|
|
//获取相关新闻数据
|
|
|
setTimeout(()=>{
|
|
|
_this.requestParams.title=''
|
|
@@ -178,11 +185,13 @@ var app = new Vue({
|
|
|
}
|
|
|
if (res.data[i].categoryName == '解决方案') {
|
|
|
_this.dialogDataArray=(res.data[i].children)
|
|
|
- _this.ruleForm.platName= _this.dialogDataArray[0].categoryName
|
|
|
+ _this.ruleForm.platName= _this.dialogDataArray[0].categoryName;
|
|
|
+ _this.columnImage=res.data[i].imagePath; //栏目图片获取
|
|
|
}
|
|
|
|
|
|
if (res.data[i].categoryName == '新闻动态' && window.location.pathname == '/news/read.html') {
|
|
|
_this.currentPath = '/news/index.html' //新闻详情时栏目高亮
|
|
|
+ _this.columnImage=res.data[i].imagePath; //栏目图片获取
|
|
|
|
|
|
//获取相关新闻数据
|
|
|
setTimeout(()=>{
|
|
@@ -222,6 +231,7 @@ var app = new Vue({
|
|
|
_this.requestParams.categoryid=_this.getQuery('id')
|
|
|
console.log(_this.requestParams)
|
|
|
_this.getArticalData(_this.requestParams)
|
|
|
+ _this.columnImage=res.data[i].imagePath; //栏目图片获取
|
|
|
|
|
|
//关于永天旧
|
|
|
$.ajax({
|
|
@@ -259,6 +269,7 @@ var app = new Vue({
|
|
|
_this.columnTypes = res.data[i].children
|
|
|
_this.requestParams.categoryid = (_this.getQuery('isUrlId') == 1) ? _this.getQuery('id') : _this.columnTypes[0].id;
|
|
|
_this.getArticalData(_this.requestParams)
|
|
|
+ _this.columnImage=res.data[i].imagePath; //栏目图片获取
|
|
|
|
|
|
|
|
|
}
|
|
@@ -266,6 +277,7 @@ var app = new Vue({
|
|
|
_this.columnTypes = res.data[i].children
|
|
|
_this.requestParams.categoryid = (_this.getQuery('isUrlId') == 1) ? _this.getQuery('id') : _this.columnTypes[0].id;
|
|
|
_this.getArticalData(_this.requestParams)
|
|
|
+ _this.columnImage=res.data[i].imagePath; //栏目图片获取
|
|
|
}
|
|
|
}
|
|
|
}
|