dengjie commit : 科学研究,学术交流,本科教育和研究生教育样式
This commit is contained in:
@@ -6,47 +6,59 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col >
|
||||
<el-col>
|
||||
<NewsCenter/>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col>
|
||||
<Announcements/>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<!-- <el-row>-->
|
||||
<!-- <el-col>-->
|
||||
<!-- <ResearchTrends/>-->
|
||||
<!-- </el-col>-->
|
||||
<!-- </el-row>-->
|
||||
<!-- <el-row v-if="$i18n.locale === 'cn'">-->
|
||||
<!-- <el-col>-->
|
||||
<!-- <PartyBuildingActivities/>-->
|
||||
<!-- </el-col>-->
|
||||
<!-- </el-row>-->
|
||||
<!-- <el-row>-->
|
||||
<!-- <el-col>-->
|
||||
<!-- <TeachingStudent/>-->
|
||||
<!-- </el-col>-->
|
||||
<!-- </el-row>-->
|
||||
<!-- <el-row v-show="width>=1100">-->
|
||||
<!-- <el-col>-->
|
||||
<!-- <Bottom/>-->
|
||||
<!-- </el-col>-->
|
||||
<!-- </el-row>-->
|
||||
<el-row>
|
||||
<el-col>
|
||||
<Announcements/>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col>
|
||||
<AcademyAndSciences/>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col>
|
||||
<UndergraduateAndGraduate/>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<!-- <el-row>-->
|
||||
<!-- <el-col>-->
|
||||
<!-- <ResearchTrends/>-->
|
||||
<!-- </el-col>-->
|
||||
<!-- </el-row>-->
|
||||
<!-- <el-row v-if="$i18n.locale === 'cn'">-->
|
||||
<!-- <el-col>-->
|
||||
<!-- <PartyBuildingActivities/>-->
|
||||
<!-- </el-col>-->
|
||||
<!-- </el-row>-->
|
||||
<!-- <el-row>-->
|
||||
<!-- <el-col>-->
|
||||
<!-- <TeachingStudent/>-->
|
||||
<!-- </el-col>-->
|
||||
<!-- </el-row>-->
|
||||
<!-- <el-row v-show="width>=1100">-->
|
||||
<!-- <el-col>-->
|
||||
<!-- <Bottom/>-->
|
||||
<!-- </el-col>-->
|
||||
<!-- </el-row>-->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NewsCenter from './components/news_center'
|
||||
import Carousel from './components/carousel'
|
||||
import NewsCenter from "./components/news_center";
|
||||
import Carousel from "./components/carousel";
|
||||
import Announcements from "./components/announcements";
|
||||
import PartyBuildingActivities from './components/party_building_activities.vue'
|
||||
import ResearchTrends from './components/scientific_research_trends.vue'
|
||||
import SlideshowCard from './components/slideshow_card.vue'
|
||||
import TeachingStudent from './components/teaching_student.vue'
|
||||
import Bottom from './components/bottom.vue'
|
||||
import AcademyAndSciences from "@/views/index/components/academy_and_sciences";
|
||||
import PartyBuildingActivities from "./components/party_building_activities.vue";
|
||||
import UndergraduateAndGraduate from "@/views/index/components/undergraduate_and_graduate";
|
||||
import ResearchTrends from "./components/scientific_research_trends.vue";
|
||||
import SlideshowCard from "./components/slideshow_card.vue";
|
||||
import TeachingStudent from "./components/teaching_student.vue";
|
||||
import Bottom from "./components/bottom.vue";
|
||||
import {getConfig} from "@/api";
|
||||
import {setAppLanguage, setLanguage} from "@/utils/sist";
|
||||
|
||||
@@ -54,6 +66,8 @@ import {setAppLanguage, setLanguage} from "@/utils/sist";
|
||||
export default {
|
||||
name: "index",
|
||||
components: {
|
||||
UndergraduateAndGraduate,
|
||||
AcademyAndSciences,
|
||||
Announcements,
|
||||
NewsCenter,
|
||||
PartyBuildingActivities,
|
||||
@@ -66,44 +80,44 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
width: document.documentElement.clientWidth,
|
||||
imageUrl:null,
|
||||
imageUrl: null,
|
||||
iftop: false,
|
||||
timer : true,
|
||||
}
|
||||
timer: true
|
||||
};
|
||||
},
|
||||
beforeDestroy() { //及时释放
|
||||
window.removeEventListener('scroll', this.handleScroll)
|
||||
window.removeEventListener("scroll", this.handleScroll);
|
||||
},
|
||||
created() {
|
||||
setLanguage(this)
|
||||
getConfig("sist_bg").then(res=>{
|
||||
this.imageUrl = res.data
|
||||
})
|
||||
setLanguage(this);
|
||||
getConfig("sist_bg").then(res => {
|
||||
this.imageUrl = res.data;
|
||||
});
|
||||
},
|
||||
mounted() {
|
||||
window.addEventListener('scroll', this.handleScroll)
|
||||
window.addEventListener("scroll", this.handleScroll);
|
||||
|
||||
const that = this
|
||||
const that = this;
|
||||
window.onresize = () => {
|
||||
return (() => {
|
||||
//这里写要操作的函数
|
||||
window.screenWidth = document.body.clientWidth
|
||||
that.width = window.screenWidth>992
|
||||
})()
|
||||
}
|
||||
window.screenWidth = document.body.clientWidth;
|
||||
that.width = window.screenWidth > 992;
|
||||
})();
|
||||
};
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
handleScroll() {
|
||||
this.iftop = window.pageYOffset > 400
|
||||
this.$emit("input", window.pageYOffset)
|
||||
this.iftop = window.pageYOffset > 400;
|
||||
this.$emit("input", window.pageYOffset);
|
||||
},
|
||||
backTop() {
|
||||
window.scrollTo({top: 0, behavior: 'smooth',})
|
||||
window.scrollTo({top: 0, behavior: "smooth"});
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@@ -124,7 +138,8 @@ export default {
|
||||
position: absolute;
|
||||
margin-left: -1.7vw;
|
||||
cursor: pointer;
|
||||
img{
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user