|
@@ -156,7 +156,7 @@ const App = {
|
|
//栏目处理
|
|
//栏目处理
|
|
|
|
|
|
//进入首页
|
|
//进入首页
|
|
- if (_this.columnList[i].sname == '/' && (window.location.pathname == '/'||window.location.pathname == ''||window.location.pathname == '/index.html')) {
|
|
|
|
|
|
+ if (_this.columnList[i].categoryStyle == '1' && (window.location.pathname == '/'||window.location.pathname == ''||window.location.pathname == '/index.html')) {
|
|
getSeoCommon()
|
|
getSeoCommon()
|
|
|
|
|
|
this.requestParams.categoryid = this.columnList[0].id
|
|
this.requestParams.categoryid = this.columnList[0].id
|
|
@@ -172,9 +172,9 @@ const App = {
|
|
}
|
|
}
|
|
|
|
|
|
//进入其他栏目页
|
|
//进入其他栏目页
|
|
-
|
|
|
|
|
|
|
|
- if (('/template'+_this.columnList[i].categoryStyle+'/' == window.location.pathname)||(_this.columnList[i].categoryStyle == window.location.pathname.replace('index.html', ''))) {
|
|
|
|
|
|
+
|
|
|
|
+ if (('/template'+_this.columnList[i].categoryStyle+'/' == window.location.pathname)||(_this.columnList[i].categoryStyle == window.location.pathname.replace('index.html', ''))) {
|
|
getSeoCommon()
|
|
getSeoCommon()
|
|
_this.columnTypes = _this.columnList[i].children
|
|
_this.columnTypes = _this.columnList[i].children
|
|
_this.colL = _this.columnTypes.childten;
|
|
_this.colL = _this.columnTypes.childten;
|
|
@@ -185,7 +185,7 @@ const App = {
|
|
_this.requestParams.categoryid = objData[0].id
|
|
_this.requestParams.categoryid = objData[0].id
|
|
|
|
|
|
}
|
|
}
|
|
- _this.getArticalData(_this.requestParams)
|
|
|
|
|
|
+ _this.getArticalData(_this.requestParams)
|
|
_this.modelType = _this.columnList[i].modelType;
|
|
_this.modelType = _this.columnList[i].modelType;
|
|
_this.columnImage = _this.columnList[i].imagePath;
|
|
_this.columnImage = _this.columnList[i].imagePath;
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -199,27 +199,12 @@ const App = {
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
|
|
|
-
|
|
|
|
|
|
+ // 进入详情页
|
|
if('/template'+_this.columnList[i].categoryStyle+'/read.html'==window.location.pathname){
|
|
if('/template'+_this.columnList[i].categoryStyle+'/read.html'==window.location.pathname){
|
|
getDetailCommon()
|
|
getDetailCommon()
|
|
getSeoCommon()
|
|
getSeoCommon()
|
|
}
|
|
}
|
|
-
|
|
|
|
- // 进入详情页
|
|
|
|
- // if (_this.columnList[i].categoryStyle == '2' && window.location.pathname == '/template2/read.html') {
|
|
|
|
-
|
|
|
|
- // getDetailCommon()
|
|
|
|
- // getSeoCommon()
|
|
|
|
- // }
|
|
|
|
- // if (_this.columnList[i].sname == '/3/' && window.location.pathname == '/template3/read.html') {
|
|
|
|
- // getDetailCommon()
|
|
|
|
- // getSeoCommon()
|
|
|
|
- // }
|
|
|
|
- // if (_this.columnList[i].sname == '/4/' && window.location.pathname == '/template4/read.html') {
|
|
|
|
- // getDetailCommon()
|
|
|
|
- // getSeoCommon()
|
|
|
|
- // }
|
|
|
|
-
|
|
|
|
|
|
+
|
|
function getDetailCommon() {
|
|
function getDetailCommon() {
|
|
//获取内容详情
|
|
//获取内容详情
|
|
_this.getArticalData(_this.requestParams)
|
|
_this.getArticalData(_this.requestParams)
|
|
@@ -250,7 +235,7 @@ const App = {
|
|
|
|
|
|
|
|
|
|
// 获取反馈弹框类型数据
|
|
// 获取反馈弹框类型数据
|
|
- if (_this.columnList[i].sname == '/solution/') {
|
|
|
|
|
|
+ if (_this.columnList[i].categoryStyle == '2') {
|
|
_this.dialogDataArray = (_this.columnList[i].children)
|
|
_this.dialogDataArray = (_this.columnList[i].children)
|
|
_this.ruleForm.platName = _this.dialogDataArray[0].categoryName;
|
|
_this.ruleForm.platName = _this.dialogDataArray[0].categoryName;
|
|
}
|
|
}
|
|
@@ -260,7 +245,7 @@ const App = {
|
|
//获取内容
|
|
//获取内容
|
|
getArticalData(requestParams, type) {
|
|
getArticalData(requestParams, type) {
|
|
var _this = this
|
|
var _this = this
|
|
- if (window.location.pathname == '/news/') {
|
|
|
|
|
|
+ if (window.location.pathname == '/template4/') {
|
|
_this.requestParams.order = ''
|
|
_this.requestParams.order = ''
|
|
}
|
|
}
|
|
|
|
|