vue新增网络检测、设备id获取
						commit
						9ec2bd6b74
					
				|  | @ -529,6 +529,9 @@ overflow: hidden;overflow-y: scroll;} | ||||||
| .nothing-box {width: 879px;height: 641px;display: flex;justify-content: center;align-items: center;box-sizing: border-box;} | .nothing-box {width: 879px;height: 641px;display: flex;justify-content: center;align-items: center;box-sizing: border-box;} | ||||||
| .nothing-box img {width: 116px;height: 195px;margin-right: 36px;} | .nothing-box img {width: 116px;height: 195px;margin-right: 36px;} | ||||||
| .nothing-box div {font-size: 24px;color: #3F3F3F;font-weight: bold;margin-top: 80px;} | .nothing-box div {font-size: 24px;color: #3F3F3F;font-weight: bold;margin-top: 80px;} | ||||||
|  | .attendance-right>div{ | ||||||
|  | 	width: 100%; | ||||||
|  | } | ||||||
| /* 宝宝相册 */ | /* 宝宝相册 */ | ||||||
| .babyalbum-box { | .babyalbum-box { | ||||||
| 	width: 1210px; | 	width: 1210px; | ||||||
|  | @ -689,6 +692,9 @@ overflow: hidden;overflow-y: scroll;} | ||||||
| .baby-name {font-size: 24px;font-weight: 800;color: #3F3F3F;} | .baby-name {font-size: 24px;font-weight: 800;color: #3F3F3F;} | ||||||
| .baby-album-box {padding: 97px 0 126px 0;height: 100%; display: flex;align-items: center;justify-content: space-between;box-sizing: border-box;position: relative;} | .baby-album-box {padding: 97px 0 126px 0;height: 100%; display: flex;align-items: center;justify-content: space-between;box-sizing: border-box;position: relative;} | ||||||
| .baby-album-box > img {width: 58px;height: 58px; -webkit-tap-highlight-color:transparent;} | .baby-album-box > img {width: 58px;height: 58px; -webkit-tap-highlight-color:transparent;} | ||||||
|  | .babyalbum-detail-box .swiper-container{ | ||||||
|  | 	padding: 20px 0px; | ||||||
|  | } | ||||||
| .introduce-img {display: flex;flex-wrap: wrap;} | .introduce-img {display: flex;flex-wrap: wrap;} | ||||||
| .introduce-img img {margin: 10px 10px 0 0;} | .introduce-img img {margin: 10px 10px 0 0;} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -112,13 +112,27 @@ | ||||||
| 			} | 			} | ||||||
| 		}, | 		}, | ||||||
| 		methods: { | 		methods: { | ||||||
|  | 		async getuserattendanceinfo() { | ||||||
|  | 			let UserGuid="" | ||||||
|  | 			UserGuid="1ec20f7e-85c7-a982-b506-67f71d64d1f6" | ||||||
|  | 
 | ||||||
|  | 				let data = await this.$axios({ | ||||||
|  | 					// 调用 serviceAPI | ||||||
|  | 					url: this.$https.getuserattendanceinfo, | ||||||
|  | 					methods: "get", | ||||||
|  | 					params: { | ||||||
|  | 						EquipmentID: "yaohaotest001", | ||||||
|  | 						UserGuid | ||||||
|  | 					}, | ||||||
|  | 				}); | ||||||
|  | 			}, | ||||||
| 			backNews(){ | 			backNews(){ | ||||||
| 				this.$emit('backNews',false); | 				this.$emit('backNews',false); | ||||||
| 			}, | 			}, | ||||||
| 			 | 			 | ||||||
| 		}, | 		}, | ||||||
| 		mounted() { | 		mounted() { | ||||||
| 			 | 			 this.getuserattendanceinfo() | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| </script> | </script> | ||||||
|  |  | ||||||
|  | @ -69,6 +69,6 @@ | ||||||
| <style> | <style> | ||||||
| 	.swiper-slide { | 	.swiper-slide { | ||||||
| 		background-color: #F5F5F5; | 		background-color: #F5F5F5; | ||||||
| 		box-shadow: 10px 10px 10px 10px rgba(134, 105, 220, 0.2); | 	box-shadow: 0 10px 20px rgba(195, 174, 255,0.7);; | ||||||
| 	} | 	} | ||||||
| </style> | </style> | ||||||
|  |  | ||||||
|  | @ -174,20 +174,20 @@ | ||||||
| 				e == 0 ? this.activeTitle = 'activeTitle' : this.activeTitle = 'activeTitle2'; | 				e == 0 ? this.activeTitle = 'activeTitle' : this.activeTitle = 'activeTitle2'; | ||||||
| 			}, | 			}, | ||||||
| 			// 网络状态 | 			// 网络状态 | ||||||
| 			// updateOnlineStatus(e) { | 			updateOnlineStatus(e) { | ||||||
| 			// 	const { | 				const { | ||||||
| 			// 		type | 					type | ||||||
| 			// 	} = e; | 				} = e; | ||||||
| 			// 	this.onLine = type === 'online'; | 				this.onLine = type === 'online'; | ||||||
| 				 | 				 | ||||||
| 			// 	if (this.onLine) { | 				if (this.onLine) { | ||||||
| 			// 		this.refreshEv(); | 					this.refreshEv(); | ||||||
| 			// 		this.weatherEv(); | 					this.weatherEv(); | ||||||
| 			// 		this.isNetwork = false; | 					this.isNetwork = false; | ||||||
| 			// 	} else { | 				} else { | ||||||
| 			// 		this.isNetwork = true; | 					this.isNetwork = true; | ||||||
| 			// 	} | 				} | ||||||
| 			// }, | 			}, | ||||||
| 			// 天气 | 			// 天气 | ||||||
| 			// weatherEv() { | 			// weatherEv() { | ||||||
| 			// 	// 获取时间 | 			// 	// 获取时间 | ||||||
|  |  | ||||||
|  | @ -95,6 +95,10 @@ | ||||||
| 						<div>宝宝提醒</div> | 						<div>宝宝提醒</div> | ||||||
| 						<div v-if="babyNotice!=0">{{babyNotice}}</div> | 						<div v-if="babyNotice!=0">{{babyNotice}}</div> | ||||||
| 					</div> | 					</div> | ||||||
|  | 					<div class="msg-box"> | ||||||
|  | 						<div>生日提醒</div> | ||||||
|  | 						<div v-if="remindData!=0">{{remindData}}</div> | ||||||
|  | 					</div> | ||||||
| 					<div class="msg-box"> | 					<div class="msg-box"> | ||||||
| 						<div >生日提醒</div> | 						<div >生日提醒</div> | ||||||
| 						<div v-if="babyBirthdayData!=0">{{babyBirthdayData}}</div> | 						<div v-if="babyBirthdayData!=0">{{babyBirthdayData}}</div> | ||||||
|  | @ -137,6 +141,9 @@ | ||||||
| 				babyNotice:0,//宝宝提醒数量 | 				babyNotice:0,//宝宝提醒数量 | ||||||
| 				dynamicPictureData: "", | 				dynamicPictureData: "", | ||||||
| 				noonArr: [], | 				noonArr: [], | ||||||
|  | 				moId:"", | ||||||
|  | 				model:"", | ||||||
|  | 				remindData:"", | ||||||
| 				className:'',//班级名称 | 				className:'',//班级名称 | ||||||
| 				teacherName:'',//老师姓名 | 				teacherName:'',//老师姓名 | ||||||
| 				classNum:'',//班级人数 | 				classNum:'',//班级人数 | ||||||
|  | @ -222,7 +229,6 @@ | ||||||
| 					this.noticeObj =this.$storage.get('noticeObj'); | 					this.noticeObj =this.$storage.get('noticeObj'); | ||||||
| 					this.noticeObj.PublishTime = this.$storage.get('PublishTime'); | 					this.noticeObj.PublishTime = this.$storage.get('PublishTime'); | ||||||
| 				} | 				} | ||||||
| 				 |  | ||||||
| 				this.showLoading_three = false; | 				this.showLoading_three = false; | ||||||
| 			}, | 			}, | ||||||
| 			// 今日活动 | 			// 今日活动 | ||||||
|  | @ -379,6 +385,11 @@ | ||||||
| 		}, | 		}, | ||||||
| 		destroyed(){ | 		destroyed(){ | ||||||
| 			clearInterval(this.timer); | 			clearInterval(this.timer); | ||||||
|  | 			this.babyBirthday() | ||||||
|  | 			this.dynamicPicture() | ||||||
|  | 
 | ||||||
|  | 			// 班级详情 | ||||||
|  | 			this.classStatusEv(); | ||||||
| 		}, | 		}, | ||||||
| 		created() { | 		created() { | ||||||
| 			this.notice(); | 			this.notice(); | ||||||
|  |  | ||||||
|  | @ -71,7 +71,6 @@ | ||||||
| 			}, | 			}, | ||||||
| 		}, | 		}, | ||||||
| 		mounted() { | 		mounted() { | ||||||
| 			this.getdatalistbyorgguidStyle(); |  | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| </script> | </script> | ||||||
|  |  | ||||||
|  | @ -29,4 +29,5 @@ const url = { | ||||||
| 	classcardById:host + '/api/admin/electronicclasscard/Classcard_ById',//获取模式
 | 	classcardById:host + '/api/admin/electronicclasscard/Classcard_ById',//获取模式
 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
| module.exports = url | module.exports = url | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue