소스 검색

no message

ming 4 년 전
부모
커밋
4f7d022939
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      pages/index/index.vue
  2. 2 2
      util/api.js

+ 2 - 2
pages/index/index.vue

@@ -61,7 +61,7 @@
 				<view class="cu-item justify-center align-center" @tap=navItemClick(index) v-for="(item,index) in cuIconList" :key="index">
 					<image :src="item.imgUrl" style="width:100rpx;height:100rpx"></image>
 					<view class="cu-tag badge" v-if="item.badge!=0">
-						<block v-if="item.badge!=1">{{item.badge>99?'99+':item.badge}}</block>
+						<block v-if="item.badge!=0">{{item.badge>99?'99+':item.badge}}</block>
 					</view>
 					<text>{{item.name}}</text>
 				</view>
@@ -382,7 +382,7 @@
 				})
 				this.staticData = res.data.data[0]  
 				this.alarmCount = this.staticData.alarmCount
-				this.cuIconList[0].badge=this.staticData.integratedAlarmCount
+				this.cuIconList[0].badge=this.staticData.unprocessedCount
 			},
 
 

+ 2 - 2
util/api.js

@@ -1,5 +1,5 @@
-// const BASE_URL = 'https://iot.usky.cn/USKYOF/USKYOF.php/Home/'   //(测试域名)
-const BASE_URL='https://qhome.usky.cn/USKYOF/USKYOF.php/Home/'
+const BASE_URL = 'https://iot.usky.cn/USKYOF/USKYOF.php/Home/'   //(测试域名)
+// const BASE_URL='https://qhome.usky.cn/USKYOF/USKYOF.php/Home/'
 // 同时发送异步代码的次数,防止一次点击中有多次请求,用于处理
 let ajaxTimes = 0;