123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- <template>
- <div class="video">
- <div class="video_box">
- <div class="video_title"><div class="video_name">微课</div><i>2638</i></div>
- <ul class="video_select">
- <li class="select_name">语文</li>
- <li class="select_name">数学</li>
- <li class="select_name">英语</li>
- <li class="select_name">物理</li>
- <li class="select_name">化学</li>
- <li class="select_name_more"><Icon type="ios-more" size="16" /></li>
- </ul>
- <div class="video_list">
- <div class="video_left">
- <img :src="imgurl" />
- <a target="_blank" href="/videodetails" class="playbtn1"></a>
- <h4 class="name">
- <a target="_blank" href="" style="color:#fff">{{imgtext}}</a>
- </h4>
- </div>
- <ul class="video_right">
- <li class="video_more_list" v-for="item in video_list">
- <img :src="item.imgurl" />
- <a target="_blank" :href="item.url" class="playbtn1"></a>
- <h4 class="name_more">
- <a target="_blank" :href="item.url" style="color:#fff">{{item.slogan}}</a>
- </h4>
- </li>
- </ul>
- </div>
- </div>
- <div class="resource_img">
- <img src="../../assets/image/resource/resource_img.png" class="banner_big" />
- </div>
- </div>
- </template>
- <script>
- export default {
- data() {
- return {
- imgurl: '',
- imgtext:'',
- video_list: [
- { "id": 1, "imgurl": require("../../assets/image/resource/video_img_two.png"), "slogan": '人教版七年级上册 数学 绝对值', "url": '/videodetails?id=1' },
- { "id": 2, "imgurl": require("../../assets/image/resource/video_img_three.png"), "slogan": '人教版七年级上册 数学 有理数的分类', "url": '/videodetails?id=2' },
- { "id": 3, "imgurl": require("../../assets/image/resource/video_img_four.png"), "slogan": '人教版七年级上册 数学 旋转体', "url": '/videodetails?id=3' },
- { "id": 4, "imgurl": require("../../assets/image/resource/video_img_five.png"), "slogan": '人教版七年级上册 数学 方程式', "url": '/videodetails?id=4' },
- ],
- }
- },
- created() {
- this.init();
- },
- methods: {
- init() {
- if (this.$route.path == '/resource') {
- this.imgurl = require("../../assets/image/resource/video_img_one.png");
- this.imgtext = '人教版七年级上册 数学 正数与负数';
- } else if (this.$route.path == '/arearesource') {
- this.imgurl = require("../../assets/image/resource/video_area_img.png");
- this.imgtext = '人教版 一年级(下册) ';
- } else if (this.$route.path == '/schoolresource') {
- this.imgurl = require("../../assets/image/resource/video_school_img.jpg");
- this.imgtext = '习作·猜猜他是谁';
- }
- }
- }
- }
- </script>
- <style scoped>
- .video {
- width: 100%;
- padding: 0% 11% 0% 11%;
- float: left;
- background-color: #f3f3f3;
- }
- .video_box {
- width:1200px;
- height:455px;
- background-color:#fff;
- margin:0 auto;
- margin-top:20px;
-
- }
- .video_title {
- width: 70%;
- float: left;
- padding-left: 30px;
- border-bottom: #ececec solid 1px;
- }
- .video_name {
- float: left;
- line-height: 39px;
- border-bottom: #288add solid 1px;
- padding: 12px 5px 0px 5px;
- font-size: 24px;
- font-weight: normal;
- color: #288add;
- }
- i {
- float: left;
- margin: 22px 0px 0px 8px;
- height: 20px;
- line-height: 20px;
- border-radius: 10px;
- background: #8ea9b9;
- font-size: 14px;
- padding: 0px 10px;
- color: #fff;
- }
- .video_select {
- width: 30%;
- float: left;
- list-style: none;
- border-bottom: #ececec solid 1px;
- }
- .select_name {
- float: left;
- width: 15%;
- line-height: 39px;
- padding: 12px 5px 0px 5px;
- font-size: 14px;
- color: #6f8abb;
- }
- .select_name_more {
- float: left;
- width: 15%;
- padding: 0px 5px 0px 5px;
- }
- .video_list {
- width:100%;
- height:400px;
- float:left;
- padding:1.5%;
- }
- .video_left {
- width:50%;
- float:left;
- position:relative;
- }
- .video_left img {
- width:100%;
- }
- .video_left:hover .playbtn1 {
- display: block;
- }
- .video_more_list:hover .playbtn1 {
- display: block;
- }
- .playbtn1 {
- position: absolute;
- top: 50%;
- left: 50%;
- background: url(../../assets/image/resource/play.png) no-repeat;
- width: 64px;
- height: 64px;
- margin-top: -32px;
- margin-left: -32px;
- display: none;
- }
- .name {
- position: absolute;
- bottom: 5px;
- left: 0px;
- width: 100%;
- font-weight: normal;
- line-height: 45px;
- font-size: 16px;
- background-color: rgba(52, 52, 52, .5);
- color: #fff;
- }
- .name_more {
- position: absolute;
- bottom: 0px;
- left: 0px;
- width: 100%;
- font-weight: normal;
- line-height: 35px;
- font-size: 14px;
- background-color: rgba(52, 52, 52, .5);
- color: #fff;
- }
- .video_right {
- width: 48%;
- float: left;
- list-style: none;
- margin-left:2%;
- }
- .video_more_list {
- width:48%;
- float:left;
- position:relative;
- height:170px;
- margin-top:12px;
- margin:0.5% 1%;
- }
- .video_more_list img {
- width:100%;
- height:170px;
- }
- .resource_img {
- width: 1200px;
- padding-top: 30px;
- padding-bottom: 30px;
- position: relative;
- margin: 0 auto;
- }
- .banner_big {
- width: 100%;
- }
- .sk {
- position: absolute;
- bottom: 20%;
- left: 40%;
- }
- </style>
|