mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-10 03:16:47 +08:00
-- bug
This commit is contained in:
BIN
src/assets/image/pathdetails/组 21.png
Normal file
BIN
src/assets/image/pathdetails/组 21.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 65 KiB |
@@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<div class="pathDetail" v-if="visiable" :style="{background:`url('${back}') no-repeat`}">
|
||||
<div v-for="(item,i) in detail.chapterDtoList" :key="i" class="cha"
|
||||
:style="{top:`${imgAttr.positions[i]?.top - (current===i?10:0)}px`,left:`${imgAttr.positions[i]?.left - (current===i?10:0)}px`}">
|
||||
:style="{top:`${imgAttr.positions[i]?.top - (current===i?5:0)}px`,left:`${imgAttr.positions[i]?.left - (current===i?10:0)}px`}">
|
||||
<div @click="toDetail(i)"
|
||||
:style="{background: `url('${current===i?currentBack:nameBack}')`,width:`${current===i?278:245}px`,height:`${current===i?120:105}px`,textAlign:'center',lineHeight:'75px',color:'#FFF'}">
|
||||
:style="{background: `url('${current===i?currentBack:nameBack}')`,backgroundSize:'100%',width:`${current===i?139:123}px`,height:`${current===i?60:53}px`,textAlign:'center',lineHeight:'45px',fontsize:'12px',color:'#FFF'}">
|
||||
{{ item.name }}
|
||||
</div>
|
||||
</div>
|
||||
@@ -11,8 +11,8 @@
|
||||
</template>
|
||||
<script setup>
|
||||
import {computed, defineProps, ref, watch} from "vue";
|
||||
import back from '@/assets/image/pathdetails/路径图背景线.png'
|
||||
import nameBack from '@/assets/image/pathdetails/组 23@2x.png'
|
||||
import back from '@/assets/image/pathdetails/组 21.png'
|
||||
import nameBack from '@/assets/image/pathdetails/组 23.png'
|
||||
import currentBack from '@/assets/image/pathdetails/组 23(1).png'
|
||||
import {useRouter} from "vue-router/dist/vue-router";
|
||||
|
||||
@@ -31,9 +31,9 @@ const imageAttrs = {
|
||||
width: 1437,
|
||||
height: 594,
|
||||
positions: [
|
||||
{left: -72, top: 508},
|
||||
{left: 147, top: 356},
|
||||
{left: 689, top: 263},
|
||||
{left: 84, top: 518},
|
||||
{left: 307, top: 370},
|
||||
{left: 848, top: 275},
|
||||
{left: 617, top: 69},
|
||||
{left: 1047, top: 42},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user