<template>
    <div class="preview-main">
        <div class="form-title">
            <img class="icon" src="@/assets/img/sa_06.png" />
            <span>预览</span>
        </div>
        <div class="form-content">
            <div class="preview-cell-poster-photo border">
                <img class="poster-photo" :src="poster_photo" />
                <div class="title-panel">
                    <p class="title">{{ title }}</p>
                    <p class="subtitle">{{ subtitle }}</p>
                </div>
            </div>
            <div class="org-info-cell border">
                <div class="logo">
                    <img :src="poster_photo" />
                </div>
                <div class="text-info">
                    <p class="name">测试机构</p>
                    <p class="address">地址地址地址地址地址地址地址地址地址地址地址地址地址地址地址地址</p>
                </div>
                <div class="arrow-panel">
                    <img src="@/assets/img/sa_52.png" />
                </div>
            </div>
            <div class="simple-cell border">
                <div class="icon">
                    <img src="@/assets/img/sa_21.png" />
                </div>
                <div class="text">
                    <p>2019-01-01</p>
                </div>
                <div class="arrow-panel">
                    <img src="@/assets/img/sa_52.png" />
                </div>
            </div>
            <div class="simple-cell border">
                <div class="icon">
                    <img src="@/assets/img/sa_24.png" />
                </div>
                <div class="text">
                    <p>0755-86879866</p>
                </div>
                <div class="arrow-panel">
                    <img src="@/assets/img/sa_52.png" />
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    name: "EditActivityPreviewForm",
    data() {
        return {
            
        }
    },
    computed: {
        poster_photo: function() {
            return require("@/assets/img/activity_poster_photo_default.png")
        },
        title: function() {
            return "与孩子一起挑选采摘新鲜有机马陆葡萄，体验采摘乐趣"
        },
        subtitle: function() {
            return "亲子采摘活动"
        },
    },
}
</script>

<style lang="scss" scoped>
.preview-main {
    .form-title {
        width: 100%;
        padding: 20px 0 20px 30px;
        border-bottom: 1px #dee2e5 solid;

        .icon {
            margin-top: -4px;
            vertical-align: middle;
        }

        span {
            font-size: 18px;
            font-weight: 500;
            color: #485b6d;
            margin-left: 10px;
        }
    }

    .form-content {
        width: 100%;
        padding: 14px 30px 0 30px;

        .preview-cell-poster-photo {
            .poster-photo {
                width: 100%;
            }

            .title-panel {
                padding: 15px 15px 16px 20px;

                .title {
                    font-size: 18px;
                    color: #485b6d;
                    font-weight: bold;
                    line-height: 28px;
                }

                .subtitle {
                    margin-top: 6px;
                    color: #a6a6a6;
                    font-size: 14px;
                }
            }
        }

        .org-info-cell {
            padding: 20px 20px;
            margin-top: 15px;
            position: relative;
            display: flex;
            -webkit-box-align: center;
            align-items: center;

            .logo {
                img {
                    width: 40px;
                    height: 40px;
                    border-radius: 20px;
                }
            }
            .text-info {
                flex: 1;
                padding-left: 17px;
                color: #485b6d;

                .name {
                    font-size: 16px;
                    line-height: 22px;
                    font-weight: 500;
                }
                .address {
                    font-size: 14px;
                    line-height: 20px;
                    margin-top: 5px;
                }
            }
            .arrow-panel {
                width: 20px;
                position: relative;

                img {
                    width: 8px;
                    float: right;
                    vertical-align: middle;
                }
            }
        }

        .simple-cell {
            padding: 20px 20px;
            margin-top: 15px;
            position: relative;
            display: flex;
            -webkit-box-align: center;
            align-items: center;

            .icon {
                img {
                    width: 20px;
                    height: 20px;
                    vertical-align: middle;
                }
            }
            .text {
                flex: 1;
                padding-left: 17px;
                color: #485b6d;
                line-height: 20px;
            }
            .arrow-panel {
                width: 20px;
                position: relative;

                img {
                    width: 8px;
                    float: right;
                    vertical-align: middle;
                }
            }
        }
    }
}
</style>

<style scoped>
.border {
    border: solid 1px #dee2e5;
    border-radius: 4px;
}
</style>
