支付宝小程序&财富号&基金相关页面之间相关跳转

支付宝小程序跳转

%小程序跳转财富号

this.$global.urlHandler(`alipays://platformapi/startapp?appId=xxxx00002019101768404279&query=publicId%3Dxxxx00002018061160393077&nbupdate=syncforcee`)

%小程序跳转基金组合推广页面

this.$global.urlHandler(`https://open.antfortune.com/p/q/normal-testkczk6olu/pages/index/index.html`)    // xxxx组合 
this.$global.urlHandler(`https://open.antfortune.com/p/q/normal-testk83v4u9x/pages/index/index.html`)    // xx固收佳 从这个组合突破的

%小程序跳转单品推广页面

    my.ap.navigateToAlipayPage({
      // 例如跳转到共享单车页面,其 scheme 格式为:
      // alipays://platformapi/startapp?appId=60000155&chInfo=ch_${appid},${appid} 替换为自己的16位 appid,例如:
      path:'https://open.antfortune.com/p/q/normal-testku54f0lk/pages/index/index.html',
    })
// ‘小程序跳转基金组合推广页面’ 和 ‘小程序跳转单品推广页面’ 的两种方式都可以互用,重点是推广页面的id: testku54f0lk;

注意:‘小程序跳转基金组合推广页面’ 和 ‘小程序跳转单品推广页面’ 的两种方式都可以互用,重点是推广页面的id: testku54f0lk;

%小程序跳转基金详情和购买页面

this.$global.urlHandler(`alipayFinanceApi:type=fundDetail&fundCode=xxxxxx`)    // 基金详情
this.$global.urlHandler(`alipayFinanceApi:type=fundDetail&fundCode=${this.openPayload.fundCode}&amount=1000`) // 基金详情页面带金额
this.$global.urlHandler(`alipayFinanceApi:type=fundBuy&fundCode=xxxxxx`)    // 基金购买
this.$global.urlHandler(`alipayFinanceApi:type=fundBuy&fundCode=${this.openPayload.fundCode}&amount=1000`) // 基金购买页面带金额

%小程序跳转到基金讨论区

urlHandler(`alipayFinanceApi:type=h5Page&url=`+encodeURIComponent(`alipays://platformapi/startapp?appId=66666741&pullRefresh=YES&appClearTop=false&startMultApp=YES&url=%2Fwww%2Fforum.html%3FtopicId%3D2018042600023003xxxx0000000000014803%26topicType%3DFUND`))

以上方法都是建立在引入支付宝跳转相关SDK的前提下 目前暂未对外开发

import urlHandler from 'mp-alipay-url-handler'

%小程序跳标准组合详情页面\组合购买页面
参考:#参考: https://opensupport.alipay.com/support/article_pre/438/66771/201602626332?ant_source=manual&recommend=d6cd07a68fd4161c6573bb7773e91068

my.ap.navigateToFinance({
      // type: 'portfolioDetail', // 组合详情页面
      type: 'portfolioBuy',//组合购买页面
      fundCode: 'JY99xxxx001', // 基金组合代码   JY99xxxx001
      amount: 1000
});
// 组合代码获取:财富号管理后台有个组合模块 这里可以看到公司所有的组合代码

注意:组合代码获取:财富号管理后台有个组合模块 这里可以看到公司所有的组合代码
在这里插入图片描述

%小程序跳短视频财富达人直播(视频)

// urlHandler(`https://render.alipay.com/p/h5/lifeNews/www/contentDetail.html?contentId=xx202100215666069502d4c77905794b2d9af97c1d2e4c9b27&SourceId=writer_promotion&LinkSource=share`)
// urlHandler(`alipayFinanceApi:type=h5Page&url=`+encodeURIComponent(`alipays://platformapi/startapp?appId=77700199&pullRefresh=YES&appClearTop=false&startMultApp=YES&url=%2Fwww%2FcontentDetail.html%3FcontentId%3Dxx202100215666069502d4c77905794b2d9af97c1d2e4c9b27`))
// urlHandler(`alipayFinanceApi:type=h5Page&url=`+encodeURIComponent(`alipays://platformapi/startapp?appId=77700199&startMultApp=YES&appClearTop=NO&page=pages/index/index?scene%3dsingle%26videoId%3dMEDIA_xx2021103002400109428702%26fromscenario%3ddianman_backstage`)) //成功
urlHandler(`alipays://platformapi/startapp?appId=77700199&startMultApp=YES&appClearTop=NO&page=pages/index/index?scene%3dsingle%26videoId%3dMEDIA_xx2021103002400109428702%26fromscenario%3ddianman_backstage`)//成功

注意:对应的地址找财富达人运营同事去财富号平台的短视频里面拿
在这里插入图片描述

%小程序跳支付宝官方“淘宝直播财富频道”直播/回播

官方地址:https://opensupport.alipay.com/support/article_pre/438/66771/201602626333?ant_source=manual&recommend=d6cd07a68fd4161c6573bb7773e91068

my.navigateToMiniProgram({
  appId: '20210011****4332',//跳转直播间链接中获取的小程序appid
  path: 'pages/index/index?id=27395***8846&userId=38691***94',//链接中获取
  success: (res) => {
    // 跳转成功
    my.alert({
			title: 'success', // alert框的标题
			content: JSON.stringify(res)
    });
  },
  fail: (res) => {
		// 跳转失败
		my.alert({
			title: 'fail', // alert框的标题
			content: JSON.stringify(res)
    });
  }
});

%小程序跳转小程序 — 小程序之间互跳

💪支付宝——小程序互跳

// .js
my.navigateToMiniProgram({
      appId: 'xxxx',  // 要跳转的目标小程序 appId。
      path: 'pages/index/index',  // 打开的页面路径,如果为空则打开首页。 
      extraData:{// 需要传递给目标小程序的数据,为键值对的格式,数值的类型为字符串。目标小程序可在 App.onLaunch() 、 App.onShow()  中获取到这份数据。
        "data1":"test"
      },
      success: (res) => {
        console.log(JSON.stringify(res))
      },
      fail: (res) => {
        console.log(JSON.stringify(res))
      },
      complete:(res) => {
           console.log(JSON.stringify(res))
      }
    });

在这里插入图片描述

H5跳转

%H5跳转基金详情页面

location.href = `alipays://platformapi/startapp?appId=20000793&pullRefresh=NO&appClearTop=false&startMultApp=YES&url=/www/detail.html?productId=2017xxxx021600023003xxxx0000000000011913`

%H5跳转支付宝小程序

location.href = 'alipays://platformapi/startapp?appId=202100116967xxxx&page=pages/entry/index'

%支付宝内各模块ID总结(scheme协议格式可采用:alipays+appId、alipayqr+saId)

alipays://platformapi/startapp?appId=20000793#支付宝基金
alipays://platformapi/startapp?appId=20000835#支付宝语音助手

💪💪💪
URLScheme 之 支付宝(应该是比较全的了) --> 更多
🔥🔥🔥🔥🔥

💪💪💪
可以带的参数支付宝文档说明
在这里插入图片描述

  • 5
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值