123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224 |
- <template>
- <div class="exam">
- <div class="exam_list_box_width">
- <div class="exam_box" v-for="item in listdata" v-if="index">
- <div class="exam_title"><div class="exam_name">{{item.title}}</div><i>{{item.num}}</i></div>
- <div class="exam_img"><img :src="item.img" /></div>
- <ul class="exam_list">
- <li class="exam_list_data" v-for="items in item.data">
- <div class="exam_list_title"><a :href="items.url" target="_blank">{{items.title}}</a></div>
- <div class="look"><Icon type="ios-eye" size="16" />{{items.loocknum}}</div>
- </li>
- </ul>
- </div>
- <div class="exam_box" v-for="item in arealistdata" v-if="areaindex">
- <div class="exam_title"><div class="exam_name">{{item.title}}</div><i>{{item.num}}</i></div>
- <div class="exam_img"><img :src="item.img" /></div>
- <ul class="exam_list">
- <li class="exam_list_data" v-for="items in item.data">
- <div class="exam_list_title"><a :href="items.url" target="_blank">{{items.title}}</a></div>
- <div class="look"><Icon type="ios-eye" size="16" />{{items.loocknum}}</div>
- </li>
- </ul>
- </div>
- <div class="exam_box" v-for="item in schoollistdata" v-if="schoolindex">
- <div class="exam_title"><div class="exam_name">{{item.title}}</div><i>{{item.num}}</i></div>
- <div class="exam_img"><img :src="item.img" /></div>
- <ul class="exam_list">
- <li class="exam_list_data" v-for="items in item.data">
- <div class="exam_list_title"><a :href="items.url" target="_blank">{{items.title}}</a></div>
- <div class="look"><Icon type="ios-eye" size="16" />{{items.loocknum}}</div>
- </li>
- </ul>
- </div>
- <div class="clear"></div>
- </div>
- </div>
- </template>
- <script>
- export default {
- data() {
- return {
- index: false,
- areaindex: false,
- school:false,
- listdata: [
- {
- "id": 1, "title": '中考专区', "num": '980', "img": require("../../assets/image/resource/exam_img_one.png"), data: [
- { "type": '物理', "title": '2018年成都市中考物理试卷.doc', "loocknum": '750',"url":'/details' },
- { "type": '英语', "title": '2018年成都市中考英语试卷.doc', "loocknum": '920', "url": '/details'},
- { "type": '数学', "title": '2018年成都市中考数学试卷.doc', "loocknum": '1006', "url": '/details'},
- { "type": '化学', "title": '2018年成都市中考化学试卷.doc', "loocknum": '450', "url": '/details'},
- ]
- },
- {
- "id": 2, "title": '高考专区', "num": '1080', "img": require("../../assets/image/resource/exam_img_two.png"), data: [
- { "type": '语文', "title": '2018年成都市高考语文试卷.doc', "loocknum": '1750', "url": '/details' },
- { "type": '英语', "title": '2018年成都市高考英语试卷.doc', "loocknum": '1220', "url": '/details' },
- { "type": '数学', "title": '2018年成都市高考数学试卷.doc', "loocknum": '1606', "url": '/details' },
- { "type": '历史', "title": '2018年成都市高考历史试卷.doc', "loocknum": '1450', "url": '/details' },
- ]
- },
- {
- "id": 3, "title": '优课专区', "num": '900', "img": require("../../assets/image/resource/exam_img_three.png"), data: [
- { "type": '优课', "title": '古诗二首', "loocknum": '350', "url":'http://1s1k.eduyun.cn/portal/redesign/index/index.jsp?sdResIdCaseId=8aee808f62fbe7ab016300a9e6a22e65&t=2&sessionKey=3xCsBKvbaWPKVmk1Yk9Y' },
- { "type": '优课', "title": '我的影子', "loocknum": '620', "url":'http://1s1k.eduyun.cn/portal/redesign/index/index.jsp?sdResIdCaseId=8aee80a562bc9be10162be0f7167109d&t=2&sessionKey=ey65FtcgEGMh4uHprmSE' },
- { "type": '优课', "title": '路程、时间与速度', "loocknum": '606', "url":'http://1s1k.eduyun.cn/portal/redesign/index/index.jsp?sdResIdCaseId=ff8080815d07057f015d07443709007a&t=2&sessionKey=wj0ZhZK7YbjgxhIBJiGw' },
- { "type": '优课', "title": '振兴中华,我们的责任', "loocknum": '535', "url":'http://1s1k.eduyun.cn/portal/redesign/index/index.jsp?sdResIdCaseId=ff8080815cb052d2015cbebe8a1b23fa&t=2&sessionKey=EvC9kFlYWNaWFm1tKsG0' },
- ]
- },
- ],
- arealistdata: [
- {
- "id": 1, "title": '中考专区', "num": '980', "img": require("../../assets/image/resource/exam_img_one.jpg"), data: [
- { "type": '物理', "title": '2018年成都市高新区联考物理试卷.doc', "loocknum": '750', "url": '/details' },
- { "type": '英语', "title": '2018年成都市高新区联考英语试卷.doc', "loocknum": '920', "url": '/details' },
- { "type": '数学', "title": '2018年成都市高新区联考数学试卷.doc', "loocknum": '1006', "url": '/details' },
- ]
- },
- {
- "id": 2, "title": '高考专区', "num": '1080', "img": require("../../assets/image/resource/exam_img_two.jpg"), data: [
- { "type": '语文', "title": '2018年成都市高新区联考语文试卷.doc', "loocknum": '1750', "url": '/details' },
- { "type": '英语', "title": '2018年成都市高新区联考英语试卷.doc', "loocknum": '1220', "url": '/details' },
- ]
- },
- {
- "id": 3, "title": '优课专区', "num": '900', "img": require("../../assets/image/resource/exam_img_three.jpg"), data: [
- { "type": '优课', "title": '我的影子', "loocknum": '620', "url": 'http://1s1k.eduyun.cn/portal/redesign/index/index.jsp?sdResIdCaseId=8aee80a562bc9be10162be0f7167109d&t=2&sessionKey=ey65FtcgEGMh4uHprmSE' },
- { "type": '优课', "title": '路程、时间与速度', "loocknum": '606', "url": 'http://1s1k.eduyun.cn/portal/redesign/index/index.jsp?sdResIdCaseId=ff8080815d07057f015d07443709007a&t=2&sessionKey=wj0ZhZK7YbjgxhIBJiGw' },
- { "type": '优课', "title": '古诗二首', "loocknum": '350', "url": 'http://1s1k.eduyun.cn/portal/redesign/index/index.jsp?sdResIdCaseId=8aee808f62fbe7ab016300a9e6a22e65&t=2&sessionKey=3xCsBKvbaWPKVmk1Yk9Y' },
- ]
- },
- ],
- schoollistdata: [
- {
- "id": 1, "title": '考试专区', "num": '980', "img": require("../../assets/image/resource/exam_school_one.png"), data: [
- { "type": '语文', "title": '2018成都师范银都紫藤小学语文试卷.doc', "loocknum": '750', "url": '/details' },
- { "type": '英语', "title": '2018成都师范银都紫藤小学英语试卷.doc', "loocknum": '920', "url": '/details' },
- { "type": '数学', "title": '2018成都师范银都紫藤小学数学试卷.doc', "loocknum": '1006', "url": '/details' },
- ]
- },
- {
- "id": 2, "title": '期末考专区', "num": '1080', "img": require("../../assets/image/resource/exam_school_two.png"), data: [
- { "type": '语文', "title": '2018成都市师范银都紫藤小学语文试卷.doc', "loocknum": '170', "url": '/details' },
- ]
- },
- {
- "id": 3, "title": '优课专区', "num": '900', "img": require("../../assets/image/resource/exam_img_three.jpg"), data: [
- { "type": '优课', "title": '我的影子', "loocknum": '20', "url": 'http://1s1k.eduyun.cn/portal/redesign/index/index.jsp?sdResIdCaseId=8aee80a562bc9be10162be0f7167109d&t=2&sessionKey=ey65FtcgEGMh4uHprmSE' },
- { "type": '优课', "title": '路程、时间与速度', "loocknum": '66', "url": 'http://1s1k.eduyun.cn/portal/redesign/index/index.jsp?sdResIdCaseId=ff8080815d07057f015d07443709007a&t=2&sessionKey=wj0ZhZK7YbjgxhIBJiGw' },
- ]
- },
- ],
- }
- },
- created() {
- this.init();
- },
- methods: {
- init() {
- if (this.$route.path == '/resource') {
- this.index = true
- } else if (this.$route.path == '/arearesource') {
- this.areaindex = true;
- } else if (this.$route.path == '/schoolresource') {
- this.schoolindex = true;
- }
- }
- }
- }
- </script>
- <style scoped>
- .exam {
- width: 100%;
- padding: 0% 11% 0% 11%;
- float: left;
- background-color: #f3f3f3;
- margin:0 auto;
- }
- .exam_list_box_width {
- width: 1200px;
- margin:0 auto;
- }
- .exam_box {
- width: 30%;
- height: 300px;
- margin: 1% 0% 1% 4.5%;
- text-align: center;
- float: left;
- border: #ececec solid 1px;
- padding: 1%;
- box-shadow: 2px 2px 10px rgba(15,4,9,0.05);
- background-color: #fff;
- padding-left:20px;
- }
- .exam_box:nth-child(1) {
- margin: 1% 1% 1% 0%;
- }
- .exam_title {
- width: 100%;
- display: block;
- float: left;
- }
- .exam_name {
- font-size: 24px;
- border-bottom: #288add solid 1px;
- float: left;
- }
- .exam_title i {
- float: left;
- margin: 8px 0px 0px 8px;
- height: 20px;
- line-height: 20px;
- border-radius: 10px;
- background: #8ea9b9;
- font-size: 14px;
- padding: 0px 10px;
- color: #fff;
- }
- .exam_img {
- margin-top: 10px;
- float: left;
- }
- .exam_img img {
- width:106%;
- }
- .exam_list {
- width: 100%;
- height: auto;
- padding: 1% 1% 1% 0%;
- list-style: none;
- float: left;
- text-align: left;
- }
- .exam_list_data {
- width: 100%;
- float: left;
- padding:4px 2px;
- border-bottom:1px dashed #ddd;
- }
- .exam_list_title {
- float: left;
- font-size:15px;
- }
- .look {
- float: right;
- }
- a {
- text-decoration: none;
- color: #333;
- }
- .clear {
- clear: both
- }
- </style>
|