|
@@ -47,9 +47,9 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="chapter">
|
|
|
- <div class="singleItem" v-for="(item,index) in 15" :key="index">
|
|
|
- <img src="../assets/kczy/ppt.png" alt="">
|
|
|
- <p>文件名</p>
|
|
|
+ <div class="singleItem" v-for="(item,index) in fileIcon" :key="index" @click="reviewFile(item)">
|
|
|
+ <img :src=" '../src/assets/kczy/'+item.file_prefix+'.png' " alt="">
|
|
|
+ <p>{{item.file_name}}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -62,21 +62,107 @@
|
|
|
import commonHeader from "@/components/header/index.vue";
|
|
|
export default {
|
|
|
name: 'chapter',
|
|
|
- components:{
|
|
|
- commonHeader
|
|
|
- },
|
|
|
- data() {
|
|
|
- return {
|
|
|
- classificationData:["全部","word","ppt","pdf","excel","视频","其他"],
|
|
|
- num:0,
|
|
|
- }
|
|
|
+ components:{
|
|
|
+ commonHeader
|
|
|
},
|
|
|
- mounted() {
|
|
|
-
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ classificationData:["全部","word","ppt","pdf","excel","视频","其他"],
|
|
|
+ num: 0,
|
|
|
+ fileIcon: [
|
|
|
+ {
|
|
|
+ id: Math.random(),
|
|
|
+ file_prefix: 'ppt',
|
|
|
+ file_name:'文件名'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: Math.random(),
|
|
|
+ file_prefix: 'excel',
|
|
|
+ file_name:'文件名'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: Math.random(),
|
|
|
+ file_prefix: 'pdf',
|
|
|
+ file_name:'文件名'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: Math.random(),
|
|
|
+ file_prefix: 'excel',
|
|
|
+ file_name:'文件名'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: Math.random(),
|
|
|
+ file_prefix: 'excel',
|
|
|
+ file_name:'文件名'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: Math.random(),
|
|
|
+ file_prefix: 'word',
|
|
|
+ file_name:'数学体系'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: Math.random(),
|
|
|
+ file_prefix: 'mov',
|
|
|
+ file_name:'文件名'
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ id: Math.random(),
|
|
|
+ file_prefix: 'excel',
|
|
|
+ file_name:'文件名'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: Math.random(),
|
|
|
+ file_prefix: 'pdf',
|
|
|
+ file_name:'文件名'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: Math.random(),
|
|
|
+ file_prefix: 'ppt',
|
|
|
+ file_name:'文件名'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: Math.random(),
|
|
|
+ file_prefix: 'ppt',
|
|
|
+ file_name:'文件名'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: Math.random(),
|
|
|
+ file_prefix: 'mov',
|
|
|
+ file_name:'文件名'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: Math.random(),
|
|
|
+ file_prefix: 'word',
|
|
|
+ file_name:'文件名'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: Math.random(),
|
|
|
+ file_prefix: 'word',
|
|
|
+ file_name:'文件名'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: Math.random(),
|
|
|
+ file_prefix: 'mov',
|
|
|
+ file_name:'文件名'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
},
|
|
|
- methods: {
|
|
|
+ mounted() {
|
|
|
|
|
|
},
|
|
|
+ methods: {
|
|
|
+ reviewFile(item) {
|
|
|
+ console.log(item);
|
|
|
+ let markLable = item.file_prefix;
|
|
|
+ if (markLable == "mov") {
|
|
|
+ this.$router.push({ path:'/resourceMovReview', query:{icon:'word'} });
|
|
|
+ } else {
|
|
|
+ this.$router.push({ path:'/resourceFileReview', query:{icon:'mov'} });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
}
|
|
|
</script>
|
|
@@ -95,7 +181,7 @@ import commonHeader from "@/components/header/index.vue";
|
|
|
box-sizing: border-box;
|
|
|
padding:52px 66px;
|
|
|
color: #ffffff;
|
|
|
- background: url('../assets/kczy/chapterBG.png') no-repeat top left;
|
|
|
+ background: url('../src/assets/kczy/chapterBG.png') no-repeat top left;
|
|
|
background-size: 100%;
|
|
|
|
|
|
.bigT{
|