|
@ -5,13 +5,15 @@ |
|
|
<div class="flex flex-end"> |
|
|
<div class="flex flex-end"> |
|
|
<div class="flex flex-center2 white"> |
|
|
<div class="flex flex-center2 white"> |
|
|
<img src="@/assets/images/icons/home.png" class="img_17 m-right10" alt=""> |
|
|
<img src="@/assets/images/icons/home.png" class="img_17 m-right10" alt=""> |
|
|
<span>社区</span> |
|
|
<span>{{ this.$store.state.app.userInfo.agencyName || '--' }}</span> |
|
|
</div> |
|
|
</div> |
|
|
<div class="flex flex-center2"> |
|
|
<div class="flex flex-center2"> |
|
|
<van-search v-model="searchKey" placeholder="请输入搜索关键词" shape="round" background="#3974f6" |
|
|
<van-search v-model="searchKey" placeholder="请输入搜索关键词" shape="round" background="#3974f6" |
|
|
style="width: 170px;" @search="$router.push({ path: '/search', query: { searchKey: searchKey } })" /> |
|
|
style="width: 170px;" |
|
|
|
|
|
@search="$router.push({ path: '/search', query: { searchKey: searchKey } })" /> |
|
|
<img src="@/assets/images/icons/mine.png" |
|
|
<img src="@/assets/images/icons/mine.png" |
|
|
@click="$router.push({ path: '/mine', query: { searchKey: searchKey } })" class="img_20 " alt=""> |
|
|
@click="$router.push({ path: '/mine', query: { searchKey: searchKey } })" class="img_20 " |
|
|
|
|
|
alt=""> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="swipe"> |
|
|
<div class="swipe"> |
|
@ -24,16 +26,17 @@ |
|
|
</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"> |
|
|
<img src="@/assets/images/icons/notice.png" class="img_17 m-right7" alt=""> |
|
|
<img src="@/assets/images/icons/notice.png" class="img_17" alt=""> |
|
|
<div class="van-ellipsis flex-1"> |
|
|
<div class="van-ellipsis flex-1"> |
|
|
这个vant真的好好好用强烈推!!!!!!!! |
|
|
<van-notice-bar color="#555555" background="#ffffff" text="在代码阅读过程中人们说脏话的频率是衡量代码质量的唯一标准。" /> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<span class="gray notice_time">05-06</span> |
|
|
<span class="gray notice_time">05-06</span> |
|
|
<span class="gray">更多</span> |
|
|
<span class="gray">更多</span> |
|
|
</div> |
|
|
</div> |
|
|
<div class="card m-top10"> |
|
|
<div class="card m-top10"> |
|
|
<div class="flex white"> |
|
|
<div class="flex white"> |
|
|
<div class="appeal m-right10 flex flex-y"> |
|
|
<div class="appeal m-right10 flex flex-y" @click="handelClickJump('event')"> |
|
|
<div>我有诉求</div> |
|
|
<div>我有诉求</div> |
|
|
<div class="font-size13 m-top5" style="color: #d8e6fe;"> 居民点单 社区接单</div> |
|
|
<div class="font-size13 m-top5" style="color: #d8e6fe;"> 居民点单 社区接单</div> |
|
|
</div> |
|
|
</div> |
|
@ -43,8 +46,8 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="flex flex-centr2 flex-mean m-top18"> |
|
|
<div class="flex flex-centr2 flex-mean m-top18"> |
|
|
<div class="flex-y flex flex-center1 flex-center2 nav font-size13 " |
|
|
<div class="flex-y flex flex-center1 flex-center2 nav font-size13 " v-for="(item, index) in tabList" |
|
|
v-for="(item, index) in tabList"> |
|
|
@click="handelClickJump(item.path)" :key="index"> |
|
|
<img :src="item.imgSrc" alt=""> |
|
|
<img :src="item.imgSrc" alt=""> |
|
|
<span>{{ item.title }}</span> |
|
|
<span>{{ item.title }}</span> |
|
|
</div> |
|
|
</div> |
|
@ -66,7 +69,8 @@ |
|
|
<span>报名人数:</span> <span class="font-size18 orange">{{ item.resiNum }}</span>/<span |
|
|
<span>报名人数:</span> <span class="font-size18 orange">{{ item.resiNum }}</span>/<span |
|
|
class="font-size14">{{ item.total }}人</span> |
|
|
class="font-size14">{{ item.total }}人</span> |
|
|
</div> |
|
|
</div> |
|
|
<van-button type="info" size="small" round>报名</van-button> |
|
|
<van-button type="info" size="small" round |
|
|
|
|
|
@click="handelClickJump('activity')">报名</van-button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -93,10 +97,12 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<register-dialog v-if="showRegister" @close="showRegister = false"></register-dialog> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
|
|
|
import registerDialog from '@/components/registerDialog'; |
|
|
import { communityActivity } from '@/api/home'; |
|
|
import { communityActivity } from '@/api/home'; |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
@ -106,27 +112,27 @@ export default { |
|
|
{ |
|
|
{ |
|
|
imgSrc: require('@/assets/images/nav/1.png'), |
|
|
imgSrc: require('@/assets/images/nav/1.png'), |
|
|
title: '社区讯息', |
|
|
title: '社区讯息', |
|
|
path: '/notice' |
|
|
path: 'notice' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
imgSrc: require('@/assets/images/nav/2.png'), |
|
|
imgSrc: require('@/assets/images/nav/2.png'), |
|
|
title: '社区活动', |
|
|
title: '社区活动', |
|
|
path: '/notice' |
|
|
path: 'notice' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
imgSrc: require('@/assets/images/nav/3.png'), |
|
|
imgSrc: require('@/assets/images/nav/3.png'), |
|
|
title: '居民议事', |
|
|
title: '居民议事', |
|
|
path: '/notice' |
|
|
path: 'notice' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
imgSrc: require('@/assets/images/nav/4.png'), |
|
|
imgSrc: require('@/assets/images/nav/4.png'), |
|
|
title: '满意度测评', |
|
|
title: '满意度测评', |
|
|
path: '/notice' |
|
|
path: 'notice' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
imgSrc: require('@/assets/images/nav/5.png'), |
|
|
imgSrc: require('@/assets/images/nav/5.png'), |
|
|
title: '可享服务', |
|
|
title: '可享服务', |
|
|
path: '/notice' |
|
|
path: 'service' |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
activityList: [ |
|
|
activityList: [ |
|
@ -160,21 +166,46 @@ export default { |
|
|
title: '社区活动测试测试测试时杀死社区活动测试测试测试时杀死还是上海市普陀区金沙江路还是上海市普陀区金沙江路', |
|
|
title: '社区活动测试测试测试时杀死社区活动测试测试测试时杀死还是上海市普陀区金沙江路还是上海市普陀区金沙江路', |
|
|
oppose: 10 |
|
|
oppose: 10 |
|
|
} |
|
|
} |
|
|
] |
|
|
], |
|
|
|
|
|
showRegister: false |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
// this.communityActivity()//获取轮播图与活动列表 |
|
|
this.agencyId = this.$store.state.app.agencyId; |
|
|
|
|
|
this.communityActivity()//获取轮播图与活动列表 |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
async communityActivity() { |
|
|
async communityActivity() { |
|
|
let { data, code, msg } = await communityActivity() |
|
|
let parm = { |
|
|
if (code === 0) { |
|
|
pageSize: 10, |
|
|
console.log(data); |
|
|
pageNo: 1, |
|
|
|
|
|
agencyId: this.agencyId, |
|
|
|
|
|
activityName: "", |
|
|
|
|
|
status: "", |
|
|
|
|
|
typeId: "", |
|
|
|
|
|
startTime: "", |
|
|
|
|
|
endTime: "", |
|
|
|
|
|
address: "", |
|
|
|
|
|
assistingParty: "" |
|
|
|
|
|
} |
|
|
|
|
|
let res = await communityActivity(parm) |
|
|
|
|
|
if (res) { |
|
|
|
|
|
console.log(res); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
handelClickJump(path) { |
|
|
|
|
|
if (path === 'event' || path === 'service' || path === 'activity') { |
|
|
|
|
|
if (this.$store.state.app.userInfo.mobile) { |
|
|
|
|
|
this.$router.push({ path: `/${path}` }); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.showRegister = true; |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$router.push({ path: `/${path}` }) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
components: {}, |
|
|
components: { registerDialog }, |
|
|
computed: {}, |
|
|
computed: {}, |
|
|
watch: {}, |
|
|
watch: {}, |
|
|
} |
|
|
} |
|
|