Commit 48b4b6ce authored by guo's avatar guo

作业辅导

parent 775d77bd
......@@ -11,6 +11,7 @@
"dependencies": {
"axios": "^1.8.2",
"dayjs": "^1.11.13",
"echarts": "^5.6.0",
"mitt": "^3.0.1",
"pinia": "^3.0.1",
"postcss-px-to-viewport": "^1.1.1",
......
......@@ -16,14 +16,16 @@ watchEffect(() => {
</script>
<template>
<van-nav-bar :title="title" left-arrow fixed placeholder :border="false">
<van-nav-bar v-if="!($route.meta && $route.meta.navBar === false)" :title="title" left-arrow fixed placeholder
:border="false">
<template #right>
<span class="btn" v-if="$route.path === '/parents/home'" @click="addChildren">添加孩子</span>
</template>
</van-nav-bar>
<RouterView />
<van-tabbar v-model="active" active-color="#15A4B8" class="b-tabbar">
<van-tabbar v-model="active" active-color="#15A4B8" class="b-tabbar"
v-if="!($route.meta && $route.meta.navBar === false)">
<van-tabbar-item>
<span>首页</span>
<template #icon="props">
......@@ -31,8 +33,8 @@ watchEffect(() => {
viewBox="64 64 896 896" width="32" height="32" style="" filter="none">
<g>
<path
d="M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"
></path>
d="M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z">
</path>
</g>
</svg>
</template>
......@@ -44,8 +46,8 @@ watchEffect(() => {
viewBox="0 0 32 32" width="40" height="40" style="" filter="none">
<g>
<path
d="M31.296 10.016c-4.64-1.44-9.28-2.912-13.888-4.352-0.256-0.096-0.512-0.16-0.768-0.256h-0.128c-0.128 0.064-0.256 0.096-0.352 0.128-2.432 0.736-4.832 1.44-7.232 2.176-6.663 1.921-9.027 2.685-11.385 3.464l4.281-1.224c-0.192 0.032-0.352 0.128-0.512 0.224-0.384 0.224-0.416 0.608-0.064 0.896 0.192 0.16 0.448 0.32 0.736 0.384 1.44 0.48 2.88 0.896 4.352 1.344 0.096 0.032 0.256-0.032 0.384-0.096 0.32-0.256 0.608-0.544 0.928-0.768 1.845-1.394 4.129-2.302 6.613-2.493l0.043-0.003c0.96-0.096 1.952-0.032 2.912-0.032 0.512 0.032 0.832 0.384 0.8 0.896 0 0.448-0.384 0.768-0.864 0.768-0.192-0.032-0.384-0.032-0.544-0.032-2.272-0.128-4.416 0.224-6.432 1.28-0.608 0.288-1.152 0.672-1.76 1.056 0.096 0.064 0.128 0.096 0.16 0.096-0.881-0.144 1.475 0.599 3.839 1.324l3.233 0.852c0.672 0.192 1.344 0.224 2.016 0 4.544-1.44 9.088-2.88 13.632-4.352 0.256-0.096 0.48-0.32 0.704-0.512v-0.288c-0.224-0.16-0.448-0.384-0.704-0.48zM14.304 10.816c0.928-0.096 1.888-0.032 2.816-0.032 0.32 0 0.576-0.192 0.608-0.48s-0.16-0.512-0.48-0.576c-0.064-0.032-0.16-0.032-0.224-0.032-1.248-0.064-2.464-0.064-3.712 0.16-3.2 0.544-5.824 2.080-7.84 4.608-0.16 0.224-0.32 0.352-0.608 0.384-0.512 0.128-0.864 0.448-0.992 0.992s-0.032 0.96 0.384 1.312c0.192 0.192 0.224 0.416 0.224 0.672-0.099 1.087-0.505 2.063-1.129 2.86l0.009-0.012c-0.864 1.152-1.792 2.272-2.688 3.392-0.064 0.096-0.16 0.16-0.224 0.256 1.408-0.96 2.432-2.24 3.2-3.712 0.288 0.032 0.288 0.192 0.192 0.352-0.416 0.608-0.768 1.28-1.216 1.888-0.736 1.024-1.6 1.92-2.624 2.624v0.064c0.352 0.224 0.736 0.416 1.088 0.64 0.064-0.064 0.096-0.096 0.128-0.096 0.896-1.088 1.76-2.208 2.368-3.488 0.064-0.16 0.16-0.288 0.352-0.096-0.416 1.44-1.024 2.816-2.080 4 0.288 0.032 0.544 0.064 0.768 0.064 0.864 0.032 1.6-0.224 2.016-1.056 0.096-0.256 0.256-0.48 0.352-0.736 0.96-2.336 1.408-4.704 1.088-7.232-0.032-0.128 0.032-0.288 0.096-0.384 0.448-0.512 0.544-1.152 0.16-1.728-0.096-0.16-0.096-0.256 0.032-0.384 2.080-2.528 4.736-3.904 7.936-4.256zM8.384 17.568c0.768 0.384 1.568 0.8 2.368 1.088 2.784 0.992 5.664 1.152 8.544 0.608 2.010-0.373 3.803-1.052 5.424-1.995l-0.080 0.043c0.16-0.096 0.256-0.192 0.16-0.416-0.096-0.352-0.192-0.736-0.288-1.12-0.096-0.448-0.224-0.896-0.352-1.344-0.064 0.032-0.064 0.032-0.096 0.032-2.112 0.544-4.192 1.12-6.304 1.664-0.48 0.16-0.992 0.256-1.536 0.128-0.992-0.224-1.984-0.416-2.976-0.672-1.44-0.352-2.88-0.768-4.32-1.152-0.032 0.032-0.064 0.064-0.064 0.096-0.224 0.928-0.448 1.824-0.64 2.72-0.032 0.096 0.064 0.288 0.16 0.32zM8.16 18.112c-0.192 0.608-0.192 0.608 0.288 1.024 0.896 0.8 1.92 1.44 3.008 1.984 1.984 0.896 4.032 1.312 6.176 1.024 2.72-0.352 5.056-1.568 7.072-3.392 0.384-0.352 0.416-0.448 0.16-0.928-5.504 2.976-11.072 3.232-16.704 0.288z"
></path>
d="M31.296 10.016c-4.64-1.44-9.28-2.912-13.888-4.352-0.256-0.096-0.512-0.16-0.768-0.256h-0.128c-0.128 0.064-0.256 0.096-0.352 0.128-2.432 0.736-4.832 1.44-7.232 2.176-6.663 1.921-9.027 2.685-11.385 3.464l4.281-1.224c-0.192 0.032-0.352 0.128-0.512 0.224-0.384 0.224-0.416 0.608-0.064 0.896 0.192 0.16 0.448 0.32 0.736 0.384 1.44 0.48 2.88 0.896 4.352 1.344 0.096 0.032 0.256-0.032 0.384-0.096 0.32-0.256 0.608-0.544 0.928-0.768 1.845-1.394 4.129-2.302 6.613-2.493l0.043-0.003c0.96-0.096 1.952-0.032 2.912-0.032 0.512 0.032 0.832 0.384 0.8 0.896 0 0.448-0.384 0.768-0.864 0.768-0.192-0.032-0.384-0.032-0.544-0.032-2.272-0.128-4.416 0.224-6.432 1.28-0.608 0.288-1.152 0.672-1.76 1.056 0.096 0.064 0.128 0.096 0.16 0.096-0.881-0.144 1.475 0.599 3.839 1.324l3.233 0.852c0.672 0.192 1.344 0.224 2.016 0 4.544-1.44 9.088-2.88 13.632-4.352 0.256-0.096 0.48-0.32 0.704-0.512v-0.288c-0.224-0.16-0.448-0.384-0.704-0.48zM14.304 10.816c0.928-0.096 1.888-0.032 2.816-0.032 0.32 0 0.576-0.192 0.608-0.48s-0.16-0.512-0.48-0.576c-0.064-0.032-0.16-0.032-0.224-0.032-1.248-0.064-2.464-0.064-3.712 0.16-3.2 0.544-5.824 2.080-7.84 4.608-0.16 0.224-0.32 0.352-0.608 0.384-0.512 0.128-0.864 0.448-0.992 0.992s-0.032 0.96 0.384 1.312c0.192 0.192 0.224 0.416 0.224 0.672-0.099 1.087-0.505 2.063-1.129 2.86l0.009-0.012c-0.864 1.152-1.792 2.272-2.688 3.392-0.064 0.096-0.16 0.16-0.224 0.256 1.408-0.96 2.432-2.24 3.2-3.712 0.288 0.032 0.288 0.192 0.192 0.352-0.416 0.608-0.768 1.28-1.216 1.888-0.736 1.024-1.6 1.92-2.624 2.624v0.064c0.352 0.224 0.736 0.416 1.088 0.64 0.064-0.064 0.096-0.096 0.128-0.096 0.896-1.088 1.76-2.208 2.368-3.488 0.064-0.16 0.16-0.288 0.352-0.096-0.416 1.44-1.024 2.816-2.080 4 0.288 0.032 0.544 0.064 0.768 0.064 0.864 0.032 1.6-0.224 2.016-1.056 0.096-0.256 0.256-0.48 0.352-0.736 0.96-2.336 1.408-4.704 1.088-7.232-0.032-0.128 0.032-0.288 0.096-0.384 0.448-0.512 0.544-1.152 0.16-1.728-0.096-0.16-0.096-0.256 0.032-0.384 2.080-2.528 4.736-3.904 7.936-4.256zM8.384 17.568c0.768 0.384 1.568 0.8 2.368 1.088 2.784 0.992 5.664 1.152 8.544 0.608 2.010-0.373 3.803-1.052 5.424-1.995l-0.080 0.043c0.16-0.096 0.256-0.192 0.16-0.416-0.096-0.352-0.192-0.736-0.288-1.12-0.096-0.448-0.224-0.896-0.352-1.344-0.064 0.032-0.064 0.032-0.096 0.032-2.112 0.544-4.192 1.12-6.304 1.664-0.48 0.16-0.992 0.256-1.536 0.128-0.992-0.224-1.984-0.416-2.976-0.672-1.44-0.352-2.88-0.768-4.32-1.152-0.032 0.032-0.064 0.064-0.064 0.096-0.224 0.928-0.448 1.824-0.64 2.72-0.032 0.096 0.064 0.288 0.16 0.32zM8.16 18.112c-0.192 0.608-0.192 0.608 0.288 1.024 0.896 0.8 1.92 1.44 3.008 1.984 1.984 0.896 4.032 1.312 6.176 1.024 2.72-0.352 5.056-1.568 7.072-3.392 0.384-0.352 0.416-0.448 0.16-0.928-5.504 2.976-11.072 3.232-16.704 0.288z">
</path>
</g>
</svg>
</template>
......@@ -57,8 +59,8 @@ watchEffect(() => {
viewBox="64 64 896 896" width="32" height="32" style="" filter="none">
<g>
<path
d="M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"
></path>
d="M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z">
</path>
</g>
</svg>
</template>
......@@ -84,15 +86,17 @@ watchEffect(() => {
// padding: 10px 0;
height: 60px;
z-index: 9999;
.b-svg{
.b-svg {
fill: #999;
}
:deep(.van-tabbar-item--active) .b-svg{
:deep(.van-tabbar-item--active) .b-svg {
fill: #15A4B8;
}
:deep(.van-tabbar-item) {
color: #999;
}
}
</style>
......@@ -6,6 +6,10 @@ const router = createRouter({
{
path: '/learnMore',
name: 'learnMore',
meta: {
title: '了解更多',
navBar: false
},
component: () => import('../views/learnMore/index.vue'),
},
{
......@@ -32,6 +36,14 @@ const router = createRouter({
},
component: () => import('../views/parents/AICorrect/index.vue'),
},
{
path: '/parents/tutorship',
name: 'tutorship',
meta: {
title: '作业辅导',
},
component: () => import('../views/parents/tutorship/index.vue'),
},
],
})
......
html,
body {
height: 100%;
background: linear-gradient(179.15deg,
rgba(204, 238, 247, 1) 0.66%,
rgba(247, 251, 251, 0) 99.8%);
background: linear-gradient(135.14deg, rgba(204,238,247,1) 0.5%,rgba(247,251,251,0) 99.95%);
}
* {
......
......@@ -4,7 +4,7 @@
<div class="title">上传作业</div>
<div class="item txt">
<van-field class="t-textarea" v-model="form.t1" rows="6" autosize type="textarea" placeholder="xxx"
show-word-limit />
/>
<div class="btns">
<div class="btn" @click="uploadFile1">
<div class="icon">
......@@ -29,7 +29,7 @@
<div class="title">每日小结</div>
<div class="item txt2">
<van-field class="t-textarea" v-model="form.t2" rows="6" autosize type="textarea" placeholder="xxx"
show-word-limit />
/>
</div>
</van-form>
<input type="file" style="display: none;" id="file1" capture="camera" accept="image/*">
......
......@@ -81,6 +81,7 @@ function onConfirm(item) { }
vertical-align: middle;
display: inline-block;
margin-right: 5px;
width: 40px;
}
}
......
This diff is collapsed.
This diff is collapsed.
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