<template>
    <view class="consult c-gap-inner-left-boundary c-gap-inner-right-boundary c-font-normal">
        <view class="c-color-normal">{{ consult.text }}</view>
        <b-navigate
            :url="consult.btn ? consult.btn.url : ''"
            :log="{type: 'clk', value: 'ask_doctor_free'}"
            class="ask-doctor"
        >
            {{ consult.btn ? consult.btn.text : '咨询' }}
        </b-navigate>
    </view>
</template>

<script>
/**
* @file 诊前咨询
* @author wangying51
*/
import Navigate from '../common/navigate';
export default {
    config: {
        component: true
    },
    props: {
        consult: {
            type: Object,
            required: true
        }
    },
    data() {
        return {
        };
    },
    components: {
        'b-navigate': Navigate
    },
    methods: {
    }
};
</script>
<style lang="less" scoped>
.consult {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    padding-top: 8px;
    .ask-doctor {
        color: #00c8c8;
    }
}
</style>
