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 + } } }, }