Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
673c1ec0
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
6006
Star
91
Fork
164
代码
文件
提交
分支
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 @@
...
@@ -40,7 +40,7 @@
remoteImagePath: "https://qiniu-web-assets.dcloud.net.cn/uni-app-x/static/img/building.jpg",
remoteImagePath: "https://qiniu-web-assets.dcloud.net.cn/uni-app-x/static/img/building.jpg",
remoteImageInfo: "",
remoteImageInfo: "",
// 自动化测试
// 自动化测试
imageInfoForTest: null,
imageInfoForTest: null
as UTSJSONObject | null
,
}
}
},
},
methods: {
methods: {
...
...
pages/API/get-video-info/get-video-info.uvue
浏览文件 @
673c1ec0
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
absoluteVideoPath: "",
absoluteVideoPath: "",
absoluteVideoInfo: "",
absoluteVideoInfo: "",
// 自动化测试
// 自动化测试
videoInfoForTest: null
videoInfoForTest: null
as UTSJSONObject | null
}
}
},
},
methods: {
methods: {
...
...
pages/component/image/image.uvue
浏览文件 @
673c1ec0
...
@@ -35,8 +35,8 @@
...
@@ -35,8 +35,8 @@
autoTest: false,
autoTest: false,
setCookieImage: "",
setCookieImage: "",
verifyCookieImage: "",
verifyCookieImage: "",
eventLoad: null,
eventLoad: null
as UTSJSONObject | null
,
eventError: null
eventError: null
as UTSJSONObject | null
}
}
},
},
methods: {
methods: {
...
...
pages/component/video/video.uvue
浏览文件 @
673c1ec0
...
@@ -175,16 +175,16 @@
...
@@ -175,16 +175,16 @@
isPause: false,
isPause: false,
isError: false,
isError: false,
localSrc: 'https://qiniu-web-assets.dcloud.net.cn/video/sample/2minute-demo.mp4',
localSrc: 'https://qiniu-web-assets.dcloud.net.cn/video/sample/2minute-demo.mp4',
eventPlay: null,
eventPlay: null
as UTSJSONObject | null
,
eventPause: null,
eventPause: null
as UTSJSONObject | null
,
eventEnded: null,
eventEnded: null
as UTSJSONObject | null
,
eventTimeupdate: null,
eventTimeupdate: null
as UTSJSONObject | null
,
eventFullscreenchange: null,
eventFullscreenchange: null
as UTSJSONObject | null
,
eventWaiting: null,
eventWaiting: null
as UTSJSONObject | null
,
eventError: null,
eventError: null
as UTSJSONObject | null
,
eventProgress: null,
eventProgress: null
as UTSJSONObject | null
,
eventFullscreenclick: null,
eventFullscreenclick: null
as UTSJSONObject | null
,
eventControlstoggle: null
eventControlstoggle: null
as UTSJSONObject | null
}
}
},
},
onLoad() {
onLoad() {
...
@@ -257,13 +257,13 @@
...
@@ -257,13 +257,13 @@
},
},
onInitialTimeComfirm: function (event : UniInputConfirmEvent) {
onInitialTimeComfirm: function (event : UniInputConfirmEvent) {
let value = parseInt(event.detail.value)
let value = parseInt(event.detail.value)
if (
value == NaN
) value = 0;
if (
isNaN(value)
) value = 0;
this.initialTime = value;
this.initialTime = value;
console.log("initialTime -> " + this.initialTime)
console.log("initialTime -> " + this.initialTime)
},
},
onDurationComfirm: function (event : UniInputConfirmEvent) {
onDurationComfirm: function (event : UniInputConfirmEvent) {
let value = parseInt(event.detail.value)
let value = parseInt(event.detail.value)
if (
value == NaN
) value = 0;
if (
isNaN(value)
) value = 0;
this.duration = value;
this.duration = value;
console.log("duration -> " + this.duration)
console.log("duration -> " + this.duration)
},
},
...
...
pages/component/web-view-local/web-view-local.uvue
浏览文件 @
673c1ec0
...
@@ -12,17 +12,17 @@
...
@@ -12,17 +12,17 @@
loadFinish: false,
loadFinish: false,
// 自动化测试
// 自动化测试
autoTest: false,
autoTest: false,
eventMessage: null,
eventMessage: null
as UTSJSONObject | null
,
eventDownload: null
eventDownload: null
as UTSJSONObject | null
}
}
},
},
methods: {
methods: {
message(event : UniWebViewMessageEvent) {
message(event : UniWebViewMessageEvent) {
console.log(JSON.stringify(event.detail));
console.log(JSON.stringify(event.detail));
let contentStr = JSON.stringify(event.detail);
let contentStr = JSON.stringify(event.detail);
<!-- #ifdef APP-IOS -->
// #ifdef APP-IOS
contentStr = JSON.stringify(event.detail.data[0]);
contentStr = JSON.stringify(event.detail.data[0]);
<!-- #endif -->
// #endif
uni.showModal({
uni.showModal({
content: contentStr,
content: contentStr,
showCancel: false
showCancel: false
...
...
pages/component/web-view/web-view.uvue
浏览文件 @
673c1ec0
...
@@ -53,9 +53,9 @@
...
@@ -53,9 +53,9 @@
verticalScrollBarAccess: true,
verticalScrollBarAccess: true,
// 自动化测试
// 自动化测试
autoTest: false,
autoTest: false,
eventLoading: null,
eventLoading: null
as UTSJSONObject | null
,
eventLoad: null,
eventLoad: null
as UTSJSONObject | null
,
eventError: null
eventError: null
as UTSJSONObject | null
}
}
},
},
onReady() {
onReady() {
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录