<template>
    <div class="detail">
        <div class="userInfo">
        </div>
        <div class="cardContent">
            <div class="card">
                <div class="date">
                    <img class="dateImg" src="./img/date.png" alt="">
                    <div class="dateText">此通行码使用情况</div>
                </div>
                <div class="check">
                    <div class="jigou">
                        总扫码次数：<span>{{ mockData.scanNum }}</span>
                    </div>
                    <div class="jigou">
                        当日扫码次数：<span>{{ mockData.todayScanNum }}</span>
                    </div>
                    <div class="jigou">
                        联系方式：<span>{{ mockData.mobile }}</span>
                    </div>
                    <div class="jigou">
                        场所名称：<span>{{ mockData.placeName }}</span>
                    </div>
                    <div class="jigou">
                        详细地址：<span>{{ mockData.detailAddress }}</span>
                    </div>
                    <div class="jigou">
                        创建时间：<span>{{ mockData.createTime }}</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
import { queryPermitCodeInfo } from "@/api/epidemic";
export default {
    data() {
        return {
            mockData: {},
        }
    },
    methods: {
        init() {
            queryPermitCodeInfo({ permitCode: this.$route.query.permitCode }).then((res) => {
                this.mockData = res.data
                // alert(JSON.stringify(res))
            })
        }
    },
    created() {
        this.init()
    },
    mounted() {

    },
}
</script>

<style lang="stylus" scoped>
.detail{
   width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #F3F6F9;
    .userInfo{
		background: url('./img/banner.png');
		background-size: 100% 100%;
		width: 100%;
		height: 300px;
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		padding: 0 30px;
		box-sizing: border-box;
	}
    .cardContent{
		width: 96%;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
        .card{
            width: 100%;
            background-color: #FFFFFF;
            padding: 0 30px;
            box-sizing: border-box;
            margin-top: 20px;
            font-size: 28px;
            .date{
                display: flex;
                align-items: center;
                padding: 30px 0;
                border-bottom: 1px solid #DDDDDD;
                .dateImg{
                    width: 40px;
                    height: 40px;
                }
                .dateText{
                    font-size: 34px;
                    font-family: PingFangSC-Regular, PingFang SC;
                    font-weight: 600;
                    color: #333333;
                    margin-left: 10px;
                }
            }
            .check{
                display: flex;
                flex-direction: column;
                .jigou{
                    margin: 20px 0;
                }
                .jieguo{
                    margin-bottom: 30px;
                }
                .yinxing{
                    font-size: 30px;
                    font-family: PingFangSC-Medium, PingFang SC;
                    font-weight: 500;
                    color: #29A400;
                }
                .yangxing{
                    font-size: 30px;
                    font-family: PingFangSC-Medium, PingFang SC;
                    font-weight: 500;
                    color: #ED0000;
                }
            }
        }
	}
}
</style>