<template>
    <div class="check-doc">
        <i class="icon-fixed el-icon-edit" @click="close"></i>
        <h3>评论列表</h3>
        <el-scrollbar class="scroll" tag="div">
            <div class="mark-item">
                <p class="mark-title"><span>刘医生</span>发表了评论</p>
                <div class="mark-content">这里是评论内容这里是评论内容这里是评论内容这里是评论内容</div>
                <div class="mark-footer"><span>03-31 12:30:23</span><span>回复</span></div>
                <div class="mark-review">
                    <p class="mark-title"><span>刘医生</span>回复<span style="margin-left:5px">刘医生</span></p>
                    <div class="mark-content">这里是评论内容这里是评论内容这里是评论内容这里是评论内容</div>
                    <div class="mark-footer"><span>03-31 12:30:23</span><span>回复</span></div>
                    <div class="mark-total"><p>共5条回复<i class="el-icon-caret-bottom"></i></p></div>
                </div>
            </div>
        </el-scrollbar>
        <div class="mark-input">
            <el-input type="text" size="mini" placeholder="请输入评论内容"></el-input>
            <p>发表</p>
        </div>
    </div>
</template>
<script>
export default {
    methods: {
        close() {
            this.$emit('close', false)
        },
    }
}
</script>
<style lang="less" scoped>
.check-doc {
    height: 100%;
    width: 296px;
    position: relative;
    background-color: #fff;
    .icon-fixed {
        position: absolute;
        top: 49%;
        left: -28px;
        color: #fff;
        width: 28px;
        height: 28px;
        text-align: center;
        line-height: 28px;
        background: #1890ff;
        border-radius: 4px 0px 0px 4px;
        box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.19); 
        cursor: pointer;
    }
    h3 {
        margin: 0;
        font-size: 14px;
        font-family: PingFangSC, PingFangSC-Semibold;
        font-weight: 600;
        text-align: left;
        color: rgba(0,0,0,0.85);
        padding: 20px 20px 15px;
    }
    .scroll {
        height: calc(100% - 55px);
    }
    .mark-input {
        width: 100%;
        position: absolute;
        bottom: 30px;
        padding: 0 20px;
        display: flex;
        .el-input {
            flex: 1;
        }
        p {
            width: 36px;
            height: 28px;
            background: #3e98ff;
            border-radius: 4px;
            margin: 0 0 0 13px;
            line-height: 28px;
            text-align: center;
            font-size: 12px;
            font-family: PingFangSC, PingFangSC-Regular;
            color: #ffffff;
        }
    }
    .mark-item {
        // margin-top: 10px;
        padding: 0 20px;
        font-size: 14px;
        font-family: PingFangSC, PingFangSC-Regular;
        .mark-title {
            padding: 8px 0;
            margin: 0;
            color: rgba(0,0,0,.8);
            span {
                font-family: PingFangSC, PingFangSC-Medium;
                font-weight: 500;
                color: #1890ff;
                margin-right: 5px;
            }
        }
        .mark-content {
            line-height: 21px;
        }
        .mark-footer {
            height: 30px;
            font-size: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            span:last-child {
                text-decoration: underline;
                color: #1890ff;
                cursor: pointer;
            }
            span:first-child {
                color: rgba(0,0,0,.6);
            }
        }
        .mark-review {
            background: #f6faff;
            border-left: 1px solid rgba(24,144,255,.2);
            padding: 0 8px;
            .mark-title {
                padding: 10px 0;
            }
        }
        .mark-total {
            font-size: 12px; 
            padding-bottom: 10px;
            color: #1890ff;
            p {
                display: inline-block;
                margin: 0;
                cursor: pointer;
            }
        }
    }
}
</style>