object标签的使用

论坛 期权论坛 脚本     
匿名技术用户   2021-1-2 03:21   11   0
<template>
    <div>
        <div>
            <object width="100%" :height="curHeight" :data="NanJingBankUrl"></object>
        </div>
        <div class="BackBlock">
            <img src="../../assets/image/callBack.png" class="callback" @click="reBack">
        </div>
    </div>
</template>
<script>
export default {
    data() {
        return {
            curHeight:''
        };
    },
    computed: {
        NanJingBankUrl() {
            return "http://bank.xinmeihua.com.cn/phzj/index?code="+this.$route.params.empCode+'&channel=PUHUIYIZH';;
        },
    },
    methods: {
        reBack() {
            this.$router.push({
                path: "/financialReport/" +this.$route.params.nowDate+'/'+this.$route.params.empCode+'/'+this.$route.params.shareArticleId+'/-1/-1'
            });
        },  
    },
    created(){
        
    },
    beforeMount() {
        var h = document.documentElement.clientHeight || document.body.clientHeight;
        this.curHeight =h - 42.4; //减去页面上固定高度height
    },
    mounted(){

    }
    
}
</script>
<style scoped>
.BackBlock {
    background: #fff;
    position: fixed;
    bottom: 0px;
    width: 100%;
}
.callback {
    width: 15px;
    padding: 5px 16px 5px 16px;
}
</style>

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP