master
parent
64b9f0e16c
commit
9631b04dc1
|
@ -632,3 +632,6 @@ img {
|
|||
.notice-time { margin-top: 10px;font-size: 14px;}
|
||||
.main-center{width: auto;}
|
||||
}
|
||||
html{
|
||||
/* transform: rotateZ(90deg); */
|
||||
}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<template>
|
||||
<div style="width: 100%;">
|
||||
<div class="yiqing-title attend-title">何雨桐</div>
|
||||
<div class="yiqing-title attend-title">{{getuserattendanceinfoData[0].StuName}}</div>
|
||||
<img src="../../static/img/kindergartenIntroduce/icon-back.png" class="back-img" @click="backNews">
|
||||
<div class="attendance-con">
|
||||
<div class="top-row">
|
||||
<img src="../../static/img/seconds/tu-01.png" class="baby-img01" alt="">
|
||||
<img :src="getuserattendanceinfoData[0].CheckPicture" class="baby-img01" alt="">
|
||||
<div class="attenddetail-ring">
|
||||
<div>
|
||||
<div>性别:女</div>
|
||||
|
@ -64,7 +64,8 @@
|
|||
methods: {
|
||||
async getuserattendanceinfo() {
|
||||
let UserGuid=""
|
||||
UserGuid=localStorage.Id
|
||||
UserGuid="1ec20f7e-85c7-a982-b506-67f71d64d1f6"
|
||||
|
||||
let data = await this.$axios({
|
||||
// 调用 serviceAPI
|
||||
url: this.$https.getuserattendanceinfo,
|
||||
|
@ -74,8 +75,8 @@
|
|||
UserGuid
|
||||
},
|
||||
});
|
||||
console.log(data.data,"1232");
|
||||
|
||||
this.getuserattendanceinfoData=data.data.data
|
||||
console.log(this.getuserattendanceinfoData);
|
||||
},
|
||||
|
||||
backNews(){
|
||||
|
|
|
@ -75,9 +75,11 @@
|
|||
url: this.$https.getstudentattendanceinfo,
|
||||
methods: "get",
|
||||
params: {
|
||||
EquipmentGuid: "yaohaotest001"
|
||||
EquipmentGuid: "yaohaotest001",
|
||||
type:2,
|
||||
},
|
||||
});
|
||||
|
||||
let leftInfo = data.data.data;
|
||||
|
||||
this.navArr[0].num = leftInfo.toSchoolNum;
|
||||
|
|
|
@ -230,6 +230,7 @@ export default {
|
|||
// 当天气温
|
||||
this.temperature = `${newtempera.low}-${newtempera.high}°C`;
|
||||
let text = data.data.data.weather.result.now.text;
|
||||
console.log(text);
|
||||
if (
|
||||
text == "阵雨" ||
|
||||
text == "小雨" ||
|
||||
|
@ -261,6 +262,8 @@ export default {
|
|||
text == "暴雪"
|
||||
) {
|
||||
this.weather = require(`../../static/img/weather/9.png`); //雨夹雪
|
||||
}else{
|
||||
this.weather = require(`../../static/img/weather/1.png`) //晴
|
||||
}
|
||||
}
|
||||
// if () {
|
||||
|
@ -306,6 +309,27 @@ export default {
|
|||
},
|
||||
},
|
||||
mounted() {
|
||||
|
||||
var width = window.innerWidth,
|
||||
height = window.innerHeight,
|
||||
$wrapper = document.getElementById("app"),
|
||||
style = "";
|
||||
if (width >= height) { // 横屏
|
||||
style += "width:" + width + "px;"; // 注意旋转后的宽高切换
|
||||
style += "height:" + height + "px;";
|
||||
style += "-webkit-transform: rotate(0); transform: rotate(0);";
|
||||
style += "-webkit-transform-origin: " + width / 2 + "px " + width / 2 + "px;";
|
||||
style += "transform-origin: " + width / 2 + "px " + width / 2 + "px;";
|
||||
}
|
||||
else { // 竖屏
|
||||
style += "width:" + height + "px;";
|
||||
style += "height:" + width + "px;";
|
||||
style += "-webkit-transform: rotate(90deg); transform: rotate(90deg);";
|
||||
// 注意旋转中点的处理
|
||||
style += "-webkit-transform-origin: " + width / 2 + "px " + width / 2 + "px;";
|
||||
style += "transform-origin: " + width / 2 + "px " + width / 2 + "px;";
|
||||
}
|
||||
$wrapper.style.cssText = style;
|
||||
this.weatherEv();
|
||||
window.addEventListener("online", this.updateOnlineStatus); //网络由异常到正常时触发
|
||||
window.addEventListener("offline", this.updateOnlineStatus); //网络由正常到异常时触发
|
||||
|
|
|
@ -84,11 +84,11 @@
|
|||
</div>
|
||||
<div class="msg-box">
|
||||
<div>宝宝提醒</div>
|
||||
<div>1</div>
|
||||
<div v-if="remindData!=0">{{remindData}}</div>
|
||||
</div>
|
||||
<div class="msg-box">
|
||||
<div v-if="babyBirthdayData!=0">生日提醒</div>
|
||||
<div>{{babyBirthdayData}}</div>
|
||||
<div >生日提醒</div>
|
||||
<div v-if="babyBirthdayData!=0">{{babyBirthdayData}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -127,6 +127,7 @@
|
|||
noonArr: [],
|
||||
moId:"",
|
||||
model:"",
|
||||
remindData:"",
|
||||
className:'',//班级名称
|
||||
teacherName:'',//老师姓名
|
||||
classNum:'',//班级人数
|
||||
|
@ -162,6 +163,19 @@
|
|||
},
|
||||
});
|
||||
this.noticeData = data.data.count;
|
||||
|
||||
},
|
||||
async remind() {
|
||||
let data = await this.$axios({
|
||||
// 调用 serviceAPI
|
||||
url: this.$https.remind,
|
||||
methods: "get",
|
||||
params: {
|
||||
EquipmentID: "yaohaotest001",
|
||||
},
|
||||
});
|
||||
console.log(data.data,"123");
|
||||
this.remindData = data.data.count;
|
||||
},
|
||||
async schedulingWeb() {
|
||||
let data = await this.$axios({
|
||||
|
@ -226,10 +240,12 @@
|
|||
},
|
||||
},
|
||||
mounted() {
|
||||
this.remind()
|
||||
this.babyRecipeEv();
|
||||
this.schedulingWeb();
|
||||
this.babyBirthday()
|
||||
this.dynamicPicture()
|
||||
|
||||
// 班级详情
|
||||
this.classStatusEv();
|
||||
// 引用mobile-detect文件
|
||||
|
|
|
@ -29,20 +29,9 @@
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
async getdatalistbyorgguidStyle() {
|
||||
let data = await this.$axios({
|
||||
// 调用 serviceAPI
|
||||
url: this.$https.getdatalistbyorgguid,
|
||||
methods: "get",
|
||||
params: {
|
||||
EquipmentID: "yaohaotest001",
|
||||
},
|
||||
});
|
||||
console.log(data.data.data);
|
||||
},
|
||||
|
||||
},
|
||||
mounted() {
|
||||
this.getdatalistbyorgguidStyle();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -28,4 +28,5 @@ const url = {
|
|||
|
||||
}
|
||||
|
||||
|
||||
module.exports = url
|
||||
|
|
Loading…
Reference in New Issue