|
@@ -136,11 +136,6 @@ export default {
|
|
|
//监听tabs的变化
|
|
|
tabAct_id: {
|
|
|
handler(newVal) {
|
|
|
- this.tabBars.forEach((item) => {
|
|
|
- if (item.CategoryId == newVal) {
|
|
|
- this.$store.commit("setRouterReport", item.MatchTypeName);
|
|
|
- }
|
|
|
- });
|
|
|
if (newVal) {
|
|
|
this.page_no = 1;
|
|
|
this.collectList = [];
|
|
@@ -169,6 +164,7 @@ export default {
|
|
|
Reports.toArticleCategoryList({
|
|
|
IndustrialManagementId: this.industrialManagementId,
|
|
|
ShowTimeLine: 1,
|
|
|
+ PageRouter: this.$store.state.pageRouterReport,
|
|
|
}).then((res) => {
|
|
|
if (res.Ret == 200) {
|
|
|
uni.setNavigationBarTitle({
|
|
@@ -268,6 +264,7 @@ export default {
|
|
|
url: "/reportPages/roadEssence/roadEssence?id=" + item.ArticleId,
|
|
|
});
|
|
|
} else {
|
|
|
+ this.setRouter();
|
|
|
uni.navigateTo({
|
|
|
url: "/pageMy/reportDetail/reportDetail?id=" + item.ArticleId,
|
|
|
});
|
|
@@ -356,6 +353,7 @@ export default {
|
|
|
url: "/reportPages/roadEssence/roadEssence?id=" + item.Id,
|
|
|
});
|
|
|
} else {
|
|
|
+ this.setRouter();
|
|
|
uni.navigateTo({
|
|
|
url: "/pageMy/reportDetail/reportDetail?id=" + item.Id,
|
|
|
});
|
|
@@ -365,6 +363,14 @@ export default {
|
|
|
getNode(content, isExpand) {
|
|
|
return `<div style='-webkit-line-clamp: ${isExpand ? 9999 : 3};-webkit-box-orient: vertical;display: -webkit-box;overflow: hidden;text-overflow: ellipsis;'>${content}</div>`;
|
|
|
},
|
|
|
+ // 去往文章详情的
|
|
|
+ setRouter() {
|
|
|
+ this.tabBars.forEach((item) => {
|
|
|
+ if (this.tabAct_id == item.CategoryId) {
|
|
|
+ this.$store.commit("setRouterReport", item.MatchTypeName);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
/* 触底 */
|
|
|
onReachBottom: Throttle(function () {
|