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

1

parent 6cf89ec8
...@@ -119,7 +119,6 @@ import { ...@@ -119,7 +119,6 @@ import {
} from "vue"; } from "vue";
import { getWeek, getToday } from "../../utils/date.js"; import { getWeek, getToday } from "../../utils/date.js";
import { getStundentPlanStatistical } from "../../api/index"; import { getStundentPlanStatistical } from "../../api/index";
import { getSystemInfo } from "../../utils/index";
export default { export default {
name: "", name: "",
props: {}, props: {},
...@@ -231,9 +230,7 @@ export default { ...@@ -231,9 +230,7 @@ export default {
activeDay.value = today.day; activeDay.value = today.day;
} }
sliceWeek(today); sliceWeek(today);
getSystemInfo((res) => { data.statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
data.statusBarHeight = res.statusBarHeight;
});
}); });
let that = methods; let that = methods;
return { return {
......
...@@ -275,9 +275,7 @@ export default { ...@@ -275,9 +275,7 @@ export default {
onMounted(() => { onMounted(() => {
console.log(process.env); console.log(process.env);
getSystemInfo((res) => { data.statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
data.statusBarHeight = res.statusBarHeight;
});
data.userinfo = uni.getStorageSync("userInfo"); data.userinfo = uni.getStorageSync("userInfo");
data.userinfo.EnterPhone2 = desensitization( data.userinfo.EnterPhone2 = desensitization(
data.userinfo.EnterPhone, data.userinfo.EnterPhone,
......
//获取设备信息 //获取设备信息
export let getSystemInfo = (callback) => { export let getSystemInfo = (callback) => {
uni.getSystemInfo({ return uni.getSystemInfoSync()
success: (res) => {
callback(res)
}
})
} }
//脱敏 //脱敏
......
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