callAppBox.vue
1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<template>
<div class="call-app-box" v-if="callApps">
<div class="box">
<div class="logo-box">
<img src="static/img/call_app_logo.png" class="img" />
</div>
<div class="buttons-box">
<div class="btn btn-default" @click="callApp">打开APP</div>
</div>
</div>
</div>
</template>
<script>
export default {
data: function () {
return {
}
},
props: ["callApps"],
methods: {
/**
* H5唤起App按钮事件
*/
callApp() {
if (typeof this.callApps.funcs === "object" && typeof this.callApps.funcs.callApp === "object" && typeof this.callApps.funcs.callApp.schemeLayer === "function") {
this.callApps.funcs.callApp.schemeLayer(this.callApps.funcs.callAppParams, this.callApps.funcs.callAppCallback);
}
}
}
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style rel="stylesheet/less" lang="less" scoped>
@import './call_app_box';
</style>