支付宝小程序跳转
%小程序跳转财富号
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)
});
}
});
%小程序跳转小程序 — 小程序之间互跳
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)