Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于底部工具栏跳转的问题。 #399

Open
Rcong opened this issue Feb 2, 2016 · 2 comments
Open

关于底部工具栏跳转的问题。 #399

Rcong opened this issue Feb 2, 2016 · 2 comments

Comments

@Rcong
Copy link

Rcong commented Feb 2, 2016

你好,请问

  • 要做出底部导航栏和顶部工具栏不变,底部的导航栏4个button每一个button来控制中间content内容跳转的效果,类似微信与淘宝app那种webApp形式,我用ajax跳转做了4个html页面。但如果底部button换成动态数据来生成button,我是需要在一个页面中用路由的方式来做么?
  • 如果在一个页面中用路由的方式来做,那整个app的内容都要挤在一个html页面上了?

谢谢回答!

@guoshanche
Copy link

工具栏本身只是UI,并没有脚本逻辑。另外我们在工具栏 设计的初衷是:不同工具栏的icon链接通常代表形态完全不同的业务模块、范畴, 不要做成一个SPA应用 。
就是说,假如你工具栏有3个入口,那么这3个工具icon对应的链接最好是.external的。也就是刷新页面进入新url的形式,而不是以路由单页的形式滑页进入。可以说这3个icon对应了3个SPA链路的入口。

#130 (comment)

@Rcong
Copy link
Author

Rcong commented Feb 3, 2016

我看过这段话,也就是说假如说我有4个链接,想做成底部工具栏的形式,就需要做4个html?在具体每个页面当中再做细分的内容?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants