Commit ef580375 authored by 袁玲利's avatar 袁玲利

h5跳转支付宝小程序

parent 89a14972
...@@ -20,8 +20,8 @@ export default { ...@@ -20,8 +20,8 @@ export default {
// }) // })
console.log('准备跳转了哦') console.log('准备跳转了哦')
//(外部H5页面)代码 //(外部H5页面)代码
window.location.href = // window.location.href =
"alipays://platformapi/startapp?appId=2019081366244084&page=pages/OpenAccount/OpenAccount&typeCode=BOCOM"; // "alipays://platformapi/startapp?appId=2019081366244084&page=pages/OpenAccount/OpenAccount&typeCode=BOCOM";
let params = encodeURIComponent(`alipays://platformapi/startapp?appId=2019081366244084&page=pages/OpenAccount/OpenAccount`); let params = encodeURIComponent(`alipays://platformapi/startapp?appId=2019081366244084&page=pages/OpenAccount/OpenAccount`);
window.location.href = `https://ds.alipay.com/?scheme=${params}`; window.location.href = `https://ds.alipay.com/?scheme=${params}`;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment