Commit 3fc5306e authored by 罗超's avatar 罗超

1

parent 6cf89ec8
......@@ -119,7 +119,6 @@ import {
} from "vue";
import { getWeek, getToday } from "../../utils/date.js";
import { getStundentPlanStatistical } from "../../api/index";
import { getSystemInfo } from "../../utils/index";
export default {
name: "",
props: {},
......@@ -231,9 +230,7 @@ export default {
activeDay.value = today.day;
}
sliceWeek(today);
getSystemInfo((res) => {
data.statusBarHeight = res.statusBarHeight;
});
data.statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
});
let that = methods;
return {
......
......@@ -275,9 +275,7 @@ export default {
onMounted(() => {
console.log(process.env);
getSystemInfo((res) => {
data.statusBarHeight = res.statusBarHeight;
});
data.statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
data.userinfo = uni.getStorageSync("userInfo");
data.userinfo.EnterPhone2 = desensitization(
data.userinfo.EnterPhone,
......
//获取设备信息
export let getSystemInfo = (callback) => {
uni.getSystemInfo({
success: (res) => {
callback(res)
}
})
return uni.getSystemInfoSync()
}
//脱敏
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment