uniapp中页面滑动跳转到指定的页面

1.在pages.json配置文件中,配置需要跳转的页面路径和页面样式,如下所示:

{
  "pages": [
    {
      "path": "pages/home/home",
      "style": {
        "navigationBarTitleText": "首页"
      },
      "name": "home"
    },
    {
      "path": "pages/detail/detail",
      "style": {
        "navigationBarTitleText": "详情页"
      },
      "name": "detail"
    }
  ]
}

2.在需要实现右滑跳转的页面的