callAppBox.vue 1000 Bytes
<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">
    @import './callAppBox';
</style>