async mounted() {
//将要给原生调用的方法挂载到 window 上面
let me = this;
window['getAppPhone'] = (参数) => {
me.getAppPhone(参数);
}
}
methods: {
// app端调用此方法,传递手机号
getAppPhone(参数){
……
}
}
async mounted() {
//将要给原生调用的方法挂载到 window 上面
let me = this;
window['getAppPhone'] = (参数) => {
me.getAppPhone(参数);
}
}
methods: {
// app端调用此方法,传递手机号
getAppPhone(参数){
……
}
}