File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 555555 //延迟的原因:优先打开启动导航页面,避免资源争夺
556556 setTimeout ( function ( ) {
557557 //预加载
558- // preload();
558+ preload ( ) ;
559559 } , 200 ) ;
560560 }
561561
703703 if ( ~ id . indexOf ( 'im-chat.html' ) ) {
704704 extras . acceleration = "none" ;
705705 }
706- webview . addEventListener ( "loaded" , function ( ) {
707- webview . show ( aniShow , 300 , null , extras ) ;
708- } )
706+ webview . addEventListener ( "titleUpdate" , function ( ) {
707+ setTimeout ( function ( ) {
708+ webview . show ( aniShow , 300 , null , extras ) ;
709+ } , 100 ) ;
710+ } ) ;
709711 } else if ( href && ~ href . indexOf ( '.html' ) ) {
710712 //侧滑菜单需动态控制一下zindex值;
711713 if ( ~ id . indexOf ( 'offcanvas-' ) ) {
720722
721723
722724 var webview = plus . webview . create ( this . href , id , webview_style , extras ) ;
723- webview . addEventListener ( "loaded" , function ( ) {
724- webview . show ( aniShow , 300 ) ;
725+ webview . addEventListener ( "titleUpdate" , function ( ) {
726+ setTimeout ( function ( ) {
727+ webview . show ( aniShow , 300 ) ;
728+ } , 100 ) ;
725729 } ) ;
726730 }
727731 } ) ;
You can’t perform that action at this time.
0 commit comments