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

控制页面动画和传递参数 #132

Open
zhengnz opened this issue Dec 3, 2015 · 3 comments
Open

控制页面动画和传递参数 #132

zhengnz opened this issue Dec 3, 2015 · 3 comments
Assignees

Comments

@zhengnz
Copy link

zhengnz commented Dec 3, 2015

请问能加入控制路由触发的页面动画的功能吗?
目前工具栏里的切换,从后面的工具栏切换到前面的工具栏,视觉上应该是页面从左往右进入,但目前用路由统计都是从右往左,除非是后退,所以希望能加入可控制的方法。

另外关于传递参数的,在文档里没找到可传递参数的方法,如果我要打开某个页面并传递参数时该如何解决呢?

@zhengnz zhengnz changed the title 控制页面动画 控制页面动画和传递参数 Dec 3, 2015
@zhuyifang
Copy link

我有做支持你这个需求的改动,你可以看下demo:http://223.95.85.150:8095/

但不知道如何将代码贡献到 github中

@maicong
Copy link

maicong commented Mar 30, 2016

请看: #547

@Akimyou
Copy link

Akimyou commented Apr 11, 2016

可以这样做。

<!-- 跳转链接 -->
<a href="page/threadlist.html?fid=2">
<!-- 被加载的页面 -->
<div class="page-group">
 <div class="page" id='threadlist'>
  <header class="bar bar-nav">
    <a class="button button-link button-nav pull-left back">
      <span class="icon icon-left"></span>返回
    </a>
    <h1 class='title'>帖子列表</h1>
  </header>
  <div class="content">

  </div>
  <script>
   //pageInit后,url才改变
    $(document).on("pageInit", function(e, pageId, $page) {
      if(pageId == "threadlist") {
          //我使用的是queryObject这个工具类,在github上有
          console.log(queryObject.get());
      }
    });
  </script>
</div>
</div>

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

5 participants