Lou
2023-11-09 8a736f150b04c87bd4124b4996a4b3188f2aee2e
subPackage/label/index.vue
@@ -14,7 +14,7 @@
               <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>
@@ -24,7 +24,7 @@
               <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>
@@ -36,12 +36,10 @@
               <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">
@@ -49,16 +47,16 @@
                  <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 {
@@ -94,25 +92,32 @@
                  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")
            
         }