Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
4c7d2727
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
5992
Star
90
Fork
162
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
18
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-app x
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
18
Issue
18
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
4c7d2727
编写于
12月 29, 2023
作者:
雪洛
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 修正部分用法适配web端
上级
5cc644b3
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
4 addition
and
3 deletion
+4
-3
pages/API/request/request.uvue
pages/API/request/request.uvue
+1
-1
pages/component/general-event/touch-event.uvue
pages/component/general-event/touch-event.uvue
+1
-0
pages/component/general-event/transition-event.uvue
pages/component/general-event/transition-event.uvue
+2
-2
未找到文件。
pages/API/request/request.uvue
浏览文件 @
4c7d2727
...
@@ -274,7 +274,7 @@
...
@@ -274,7 +274,7 @@
success: (res) => {
success: (res) => {
const requestCookie = (res.data as UTSJSONObject).getJSON("data")?.getAny("requestCookie")
const requestCookie = (res.data as UTSJSONObject).getJSON("data")?.getAny("requestCookie")
console.log("requestCookie ", requestCookie);
console.log("requestCookie ", requestCookie);
if(requestCookie instanceof Array
<unknown>
){
if(requestCookie instanceof Array){
this.jest_result = needCookie ? requestCookie.length > 0 : requestCookie.length == 0
this.jest_result = needCookie ? requestCookie.length > 0 : requestCookie.length == 0
}else{
}else{
this.jest_result = needCookie ? (requestCookie as UTSJSONObject).toMap().size > 0 : (requestCookie as UTSJSONObject).toMap().size == 0
this.jest_result = needCookie ? (requestCookie as UTSJSONObject).toMap().size > 0 : (requestCookie as UTSJSONObject).toMap().size == 0
...
...
pages/component/general-event/touch-event.uvue
浏览文件 @
4c7d2727
...
@@ -44,6 +44,7 @@
...
@@ -44,6 +44,7 @@
}
}
},
},
onTouchMove(e: TouchEvent) {
onTouchMove(e: TouchEvent) {
e.preventDefault()
this.touchEvent = e
this.touchEvent = e
let p = e.touches[0]
let p = e.touches[0]
if(p.screenX == this.lastX && p.screenY == this.lastY){
if(p.screenX == this.lastX && p.screenY == this.lastY){
...
...
pages/component/general-event/transition-event.uvue
浏览文件 @
4c7d2727
...
@@ -30,14 +30,14 @@
...
@@ -30,14 +30,14 @@
this.buttonValue = "关闭图片旋转"
this.buttonValue = "关闭图片旋转"
this.times = this.times + 1
this.times = this.times + 1
this.element!.style.setProperty('transform', 'rotate(' + this.times * 360 + 'deg)')
this.element!.style.setProperty('transform', 'rotate(' + this.times * 360 + 'deg)')
this.element!.style.setProperty('transition-duration', '2000')
this.element!.style.setProperty('transition-duration', '2000
ms
')
this.isStart = true
this.isStart = true
} else {
} else {
this.isStart = false
this.isStart = false
this.times = 0
this.times = 0
this.buttonValue = "开启图片旋转"
this.buttonValue = "开启图片旋转"
this.element!.style.setProperty('transform', 'rotate(' + this.times * 360 + 'deg)')
this.element!.style.setProperty('transform', 'rotate(' + this.times * 360 + 'deg)')
this.element!.style.setProperty('transition-duration', '0')
this.element!.style.setProperty('transition-duration', '0
ms
')
}
}
},
},
onEnd() {
onEnd() {
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录