From 4c7d2727a679a1f2476326bbf0c9ecbef498fb05 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Fri, 29 Dec 2023 16:13:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E9=83=A8=E5=88=86?= =?UTF-8?q?=E7=94=A8=E6=B3=95=E9=80=82=E9=85=8Dweb=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/request/request.uvue | 2 +- pages/component/general-event/touch-event.uvue | 1 + pages/component/general-event/transition-event.uvue | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pages/API/request/request.uvue b/pages/API/request/request.uvue index 93e03d36..f0a6b1b7 100644 --- a/pages/API/request/request.uvue +++ b/pages/API/request/request.uvue @@ -274,7 +274,7 @@ success: (res) => { const requestCookie = (res.data as UTSJSONObject).getJSON("data")?.getAny("requestCookie") console.log("requestCookie ", requestCookie); - if(requestCookie instanceof Array){ + if(requestCookie instanceof Array){ this.jest_result = needCookie ? requestCookie.length > 0 : requestCookie.length == 0 }else{ this.jest_result = needCookie ? (requestCookie as UTSJSONObject).toMap().size > 0 : (requestCookie as UTSJSONObject).toMap().size == 0 diff --git a/pages/component/general-event/touch-event.uvue b/pages/component/general-event/touch-event.uvue index d6b02012..6bf15023 100644 --- a/pages/component/general-event/touch-event.uvue +++ b/pages/component/general-event/touch-event.uvue @@ -44,6 +44,7 @@ } }, onTouchMove(e: TouchEvent) { + e.preventDefault() this.touchEvent = e let p = e.touches[0] if(p.screenX == this.lastX && p.screenY == this.lastY){ diff --git a/pages/component/general-event/transition-event.uvue b/pages/component/general-event/transition-event.uvue index 6b639457..3ce94e81 100644 --- a/pages/component/general-event/transition-event.uvue +++ b/pages/component/general-event/transition-event.uvue @@ -30,14 +30,14 @@ this.buttonValue = "关闭图片旋转" this.times = this.times + 1 this.element!.style.setProperty('transform', 'rotate(' + this.times * 360 + 'deg)') - this.element!.style.setProperty('transition-duration', '2000') + this.element!.style.setProperty('transition-duration', '2000ms') this.isStart = true } else { this.isStart = false this.times = 0 this.buttonValue = "开启图片旋转" this.element!.style.setProperty('transform', 'rotate(' + this.times * 360 + 'deg)') - this.element!.style.setProperty('transition-duration', '0') + this.element!.style.setProperty('transition-duration', '0ms') } }, onEnd() { -- GitLab