How to use the @tarojs/taro.navigateTo function in @tarojs/taro

To help you get started, we’ve selected a few @tarojs/taro examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github huangjianke / Gitter / src / components / index / trendingDeveloperItem.js View on Github external
onClickRepo(e) {
    e.stopPropagation()
    const { item } = this.props
    console.log('item',item)
    let api = 'https://api.github.com/repos/' + item.username + '/' + item.repo.name
    let url = '/pages/repo/repo?url=' + encodeURI(api)
    Taro.navigateTo({
      url: url
    })
  }
github EasyTuan / taro-msparis / src / pages / detail / index.js View on Github external
goToPage = e => {
    if (Taro.getEnv() === Taro.ENV_TYPE.WEB) {
      Taro.navigateTo({
        url: e.currentTarget.dataset.url,
      });
    } else {
      Taro.switchTab({
        url: e.currentTarget.dataset.url,
      });
    }
  };
github huangjianke / Gitter / src / pages / repo / repo.js View on Github external
handleNavigate(type) {
    const { repo } = this.state
    switch (type) {
      case NAVIGATE_TYPE.USER: {
        Taro.navigateTo({
          url: '/pages/account/developerInfo?username=' + repo.owner.login
        })
      }
        break
      case NAVIGATE_TYPE.REPO_CONTENT_LIST: {
        Taro.navigateTo({
          url: '/pages/repo/contentList?repo=' + repo.full_name
        })
      }
        break
      case NAVIGATE_TYPE.ISSUES: {
        let url = '/pages/repo/issues?url=/repos/' + repo.full_name + '/issues&repo=' + repo.full_name
        Taro.navigateTo({
          url: url
        })
      }
        break
      case NAVIGATE_TYPE.REPO_CONTRIBUTORS_LIST: {
        let url = '/pages/repo/contributors?url=/repos/' + repo.full_name + '/contributors'
        Taro.navigateTo({
          url: url
        })
github Harhao / miniProgram / src / components / Toptab / Toptab.js View on Github external
navigateDetail(url,item,cityId){
    url = url+`?id=${item.id}&title=${item.nm}&cityId=${cityId}`
    Taro.navigateTo({ url: url })
  }
  getMoviesOnList(){
github Harhao / miniProgram / src / pages / cinemaDetail / cinemaDetail.js View on Github external
navigateToMap(url,cinemaData){
    url = url+`?lng=${cinemaData.lng}&lat=${cinemaData.lat}&title=${cinemaData.nm}`;
    Taro.navigateTo({
      url:url
    })
  }
  navigateSeat(url,item){
github lingxiaoyi / Taro-navigation-bar / src / pages / demo / mixin.js View on Github external
handlerGohomeClick() {
      Taro.navigateTo({
        url: '/pages/index/index'
      });
    }
  }
github huangjianke / Gitter / src / pages / repo / repoList.js View on Github external
handleClickedItem(item) {
    let url = '/pages/repo/repo?url=' + encodeURI(item.url)
    Taro.navigateTo({
      url: url
    })
  }
github webclipper / web-clipper-wxapp / src / store / saga / router.ts View on Github external
export function* navigateTo() {
  while (true) {
    const { playload } = yield take(ROUTER.NAVIGATE_TO) as any;
    yield Taro.navigateTo(playload);
  }
}
github huangjianke / Gitter / src / components / index / segment.js View on Github external
onActionSearch () {
    Taro.navigateTo({
      url: '/pages/search/index'
    })
  }
github lsqy / taro-music / src / pages / my / index.tsx View on Github external
goSearch() {
    Taro.navigateTo({
      url: `/pages/search/index`
    })
  }