43 lines
728 B
Vue
43 lines
728 B
Vue
<template>
|
|
<div class="activity">
|
|
<div class="header">
|
|
<div class="h-text">
|
|
<van-icon name="arrow-left" @click='$router.back()' />
|
|
<p>限时白嫖</p>
|
|
</div>
|
|
</div>
|
|
<ul class="content">
|
|
<item :item-list="activityList"></item>
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'Activity',
|
|
data() {
|
|
return {
|
|
activityList: []
|
|
}
|
|
},
|
|
created() {
|
|
this.getActivity();
|
|
},
|
|
methods: {
|
|
async getActivity() {
|
|
this.activityList = await this.$http.index.activity({
|
|
id: this.$route.query.id
|
|
});
|
|
console.log(this.activityList)
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="stylus">
|
|
@import "~@page/Activity.styl";
|
|
</style>
|