<template>
    <div class="activity">
        <div class="name">{{ info.name }}</div>
        <van-image :src="item" v-for="(item, index) in info.detail" :key="index" />
    </div>
</template>

<script>
import { abs } from 'mathjs';
export default {
    data() {
        return {
            info: {},
            timer: null,
            startTime: ''
        };
    },
    mounted() {
        this.getProduct();
    },
    methods: {
        getProduct() {
            this.$http.get('/activity/get/' + this.$route.query.id).then(res => {
                this.info = res;
            });
        }
    }
};
</script>

<style lang="less" scoped>
.activity {
    padding: 16px 16px 50px;
    .van-image {
        img {
            display: block;
            width: 100%;
            height: auto;
        }
        display: block;
    }
}

.name {
    font-size: 14px;
    color: @text0;
    line-height: 24px;
    margin-bottom: 4px;
}
</style>
