<style lang="sass">
@import "./dlfooter.scss";
</style>

<template>
    <div v-show="isShowFooterDl">
        <section class="v-mod-footer tp2" v-if="showTp2">
            <div class="footer-fl"></div>
            <div class="footer-fm">
                <h3>知了电影</h3>
                <p>你想看的，我都知道</p>
            </div>
            <div class="footer-fr">
                <div @click="goSchema" class="btn-open"></div>
                <span class="btn-close" @click="closeFooter()"></span>
            </div>
        </section>
        <section class="v-mod-footer" v-else>
            <div class="footer-fl"></div>
            <div class="footer-fm">
                <h3>微剧院</h3>
                <p>5分钟看剧平台</p>
            </div>
            <div class="footer-fr">
                <div @click="goSchema" class="btn-open"></div>
                <span class="btn-close" @click="closeFooter()"></span>
            </div>
        </section>
    </div>
</template>

<script>
    import lib from 'lib'

    export default {
        data() {
            return{
                isShowFooterDl : true,
                downloadUrl : lib.downloadUrl,
                showTp2: lib.getParam("appid") == 1008 || lib.getParam("appid") == 17 ? true : false,
            }
        },
        props: ["closeCallback"],
        methods : {
            closeFooter(){
                this.isShowFooterDl = false;
                this.closeCallback && this.closeCallback()
            },
            goSchema() {
                lib.goSchema(lib.schemaUrl)
            }
        }
    }
</script>