代码注释添加

This commit is contained in:
mabo
2021-07-28 17:07:37 +08:00
parent 94a9404b39
commit cd0cd14f77
8 changed files with 8531 additions and 8333 deletions

View File

@@ -17,21 +17,8 @@
</div>
</template>
<script>
import { Swiper, SwiperSlide, directive } from 'vue-awesome-swiper';
export default {
components: {
Swiper,
SwiperSlide
},
directives: {
swiper: directive
},
props: {
data: {
type: Object,
default: null
}
},
data () {
return {
list: [], // 秒杀商品
@@ -43,20 +30,21 @@ export default {
hours: 0, // 小时
minutes: 0, // 分钟
seconds: 0, // 秒
interval: undefined, // 定时器
interval: null, // 定时器
swiperOptions: { // 轮播图参数
slidesPerView: 5,
autoplay: true,
loop: true
// slidesPerView: 5,
// autoplay: true,
// loop: true
}
};
},
mounted () {
computed: {
},
beforeDestroy () {
clearInterval(this.interval);
},
mounted () {
},
methods: {
goPromotion () { // 跳转秒杀页面
let routeUrl = this.$router.resolve({