|
@@ -31,27 +31,45 @@
|
|
<view class="grid">
|
|
<view class="grid">
|
|
<view class="grid-item-box" @click="getHouseFn" >
|
|
<view class="grid-item-box" @click="getHouseFn" >
|
|
<view class="img"><image :src="htabi" class="imgf"></image></view>
|
|
<view class="img"><image :src="htabi" class="imgf"></image></view>
|
|
- <view>我的房屋<text class="co05">(1)</text></view>
|
|
|
|
|
|
+ <view>我的房屋<text class="co05">(
|
|
|
|
+ <block v-if="count.houseCount>98">99+</block>
|
|
|
|
+ <block v-else>{{count.houseCount||0}}</block>
|
|
|
|
+ )</text></view>
|
|
</view>
|
|
</view>
|
|
<view class="grid-item-box" @click="getCarFn" >
|
|
<view class="grid-item-box" @click="getCarFn" >
|
|
<view class="img"><image :src="htabj" class="imgg"></image></view>
|
|
<view class="img"><image :src="htabj" class="imgg"></image></view>
|
|
- <view>我的车辆<text class="co05">(1)</text></view>
|
|
|
|
|
|
+ <view>我的车辆<text class="co05">(
|
|
|
|
+ <block v-if="count.carCount>98">99+</block>
|
|
|
|
+ <block v-else>{{count.carCount||0}}</block>
|
|
|
|
+ )</text></view>
|
|
</view>
|
|
</view>
|
|
<view class="grid-item-box" @click="getWarrantyFn" >
|
|
<view class="grid-item-box" @click="getWarrantyFn" >
|
|
<view class="img"><image :src="htabb" class="imga"></image></view>
|
|
<view class="img"><image :src="htabb" class="imga"></image></view>
|
|
<view>物业报修
|
|
<view>物业报修
|
|
- <view class="cir">2</view>
|
|
|
|
|
|
+ <view class="cir">
|
|
|
|
+ <block v-if="count.propertyRepair>98">99+</block>
|
|
|
|
+ <block v-else>{{count.propertyRepair||0}}</block>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view class="grid-item-box" @click="getNewsFn" >
|
|
<view class="grid-item-box" @click="getNewsFn" >
|
|
<view class="img"><image :src="htabd" class="imgb"></image></view>
|
|
<view class="img"><image :src="htabd" class="imgb"></image></view>
|
|
- <view>社区资讯<view class="cir">2</view></view>
|
|
|
|
|
|
+ <view>社区资讯<view class="cir">
|
|
|
|
+ <block v-if="count.commentInteractionUserCount>98">99+</block>
|
|
|
|
+ <block v-else>{{count.commentInteractionUserCount||0}}</block>
|
|
|
|
+ </view></view>
|
|
<!-- <view class="flexcw">
|
|
<!-- <view class="flexcw">
|
|
<view class="txt">点赞<text class="co05 mr2">(5)</text></view>
|
|
<view class="txt">点赞<text class="co05 mr2">(5)</text></view>
|
|
<view class="txt">评论<text class="co05">(12)</text></view>
|
|
<view class="txt">评论<text class="co05">(12)</text></view>
|
|
</view> -->
|
|
</view> -->
|
|
- <view class="txt">点赞<text class="co05 mr2">(5)</text>评论<text class="co05">(12)</text></view>
|
|
|
|
|
|
+ <view class="txt">点赞<text class="co05 mr2">(
|
|
|
|
+ <block v-if="count.likeCount>98">99+</block>
|
|
|
|
+ <block v-else>{{count.likeCount||0}}</block>
|
|
|
|
+ )</text>评论<text class="co05">(
|
|
|
|
+ <block v-if="count.contentCount>98">99+</block>
|
|
|
|
+ <block v-else>{{count.contentCount||0}}</block>
|
|
|
|
+ )</text></view>
|
|
</view>
|
|
</view>
|
|
<view class="grid-item-box" @click="getNewsDjFn" >
|
|
<view class="grid-item-box" @click="getNewsDjFn" >
|
|
<view class="img"><image :src="htabe" class="imgc"></image></view>
|
|
<view class="img"><image :src="htabe" class="imgc"></image></view>
|
|
@@ -59,7 +77,10 @@
|
|
</view>
|
|
</view>
|
|
<view class="grid-item-box" @click="getComplaintFn" >
|
|
<view class="grid-item-box" @click="getComplaintFn" >
|
|
<view class="img"><image :src="htabf" class="imgd"></image></view>
|
|
<view class="img"><image :src="htabf" class="imgd"></image></view>
|
|
- <view>投诉建议<view class="cir">2</view></view>
|
|
|
|
|
|
+ <view>投诉建议<view class="cir">
|
|
|
|
+ <block v-if="count.complaintSuggestion>98">99+</block>
|
|
|
|
+ <block v-else>{{count.complaintSuggestion||0}}</block>
|
|
|
|
+ </view></view>
|
|
</view>
|
|
</view>
|
|
<view class="grid-item-box" @click="getVisitorFn" >
|
|
<view class="grid-item-box" @click="getVisitorFn" >
|
|
<view class="img"><image :src="htabg" class="imge"></image></view>
|
|
<view class="img"><image :src="htabg" class="imge"></image></view>
|
|
@@ -159,7 +180,7 @@ import notice from '@/components/swiper/notice.vue'
|
|
import boxList from "@/components/box/list.vue"
|
|
import boxList from "@/components/box/list.vue"
|
|
import popUp from "@/components/box/popup.vue"
|
|
import popUp from "@/components/box/popup.vue"
|
|
import {houseInfoList} from "@/api/work/work.js"
|
|
import {houseInfoList} from "@/api/work/work.js"
|
|
-import {gesettingsList} from "@/api/work/index.js"
|
|
|
|
|
|
+import {gesettingsList,getCount} from "@/api/work/index.js"
|
|
import {newsList} from "@/api/work/manage.js"
|
|
import {newsList} from "@/api/work/manage.js"
|
|
import self from '@/utils/location.js';
|
|
import self from '@/utils/location.js';
|
|
import store from "@/store"
|
|
import store from "@/store"
|
|
@@ -208,11 +229,13 @@ import store from "@/store"
|
|
list:[{tit:'123'},{tit:'123'},{tit:'123'}],
|
|
list:[{tit:'123'},{tit:'123'},{tit:'123'}],
|
|
userId:this.$store.state.user.userId,
|
|
userId:this.$store.state.user.userId,
|
|
nickName:this.$store.state.user.nickName,
|
|
nickName:this.$store.state.user.nickName,
|
|
|
|
+ phonenumber:this.$store.state.user.phonenumber,
|
|
// avatar:this.$store.state.user.avatar,
|
|
// avatar:this.$store.state.user.avatar,
|
|
tabval:0,
|
|
tabval:0,
|
|
houselist:[],
|
|
houselist:[],
|
|
phoneList:[],
|
|
phoneList:[],
|
|
tablist:[{tit:'本地资讯',val:"0"},{tit:'供求资讯',val:"1"},{tit:'热门资讯',val:"2"}],
|
|
tablist:[{tit:'本地资讯',val:"0"},{tit:'供求资讯',val:"1"},{tit:'热门资讯',val:"2"}],
|
|
|
|
+ count:'',//统计
|
|
noticelist:[]
|
|
noticelist:[]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -234,6 +257,7 @@ import store from "@/store"
|
|
// 获取房子
|
|
// 获取房子
|
|
this.getDataFn()
|
|
this.getDataFn()
|
|
this.gesettingsList()
|
|
this.gesettingsList()
|
|
|
|
+ this.getCount()
|
|
this.newsList();
|
|
this.newsList();
|
|
// #ifndef H5
|
|
// #ifndef H5
|
|
self.getLocation(function(res){
|
|
self.getLocation(function(res){
|
|
@@ -285,6 +309,17 @@ import store from "@/store"
|
|
},
|
|
},
|
|
getBusListFn(){
|
|
getBusListFn(){
|
|
|
|
|
|
|
|
+ },
|
|
|
|
+ getCount(){
|
|
|
|
+ var params={
|
|
|
|
+ userId:this.userId,
|
|
|
|
+ residentPhone:this.phonenumber
|
|
|
|
+ }
|
|
|
|
+ getCount(params).then(res => {
|
|
|
|
+ if(res.code==200){
|
|
|
|
+ this.count=res.data;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
gesettingsList(){
|
|
gesettingsList(){
|
|
gesettingsList().then(res=>{
|
|
gesettingsList().then(res=>{
|