<template>
    <div class="detail_main">
        <navbar title="关联经营人"></navbar>
        <div class="wrapper">
            <div class="glrBox" v-for="(item, index) in list" :key="index">
                    <div class="glrBox_left">
                        <div class="left_img_box">
                            <img src="../../images/home/xkdjrw.png" alt="" style="width: 30px;height: 30px;">
                        </div>
                        <div class="left_main_box">
                            <div class="left_main_box_top">{{ item.relatePerson }}</div>
                            <div class="left_main_box_card">身份号:{{ item.relateCustIdc }}</div>
                        </div>
                    </div>
                </div>
        </div>
    </div>
</template>
<script>
import navbar from '../../components/navbar/navbar.vue';
import { getRecordDetail } from "@/service/api/filing";
export default {
    data() {
        return {
            list:[]
        }
    },
    components: {
        navbar: navbar,

    },
    created() { 
        this.init()
    },
    methods: {
        init(){
            let id = sessionStorage.getItem('custId')
            getRecordDetail(id).then(res => {
                if (res.code == 200) {
                    this.list = res.data.recordRelates
                }
            })
        }
    },
}





</script>
<style lang="less" scoped>
.wrapper {
    padding-top: 46px;
    font-size: 16px;


}
.glrBox {
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    margin-top: 3px;
    padding: 15px;
}

.glrBox_left {
    display: flex;
    align-items: center;

}

.left_img_box {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: rgb(246, 249, 255);
}

.left_main_box {
    margin-left: 20px;
}

.left_main_box_top {
    font-size: 16px;
    font-weight: 600;
    line-height: 30px;
}

.left_main_box_card {
    font-size: 12px;
    line-height: 25px;
    color: rgb(140, 140, 140);
}
</style>