You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<!--
|
|
|
|
* @Author: ch
|
|
|
|
* @Date: 2022-05-03 22:14:16
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditTime: 2022-05-04 22:21:04
|
|
|
|
* @Description: file content
|
|
|
|
-->
|
|
|
|
<template>
|
|
|
|
<div class="home">
|
|
|
|
<Banner />
|
|
|
|
<div class="home-wrap">
|
|
|
|
<Seckil v-if="seckillData.activityTimeVO" :data="seckillData" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { ApiGetHomeSeckill } from "@/plugins/api/seckill";
|
|
|
|
import Banner from "./module/Banner.vue";
|
|
|
|
import Seckil from "./module/Seckill.vue";
|
|
|
|
export default {
|
|
|
|
components: { Banner, Seckil },
|
|
|
|
async asyncData() {
|
|
|
|
// 获取秒杀数据
|
|
|
|
const { result } = await ApiGetHomeSeckill();
|
|
|
|
return {
|
|
|
|
seckillData: result,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.home {
|
|
|
|
background: #f8f8f8;
|
|
|
|
.home-wrap {
|
|
|
|
@include layout-box;
|
|
|
|
padding: 30px 0 30px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|