From 080a18ef503542758b44aacbb6d997238d52b88b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E5=8F=91?= <2577324884@qq.com> Date: Wed, 15 May 2024 17:37:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9F=A5=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/lecturer/Index.vue | 62 ++++++++++++++++++++++++++++++++++-- 1 file changed, 59 insertions(+), 3 deletions(-) diff --git a/src/views/lecturer/Index.vue b/src/views/lecturer/Index.vue index 3e8ea732..4166fc96 100644 --- a/src/views/lecturer/Index.vue +++ b/src/views/lecturer/Index.vue @@ -50,7 +50,6 @@ export default { this.getList(); }, methods:{ - jumpRouter(teacherId){ this.$router.push({ path:'/need/draft', @@ -79,6 +78,63 @@ export default { this.params.pageIndex = val; this.getList(); }, + //根据认证状态跳转页面 + getView(item){ + if(item.secondResult==0){ + if (item.endStatus==0){ + this.$router.push({ + path:'/need/twofinals', + query:{teacherId:item.teacherId} + }) + }else if (item.offlineTutoring==0){ + this.$router.push({ + path:'/need/twocoachingsuccess', + query:{teacherId:item.teacherId} + }) + }else if (item.offlineTutoring==1){ + this.$router.push({ + path:'/need/twocoaching', + query:{teacherId:item.teacherId} + }) + } + }else if (item.secondResult==1){ + if (item.endStatus==0){ + this.$router.push({ + path:'/need/finalsuccess', + query:{teacherId:item.teacherId} + }) + }else if (item.offlineTutoring==0 && item.endStatus==1){ + this.$router.push({ + path:'/need/final', + query:{teacherId:item.teacherId} + }) + }else if (item.offlineTutoring==1 && item.onlineLearning==0){ + this.$router.push({ + path:'/need/coaching', + query:{teacherId:item.teacherId} + }) + }else if (item.onlineLearning==2 || item.onlinelearning==1){ + this.$router.push({ + path:'/need/onlinelearning', + query:{teacherId:item.teacherId} + }) + } + } + }, + //查看认证记录 + getRecording(item){ + if (item.secondResult==0){ + this.$router.push({ + path:'/need/twofinals', + query:{teacherId:item.teacherId} + }) + }else { + this.$router.push({ + path:'/need/finalsuccess', + query:{teacherId:item.teacherId} + }) + } + } } } @@ -116,9 +172,9 @@ export default {