提交 fb772336 编写于 作者: W wang-xupeng2

revise api

Signed-off-by: Nwang-xupeng2 <wangxupeng2@huawei.com>
上级 989e512d
...@@ -85,7 +85,7 @@ struct Index { ...@@ -85,7 +85,7 @@ struct Index {
case "emitLoadUrl":{ case "emitLoadUrl":{
try { try {
setTimeout(()=>{ setTimeout(()=>{
this.controller.loadUrl($rawfile("index.html")); this.controller.loadUrl("file:///data/storage/el1/bundle/phone/resources/rawfile/index.html");
setTimeout(()=>{ setTimeout(()=>{
let title = this.controller.getTitle(); let title = this.controller.getTitle();
Utils.emitEvent(title,1) Utils.emitEvent(title,1)
...@@ -163,7 +163,7 @@ struct Index { ...@@ -163,7 +163,7 @@ struct Index {
this.controller.onInactive(); this.controller.onInactive();
setTimeout(()=>{ setTimeout(()=>{
setTimeout(()=>{ setTimeout(()=>{
this.controller.loadUrl("resource://rawfile/index.html") this.controller.loadUrl("file:///data/storage/el1/bundle/phone/resources/rawfile/index.html")
},3000) },3000)
var title4 = this.controller.getTitle(); var title4 = this.controller.getTitle();
Utils.emitEvent(title4,7) Utils.emitEvent(title4,7)
...@@ -276,7 +276,7 @@ struct Index { ...@@ -276,7 +276,7 @@ struct Index {
} }
case "emitSearchAllAsync":{ case "emitSearchAllAsync":{
try { try {
this.controller.loadUrl("resource://rawfile/index.html") this.controller.loadUrl("file:///data/storage/el1/bundle/phone/resources/rawfile/index.html")
setTimeout(()=>{ setTimeout(()=>{
this.controller.searchAllAsync("首页"); this.controller.searchAllAsync("首页");
},3000) },3000)
...@@ -570,7 +570,6 @@ struct Index { ...@@ -570,7 +570,6 @@ struct Index {
.onTouchIconUrlReceived((event) => { .onTouchIconUrlReceived((event) => {
console.log('onTouchIconUrlReceived:' + JSON.stringify(event)) console.log('onTouchIconUrlReceived:' + JSON.stringify(event))
}) })
.pinchSmooth(true)
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册