|
@@ -91,9 +91,9 @@ var app = new Vue({
|
|
|
|
|
|
},
|
|
|
created: function () {
|
|
|
- this.requestParams.categoryid = this.getQuery('id') ? this.getQuery('id') : ''
|
|
|
- this.requestParams.id = this.getQuery('articleid') ? this.getQuery('articleid') : ''
|
|
|
- this.requestParams.articleid = this.getQuery('articleid') ? this.getQuery('articleid') : ''
|
|
|
+ this.requestParams.categoryid = this.getQuery('categoryid') ? this.getQuery('categoryid') : ''
|
|
|
+ this.requestParams.id = this.getQuery('id') ? this.getQuery('id') : ''
|
|
|
+ this.requestParams.articleid = this.getQuery('id') ? this.getQuery('id') : ''
|
|
|
},
|
|
|
mounted: function () {
|
|
|
|
|
@@ -264,12 +264,11 @@ var app = new Vue({
|
|
|
bb = res.data.records
|
|
|
} else {
|
|
|
aa = res.data.records;
|
|
|
-// aa.sort(_this.compare("sortindex"))
|
|
|
_this.articalArray = aa;
|
|
|
}
|
|
|
- if (bb) {
|
|
|
+ if (bb) {
|
|
|
_this.articalArrayRelated = bb.filter(obj => obj.title != _this.articalArray[0].title);
|
|
|
- _this.articalArrayRelated = bb
|
|
|
+ // _this.articalArrayRelated = bb
|
|
|
}
|
|
|
// _this.loading = false;
|
|
|
_this.totalPageSzie = res.data.total
|
|
@@ -287,7 +286,7 @@ var app = new Vue({
|
|
|
// 分页
|
|
|
oneInnerBox: function (param) {
|
|
|
|
|
|
- window.location = "./read.html?id=" + param.categoryid + "&articleid=" + param.id + "&isUrlId=1";
|
|
|
+ window.location = "./read.html?categoryid=" + param.categoryid + "&id=" + param.id + "&isUrlId=1";
|
|
|
},
|
|
|
enterPage: function (res) {
|
|
|
if (this.goPage >= 1 && this.goPage <= this.totalPageNum) {
|