<script>
|
|
export default {
|
|
onLaunch: function() {},
|
|
onShow: function() {
|
|
this.$store.commit('initConfig')
|
|
// this.$store.commit('getBanner')
|
|
// this.$store.commit('getArticleList')
|
|
// this.$store.commit('getProblemList')
|
|
},
|
|
onHide: function() {}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
/*每个页面公共css */
|
|
body {
|
|
background-color: #f7f7f7;
|
|
font-size: 30rpx;
|
|
}
|
|
|
|
.background {
|
|
background-color: #f7f7f7;
|
|
}
|
|
|
|
.page {
|
|
padding-top: var(--window-top);
|
|
}
|
|
|
|
.page-bg{
|
|
height: 100vh;
|
|
width: 100vw;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: -1;
|
|
}
|
|
|
|
// .logo {
|
|
// width: 120rpx;
|
|
// height: 120rpx;
|
|
// border-radius: 10rpx;
|
|
// background-color: $uni-color;
|
|
// }
|
|
|
|
img {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.title {
|
|
font-size: 40rpx;
|
|
font-weight: bold;
|
|
margin: 40rpx 0 20rpx 0;
|
|
}
|
|
|
|
/* 布局 */
|
|
.flex-center {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
/* 水平居左,垂直居中 间距 20rpx */
|
|
.flex-start {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: start;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
/* 垂直居中 */
|
|
.flex-col {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
/* 垂直居左 */
|
|
.flex-start-col {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: start;
|
|
justify-content: center;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
/* 两段对齐 */
|
|
.flex-sb {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
/* 两段对齐 */
|
|
.flex-sa {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
justify-content: space-around;
|
|
}
|
|
|
|
/* 字体加粗 */
|
|
.font-bold {
|
|
font-weight: bold;
|
|
letter-spacing: 2rpx;
|
|
}
|
|
|
|
.home {
|
|
/* background-image: url('./static/image/home/home-background.png'); */
|
|
/* background-size: cover;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
width: 100%;
|
|
height: 100vh;
|
|
overflow: hidden; */
|
|
}
|
|
|
|
// .content {
|
|
// display: flex;
|
|
// flex-direction: column;
|
|
// align-items: center;
|
|
// padding-top: 480rpx;
|
|
// position: relative;
|
|
// }
|
|
.content_now{
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
position: fixed;
|
|
top: 46%;
|
|
transform: translate(0, -50%);
|
|
padding: 0 70rpx;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
--color2 : #000;
|
|
}
|
|
|
|
.mian-btn {
|
|
border: 4rpx solid #e6bf7f;
|
|
padding: 16rpx 66rpx;
|
|
border-radius: 66rpx;
|
|
margin-top: 30rpx;
|
|
color: #e6bf7f;
|
|
}
|
|
|
|
.active {
|
|
background-color: #e6bf7f;
|
|
color: white;
|
|
}
|
|
|
|
.second-color {
|
|
color: #d2d2d2;
|
|
// margin-top: 40rpx;
|
|
font-size: 26rpx;
|
|
}
|
|
|
|
.btn2 {
|
|
border: 4rpx solid $uni-color;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 16rpx 200rpx;
|
|
color: $uni-color;
|
|
border-radius: 10rpx;
|
|
}
|
|
|
|
.btn3 {
|
|
border: 4rpx solid $uni-color;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 16rpx 100rpx;
|
|
color: $uni-color;
|
|
border-radius: 10rpx;
|
|
}
|
|
|
|
.mb-60 {
|
|
margin-bottom: 60rpx;
|
|
}
|
|
|
|
.mt-60 {
|
|
margin-top: 60rpx;
|
|
}
|
|
|
|
.mt-40 {
|
|
margin-top: 40rpx;
|
|
}
|
|
|
|
.mt-20 {
|
|
margin-top: 340rpx;
|
|
}
|
|
|
|
.content-text {
|
|
line-height: 50rpx;
|
|
font-size: 28rpx;
|
|
}
|
|
</style>
|