|
@@ -2,7 +2,9 @@
|
|
<index-card title="智能练习">
|
|
<index-card title="智能练习">
|
|
<index-card-content :list="list" :line-size="2">
|
|
<index-card-content :list="list" :line-size="2">
|
|
<template #default="{item}">
|
|
<template #default="{item}">
|
|
- <index-image-item v-bind="item"/>
|
|
|
|
|
|
+ <index-image-item class="active-pointer" v-bind="item">
|
|
|
|
+ <div slot="title" class="reverse-item">进入练习</div>
|
|
|
|
+ </index-image-item>
|
|
</template>
|
|
</template>
|
|
</index-card-content>
|
|
</index-card-content>
|
|
</index-card>
|
|
</index-card>
|
|
@@ -15,27 +17,42 @@ import IndexImageItem from '@/views/index/components/index-image-item'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'index-card-smart',
|
|
name: 'index-card-smart',
|
|
- components: { IndexImageItem, IndexCardContent, IndexCard },
|
|
|
|
|
|
+ components: {IndexImageItem, IndexCardContent, IndexCard},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
list: [{
|
|
list: [{
|
|
title: '同步练习',
|
|
title: '同步练习',
|
|
- src: `${this.$imgBase}index/question-center/tongbuzaixian.png`,
|
|
|
|
- path: '/question-center/smartExercise?tabActive=0'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '知识点练习',
|
|
|
|
- src: `${this.$imgBase}index/question-center/zhishidianzaixian.png`,
|
|
|
|
- path: '/question-center/smartExercise?tabActive=1'
|
|
|
|
-
|
|
|
|
- }]
|
|
|
|
|
|
+ src: require('@/assets/images/index/qc/qc-sync.png'),
|
|
|
|
+ path: '/question-center/smartExercise?tabActive=0',
|
|
|
|
+ titleClasses: 'abs f-333',
|
|
|
|
+ titleStyle: {bottom: '60px', left: '65px'}
|
|
|
|
+ }, {
|
|
|
|
+ title: '知识点练习',
|
|
|
|
+ src: require('@/assets/images/index/qc/qc-knowledge.png'),
|
|
|
|
+ path: '/question-center/smartExercise?tabActive=1',
|
|
|
|
+ titleClasses: 'abs f-333',
|
|
|
|
+ titleStyle: {bottom: '60px', left: '65px'}
|
|
|
|
+ }]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- methods: {
|
|
|
|
- }
|
|
|
|
|
|
+ methods: {}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
-<style scoped>
|
|
|
|
|
|
+<style scoped lang="scss">
|
|
|
|
+.active-pointer .reverse-item {
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ line-height: 34px;
|
|
|
|
+ padding: 0 12px;
|
|
|
|
+ color: var(--themeColor);
|
|
|
|
+ background: transparent;
|
|
|
|
+ border: 1px solid var(--themeColor);
|
|
|
|
+ border-radius: 5px;
|
|
|
|
+}
|
|
|
|
|
|
|
|
+.active-pointer:hover .reverse-item {
|
|
|
|
+ color: white;
|
|
|
|
+ background: var(--themeColor);
|
|
|
|
+}
|
|
</style>
|
|
</style>
|