123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459 |
- <template>
- <view :style="'padding-top:'+nvaHeight+'px;'">
- <view class="navbox">
- <uni-nav-bar color="#ffffff" leftWidth='400rpx' :background-color="backgroundColor" :border="false" statusBar='true' fixed="true">
- <block slot="left">
- <view class="topl flexc">
- <image :src="adrimg" ></image>
- <view class="over">{{city}}</view>
- </view>
- </block>
- </uni-nav-bar>
- </view>
- <!-- 主体 -->
- <image :src="navbg" class="navbg"></image>
- <view class="wymain" >
- <view class="adrbox">
- <view class="flexc mb14">
- <image :src="adraimg" class="adr"></image>
- <view class="adrtit">智慧<text>社区</text></view>
- </view>
- <view class="adrtxt flexc mb4">
- <view class="over">嗨~{{nickName}}!</view><text v-if="postGroup">{{postGroup}}</text>
- </view>
- <view class="adrtip">{{deptName}}</view>
- <image :src="adrbgimg" class="adrbgimg"></image>
- </view>
- <view class="mb22">
- <notice :noticelist="noticelist" :autoplay='autoplay' @getNoticeDet="getNoticeDet"></notice>
- </view>
- <!-- 统计 -->
- <view class="contbox" v-if="checkPermi(['wuYe:statistics:num:app'])">
- <view class="cont flexc">
- <image :src="conta"></image>
- <view>今日数据统计</view>
- </view>
- <view class="lists">
- <view class="list">
- <view class="tit">{{count.kxcw||0}}</view>
- <view class="txt">空闲车位</view>
- </view>
- <view class="list">
- <view class="tit">{{count.kxcdz||0}}</view>
- <view class="txt">空闲充电桩</view>
- </view>
- <view class="list">
- <view class="tit">{{count.jrcl||0}}</view>
- <view class="txt">进入车辆</view>
- </view>
- <view class="list">
- <view class="tit">{{count.lkcl||0}}</view>
- <view class="txt">离开车辆</view>
- </view>
- <view class="list">
- <view class="tit">{{count.wlcl||0}}</view>
- <view class="txt">外来车辆</view>
- </view>
- <view class="list">
- <view class="tit">{{count.wtdj||0}}</view>
- <view class="txt">违停登记</view>
- </view>
- <view class="list">
- <view class="tit">{{count.wlry||0}}</view>
- <view class="txt">外来人员</view>
- </view>
- <view class="list">
- <view class="tit">{{count.jrry||0}}</view>
- <view class="txt">进入人员</view>
- </view>
- <block v-if="zhanflag">
- <view class="list">
- <view class="tit ca">{{count.yxg||0}}</view>
- <view class="txt">已巡更</view>
- </view>
- <view class="list">
- <view class="tit ca">{{count.wxg||0}}</view>
- <view class="txt">未巡更</view>
- </view>
- <view class="list">
- <view class="tit cb">{{count.jzdd||0}}</view>
- <view class="txt">家政订单</view>
- </view>
- <view class="list">
- <view class="tit cb">{{count.wcdd||0}}</view>
- <view class="txt">完成订单</view>
- </view>
- <view class="list">
- <view class="tit cc">{{count.jrbx||0}}</view>
- <view class="txt">今日报修</view>
- </view>
- <view class="list">
- <view class="tit cc">{{count.ypbx||0}}</view>
- <view class="txt">已派报修</view>
- </view>
- <view class="list">
- <view class="tit cc">{{count.tsjy||0}}</view>
- <view class="txt">投诉建议</view>
- </view>
- <view class="list">
- <view class="tit cc">{{count.yhjy||0}}</view>
- <view class="txt">已回投诉</view>
- </view>
- </block>
- </view>
- <view class="upbox" @click="getZhanFn">
- <image :src="upimg" :class="zhanflag?'':'zhe'"></image>
- <view>{{zhanflag?'收起':'展开'}}</view>
- </view>
- </view>
- <view class="contbox mb16">
- <view class="cont flexc mb9">
- <image :src="contb"></image>
- <view>物业管理</view>
- </view>
- <view class="lists">
- <view class="list bimga" @click="getCarFn">
- <view class="imgs"><image :src="htaba" class="imga"></image></view>
- <view class="txt">车辆管控</view>
- </view>
- <view class="list bimga" @click="getCarKuFn">
- <view class="imgs"><image :src="htabb" class="imgb"></image></view>
- <view class="txt">车库管理</view>
- </view>
- <view class="list bimga" @click="getCarCheckFn">
- <view class="imgs"><image :src="htabc" class="imgc"></image></view>
- <view class="txt">外来车辆登记</view>
- </view>
- <view class="list bimga" @click="getillegalParkFn" v-if="checkPermi(['wuYe:illegalParking:list'])">
- <view class="imgs"><image :src="htabd" class="imgd"></image></view>
- <view class="txt">违停管理</view>
- </view>
- <view class="list bimga" @click="getPeopleFn" v-if="checkPermi(['wuYe:residentInfo:list'])">
- <view class="imgs"><image :src="htabe" class="imge"></image></view>
- <view class="txt">人员管理</view>
- </view>
- <view class="list bimga" @click="getComeglFn" v-if="checkPermi(['wuYe:visitorManage:list'])">
- <view class="imgs"><image :src="htabf" class="imgf"></image></view>
- <view class="txt">来访管理</view>
- </view>
- <view class="list bimga" @click="getMoneyFn" v-if="checkPermi(['wuYe:fee:list'])">
- <view class="imgs"><image :src="htabg" class="imgd"></image></view>
- <view class="txt">物业费管理</view>
- </view>
- <view class="list bimga" @click="getHouseFn" v-if="checkPermi(['wuYe:houseInfo:list'])">
- <view class="imgs"><image :src="htabh" class="imgd"></image></view>
- <view class="txt">房屋管理</view>
- </view>
- </view>
- </view>
- <view class="contbox mb16">
- <view class="cont flexc mb9">
- <image :src="contc"></image>
- <view>物业服务</view>
- </view>
- <view class="lists">
- <view class="list bimga" @click="getPatrolFn" v-if="checkPermi(['wuYe:checkPointRecord:list'])">
- <view class="imgs"><image :src="htabi" class="imgg"></image></view>
- <view class="txt">今日巡更</view>
- </view>
- <view class="list bimga" @click="getWarrantyFn" v-if="checkPermi(['wuYe:repair:list'])">
- <view class="imgs"><image :src="htabj" class="imgb"></image><view class="tips">
- <block v-if="countTips.propertyRepair>98">99+</block>
- <block v-else>{{countTips.propertyRepair||0}}</block>
- </view>
- </view>
- <view class="txt">物业报修</view>
- </view>
- <view class="list bimga" @click="getStaffFn" v-if="checkPermi(['wuYe:staffManage:list'])">
- <view class="imgs"><image :src="htabk" class="imgb"></image></view>
- <view class="txt">员工管理</view>
- </view>
- <view class="list bimga" @click="getComplaintFn" v-if="checkPermi(['wuYe:suggestion:list'])">
- <view class="imgs"><image :src="htabl" class="imga"></image><view class="tips">
- <block v-if="countTips.complaintSuggestion>98">99+</block>
- <block v-else>{{countTips.complaintSuggestion||0}}</block>
- </view></view>
- <view class="txt">投诉建议</view>
- </view>
- </view>
- </view>
- <view class="contbox mb16">
- <view class="cont flexc mb9">
- <image :src="contd"></image>
- <view>社区管理</view>
- </view>
- <view class="lists">
- <view class="list bimga" @click="getNewsdjFn" v-if="checkPermi(['wuYe:partyNews:list'])">
- <view class="imgs"><image :src="htabm" class="imgh"></image></view>
- <view class="txt">党建信息</view>
- </view>
- <view class="list bimga" @click="getNewssqFn" v-if="checkPermi(['wuYe:news:list'])">
- <view class="imgs"><image :src="htabn" class="imgi"></image><view class="tips">
- <block v-if="countTips.commentInteractionUserCount>98">99+</block>
- <block v-else>{{countTips.commentInteractionUserCount||0}}</block>
- </view></view>
- <view class="txt">社区资讯</view>
- </view>
- <view class="list bimga" @click="getNewsYgFn" v-if="checkPermi(['wuYe:manual:list'])">
- <view class="imgs"><image :src="htabo" class="imgf"></image></view>
- <view class="txt">员工培训</view>
- </view>
- <view class="list bimga" @click="getSqmoneyFn" v-if="checkPermi(['wuYe:assets:list'])">
- <view class="imgs"><image :src="htabp" class="imgi"></image></view>
- <view class="txt">社区资产</view>
- </view>
- </view>
- </view>
- </view>
- <loading></loading>
- <footers v-if="isfootflag" :footerindex="footerindex"></footers>
- </view>
- </template>
- <script>
- import footers from '@/components/footer/footer.vue'
- import notice from '@/components/swiper/notice.vue'
- import {getUserProfile} from "@/api/system/user.js"
- import {repairList} from "@/api/work/service.js"
- import self from '@/utils/location.js';
- import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
- import {getCount,getCountTips} from "@/api/work/index.js"
- export default {
- components:{footers,notice},
- data(){
- return{
- footerindex:'home',
- isfootflag:true,
- nvaHeight:44,
- // activeColor:'#A7CDF9',
- // nactiveColor:'#DADADA',
- backgroundColor: "transparent",
- navbg:require("@/static/images/navbg.png"),
- adrimg:require("@/static/images/home/adr.png"),
- adraimg:require("@/static/images/home/adra.png"),
- adrbgimg:require("@/static/images/home/adrbg.png"),
- conta:require("@/static/images/home/conta.png"),
- contb:require("@/static/images/home/contb.png"),
- contc:require("@/static/images/home/contc.png"),
- contd:require("@/static/images/home/contd.png"),
- htaba:require("@/static/images/home/htaba.png"),
- htabb:require("@/static/images/home/htabb.png"),
- htabc:require("@/static/images/home/htabc.png"),
- htabd:require("@/static/images/home/htabd.png"),
- htabe:require("@/static/images/home/htabe.png"),
- htabf:require("@/static/images/home/htabf.png"),
- htabg:require("@/static/images/home/htabg.png"),
- htabh:require("@/static/images/home/htabh.png"),
- htabi:require("@/static/images/home/htabi.png"),
- htabj:require("@/static/images/home/htabj.png"),
- htabk:require("@/static/images/home/htabk.png"),
- htabl:require("@/static/images/home/htabl.png"),
- htabm:require("@/static/images/home/htabm.png"),
- htabn:require("@/static/images/home/htabn.png"),
- htabo:require("@/static/images/home/htabo.png"),
- htabp:require("@/static/images/home/htabp.png"),
- upimg:require("@/static/images/home/up.png"),
- city:'合肥市',
- deptName:this.$store.state.user.deptName,
- nickName:this.$store.state.user.nickName,
- postGroup:'',//岗位
- autoplay:false,
- zhanflag:true,
- count:"",//统计
- countTips:'',//红点
- userId:this.$store.state.user.userId,
- noticelist:[],
- }
- },
- onPageScroll(e) {
- var scrollTop = Number(e.scrollTop);
- if (scrollTop > 0) {
- this.backgroundColor = '#C3EDFF'
- } else {
- this.backgroundColor = 'transparent'
- }
- },
- onLoad: function() {
- var that=this;
- uni.getSystemInfo({
- success: (e) => {
- this.nvaHeight = Number(e.statusBarHeight)+44;
- }
- })
- if(checkPermi(['wuYe:statistics:num:app'])){
- this.getCount()
- }
- if(checkPermi(['wuYe:statistics:wuYeTips'])){
- this.getCountTips()
- }
- if(checkPermi(['wuYe:repair:list'])){
- this.repairList()
- }
- // #ifndef H5
- self.getLocation(function(res){
- if(res==-1){
-
- }else{
- that.city=res.city;
- }
- })
- // #endif
- },
- methods:{
- checkPermi, checkRole,
- getNoticeDet(data){
- this.$tab.navigateTo(`/service/pages/service/warrantydetail?id=`+data)
- },
- repairList(){
- var params={
- pageSize: 10,
- pageNum: 1,
- repairStatus: 1,
- }
- repairList(params).then(res=>{
- if(res.code==200){
- this.noticelist=res.rows
- }
- })
- },
- getCount(){
- getCount().then(res => {
- if(res.code==200){
- this.count=res.data;
- }
- // this.roleGroup = response.roleGroup
- // this.postGroup = response.postGroup
- })
- },
- getCountTips(){
- var params={
- userId:this.userId
- }
- getCountTips(params).then(res=>{
- if(res.code==200){
- this.countTips=res.data;
- }
- })
- },
- getUser() {
- getUserProfile().then(response => {
- this.roleGroup = response.roleGroup
- this.postGroup = response.postGroup
- })
- },
- getZhanFn(){
- this.zhanflag=!this.zhanflag
- },
- getCarFn(){//车辆管控
- this.$toast("模块建设中~")
- // this.$tab.navigateTo(`/car/pages/index`)
- },
- getCarKuFn(){//车库管理
- this.$toast("模块建设中~")
- // this.$tab.navigateTo(`/car/pages/carku`)
- },
- getCarCheckFn(){//外来车辆登记
- this.$tab.navigateTo(`/car/pages/carcheck`)
- },
- getillegalParkFn(){//违停管理
- this.$tab.navigateTo(`/car/pages/illegalParking`)
- },
- getPeopleFn(){//人员管理
- this.$tab.navigateTo(`/people/pages/people/index`)
- },
- getComeglFn(){//来访管理
- this.$tab.navigateTo(`/people/pages/people/comegl`)
- },
- getMoneyFn(){//物业费管理
- this.$tab.navigateTo(`/work/pages/manage/money`)
- },
- getPatrolFn(){//今日巡更
- this.$tab.navigateTo(`/service/pages/service/patrol`)
- },
- getWarrantyFn(){//报修管理
- this.$tab.navigateTo(`/service/pages/service/warranty`)
- },
- getStaffFn(){//维修人员管理
- this.$tab.navigateTo(`/people/pages/people/staff`)
- },
- getHouseFn(){//房屋管理
- this.$tab.navigateTo(`/work/pages/manage/house`)
- },
- getComplaintFn(){//投诉建议
- this.$tab.navigateTo(`/service/pages/service/complaint`)
- },
- getNewsdjFn(){//党建资讯
- this.$tab.navigateTo(`/manage/pages/community/newsdj`)
- },
- getNewssqFn(){//党建资讯
- this.$tab.navigateTo(`/manage/pages/community/newssq`)
- },
- getNewsYgFn(){//员工培训
- this.$tab.navigateTo(`/manage/pages/community/newsyg`)
- },
- getSqmoneyFn(){//社区资产
- this.$tab.navigateTo(`/manage/pages/community/sqmoney`)
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- .navbox{position: fixed;left: 0;right: 0;top: 0;z-index: 4; }
- .navbg{width: 100%;height: 782rpx;}
- .wymain{z-index: 2;position: relative;padding: 0 24rpx;}
- .topl{overflow: hidden;padding-left: 16rpx;
- image{width: 18rpx;height: 22rpx;margin-right: 14rpx;flex: 0 0 auto;}
- view{font-weight: bold;font-size: 26rpx;color: #272727;}
- }
- .adrbox{position: relative;padding:8rpx 240rpx 16rpx 36rpx;margin-bottom: 14rpx;
- .adr{width: 36rpx;height: 34rpx;margin-right: 14rpx;}
- .adrtit{font-size: 17px;color: #272727;font-weight: bold;
- text{color: #0256FD;}
- }
- .adrtxt{font-size: 16px;color: #272727;font-weight: bold;
- text{font-size: 10px;color: #3F7EFD;display: inline-flex;background: rgba(119, 171, 184, 0.3);margin-left: 22rpx;min-width: 66rpx;height: 30rpx;padding: 0 14rpx;box-sizing: border-box;flex: 0 0 auto;border-radius: 8px;align-items: center;justify-content: center;}
- }
- .adrtip{font-weight: 500;font-size: 24rpx;color: #828282;}
- .adrbgimg{width: 212rpx;height: 236rpx;position: absolute;right: 20rpx;top: -70rpx;}
- }
- .contbox{
- .cont{padding-left: 24rpx;margin-bottom: 12rpx;
- image{width: 32rpx;height: 32rpx;margin-right: 16rpx;}
- view{font-size: 15px;color: #272727;font-weight: bold;}
- }
- .lists{
- display: flex;align-items: center;flex-wrap: wrap;
- .list{padding: 8rpx 0;
- width: 25%;display: flex;flex-direction: column;align-items: center;
- .tit{font-weight: bold;font-size: 30rpx;color: #3565ED;line-height: 60rpx;font-style: italic;margin-bottom: 8rpx;
- &.ca{color: #FF7E00;}
- &.cb{color: #28C529;}
- &.cc{color: #FF3737;}
- }
- .txt{font-weight: 500;font-size: 26rpx;color: #272727;}
- &.bimga{padding: 16rpx 0;}
- .imgs{display: flex;align-items: center;justify-content: center;width: 48rpx;height: 48rpx;margin-bottom: 18rpx;position: relative;
- .imga{width: 48rpx;height: 38rpx;}
- .imgb{width: 48rpx;height: 46rpx;}
- .imgc{width: 44rpx;height: 48rpx;}
- .imgd{width: 48rpx;height: 42rpx;}
- .imge{width: 46rpx;height: 46rpx;}
- .imgf{width: 48rpx;height: 48rpx;}
- .imgg{width: 42rpx;height: 48rpx;}
- .imgh{width: 44rpx;height: 44rpx;}
- .imgi{width: 48rpx;height: 44rpx;}
- .tips{position: absolute;min-width: 20rpx;top: -4rpx;left: 36rpx;box-sizing: border-box;
- height: 20rpx;padding: 0 4rpx;display: flex;align-items: center;justify-content: center;font-weight: bold;font-size: 16rpx;color: #FCF9F1;background: #D32C26;border-radius: 10rpx;
- }
- }
- }
- }
- .upbox{display: flex;align-items: center;justify-content: center;flex-direction: column;margin-top: 8rpx;padding-top: 8rpx;margin-bottom: 6rpx;
- image{width: 24rpx;height: 20rpx;margin-bottom: 8rpx;transition: all 0.3s;
- &.zhe{transform: rotate(-180deg);}
- }
- view{font-weight: 500;font-size: 22rpx;color: #AAAAAA;}
- }
- }
- </style>
|