zhanghongrui 2 yıl önce
ebeveyn
işleme
7055e4e2b4

+ 4 - 4
pages/index/index.wxml

@@ -89,18 +89,18 @@
       </view>
       </view>
         <text>巡检</text>
         <text>巡检</text>
       </view>
       </view>
-      <view class="icon_vi">
+      <!-- <view class="icon_vi">
         <view class="icon_bg icon_yj">
         <view class="icon_bg icon_yj">
         <i class="iconfont icon-yingjizhongxin"></i>
         <i class="iconfont icon-yingjizhongxin"></i>
       </view>
       </view>
         <text>应急</text>
         <text>应急</text>
-      </view>
-      <view class="icon_vi">
+      </view> -->
+      <!-- <view class="icon_vi">
         <view class="icon_bg icon_hy">
         <view class="icon_bg icon_hy">
         <i class="iconfont icon-huiyi"></i>
         <i class="iconfont icon-huiyi"></i>
       </view>
       </view>
         <text>会议</text>
         <text>会议</text>
-      </view>
+      </view> -->
       <view class="icon_vi" bindtap="bindViewWuZi">
       <view class="icon_vi" bindtap="bindViewWuZi">
         <view class="icon_bg icon_wz">
         <view class="icon_bg icon_wz">
         <i class="iconfont icon-wuzichubei"></i>
         <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)
     http.send_post("/system/AppEnterpriseController/getInitEnterpriseList", null, this.getQiyeEnterpriseListSuccess)
   },
   },
   getQiyePageSuccess(res) {
   getQiyePageSuccess(res) {
-   // if(res.code==200){
-      let enterpriseCount = res.enterpriseCount;
+    if(res.code==200){
+      let enterpriseCount = res.data.enterpriseCount;
       this.setData({
       this.setData({
         weekCount: enterpriseCount.weekCount,
         weekCount: enterpriseCount.weekCount,
         monthCount: enterpriseCount.monthCount,
         monthCount: enterpriseCount.monthCount,
         totalCount: enterpriseCount.totalCount,
         totalCount: enterpriseCount.totalCount,
       })
       })
-   // }
+    }
   
   
   },
   },
   getQiyeEnterpriseListSuccess(res) {
   getQiyeEnterpriseListSuccess(res) {

+ 5 - 5
pages/xuncha/xuncha.js

@@ -40,14 +40,14 @@ Page({
   getXunchaCountSuccess(res) {
   getXunchaCountSuccess(res) {
   
   
     console.log("@@@@",res)
     console.log("@@@@",res)
-    //if(res.code==200){
+    if(res.code==200){
       this.setData({
       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() {
   getXunchaList() {

+ 5 - 2
pages/xunchajilu/xunchajilu.js

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