parent
a83d1e677f
commit
fc793c9c2c
@ -1,26 +0,0 @@
|
||||
<template>
|
||||
<CommonBox title="文明校园" class="school-civilization-style">
|
||||
|
||||
</CommonBox>
|
||||
</template>
|
||||
<script>
|
||||
/*
|
||||
* 文明校园
|
||||
* */
|
||||
import CommonBox from '../../secondPages/commonBox.vue';
|
||||
export default{
|
||||
data(){
|
||||
return {}
|
||||
},
|
||||
components: {
|
||||
CommonBox
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
.school-civilization-style {
|
||||
width: 100%;
|
||||
height: 570px;
|
||||
padding: 25px 10px 10px 10px;
|
||||
}
|
||||
</style>
|
@ -0,0 +1,86 @@
|
||||
<template>
|
||||
<CommonBox title="校园风采" class="school-style-style">
|
||||
<div class="select-top-style">
|
||||
<span :class="'select-item-style border-right-style' + (selectType === 1?' select-style':'')"
|
||||
@click="typeChange(1)">学生</span>
|
||||
<span :class="'select-item-style' + (selectType === 2?' select-style':'')"
|
||||
@click="typeChange(2)">教师</span>
|
||||
</div>
|
||||
<div class="school-style-content-style">
|
||||
<a-tabs :activeKey="paneKey">
|
||||
<a-tab-pane :key="1" tab="Tab 1">
|
||||
|
||||
</a-tab-pane>
|
||||
<a-tab-pane :key="2" tab="Tab 2">
|
||||
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
</div>
|
||||
</CommonBox>
|
||||
</template>
|
||||
<script>
|
||||
/*
|
||||
* 校园风采
|
||||
* */
|
||||
import CommonBox from '../../secondPages/commonBox.vue';
|
||||
import {Tabs} from 'ant-design-vue';
|
||||
export default{
|
||||
data(){
|
||||
return {
|
||||
selectType: 1,//1 学生 2 教师
|
||||
paneKey:1
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
typeChange: function (type) {
|
||||
if (this.selectType !== type) {
|
||||
this.selectType = type;
|
||||
this.paneKey = type;
|
||||
}
|
||||
}
|
||||
},
|
||||
components: {
|
||||
CommonBox,
|
||||
ATabs: Tabs,
|
||||
ATabPane: Tabs.TabPane,
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
.school-style-style {
|
||||
width: 100%;
|
||||
height: 570px;
|
||||
padding: 25px 10px 10px 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
.select-top-style {
|
||||
width: 100%;
|
||||
height: 20px;
|
||||
text-align: right;
|
||||
margin-top: 10px;
|
||||
.select-item-style {
|
||||
color: #1379c8;
|
||||
padding: 0 10px;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.border-right-style {
|
||||
border-right: 1px solid #1379c8;
|
||||
}
|
||||
.select-style {
|
||||
color: #00ffff;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
.school-style-content-style{
|
||||
width: 100%;
|
||||
height: 490px;
|
||||
margin-top: 10px;
|
||||
/deep/ .ant-tabs-bar{
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Reference in new issue