从uniapp分享打开小程序 然后通过小程序的button:
open-type="launchApp"
app-parameter="{{wechatMsg}}"
bindlaunchapp="appSuccess"
binderror="launchAppError"
返回app
(wechatMsg我传的json格式)
最后可以跳回app 但是接受不到参数:
let argumentsData = JSON.parse(plus.runtime.arguments)
console.log(argumentsData)
plus.globalEvent.addEventListener('newintent', () => {
let args = plus.runtime.arguments
console.log(args)
})
0 个回复