|
@ -18,11 +18,9 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="swipe"> |
|
|
<div class="swipe"> |
|
|
<van-swipe class="my-swipe" :autoplay="3000" indicator-color="white"> |
|
|
<van-swipe class="my-swipe" :autoplay="3000" indicator-color="white"> |
|
|
<van-swipe-item><img src="@/assets/images/zhishu.png" alt="" |
|
|
<van-swipe-item v-for="item in activityList"> |
|
|
style="width: 100%; margin: 0 auto;"></van-swipe-item> |
|
|
<img :src="item.coverPic" alt="" style="width: 100%;height: 150px; margin: 0 auto;border-radius: 15px;"> |
|
|
<van-swipe-item>2</van-swipe-item> |
|
|
</van-swipe-item> |
|
|
<van-swipe-item>3</van-swipe-item> |
|
|
|
|
|
<van-swipe-item>4</van-swipe-item> |
|
|
|
|
|
</van-swipe> |
|
|
</van-swipe> |
|
|
</div> |
|
|
</div> |
|
|
<div class="card flex flex-end flex-center2 m-top15 notice"> |
|
|
<div class="card flex flex-end flex-center2 m-top15 notice"> |
|
@ -83,15 +81,15 @@ |
|
|
<div class="activity_content flex" v-for="(item, index) in eventList"> |
|
|
<div class="activity_content flex" v-for="(item, index) in eventList"> |
|
|
<div class="flex flex-y flex1 flex-end" style="overflow: hidden;"> |
|
|
<div class="flex flex-y flex1 flex-end" style="overflow: hidden;"> |
|
|
<span class="van-multi-ellipsis--l2"> |
|
|
<span class="van-multi-ellipsis--l2"> |
|
|
{{ item.title }} |
|
|
{{ item.eventContent }} |
|
|
</span> |
|
|
</span> |
|
|
<div class="flex flex-end flex-center gray m-top10 font-size13"> |
|
|
<div class="flex flex-end flex-center gray m-top10 font-size13"> |
|
|
<div class="flex flex-center"><img src="@/assets/images/icons/resi.png" |
|
|
<div class="flex flex-center"><img src="@/assets/images/icons/resi.png" |
|
|
class="img_16 m-right7" alt=""><span>参与 {{ item.total }}</span></div> |
|
|
class="img_16 m-right7" alt=""><span>参与 {{ item.total }}</span></div> |
|
|
<div class="flex flex-center"><img src="@/assets/images/icons/support.png" alt="" |
|
|
<div class="flex flex-center"><img src="@/assets/images/icons/support.png" alt="" |
|
|
class="img_16 m-right7"><span>支持 {{ item.support }}</span></div> |
|
|
class="img_16 m-right7"><span>支持 {{ item.supportNum }}</span></div> |
|
|
<div class="flex flex-center"><img src="@/assets/images/icons/oppose.png" alt="" |
|
|
<div class="flex flex-center"><img src="@/assets/images/icons/oppose.png" alt="" |
|
|
class="img_16 m-right7"><span>反对 {{ item.oppose }}</span></div> |
|
|
class="img_16 m-right7"><span>反对 {{ item.opposeNum }}</span></div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -103,7 +101,7 @@ |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import registerDialog from '@/components/registerDialog'; |
|
|
import registerDialog from '@/components/registerDialog'; |
|
|
import { communityActivity } from '@/api/home'; |
|
|
import { communityActivity,icEventOldDiscuss } from '@/api/home'; |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
@ -136,26 +134,14 @@ export default { |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
activityList: [], |
|
|
activityList: [], |
|
|
eventList: [ |
|
|
eventList: [], |
|
|
{ |
|
|
|
|
|
total: 100, |
|
|
|
|
|
support: 50, |
|
|
|
|
|
title: '社区活动测试测试测试时杀死社区活动测试测试测试时杀死还是上海市普陀区金沙江路还是上海市普陀区金沙江路', |
|
|
|
|
|
oppose: 10 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
total: 100, |
|
|
|
|
|
support: 50, |
|
|
|
|
|
title: '社区活动测试测试测试时杀死社区活动测试测试测试时杀死还是上海市普陀区金沙江路还是上海市普陀区金沙江路', |
|
|
|
|
|
oppose: 10 |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
showRegister: false |
|
|
showRegister: false |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
this.agencyId = this.$store.state.app.agencyId; |
|
|
this.agencyId = this.$store.state.app.agencyId; |
|
|
this.communityActivity()//获取轮播图与活动列表 |
|
|
this.communityActivity()//获取轮播图与活动列表 |
|
|
|
|
|
this.icEventOldDiscuss()//获取居民议事列表 |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
async communityActivity() { |
|
|
async communityActivity() { |
|
@ -176,6 +162,19 @@ export default { |
|
|
this.activityList = res.list.slice(0, 2); |
|
|
this.activityList = res.list.slice(0, 2); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
async icEventOldDiscuss(){ |
|
|
|
|
|
let parm = { |
|
|
|
|
|
pageSize: 10, |
|
|
|
|
|
pageNo: 1, |
|
|
|
|
|
agencyId: null, |
|
|
|
|
|
icEventId:null |
|
|
|
|
|
} |
|
|
|
|
|
let res = await icEventOldDiscuss(parm) |
|
|
|
|
|
if (res) { |
|
|
|
|
|
console.log(res); |
|
|
|
|
|
this.eventList = res.list.slice(0, 2) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
handelClickJump(path) { |
|
|
handelClickJump(path) { |
|
|
if (path === 'event' || path === 'service' || path === 'activity') { |
|
|
if (path === 'event' || path === 'service' || path === 'activity') { |
|
|
if (this.$store.state.app.userInfo.mobile) { |
|
|
if (this.$store.state.app.userInfo.mobile) { |
|
|