dbsd_kczx/src/views/site/index.vue

176 lines
4.7 KiB
Vue
Raw Normal View History

<template>
<div id="siteMain">
2023-04-02 14:50:56 +08:00
<div id="maxSite">
<!-- <a-card>
<div>
<h1>首页</h1>
</div>
<div>{{ list }} - {{ stateCount }}</div>
<div>
{{ state }}
<a-button type="primary" @click="() => state.count++">点击+1</a-button>
</div>
<div>
{{ i }}
<a-button type="primary" @click="changeClick">点击+1</a-button>
</div>
<div>
<RouterLink to="/site/index2">跳转到子页</RouterLink>
</div>
<br/>
<div>
<RouterLink to="/dashboard/analysis">跳转到首页</RouterLink>
</div>
</a-card>
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
<a-layout>
2023-04-03 23:56:45 +08:00
<!-- 页头 -->
<headerPage/>
2023-04-03 23:56:45 +08:00
<!-- 主体部分 -->
<a-layout-content>
2023-04-03 23:56:45 +08:00
<!-- 统计 -->
<tongjiPage/>
2023-04-03 23:56:45 +08:00
<!-- 轮播图 -->
<lunboPage/>
2023-04-03 23:56:45 +08:00
<!-- 通知公告 -->
<tongZhiGongGaoPage/>
2023-04-03 23:56:45 +08:00
<!-- 任课教程 -->
<renKeJiaoChengPage/>
<!-- 听课足迹 -->
<tingKeZuJiPage/>
<!-- 预约课程 -->
<yuYueKeChengPage/>
2023-04-09 12:39:01 +08:00
<!-- 精彩公开课 -->
2023-04-03 23:56:45 +08:00
<jingCaiGongKaiKePage/>
2023-04-09 12:39:01 +08:00
<!-- 今日课程列表 -->
2023-04-02 16:04:04 +08:00
<a-card class="rowGutter">
<template #title>
<span style="font-size: 24px;font-weight: bold;">今日课程列表</span>
</template>
2023-04-02 16:36:57 +08:00
<a-tabs v-model:activeKey="activeKey" type="card">
2023-04-02 18:46:00 +08:00
<a-tab-pane key="1">
<template #tab>
<div style="font-weight: 600;font-size: 16px;">正在上课</div>
</template>
<kclbZzsk ref="zzskModeal"></kclbZzsk>
</a-tab-pane>
<a-tab-pane key="2">
<template #tab>
<div style="font-weight: 600;font-size: 16px;">下一节课</div>
</template>
<kclbXyjk ref="xyjkModeal"></kclbXyjk>
</a-tab-pane>
<a-tab-pane key="3">
<template #tab>
<div style="font-weight: 600;font-size: 16px;">日课表</div>
</template>
<kclbRkb ref="rkbModeal"></kclbRkb>
2023-04-02 16:36:57 +08:00
</a-tab-pane>
</a-tabs>
2023-04-02 19:32:39 +08:00
2023-04-02 14:50:56 +08:00
</a-card>
</a-layout-content>
2023-04-03 23:56:45 +08:00
<!-- 页尾 -->
<footerPage/>
</a-layout>
2023-04-02 14:50:56 +08:00
</div>
</div>
</template>
<script lang="ts" setup>
2023-03-29 22:52:49 +08:00
import { ref, reactive, computed, onMounted } from 'vue';
2023-04-02 14:50:56 +08:00
import headerPage from '/@/views/site/common/header.vue';
import footerPage from '/@/views/site/common/footer.vue';
import tongjiPage from '/@/views/site/tongJi/index.vue';
import lunboPage from '/@/views/site/lunBo/index.vue';
import tongZhiGongGaoPage from '/@/views/site/tongZhiGongGao/index.vue';
2023-04-03 23:56:45 +08:00
import renKeJiaoChengPage from '/@/views/site/renKeJiaoCheng/index.vue'
import tingKeZuJiPage from '/@/views/site/tingKeZuJi/index.vue'
import yuYueKeChengPage from '/@/views/site/yuYueKeCheng/index.vue'
import jingCaiGongKaiKePage from '/@/views/site/jingCaiGongKaiKe/index.vue'
2023-04-03 23:54:18 +08:00
import kclbZzsk from '/@/views/site/jrkclb/kclbZzsk.vue';
import kclbXyjk from '/@/views/site/jrkclb/kclbXyjk.vue';
import kclbRkb from '/@/views/site/jrkclb/kclbRkb.vue';
2023-04-02 16:36:57 +08:00
const activeKey = ref('1');
2023-03-29 10:43:46 +08:00
// reactive
2023-03-29 22:52:49 +08:00
let list = reactive({ list: [] });
//针对基础类型
const state = ref({ count: 0 });
2023-03-29 10:43:46 +08:00
let i = ref(1);
2023-03-29 22:52:49 +08:00
//计算属性
const stateCount = computed(() => {
return state.value.count;
});
onMounted(() => {
console.log('页面加载完了!');
});
//方法
2023-03-29 10:43:46 +08:00
function changeClick() {
i.value++;
2023-03-29 22:52:49 +08:00
// list.list.push({ key: i.value });
2023-03-29 10:43:46 +08:00
}
2023-04-02 16:36:57 +08:00
//-----------------------------yangjun-----------------------
//-----------------------------yangjun-----------------------
2023-04-02 19:32:39 +08:00
</script>
2023-04-02 14:50:56 +08:00
<style lang="less" scoped>
#siteMain {
// font-size: ;
2023-04-02 14:50:56 +08:00
// height: 100%;
background: #f3f3f4;
#maxSite {
//最大宽度
max-width: 1170px;
//居中
margin: 0 auto;
.rowGutter{
margin-top: 1rem;
margin-bottom: 1rem;
}
.ant-layout-header {
color: #fff;
background: #1ab394;
}
.ant-layout-footer {
line-height: 1.5;
background: #FFF;
}
.ant-layout-sider {
color: #fff;
line-height: 120px;
background: #3ba0e9;
}
.ant-layout-content {
min-height: 120px;
color: #000;
line-height: 120px;
background: #f3f3f4;
}
}
2023-04-01 22:06:31 +08:00
}
/**暗黑模式特殊配色*/
2023-04-02 14:50:56 +08:00
[data-theme='dark'] #siteMain #maxSite {
.ant-layout-header, .ant-layout-footer {
background: #6aa0c7;
}
.ant-layout-content {
background: #107bcb;
}
.ant-layout-sider {
background: #3499ec;
}
}
</style>