Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
673c1ec0
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
5995
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看板
提交
673c1ec0
编写于
6月 18, 2024
作者:
雪洛
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 修复类型警告
上级
3522b9d6
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
24 addition
and
24 deletion
+24
-24
pages/API/get-image-info/get-image-info.uvue
pages/API/get-image-info/get-image-info.uvue
+1
-1
pages/API/get-video-info/get-video-info.uvue
pages/API/get-video-info/get-video-info.uvue
+1
-1
pages/component/image/image.uvue
pages/component/image/image.uvue
+2
-2
pages/component/video/video.uvue
pages/component/video/video.uvue
+12
-12
pages/component/web-view-local/web-view-local.uvue
pages/component/web-view-local/web-view-local.uvue
+5
-5
pages/component/web-view/web-view.uvue
pages/component/web-view/web-view.uvue
+3
-3
未找到文件。
pages/API/get-image-info/get-image-info.uvue
浏览文件 @
673c1ec0
...
...
@@ -40,7 +40,7 @@
remoteImagePath: "https://qiniu-web-assets.dcloud.net.cn/uni-app-x/static/img/building.jpg",
remoteImageInfo: "",
// 自动化测试
imageInfoForTest: null,
imageInfoForTest: null
as UTSJSONObject | null
,
}
},
methods: {
...
...
pages/API/get-video-info/get-video-info.uvue
浏览文件 @
673c1ec0
...
...
@@ -26,7 +26,7 @@
absoluteVideoPath: "",
absoluteVideoInfo: "",
// 自动化测试
videoInfoForTest: null
videoInfoForTest: null
as UTSJSONObject | null
}
},
methods: {
...
...
pages/component/image/image.uvue
浏览文件 @
673c1ec0
...
...
@@ -35,8 +35,8 @@
autoTest: false,
setCookieImage: "",
verifyCookieImage: "",
eventLoad: null,
eventError: null
eventLoad: null
as UTSJSONObject | null
,
eventError: null
as UTSJSONObject | null
}
},
methods: {
...
...
pages/component/video/video.uvue
浏览文件 @
673c1ec0
...
...
@@ -175,16 +175,16 @@
isPause: false,
isError: false,
localSrc: 'https://qiniu-web-assets.dcloud.net.cn/video/sample/2minute-demo.mp4',
eventPlay: null,
eventPause: null,
eventEnded: null,
eventTimeupdate: null,
eventFullscreenchange: null,
eventWaiting: null,
eventError: null,
eventProgress: null,
eventFullscreenclick: null,
eventControlstoggle: null
eventPlay: null
as UTSJSONObject | null
,
eventPause: null
as UTSJSONObject | null
,
eventEnded: null
as UTSJSONObject | null
,
eventTimeupdate: null
as UTSJSONObject | null
,
eventFullscreenchange: null
as UTSJSONObject | null
,
eventWaiting: null
as UTSJSONObject | null
,
eventError: null
as UTSJSONObject | null
,
eventProgress: null
as UTSJSONObject | null
,
eventFullscreenclick: null
as UTSJSONObject | null
,
eventControlstoggle: null
as UTSJSONObject | null
}
},
onLoad() {
...
...
@@ -257,13 +257,13 @@
},
onInitialTimeComfirm: function (event : UniInputConfirmEvent) {
let value = parseInt(event.detail.value)
if (
value == NaN
) value = 0;
if (
isNaN(value)
) value = 0;
this.initialTime = value;
console.log("initialTime -> " + this.initialTime)
},
onDurationComfirm: function (event : UniInputConfirmEvent) {
let value = parseInt(event.detail.value)
if (
value == NaN
) value = 0;
if (
isNaN(value)
) value = 0;
this.duration = value;
console.log("duration -> " + this.duration)
},
...
...
pages/component/web-view-local/web-view-local.uvue
浏览文件 @
673c1ec0
...
...
@@ -12,17 +12,17 @@
loadFinish: false,
// 自动化测试
autoTest: false,
eventMessage: null,
eventDownload: null
eventMessage: null
as UTSJSONObject | null
,
eventDownload: null
as UTSJSONObject | null
}
},
methods: {
message(event : UniWebViewMessageEvent) {
console.log(JSON.stringify(event.detail));
let contentStr = JSON.stringify(event.detail);
<!-- #ifdef APP-IOS -->
contentStr = JSON.stringify(event.detail.data[0]);
<!-- #endif -->
// #ifdef APP-IOS
contentStr = JSON.stringify(event.detail.data[0]);
// #endif
uni.showModal({
content: contentStr,
showCancel: false
...
...
pages/component/web-view/web-view.uvue
浏览文件 @
673c1ec0
...
...
@@ -53,9 +53,9 @@
verticalScrollBarAccess: true,
// 自动化测试
autoTest: false,
eventLoading: null,
eventLoad: null,
eventError: null
eventLoading: null
as UTSJSONObject | null
,
eventLoad: null
as UTSJSONObject | null
,
eventError: null
as UTSJSONObject | null
}
},
onReady() {
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录