|
|
@@ -1,33 +1,30 @@
|
|
|
<template>
|
|
|
<view class="center">
|
|
|
+ <!-- <view class="cl"></view> -->
|
|
|
<view class="carousel-section">
|
|
|
- <swiper class="carousel" autoplay="true" duration="400" interval="5000" style="height: 312rpx;" circular>
|
|
|
- <swiper-item v-for="(item, index) in carouselList" :key="index" class="carousel-item">
|
|
|
- <image :src="item.pic" />
|
|
|
- </swiper-item>
|
|
|
- </swiper>
|
|
|
+ <image src="../../static/img/index.jpg"></image>
|
|
|
</view>
|
|
|
<view class="navBox">
|
|
|
<view class="navBox-item" @click="navTab('/pages/course/course')">
|
|
|
- <image src="../../static/img/indexMycourse.png" mode="aspectFill"></image>
|
|
|
+ <image class="bg1" src="../../static/img/indexMycourse.png" ></image>
|
|
|
<view class="font">
|
|
|
我的课程
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="navBox-item" @click="nav('/pages/course/coursePj')">
|
|
|
- <image src="../../static/img/indexKcpj.png" mode="aspectFill"></image>
|
|
|
+ <image class="bg2" src="../../static/img/indexKcpj.png" ></image>
|
|
|
<view class="font">
|
|
|
课程评价
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="navBox-item" @click="nav('/pages/leave/leaveClass')">
|
|
|
- <image src="../../static/img/indexQjsp.png" mode=""></image>
|
|
|
+ <image class="bg3" src="../../static/img/indexQjsp.png" mode=""></image>
|
|
|
<view class="font">
|
|
|
请假审批
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="navBox-item" @click="nav('/pages/problem/problem')">
|
|
|
- <image src="../../static/img/indexWtfq.png" mode="aspectFill"></image>
|
|
|
+ <image class="bg4" src="../../static/img/indexWtfq.png" mode="aspectFill"></image>
|
|
|
<view class="font">
|
|
|
问题反馈
|
|
|
</view>
|
|
|
@@ -39,7 +36,6 @@
|
|
|
<view class="img"><image src="../../static/img/test.jpg" mode=""></image></view>
|
|
|
<view class="right">
|
|
|
<view class="r-title">{{ item.title }}</view>
|
|
|
- <view class="content">{{ item.content }}</view>
|
|
|
<view class="time">{{ item.time }}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -54,28 +50,23 @@ export default {
|
|
|
carouselList: [],
|
|
|
dataList: [
|
|
|
{
|
|
|
- title: "学习教育网名师在线答疑",
|
|
|
- content: "为了节约学习时间",
|
|
|
+ title: "马云马化腾对决交通场景,一文说清双方布局",
|
|
|
time: "2020-12-26 12:30",
|
|
|
},
|
|
|
{
|
|
|
- title: "学习教育网名师在线答疑",
|
|
|
- content: "为了节约学习时间",
|
|
|
+ title: "贾跃亭的一篇采访,让我的朋友圈干起了架",
|
|
|
time: "2020-12-26 12:30",
|
|
|
},
|
|
|
{
|
|
|
- title: "学习教育网名师在线答疑",
|
|
|
- content: "为了节约学习时间",
|
|
|
+ title: "世界互联网大会红利释放 互联网产业发展迅速世界互联网",
|
|
|
time: "2020-12-26 12:30",
|
|
|
},
|
|
|
{
|
|
|
title: "学习教育网名师在线答疑",
|
|
|
- content: "为了节约学习时间",
|
|
|
time: "2020-12-26 12:30",
|
|
|
},
|
|
|
{
|
|
|
title: "学习教育网名师在线答疑",
|
|
|
- content: "为了节约学习时间",
|
|
|
time: "2020-12-26 12:30",
|
|
|
},
|
|
|
]
|
|
|
@@ -97,41 +88,67 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
|
+.center{
|
|
|
+ height: 100%;
|
|
|
+}
|
|
|
+.cl {
|
|
|
+ height: 44px;
|
|
|
+}
|
|
|
.carousel-section {
|
|
|
- background-color: #ff0000;
|
|
|
- width: 100%;
|
|
|
- height: 320rpx;
|
|
|
- border-radius: 24rpx;
|
|
|
- .titleNview-placing {
|
|
|
- height: var(--status-bar-height);
|
|
|
- padding-top: 44px;
|
|
|
- box-sizing: content-box;
|
|
|
- }
|
|
|
- .carousel {
|
|
|
- width: 92%;
|
|
|
- height: 240rpx;
|
|
|
- .carousel-item {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- }
|
|
|
- image {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- border-radius: $border-radius-sm;
|
|
|
- }
|
|
|
+ margin: 0 auto;
|
|
|
+ width: 90%;
|
|
|
+ height: 280rpx;
|
|
|
+ border-radius: 20rpx;
|
|
|
+ image{
|
|
|
+ border-radius: 20rpx;
|
|
|
+ height: 100%;
|
|
|
+ width: 100%;
|
|
|
}
|
|
|
+ // width: 100%;
|
|
|
+ // height: 320rpx;
|
|
|
+ // border-radius: 24rpx;
|
|
|
+ // .titleNview-placing {
|
|
|
+ // height: var(--status-bar-height);
|
|
|
+ // padding-top: 44px;
|
|
|
+ // box-sizing: content-box;
|
|
|
+ // }
|
|
|
+ // .carousel {
|
|
|
+ // width: 92%;
|
|
|
+ // height: 240rpx;
|
|
|
+ // .carousel-item {
|
|
|
+ // width: 100%;
|
|
|
+ // height: 100%;
|
|
|
+ // }
|
|
|
+ // image {
|
|
|
+ // width: 100%;
|
|
|
+ // height: 100%;
|
|
|
+ // border-radius: $border-radius-sm;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+}
|
|
|
+.bg1{
|
|
|
+ width: 70rpx;
|
|
|
+ height: 60rpx;
|
|
|
+}
|
|
|
+.bg2{
|
|
|
+ width: 62rpx;
|
|
|
+ height: 66rpx;
|
|
|
+}
|
|
|
+.bg3{
|
|
|
+ width: 78rpx;
|
|
|
+ height: 70rpx;
|
|
|
+}
|
|
|
+.bg4{
|
|
|
+ width: 60rpx;
|
|
|
+ height: 62rpx;
|
|
|
}
|
|
|
.navBox {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
.navBox-item {
|
|
|
text-align: center;
|
|
|
- margin-top: 50rpx;
|
|
|
+ margin-top: 100rpx;
|
|
|
flex: 1;
|
|
|
- image {
|
|
|
- width: 81rpx;
|
|
|
- height: 81rpx;
|
|
|
- }
|
|
|
.font {
|
|
|
font-size: 24rpx;
|
|
|
font-family: PingFang SC;
|
|
|
@@ -149,23 +166,17 @@ export default {
|
|
|
color: #24272C;
|
|
|
}
|
|
|
.listBox {
|
|
|
- width: 90%;
|
|
|
- margin: 0 auto;
|
|
|
- padding-top: 30rpx;
|
|
|
- background: #FFFFFF;
|
|
|
- border: 1px solid #F5F5F5;
|
|
|
- box-shadow: 0px 8rpx 32rpx 8rpx rgba(132, 132, 132, 0.15);
|
|
|
- border-radius: 24rpx;
|
|
|
+ margin-top: 28rpx;
|
|
|
}
|
|
|
.list {
|
|
|
- margin-bottom: 20rpx;
|
|
|
+ margin-bottom: 50rpx;
|
|
|
+ padding-left: 34rpx;
|
|
|
+ padding-right: 40rpx;
|
|
|
display: flex;
|
|
|
.img{
|
|
|
- padding-left: 20rpx;
|
|
|
background-color: #FFFFFF;
|
|
|
- width: 254rpx;
|
|
|
- height: 162rpx;
|
|
|
- border-radius: 10rpx;
|
|
|
+ width: 200rpx;
|
|
|
+ height: 160rpx;
|
|
|
flex-shrink:0;
|
|
|
image {
|
|
|
width: 100%;
|
|
|
@@ -176,23 +187,17 @@ export default {
|
|
|
text-align: left;
|
|
|
width: 100%;
|
|
|
padding-left: 20rpx;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: space-between;
|
|
|
.r-title {
|
|
|
- font-size: 30rpx;
|
|
|
- font-family: PingFang SC;
|
|
|
- font-weight: bold;
|
|
|
+ font-size: 32rpx;
|
|
|
+ font-weight: 400;
|
|
|
color: #333333;
|
|
|
}
|
|
|
- .content {
|
|
|
- font-size: 26rpx;
|
|
|
- font-family: PingFang SC;
|
|
|
- font-weight: 500;
|
|
|
- color: #999999;
|
|
|
- }
|
|
|
.time {
|
|
|
- margin-top: 50rpx;
|
|
|
- font-size: 24rpx;
|
|
|
- font-family: PingFang SC;
|
|
|
- font-weight: 500;
|
|
|
+ font-size: 26rpx;
|
|
|
+ font-weight: 400;
|
|
|
color: #999999;
|
|
|
}
|
|
|
}
|