From 000054dffd8f5e14641c7116ba46f73be69767a8 Mon Sep 17 00:00:00 2001 From: "liu.xiaofeng@ebiz-digits.com" Date: Wed, 9 Nov 2022 14:32:09 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=93=B6=E4=BF=9Dapp=E3=80=91?= =?UTF-8?q?=E8=BD=AE=E6=92=AD=E5=9B=BE=E5=A2=9E=E5=8A=A0=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/YB_APP/home.vue | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/src/views/YB_APP/home.vue b/src/views/YB_APP/home.vue index 7a58f4870..63a3577ff 100644 --- a/src/views/YB_APP/home.vue +++ b/src/views/YB_APP/home.vue @@ -2,7 +2,7 @@
- + @@ -324,6 +324,7 @@ export default { colorTwo:false, colorThree:false, thisValue:'12.9', + clickFlag:false, } }, mounted(){ @@ -381,11 +382,7 @@ export default { this.calendarShow = true }, setAnimation(){ - let ruleTrue = ` @keyframes changeWidth3 { - 0% {width: 0px;} - 100% {width: 170px;} - }` - + let ruleTrue = ` @keyframes changeWidth3 { 0% {width: 0px;} 100% {width: 170px;} }` let sheet = document.styleSheets[0] sheet.insertRule(ruleTrue, 0) this.$refs.imageup1.style.animation = "changeWidth3 1s forwards" @@ -397,6 +394,24 @@ export default { }else{ this.$toast('暂未开放') } + }, + touchstart(){ + this.clickFlag = true + }, + touchmove(){ + this.clickFlag = false + }, + touchend(data){ + if(this.clickFlag){ + window.location.href = JSON.parse(data.route).extra.url + }else{ + + } + }, + swiperJump(data){ + if(JSON.parse(data.route).extra.url){ + window.location.href = JSON.parse(data.route).extra.url + } } }, }