master
tangyi 2021-12-27 20:20:51 +08:00
parent 64b9f0e16c
commit 9631b04dc1
7 changed files with 57 additions and 21 deletions

View File

@ -632,3 +632,6 @@ img {
.notice-time { margin-top: 10px;font-size: 14px;} .notice-time { margin-top: 10px;font-size: 14px;}
.main-center{width: auto;} .main-center{width: auto;}
} }
html{
/* transform: rotateZ(90deg); */
}

View File

@ -1,10 +1,10 @@
<template> <template>
<div style="width: 100%;"> <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"> <img src="../../static/img/kindergartenIntroduce/icon-back.png" class="back-img" @click="backNews">
<div class="attendance-con"> <div class="attendance-con">
<div class="top-row"> <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 class="attenddetail-ring">
<div> <div>
<div>性别</div> <div>性别</div>
@ -64,7 +64,8 @@
methods: { methods: {
async getuserattendanceinfo() { async getuserattendanceinfo() {
let UserGuid="" let UserGuid=""
UserGuid=localStorage.Id UserGuid="1ec20f7e-85c7-a982-b506-67f71d64d1f6"
let data = await this.$axios({ let data = await this.$axios({
// serviceAPI // serviceAPI
url: this.$https.getuserattendanceinfo, url: this.$https.getuserattendanceinfo,
@ -74,8 +75,8 @@
UserGuid UserGuid
}, },
}); });
console.log(data.data,"1232"); this.getuserattendanceinfoData=data.data.data
console.log(this.getuserattendanceinfoData);
}, },
backNews(){ backNews(){

View File

@ -75,9 +75,11 @@
url: this.$https.getstudentattendanceinfo, url: this.$https.getstudentattendanceinfo,
methods: "get", methods: "get",
params: { params: {
EquipmentGuid: "yaohaotest001" EquipmentGuid: "yaohaotest001",
type:2,
}, },
}); });
let leftInfo = data.data.data; let leftInfo = data.data.data;
this.navArr[0].num = leftInfo.toSchoolNum; this.navArr[0].num = leftInfo.toSchoolNum;

View File

@ -230,6 +230,7 @@ export default {
// //
this.temperature = `${newtempera.low}-${newtempera.high}°C`; this.temperature = `${newtempera.low}-${newtempera.high}°C`;
let text = data.data.data.weather.result.now.text; let text = data.data.data.weather.result.now.text;
console.log(text);
if ( if (
text == "阵雨" || text == "阵雨" ||
text == "小雨" || text == "小雨" ||
@ -261,6 +262,8 @@ export default {
text == "暴雪" text == "暴雪"
) { ) {
this.weather = require(`../../static/img/weather/9.png`); // this.weather = require(`../../static/img/weather/9.png`); //
}else{
this.weather = require(`../../static/img/weather/1.png`) //
} }
} }
// if () { // if () {
@ -306,6 +309,27 @@ export default {
}, },
}, },
mounted() { 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(); this.weatherEv();
window.addEventListener("online", this.updateOnlineStatus); // window.addEventListener("online", this.updateOnlineStatus); //
window.addEventListener("offline", this.updateOnlineStatus); // window.addEventListener("offline", this.updateOnlineStatus); //

View File

@ -84,11 +84,11 @@
</div> </div>
<div class="msg-box"> <div class="msg-box">
<div>宝宝提醒</div> <div>宝宝提醒</div>
<div>1</div> <div v-if="remindData!=0">{{remindData}}</div>
</div> </div>
<div class="msg-box"> <div class="msg-box">
<div v-if="babyBirthdayData!=0"></div> <div >生日提</div>
<div>{{babyBirthdayData}}</div> <div v-if="babyBirthdayData!=0">{{babyBirthdayData}}</div>
</div> </div>
</div> </div>
</div> </div>
@ -127,6 +127,7 @@
noonArr: [], noonArr: [],
moId:"", moId:"",
model:"", model:"",
remindData:"",
className:'',// className:'',//
teacherName:'',// teacherName:'',//
classNum:'',// classNum:'',//
@ -162,6 +163,19 @@
}, },
}); });
this.noticeData = data.data.count; 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() { async schedulingWeb() {
let data = await this.$axios({ let data = await this.$axios({
@ -226,10 +240,12 @@
}, },
}, },
mounted() { mounted() {
this.remind()
this.babyRecipeEv(); this.babyRecipeEv();
this.schedulingWeb(); this.schedulingWeb();
this.babyBirthday() this.babyBirthday()
this.dynamicPicture() this.dynamicPicture()
// //
this.classStatusEv(); this.classStatusEv();
// mobile-detect // mobile-detect

View File

@ -29,20 +29,9 @@
} }
}, },
methods: { methods: {
async getdatalistbyorgguidStyle() {
let data = await this.$axios({
// serviceAPI
url: this.$https.getdatalistbyorgguid,
methods: "get",
params: {
EquipmentID: "yaohaotest001",
},
});
console.log(data.data.data);
},
}, },
mounted() { mounted() {
this.getdatalistbyorgguidStyle();
} }
} }
</script> </script>

View File

@ -28,4 +28,5 @@ const url = {
} }
module.exports = url module.exports = url