<!--优惠券说明-->
<template>
    <div id="couponDescription">
        <Nav :title="$t('couponDescription.title')"></Nav>
        <div class="content">
            <template v-if="!loading">
                <div class="cell">
                <!--
                    <div class="title">
                        <h4>{{form.title}}</h4>
                    </div>
                    <div class="information"><span>{{form.time}}</span></div>
                    -->
                    <div class="text"><span v-html="form.text"></span></div>
                </div>
            </template>
            <template v-else>
                <van-empty :description="$t('couponDescription.none')"></van-empty>
            </template>
        </div>
        <van-overlay :show="loading" @click="loading = false">
            <div class="wrapper" @click.stop>
                <div class="block">
                    <van-loading color="#1989fa" size="50" />
                </div>
            </div>
        </van-overlay>
    </div>
</template>

<script>
import Nav from "@/components/pages/nav";
export default {
    data() {
        return {
            loading: true,
            form: {},
        };
    },
    mounted() {
        let that = this;
        setTimeout(() => {
            that.form = {
                title: "优惠券说明标题",
                time: "2022-07-07  15:38",
                text: this.$store.state.user.companyinfo.couponDesc,
            };
            that.loading = false;
        }, 1000);
    },
    components: {
        Nav,
    },
};
</script>

<style lang="scss" scoped>
#couponDescription {
    .content {
        background: #f9f9f9;
        min-height: calc(100vh - 0.44rem);
        padding-top: 0.12rem /* 12/100 */;
        box-sizing: border-box;
        .cell {
            padding: 0.12rem /* 12/100 */;
            background: #fff;
            min-height: calc(100vh - 0.56rem);
            box-sizing: border-box;
            .title {
                font-size: 0.17rem /* 17/100 */;
            }
            .information {
                font-size: 0.14rem /* 14/100 */;
                text-align: left;
                padding: 0.15rem /* 15/100 */ 0;
            }
            .text {
                font-size: 0.14rem /* 14/100 */;
                line-height: 0.22rem /* 22/100 */;
                text-align: justify;
            }
        }
    }
}
</style>