<template>
    <view class="wz2gh">
        <im-card-title :card-title-obj="item.cardTitle"/>
        <im-paragraphy
            v-for="(paragraphy, index) in item.paragraphyList"
            :key="index"
            :paragraphy="paragraphy"
        />
        <view style="height: 2px"/>
        <im-innerbtns :content-item="item" @tapBtn="tapBtn"/>
    </view>
</template>

<script>
/**
 * @file components/im/im-text-line
 * @author mayifan02
 * @categories
 * @tags
 */
import ImCardTitle from './ImCardTitle';
import ImParagraphy from './ImParagraphy';
import ImInnerbtns from './im-innerbtns';
import {ubcSend} from '@utils/log';

export default {
    config: {
        component: true
    },
    options: {
        addGlobalClass: true
    },
    props: {
        /**
         * 诊中挂号对象
         * @property {Object}  cardTitleObj 段落标题对象
         * @property {Object}  paragraphyList 段落内容对象
         * @property {Object}  buttons 按钮
         */
        item: {
            type: Object,
            default: () => ({})
        }
    },
    components: {
        ImCardTitle,
        ImParagraphy,
        ImInnerbtns
    },
    created() {
        ubcSend({
            type: 'view',
            value: 'wz_qgh'
        });
    },
    data() {
        return {};
    },
    methods: {
        tapBtn() {
            ubcSend({
                type: 'clk',
                value: 'wz_qgh'
            });
        }
    }
};
</script>

<style lang="less" scoped>
    .wz2gh {
        padding-bottom: 2px;
    }
</style>
