From 76c1a9387ea65fd41e095313fd883516b1005e4e Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Mon, 24 Jun 2024 13:55:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=88=87=E6=8D=A2=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../screen-content-right/zdyf-right/index.vue | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/views/next/screen-content-right/zdyf-right/index.vue b/src/views/next/screen-content-right/zdyf-right/index.vue index 70402b4..f8761a5 100644 --- a/src/views/next/screen-content-right/zdyf-right/index.vue +++ b/src/views/next/screen-content-right/zdyf-right/index.vue @@ -261,7 +261,8 @@ export default { yjyList: [], zyzxList: [], zyzxType: 1, - navId: '' + navId: '', + timer:null } }, mounted () { @@ -277,6 +278,11 @@ export default { seedPowerCompanyList({}).then((res) => { this.yjyList = res.data.list }) + let that = this + clearInterval(this.timer) + this.timer = setInterval(()=>{ + this.switchZYZX() + },5000) }, methods: { ...mapActions({ @@ -287,6 +293,9 @@ export default { set_zdyf_ggqy: 'SET_ZDYF_GGQY', set_research_id: 'SET_RESEARCH_ID' }), + switchZYZX(){ + this.zyzxType = this.zyzxType === 1?2:1 + }, handelClickTalents () { this.set_talents(true) }, @@ -325,7 +334,11 @@ export default { }, components: {}, computed: {}, - watch: {} + watch: {}, + destroyed(){ + clearInterval(this.timer); + this.timer = null; + } }