diff --git a/pages/index/index.vue b/pages/index/index.vue index ca1c1a1..33b4f8b 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -181,17 +181,26 @@ - 最新资讯 - 更多 + + 最新资讯 + + 更多 + + + + - - + + + + {{ item.articleTitle }} + - + 暂无最新资讯 @@ -408,6 +417,11 @@ }); } }, + toNewProject() { + uni.navigateTo({ + url: `/pages/project/newProject?tabIndex=${2}` + }); + }, gouserSet: function() { if (!this.$store.state.user.token) { uni.showModal({ diff --git a/pages/project/newProject.vue b/pages/project/newProject.vue index a321842..80add52 100644 --- a/pages/project/newProject.vue +++ b/pages/project/newProject.vue @@ -148,7 +148,10 @@ export default { nonReactiveArray: ["最新任务", "最新岗位", "最新政策"], } }, - onLoad: function () { + onLoad: function (option) { + if(option.tabIndex) { + this.activeTab = option.tabIndex + } this.getData() this.getPolicy() },