|
|
@ -2,7 +2,8 @@ |
|
|
|
<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> |
|
|
@ -10,8 +11,8 @@ |
|
|
|
<div class="time gray font-size14">时间:{{ item.startTime }}</div> |
|
|
|
<div class="flex flex-end" v-if="item.online === 1"> |
|
|
|
<div> |
|
|
|
<span>报名人数:</span> <span class="font-size18 orange">{{ item.currentParticipants }}</span>/<span |
|
|
|
class="font-size14">{{ item.participants }}人</span> |
|
|
|
<span>报名人数:</span> <span class="font-size18 orange">{{ item.currentParticipants |
|
|
|
}}</span>/<span class="font-size14">{{ item.participants }}人</span> |
|
|
|
</div> |
|
|
|
<van-button type="info" size="small" round @click="handelClickJump('activityDetail', item)" |
|
|
|
:disabled="new Date(item.cutOffTime.replace(/-/g, '/')).getTime() < Date.now() || item.currentParticipants >= item.participants">{{ recordFlag(item) ? '已报名' : '报名' }}</van-button> |
|
|
@ -69,11 +70,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 } }); |
|
|
|
} else { |
|
|
|
this.showRegister = true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|