search

Home  >  Q&A  >  body text

android - weex界面卡死问题,还有导航跳转没有动画

weex的操作不像原生那样一点就开,而是要所有界面渲染完了才能点得动,这个问题有没有解决办法呢,特别是安卓下面,如果网络请求比较多,那要等很久才能点得动。

还有就是路由没有动画,我用的是vue-router路由,二个页面的交替界面难看死了,一点不自然。

怪我咯怪我咯2771 days ago649

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-18 09:56:56

    Are the files used to render the page loaded remotely? Local files won't be slow in the first place. If the speed of loading the file and rendering the page is still unacceptable, you can add a mask and cancel the mask after the rendering is successful to optimize the user experience.

    If you use the visible and hidden state of vue-router,那其实你的页面就是一个单页面,页面的交替其实就是在切换View, it is recommended that if there are many pages, or the pages are relatively complex, compile your business into multiple pages, that is, compile multiple entry files.

    reply
    0
  • PHPz

    PHPz2017-04-18 09:56:56

    The JS file is loaded remotely. This is no problem. After the JS is loaded successfully, there is still some data in it that is read from the network. At this time, the interface cannot be clicked. The data must be downloaded and the interface rendered before it can be clicked. .
    Business is compiled into multiple pages, that is, multiple entry files are compiled? How does this work? Isn't weex only packaged into a single JS?

    reply
    0
  • Cancelreply