npm install callapp-lib --save
npm install timers --save
import CallApp from "callapp-lib";
import { setTimeout } from 'timers';
openApp() {
if (this.is_weixn()) {
alert("请点击右上角按钮, 点击使用浏览器打开");
}else {
const options = {
scheme: { protocol: "" },
intent: {
package: "",
scheme: ""
},
appstore: "https://apps.apple.com/cn/app/xxx/xxxx",
yinyongbao:"https://sj.qq.com/myapp/detail.htm?apkName=com.xxxx.bloodpressure",
fallback: "https://sj.qq.com/myapp/detail.htm?apkName=com.xxxxx.xxxx"
};
const callLib = new CallApp(options);
callLib.open({});
}
},
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/fcd55370eab9b092bcc60974c75c34b9.png#pic_center)