zhangsijie 2 лет назад
Родитель
Сommit
725d5968d6
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      pages/cb/xctdetail/analyse.vue

+ 4 - 4
pages/cb/xctdetail/analyse.vue

@@ -571,8 +571,8 @@
 				this.sp_hour_st = e[0].value;
 				this.sp_hour_ed = e[1].value;
 				// 本地缓存
-				uni.setStorageSync('sp_hour_st', this.sp_hour_st);
-				uni.setStorageSync('sp_hour_ed', this.sp_hour_ed);
+				uni.setStorageSync('sp_hour_st_xc', this.sp_hour_st);
+				uni.setStorageSync('sp_hour_ed_xc', this.sp_hour_ed);
 				this.getyear();
 				console.log(e)
 			},
@@ -761,8 +761,8 @@
 			var date = +new Date()
 			this.oldtime = this.formatTime(date, 'yyyy-MM-dd');
 			this.newtime = this.formatTime(date, 'yyyy-MM-dd');
-			this.sp_hour_st = uni.getStorageSync('sp_hour_st') == '' ?  '00:00' : uni.getStorageSync('sp_hour_st');
-			this.sp_hour_ed = uni.getStorageSync('sp_hour_ed') == '' ?  '00:00' : uni.getStorageSync('sp_hour_ed');
+			this.sp_hour_st = uni.getStorageSync('sp_hour_st_xc') == '' ?  '00:00' : uni.getStorageSync('sp_hour_st_xc');
+			this.sp_hour_ed = uni.getStorageSync('sp_hour_ed_xc') == '' ?  '00:00' : uni.getStorageSync('sp_hour_ed_xc');
 			this.defaultValue=[this.sp_hour_st.substring(0, 1) == '0' ? this.sp_hour_st.substring(1, 2): this.sp_hour_st.substring(0, 2), this.sp_hour_ed.substring(0, 1) == '0' ? this.sp_hour_ed.substring(1, 2): this.sp_hour_ed.substring(0, 2)]
 			this.cWidth = uni.upx2px(650);
 			this.cHeight = uni.upx2px(500);