|
|
@ -2,7 +2,7 @@ |
|
|
|
<div class='container'> |
|
|
|
<van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="communityActivity" class="card" |
|
|
|
:offset="50"> |
|
|
|
<div class="activity_content flex" v-for="(item, index) in activityList" :key="index"@click="handelClickJump('activityDetail',item)"> |
|
|
|
<div class="activity_content flex" v-for="(item, index) in activityList" :key="index" @click="handelClickJump('activityDetail',item)"> |
|
|
|
<img :src="item.coverPic" alt="" class="mr10 img_round" style="width: 75px;height: 95px;"> |
|
|
|
<div class="flex flex-y flex1 flex-end" style="overflow: hidden;"> |
|
|
|
<div class="van-ellipsis">{{ item.activityName }}</div> |
|
|
@ -19,11 +19,13 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</van-list> |
|
|
|
<register-dialog v-if="showRegister" @close="showRegister = false"></register-dialog> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { communityActivity } from '@/api/home'; |
|
|
|
import registerDialog from '@/components/registerDialog'; |
|
|
|
|
|
|
|
export default { |
|
|
|
data() { |
|
|
@ -65,6 +67,7 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
handelClickJump(path,item) { |
|
|
|
console.log(path,item); |
|
|
|
if(path === 'activityDetail'){ |
|
|
|
if (this.$store.state.app.userInfo.mobile) { |
|
|
|
this.$router.push({ path: `/${path}`,query:{id:item.id} }); |
|
|
@ -75,7 +78,7 @@ export default { |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
components: {}, |
|
|
|
components: {registerDialog}, |
|
|
|
computed: {}, |
|
|
|
watch: {}, |
|
|
|
} |
|
|
|