diff --git a/pages/API/request/request.uvue b/pages/API/request/request.uvue index 93e03d363cc7d685e8ea4fe720f107d99f07548a..f0a6b1b711cb8477318144465983d729efd2cd35 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 d6b02012fd162f7a3d4554f444bc0238dec0f6f6..6bf15023eb31538a679a1289fbef904b1c0e5829 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 6b63945755a146758bae2386da98990650c6bc1b..3ce94e816073df7c8071bf84870685ebc2b80067 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() {