Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
a69a50b3
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a69a50b3
编写于
7月 28, 2023
作者:
Y
yupeng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xiugai-api
Signed-off-by:
N
yupeng
<
yupeng78@huawei.com
>
上级
ea2c699b
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
31 addition
and
37 deletion
+31
-37
arkui/ace_ets_web_dev_webController/entry/src/main/ets/MainAbility/pages/webONHttpErrorReceive.ets
.../src/main/ets/MainAbility/pages/webONHttpErrorReceive.ets
+2
-3
arkui/ace_ets_web_dev_webController/entry/src/main/ets/MainAbility/pages/webOnFirstContFour.ets
...try/src/main/ets/MainAbility/pages/webOnFirstContFour.ets
+2
-7
arkui/ace_ets_web_dev_webController/entry/src/main/ets/MainAbility/pages/webOnFirstContThree.ets
...ry/src/main/ets/MainAbility/pages/webOnFirstContThree.ets
+1
-1
arkui/ace_ets_web_dev_webController/entry/src/main/ets/MainAbility/pages/webOnSslError.ets
...er/entry/src/main/ets/MainAbility/pages/webOnSslError.ets
+0
-5
arkui/ace_ets_web_dev_webController/entry/src/main/module.json
.../ace_ets_web_dev_webController/entry/src/main/module.json
+26
-21
未找到文件。
arkui/ace_ets_web_dev_webController/entry/src/main/ets/MainAbility/pages/webONHttpErrorReceive.ets
浏览文件 @
a69a50b3
...
...
@@ -68,7 +68,6 @@ struct webONHttpErrorReceive {
} catch (error) {
console.error(`ErrorCode: ${error.code}, Message: ${error.message}`);
}
Utils.emitEvent(this.title, 490)
break;
}
}
...
...
@@ -101,8 +100,7 @@ struct webONHttpErrorReceive {
Utils.emitEvent(event.response.getResponseMimeType(), 476);
console.log('getResponseCode:' + event.response.getResponseCode());
Utils.emitEvent(event.response.getResponseCode(), 478);
this.title = JSON.stringify(event.response.getResponseCode()) + event.request.getRequestUrl();
console.log("this.title result is :" + this.title);
console.log("this.title result is :" + JSON.stringify(event.response.getResponseCode()) + event.request.getRequestUrl());
console.log('getReasonMessage:' + event.response.getReasonMessage());
Utils.emitEvent(event.response.getReasonMessage(), 480);
let result = event.request.getRequestHeader()
...
...
@@ -125,6 +123,7 @@ struct webONHttpErrorReceive {
console.log('The response header last result is ' + this.responseKey + this.responseValue);
Utils.emitEvent(this.responseKey, 486);
Utils.emitEvent(this.responseValue, 488);
Utils.emitEvent(JSON.stringify(event.response.getResponseCode()) + event.request.getRequestUrl(), 490)
})
}
}
...
...
arkui/ace_ets_web_dev_webController/entry/src/main/ets/MainAbility/pages/webOnFirstContFour.ets
浏览文件 @
a69a50b3
...
...
@@ -83,15 +83,10 @@ struct webOnFirstContFour {
.onFirstContentfulPaint(event => {
console.log("onFirstContentfulPaint:" + "[navigationStartTick]:" +
event.navigationStartTick + ", [firstContentfulPaintMs]:" + event.firstContentfulPaintMs + this.firstId)
if (event.firstContentfulPaintMs > 0 && event.
firstContentfulPaintMs < 300
0) {
if (event.firstContentfulPaintMs > 0 && event.
navigationStartTick >
0) {
this.firstcontentfulpaint = true;
console.error("result of onFirstContentfulPaint is: "+ this.firstcontentfulpaint + this.firstId);
}
})
.onPageEnd((event) => {
console.log('url' + event.url + this.firstcontentfulpaint + this.firstId);
if (this.firstBoo) {
Utils.emitEvent(this.firstcontentfulpaint, this.firstId)
console.error("result of onFirstContentfulPaint is: "+ this.firstcontentfulpaint + this.firstId);
}
})
}
...
...
arkui/ace_ets_web_dev_webController/entry/src/main/ets/MainAbility/pages/webOnFirstContThree.ets
浏览文件 @
a69a50b3
...
...
@@ -82,7 +82,7 @@ struct webOnFirstContThree {
.onFirstContentfulPaint(event => {
console.log("onFirstContentfulPaint:" + "[navigationStartTick]:" +
event.navigationStartTick + ", [firstContentfulPaintMs]:" + event.firstContentfulPaintMs + this.firstId)
if (event.firstContentfulPaintMs > 0 && event.
firstContentfulPaintMs < 500
0) {
if (event.firstContentfulPaintMs > 0 && event.
navigationStartTick >
0) {
this.firstcontentfulpaint = true;
console.error("result of onFirstContentfulPaint is: "+ this.firstcontentfulpaint + this.firstId);
}
...
...
arkui/ace_ets_web_dev_webController/entry/src/main/ets/MainAbility/pages/webOnSslError.ets
浏览文件 @
a69a50b3
...
...
@@ -85,11 +85,6 @@ struct webOnSslError {
Utils.emitEvent(this.sslerrorText, this.firstId)
return true
})
.onErrorReceive((event) => {
console.log('getErrorInfo:' + event.error.getErrorInfo())
console.log('getErrorCode:' + event.error.getErrorCode())
console.log('url:' + event.request.getRequestUrl())
})
}
}
}
\ No newline at end of file
arkui/ace_ets_web_dev_webController/entry/src/main/module.json
浏览文件 @
a69a50b3
...
...
@@ -8,7 +8,8 @@
"deviceTypes"
:
[
"tablet"
,
"default"
,
"phone"
"phone"
,
"2in1"
],
"deliveryWithInstall"
:
true
,
"installationFree"
:
false
,
...
...
@@ -16,29 +17,33 @@
"pages"
:
"$profile:main_pages"
,
"metadata"
:
[
{
"name"
:
"ArkTSPartialUpdate"
,
"value"
:
"true"
"name"
:
"ArkTSPartialUpdate"
,
"value"
:
"true"
}
],
"abilities"
:
[{
"name"
:
"com.example.myapplication.MainAbility"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"description"
:
"$string:phone_entry_main"
,
"icon"
:
"$media:icon"
,
"label"
:
"$string:entry_label"
,
"visible"
:
true
,
"orientation"
:
"portrait"
,
"skills"
:
[{
"actions"
:
[
"action.system.home"
],
"entities"
:
[
"entity.system.home"
],
"abilities"
:
[
{
"name"
:
"com.example.myapplication.MainAbility"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"description"
:
"$string:phone_entry_main"
,
"icon"
:
"$media:icon"
,
"label"
:
"$string:entry_label"
,
"visible"
:
true
,
"orientation"
:
"portrait"
,
"skills"
:
[
{
"actions"
:
[
"action.system.home"
],
"entities"
:
[
"entity.system.home"
]
}
]
}
]
}
],
}
],
"requestPermissions"
:
[
{
{
"name"
:
"ohos.permission.LOCATION"
},
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录