30 lines
660 B
Vue
30 lines
660 B
Vue
<script setup lang="ts">
|
|
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
|
|
import { getOverview, saveOverview, getPlan, savePlan } from "@/utils/profile";
|
|
|
|
onLaunch(() => {
|
|
if (getOverview().length === 0) {
|
|
saveOverview(['weight', 'sleep', 'sport', 'bloodPressure'])
|
|
}
|
|
if (getPlan().length === 0) {
|
|
savePlan(['weight', 'sleep', 'sport', 'bloodPressure'])
|
|
}
|
|
console.log("App Launch");
|
|
});
|
|
onShow(() => {
|
|
console.log("App Show");
|
|
});
|
|
onHide(() => {
|
|
console.log("App Hide");
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
page,
|
|
.wd-root-portal {
|
|
--wot-primary-5: #8b5cf6;
|
|
--wot-primary-6: #7c3aed;
|
|
--wot-primary-7: #6d28d9;
|
|
}
|
|
</style>
|