标题 :
跳转页面
目录 :
千帆JS-SDK
序号 :
99

  • 跳转扫一扫页面
      QFH5.jumpScan(function(state,data){ //JS发起的扫描全部回调,不自动打开
          if(state==1){
              //扫描成功
              alert(data.content);//扫描内容
          }else{
              //扫描失败
              alert(data.error);//错误信息
          }
      })
  • 跳转外部浏览器
      QFH5.outOpen(url)
  • App直接跳小程序 (4.0客户端版本可用)
      参数: wxid: 小程序原始id,string
            wxpath: 要跳转的小程序路径 string
      QFH5.jumpMiniProgram(wxid,wxpath,function(state,data){
          if(state == 1){
              alert('跳转成功')
          }
      })
  • 客户端内跳转新页面(1.5.2可用)
      QFH5.jumpNewWebview(url);

###H5页面跳转
视频列表 https://qianfan.qianfanapi.com/video/video/list
视频详情页 https://qianfan.qianfanapi.com/video/video/single?vid=262

签到 https://qianfan.qianfanapi.com/store/assign/index
金币中心 https://qianfan.qianfanapi.com/store/mygold/index
邀请有奖 https://qianfan.qianfanapi.com/store/invite/index
挑战任务 https://qianfan.qianfanapi.com/store/task/list
改名卡 https://qianfan.qianfanapi.com/v2_0/card/index

商城首页 https://qianfan.qianfanapi.com/store/store/index
商品列表页 https://qianfan.qianfanapi.com/store-view/store/list
商品详情页 https://qianfan.qianfanapi.com/store-view/store/detail/id/80
夺宝列表页 https://qianfan.qianfanapi.com/store/lottery/index
夺宝详情页 https://qianfan-version.qianfanapi.com/store/lottery/detail?id=143
大转盘详情页 https://qianfan.qianfanapi.com/store/wheel/index?aid=18

文档更新时间: 2019-11-01 11:49   作者:千帆云