|
@ -1,12 +1,12 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div > |
|
|
<div style="position: relative;"> |
|
|
<div class="header"> |
|
|
<div class="header"> |
|
|
<div class="mask"></div> |
|
|
<div class="mask"></div> |
|
|
</div> |
|
|
</div> |
|
|
<section class=""> |
|
|
<section class=""> |
|
|
<div class="flex flex-y m-bot10"> |
|
|
<div class="flex flex-y m-bot10"> |
|
|
<div class="house_base flex"> |
|
|
<div class="house_base flex"> |
|
|
<img src="@/assets/images/houseQR/house.png" alt=""> |
|
|
<img src="@/assets/images/houseQR/house.png" alt="" /> |
|
|
<div class="flex flex-y flex-center1 flex1"> |
|
|
<div class="flex flex-y flex-center1 flex1"> |
|
|
<div class="van-multi-ellipsis--l3">{{ formData.houseAddress }}</div> |
|
|
<div class="van-multi-ellipsis--l3">{{ formData.houseAddress }}</div> |
|
|
</div> |
|
|
</div> |
|
@ -14,14 +14,14 @@ |
|
|
<div class="card flex flex-y basi_content content"> |
|
|
<div class="card flex flex-y basi_content content"> |
|
|
<div class="flex flex-center"> |
|
|
<div class="flex flex-center"> |
|
|
<div class="label"> |
|
|
<div class="label"> |
|
|
<img src="@/assets/images/icons/community.png" class="img_16 m-right10" alt=""> |
|
|
<img src="@/assets/images/icons/community.png" class="img_16 m-right10" alt="" /> |
|
|
<span class="gray">所属社区:</span> |
|
|
<span class="gray">所属社区:</span> |
|
|
</div> |
|
|
</div> |
|
|
<div class="value flex1">{{ formData.communityName || '--' }}</div> |
|
|
<div class="value flex1">{{ formData.communityName || '--' }}</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="flex flex-center m-top15"> |
|
|
<div class="flex flex-center m-top15"> |
|
|
<div class="label"> |
|
|
<div class="label"> |
|
|
<img src="@/assets/images/icons/grid.png" class="img_16 m-right10" alt=""> |
|
|
<img src="@/assets/images/icons/grid.png" class="img_16 m-right10" alt="" /> |
|
|
<span class="gray">所属网格:</span> |
|
|
<span class="gray">所属网格:</span> |
|
|
</div> |
|
|
</div> |
|
|
<span class="value flex1">{{ formData.gridName || '--' }}</span> |
|
|
<span class="value flex1">{{ formData.gridName || '--' }}</span> |
|
@ -29,12 +29,12 @@ |
|
|
<div class="flex flex-center2 flex-end m-top15"> |
|
|
<div class="flex flex-center2 flex-end m-top15"> |
|
|
<div class="flex"> |
|
|
<div class="flex"> |
|
|
<div class="label"> |
|
|
<div class="label"> |
|
|
<img src="@/assets/images/icons/grid.png" class="img_16 m-right10" alt=""> |
|
|
<img src="@/assets/images/icons/tel.png" class="img_16 m-right10" alt="" /> |
|
|
<span class="gray">社区电话:</span> |
|
|
<span class="gray">社区电话:</span> |
|
|
</div> |
|
|
</div> |
|
|
<div class="value">{{ formData.communityTel || '--' }}</div> |
|
|
<div class="value">{{ formData.communityTel || '--' }}</div> |
|
|
</div> |
|
|
</div> |
|
|
<a :href='`tel:${formData.communityTel}`' v-show="formData.communityTel">拨打</a> |
|
|
<a :href="`tel:${formData.communityTel}`" v-show="formData.communityTel">拨打</a> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -43,19 +43,19 @@ |
|
|
<span>我的社区</span> |
|
|
<span>我的社区</span> |
|
|
</div> |
|
|
</div> |
|
|
<div class="my_community flex flex-wrap"> |
|
|
<div class="my_community flex flex-wrap"> |
|
|
<div style="width: 25%;" class="flex flex-y flex-center1 flex-center2" |
|
|
<div style="width: 25%" class="flex flex-y flex-center1 flex-center2" v-for="(item, index) in myCommunity" |
|
|
v-for="(item, index) in myCommunity" :key="index"> |
|
|
:key="index"> |
|
|
<img :src="item.imgSrc" class="img_33 m-top16" alt="" @click="handelCLickJump"> |
|
|
<img :src="item.imgSrc" class="img_33 m-top16" alt="" @click="handelCLickJump(index)" /> |
|
|
<span class="font-size14 m-top10">{{ item.title }}</span> |
|
|
<span class="font-size14 m-top10">{{ item.title }}</span> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="content card" style="margin-top: 10px;"> |
|
|
<div class="content card " style="margin-top: 10px;margin-bottom: 70px;"> |
|
|
<div class="title"><span>服务矩阵</span></div> |
|
|
<div class="title"><span>服务矩阵</span></div> |
|
|
<div class="my_community flex flex-wrap"> |
|
|
<div class="my_community flex flex-wrap"> |
|
|
<div style="width: 25%;" class="flex flex-y flex-center1 flex-center2" |
|
|
<div style="width: 25%" class="flex flex-y flex-center1 flex-center2" v-for="(item, index) in serverList" |
|
|
v-for="(item, index) in serverList" :key="index" @click="handelCLickJump"> |
|
|
:key="index" @click="handelCLickJump"> |
|
|
<img :src="item.imgSrc" class="img_33 m-top16" alt=""> |
|
|
<img :src="item.imgSrc" class="img_33 m-top16" alt="" /> |
|
|
<span class="font-size14 m-top10">{{ item.title }}</span> |
|
|
<span class="font-size14 m-top10">{{ item.title }}</span> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -63,14 +63,16 @@ |
|
|
</section> |
|
|
</section> |
|
|
<div class="footer content flex flex-center2 flex-end"> |
|
|
<div class="footer content flex flex-center2 flex-end"> |
|
|
<span>关注公众号了解更多...</span> |
|
|
<span>关注公众号了解更多...</span> |
|
|
<van-button round color="#ffa800" utl="https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzkxNzQ5MzUzNg==&scene=110#wechat_redirect" size="small">关注</van-button> |
|
|
<van-button round color="#ffa800" |
|
|
|
|
|
url="https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzkxNzQ5MzUzNg==&scene=110#wechat_redirect" |
|
|
|
|
|
size="small">关注</van-button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { getHouseInfoQR } from '@/api/house' |
|
|
import { getHouseInfoQR } from '@/api/house' |
|
|
import { Notify } from 'vant'; |
|
|
import { Notify } from 'vant' |
|
|
export default { |
|
|
export default { |
|
|
name: 'houseQR', |
|
|
name: 'houseQR', |
|
|
data() { |
|
|
data() { |
|
@ -84,22 +86,28 @@ export default { |
|
|
{ |
|
|
{ |
|
|
imgSrc: require('@/assets/images/houseQR/2.png'), |
|
|
imgSrc: require('@/assets/images/houseQR/2.png'), |
|
|
title: '我有诉求' |
|
|
title: '我有诉求' |
|
|
}, { |
|
|
}, |
|
|
|
|
|
{ |
|
|
imgSrc: require('@/assets/images/houseQR/3.png'), |
|
|
imgSrc: require('@/assets/images/houseQR/3.png'), |
|
|
title: '社区讯息' |
|
|
title: '社区讯息' |
|
|
}, { |
|
|
}, |
|
|
|
|
|
{ |
|
|
imgSrc: require('@/assets/images/houseQR/4.png'), |
|
|
imgSrc: require('@/assets/images/houseQR/4.png'), |
|
|
title: '社区活动' |
|
|
title: '社区活动' |
|
|
}, { |
|
|
}, |
|
|
|
|
|
{ |
|
|
imgSrc: require('@/assets/images/houseQR/5.png'), |
|
|
imgSrc: require('@/assets/images/houseQR/5.png'), |
|
|
title: '居民议事' |
|
|
title: '居民议事' |
|
|
}, { |
|
|
}, |
|
|
|
|
|
{ |
|
|
imgSrc: require('@/assets/images/houseQR/6.png'), |
|
|
imgSrc: require('@/assets/images/houseQR/6.png'), |
|
|
title: '满意度测评' |
|
|
title: '满意度测评' |
|
|
}, { |
|
|
}, |
|
|
|
|
|
{ |
|
|
imgSrc: require('@/assets/images/houseQR/7.png'), |
|
|
imgSrc: require('@/assets/images/houseQR/7.png'), |
|
|
title: '可享服务' |
|
|
title: '可享服务' |
|
|
}, { |
|
|
}, |
|
|
|
|
|
{ |
|
|
imgSrc: require('@/assets/images/houseQR/8.png'), |
|
|
imgSrc: require('@/assets/images/houseQR/8.png'), |
|
|
title: '身边网格员' |
|
|
title: '身边网格员' |
|
|
} |
|
|
} |
|
@ -108,41 +116,53 @@ export default { |
|
|
{ |
|
|
{ |
|
|
imgSrc: require('@/assets/images/houseQR/bot_1.png'), |
|
|
imgSrc: require('@/assets/images/houseQR/bot_1.png'), |
|
|
title: '户政服务' |
|
|
title: '户政服务' |
|
|
}, { |
|
|
}, |
|
|
|
|
|
{ |
|
|
imgSrc: require('@/assets/images/houseQR/bot_2.png'), |
|
|
imgSrc: require('@/assets/images/houseQR/bot_2.png'), |
|
|
title: '身份证业务' |
|
|
title: '身份证业务' |
|
|
}, { |
|
|
}, |
|
|
|
|
|
{ |
|
|
imgSrc: require('@/assets/images/houseQR/bot_3.png'), |
|
|
imgSrc: require('@/assets/images/houseQR/bot_3.png'), |
|
|
title: '公积金' |
|
|
title: '公积金' |
|
|
}, { |
|
|
}, |
|
|
|
|
|
{ |
|
|
imgSrc: require('@/assets/images/houseQR/bot_4.png'), |
|
|
imgSrc: require('@/assets/images/houseQR/bot_4.png'), |
|
|
title: '电子社保' |
|
|
title: '电子社保' |
|
|
}, |
|
|
} |
|
|
], |
|
|
], |
|
|
formData: null |
|
|
formData: null |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
console.log(this.$store.state.app.houseId, '路由中'); |
|
|
console.log(this.$store.state.app.houseId, '路由中') |
|
|
this.houesId = this.$store.state.app.houseId; |
|
|
this.houesId = this.$store.state.app.houseId |
|
|
this.getHouseInfo(); |
|
|
this.getHouseInfo() |
|
|
}, |
|
|
}, |
|
|
mounted() { }, |
|
|
mounted() { }, |
|
|
methods: { |
|
|
methods: { |
|
|
getHouseInfo() { |
|
|
getHouseInfo() { |
|
|
console.log(this.houesId); |
|
|
console.log(this.houesId) |
|
|
getHouseInfoQR(this.houesId).then(res => { |
|
|
getHouseInfoQR(this.houesId).then(res => { |
|
|
this.formData = res |
|
|
this.formData = res |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
handelCLickJump(){ |
|
|
handelCLickJump(index) { |
|
|
Notify({ type: 'primary', message: '功能持续开放中,敬请期待!' }); |
|
|
if (index === 0) { |
|
|
|
|
|
if (this.formData.qrCode) { |
|
|
|
|
|
location.assign(this.formData.qrCode) |
|
|
|
|
|
} else { |
|
|
|
|
|
Notify({ type: 'primary', message: '未找到图片!' }) |
|
|
|
|
|
} |
|
|
|
|
|
} else if (index === 1) { |
|
|
|
|
|
this.$router.push({ path: '/event' }) |
|
|
|
|
|
} else { |
|
|
|
|
|
Notify({ type: 'primary', message: '功能持续开放中,敬请期待!' }) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style scoped lang="less" scoped> |
|
|
<style scoped lang="less"> |
|
|
@import './index'; |
|
|
@import './index'; |
|
|
</style> |
|
|
</style> |