Kaynağa Gözat

优化和bug修复

ming 3 yıl önce
ebeveyn
işleme
1de445866e

+ 11 - 0
common/common.scss

@@ -20,6 +20,17 @@
 
 body {
 	font-size: 32rpx;
+}
+.cut{
+	white-space: nowrap;
+	    overflow: hidden;
+	    text-overflow: ellipsis;
+}
+.text-cut{
+	white-space: nowrap;
+	    overflow: hidden;
+	    text-overflow: ellipsis;
+		width:85%
 }
 
 

+ 2 - 6
manifest.json

@@ -144,13 +144,9 @@
                 }
             }
         },
-        "domain" : "https://qhome.usky.cn/",
+        "domain" : "https://qhome.usky.cn/work",
         "sdkConfigs" : {
-            "maps" : {
-                "qqmap" : {
-                    "key" : ""
-                }
-            }
+            "maps" : {}
         },
         "optimization" : {
             "treeShaking" : {

+ 1 - 1
pages/deviceOffLine/deviceOffLine.vue

@@ -126,7 +126,7 @@
 			
 
 			this.status_type=option.status_type;
-			this.getSiteList({"status_type":option.status_type,"company_code ":uni.getStorageSync('selectedCode')});
+			this.getSiteList({"status_type":option.status_type,"company_code":uni.getStorageSync('selectedCode')});
 			
 			let url = "";
 			switch (parseInt(option.status_type)) {

+ 1 - 1
pages/deviceType/deviceType.vue

@@ -52,7 +52,7 @@
 				
 				this.getData=res.data.data[0];
 				console.log(this.getData);
-				this.deviceType[0].num=this.getData.access_control_device_count;
+				this.deviceType[0].num=this.getData.pass_on_device_count;
 				this.deviceType[1].num=this.getData.water_meter_device_count
 				this.deviceType[2].num=this.getData.electrical_fire_device_count
 				this.deviceType[3].num=this.getData.rtu_device_count

+ 5 - 1
pages/info/fireBase/fireBase.vue

@@ -5,7 +5,11 @@
 			<view class="" style="margin-top:0">
 				<view class="cu-list menu-avatar ">
 					<view class="cu-item" v-for="(item,index) in this.getData" :key="index"  @tap="goDetail(item)">
-						<view class="cu-avatar" style="background-image:url(../../../static/fire-base1.png);"></view>
+						
+						<view class="cu-avatar">
+							<image class="image-bg" src="/static/fire-base1.png" />
+						</view>
+						
 						<view class="content">
 							<view class="pro-title">
 								<view class="cut">{{item.title}}</view>

+ 4 - 1
pages/info/fireBashDetail/fireBashDetail.vue

@@ -3,7 +3,10 @@
 		<view class="margin-bottom fireD-tit">{{this.getData.title}}</view>
 		<view class="flex justify-between align-center">
 			<view>
-				<view class="cu-avatar round" style="background-image:url(../../static/fireBase.png)"></view>
+				<!-- <view class="cu-avatar round" style="background-image:url(../../static/fireBase.png)"></view> -->
+				
+				<image class=" cu-avatar round" src="/static/fireBase.png" />
+				
 				<text class="margin-left-sm margin-right-sm text-sm">{{this.getData.author}}</text>
 				<text>{{this.getData.release_time}}</text>
 			</view>

+ 6 - 0
pages/weiBao/plan/plan.vue

@@ -4,6 +4,8 @@
 
 		<view class=" bg-white plan-sec">
 			
+			<view class=" text-center margin-top" v-if="data_res === 0">暂无数据...</view>
+			
 			<view class="cu-list menu-avatar">
 				<view class="cu-item " v-for="(item,index) in getData" :key="index"
 					@tap="goInnerList(item)">
@@ -39,6 +41,7 @@
 			return {
 				inspectList: json.xunJianPlan,
 				getData: {},
+				data_res:1
 				
 			};
 		},
@@ -57,6 +60,9 @@
 					showLoading: true
 				})
 				this.getData = res.data.data;
+				setTimeout(()=>{
+					this.data_res = parseInt(res.data.length)?1:0
+				},100)
 				// this.planList = this.getData.point
 			},
 			goInnerList(item) {

+ 9 - 0
pages/xunJian/plan/plan.vue

@@ -5,6 +5,8 @@
 
 		<view class=" bg-white plan-sec">
 			
+			<view class=" text-center margin-top" v-if="data_res === 0">暂无数据...</view>
+			
 			<view class="cu-list menu-avatar">
 				<view class="cu-item" v-for="(item,index) in getData" :key="index"
 					@tap="goInnerList(item)">
@@ -40,6 +42,7 @@
 			return {
 				inspectList: json.xunJianPlan,
 				getData: {},
+				data_res:1
 				
 			};
 		},
@@ -58,6 +61,12 @@
 					showLoading: true
 				})
 				this.getData = res.data.data;
+				
+				setTimeout(()=>{
+					this.data_res = parseInt(res.data.length)?1:0
+				},100)
+				
+				// alert(this.data_res)
 				// this.planList = this.getData.point
 			},
 			goInnerList(item) {

+ 1 - 1
util/api.js

@@ -19,7 +19,7 @@ function myRequest(options){
 		}
 	
 		return new Promise((resolve, reject) => {
-			uni.request({
+			uni.request({	
 				url: BASE_URL + options.url,
 				method: options.method || 'POST',
 				data: options.data || {},