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;}
.main-center{width: auto;}
}
html{
/* transform: rotateZ(90deg); */
}

View File

@ -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(){

View File

@ -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;

View File

@ -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); //

View File

@ -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

View File

@ -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>

View File

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