| | |
| | | <view class="flex f-d-c ml-40"> |
| | | <text class="f-36">总申请</text> |
| | | <view class="flex a-i-c"> |
| | | <text class="f-48 c-blue fw mr-6">50</text> |
| | | <text class="f-48 c-blue fw mr-6">{{count.all}}</text> |
| | | <text class="f-24 c-99">件</text> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="flex f-d-c ml-40"> |
| | | <text class="f-36">已处理</text> |
| | | <view class="flex a-i-c"> |
| | | <text class="f-48 c-green fw mr-6">50</text> |
| | | <text class="f-48 c-green fw mr-6">{{count.processed}}</text> |
| | | <text class="f-24 c-99">件</text> |
| | | </view> |
| | | </view> |
| | |
| | | <u-icon name="map-fill" color="#AAAAAA"></u-icon> |
| | | <text class="f-28 c-aa ml-20">当前小区:</text> |
| | | </view> |
| | | |
| | | <text class="address f-28">{{siteInfo.name}}</text> |
| | | </view> |
| | | |
| | | <view class="nav flex flex-wrap j-c-s-b"> |
| | | |
| | | <view class="nav-item" v-for="(i,k) in navList" :key="k" @click="navTo(i.path,k)"> |
| | | <image class="nav-item-bg" :src="i.bgImg" mode="aspectFill"></image> |
| | | <view class="nav-item-inner flex f-d-c"> |
| | |
| | | <button class="item-btn" :style="{backgroundColor:i.background}">立即上报</button> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | </view> |
| | | </view> |
| | | |
| | | </view> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { getReportingCount } from '@/api/reporting/reporting.js' |
| | | |
| | | export default { |
| | | data(){ |
| | | return { |
| | |
| | | background:"#13C6C7" |
| | | } |
| | | ], |
| | | siteInfo:{} |
| | | siteInfo:{}, |
| | | count:{} |
| | | } |
| | | }, |
| | | |
| | | onLoad(){ |
| | | this.siteInfo = uni.getStorageSync("siteInfo"); |
| | | this.getCount(uni.getStorageSync("siteInfo").id); |
| | | }, |
| | | |
| | | methods:{ |
| | | getCount(code){ |
| | | getReportingCount({houseCode:code}).then(res=>{ |
| | | console.log(res); |
| | | this.count = res.data; |
| | | }) |
| | | }, |
| | | |
| | | navTo(path,index){ |
| | | let type = 1; |
| | | if(index == 2){ |
| | | if(index == 1){ |
| | | type == 1 |
| | | }else if (index == 3){ |
| | | type = 2 |
| | | }else { |
| | | type = 3 |
| | | }else if(index == 4) { |
| | | type = 2 |
| | | } |
| | | |
| | | this.$u.func.globalNavigator(`${path}?type=${type}`, "navTo") |
| | | |
| | | } |