瀏覽代碼

修改bug

zhanghongrui 2 年之前
父節點
當前提交
7055e4e2b4
共有 4 個文件被更改,包括 17 次插入14 次删除
  1. 4 4
      pages/index/index.wxml
  2. 3 3
      pages/qiye/qiye.js
  3. 5 5
      pages/xuncha/xuncha.js
  4. 5 2
      pages/xunchajilu/xunchajilu.js

+ 4 - 4
pages/index/index.wxml

@@ -89,18 +89,18 @@
       </view>
         <text>巡检</text>
       </view>
-      <view class="icon_vi">
+      <!-- <view class="icon_vi">
         <view class="icon_bg icon_yj">
         <i class="iconfont icon-yingjizhongxin"></i>
       </view>
         <text>应急</text>
-      </view>
-      <view class="icon_vi">
+      </view> -->
+      <!-- <view class="icon_vi">
         <view class="icon_bg icon_hy">
         <i class="iconfont icon-huiyi"></i>
       </view>
         <text>会议</text>
-      </view>
+      </view> -->
       <view class="icon_vi" bindtap="bindViewWuZi">
         <view class="icon_bg icon_wz">
         <i class="iconfont icon-wuzichubei"></i>

+ 3 - 3
pages/qiye/qiye.js

@@ -60,14 +60,14 @@ Page({
     http.send_post("/system/AppEnterpriseController/getInitEnterpriseList", null, this.getQiyeEnterpriseListSuccess)
   },
   getQiyePageSuccess(res) {
-   // if(res.code==200){
-      let enterpriseCount = res.enterpriseCount;
+    if(res.code==200){
+      let enterpriseCount = res.data.enterpriseCount;
       this.setData({
         weekCount: enterpriseCount.weekCount,
         monthCount: enterpriseCount.monthCount,
         totalCount: enterpriseCount.totalCount,
       })
-   // }
+    }
   
   },
   getQiyeEnterpriseListSuccess(res) {

+ 5 - 5
pages/xuncha/xuncha.js

@@ -40,14 +40,14 @@ Page({
   getXunchaCountSuccess(res) {
   
     console.log("@@@@",res)
-    //if(res.code==200){
+    if(res.code==200){
       this.setData({
-          todayXunchaCount: res.xunchaCount.todayXunchaCount,
-          todayRiskCount: res.xunchaCount.todayRiskCount,
-          todayEnterpriseCount: res.xunchaCount.todayEnterpriseCount
+          todayXunchaCount: res.data.xunchaCount.todayXunchaCount,
+          todayRiskCount: res.data.xunchaCount.todayRiskCount,
+          todayEnterpriseCount: res.data.xunchaCount.todayEnterpriseCount
         })
      
-   // }
+    }
   
   },
   getXunchaList() {

+ 5 - 2
pages/xunchajilu/xunchajilu.js

@@ -18,10 +18,13 @@ Page({
     http.post("/system/AppXunchaController/getXunchaCount",obj,this.getXunchaCountSuccess)
   },
   getXunchaCountSuccess(res){
+    console.log("222",res)
+    if(res.code==200){
     this.setData({
-      todayXunchaCount:res.xunchaCount.todayXunchaCount,
-      todayRiskCount : res.xunchaCount.todayRiskCount
+      todayXunchaCount:res.data.xunchaCount.todayXunchaCount,
+      todayRiskCount : res.data.xunchaCount.todayRiskCount
     })
+  }
   },
   getXunchaList(){
     let obj = new Object();