如何将H5链接转成带alipays协议的链接,能通过my.ap.navigateToAlipayPage跳转
my.ap.navigateToAlipayPage({
// 例如跳转到共享单车页面,其 scheme 格式为:
// alipays://platformapi/startapp?appId=60000155&chInfo=ch_${appid},${appid} 替换为自己的16位 appid,例如:
path:'alipays://platformapi/startapp?appId=60000155&chInfo=ch_${appid}',
success:(res) => {
my.alert({content:'系统信息' + JSON.stringify(res)});
},
fail:(error) => {
my.alert({content:'系统信息' + JSON.stringify(error)});
}
})
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…