邓洁 : 隧道切换效果
This commit is contained in:
@@ -42,8 +42,9 @@ html, body, #app, .el-container, .el-aside, .el-main {
|
|||||||
width: 60px;
|
width: 60px;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
}
|
}
|
||||||
.select-active{
|
|
||||||
color: #11EAF2!important;
|
.select-active {
|
||||||
|
color: #11EAF2 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -163,7 +164,34 @@ html, body, #app, .el-container, .el-aside, .el-main {
|
|||||||
margin-left: -925px;
|
margin-left: -925px;
|
||||||
background-image: url('../images/topAndDown/sp_dbbj.png');
|
background-image: url('../images/topAndDown/sp_dbbj.png');
|
||||||
|
|
||||||
|
.el-carousel__mask {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-carousel {
|
||||||
|
width: 1250px;
|
||||||
|
height: 146px;
|
||||||
|
padding-top: 35px;
|
||||||
|
|
||||||
|
.el-carousel__container {
|
||||||
|
width: 1250px;
|
||||||
|
|
||||||
|
.el-carousel__arrow--left {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-carousel__arrow--right {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-carousel__indicators {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.arrow {
|
.arrow {
|
||||||
|
cursor: pointer;
|
||||||
margin: 50px 0 0 263px;
|
margin: 50px 0 0 263px;
|
||||||
width: 46px;
|
width: 46px;
|
||||||
height: 54px;
|
height: 54px;
|
||||||
@@ -172,32 +200,31 @@ html, body, #app, .el-container, .el-aside, .el-main {
|
|||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-around;
|
|
||||||
margin-top: 14px;
|
margin-top: 14px;
|
||||||
font-size: 26px;
|
font-size: 26px;
|
||||||
color: #9FC3CD;
|
color: #9FC3CD;
|
||||||
|
|
||||||
|
.el-carousel__item {
|
||||||
|
left: 19%;
|
||||||
|
}
|
||||||
|
|
||||||
> div {
|
> div {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
padding-top: 5px;
|
||||||
|
width: 158px;
|
||||||
|
height: 50px;
|
||||||
|
background-image: url('../images/topAndDown/sp_icon_sdqhx.png');
|
||||||
}
|
}
|
||||||
|
|
||||||
> div:nth-child(2) {
|
.is-active {
|
||||||
|
margin-top: -5px;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
padding-top: 7px;
|
padding-top: 7px;
|
||||||
width: 201px;
|
width: 201px;
|
||||||
height: 62px;
|
height: 62px;
|
||||||
background-image: url('../images/topAndDown/sp_icon_sdqhd.png');
|
background-image: url('../images/topAndDown/sp_icon_sdqhd.png');
|
||||||
}
|
}
|
||||||
|
|
||||||
> div:first-child, > div:last-child {
|
|
||||||
padding-top: 5px;
|
|
||||||
width: 158px;
|
|
||||||
height: 50px;
|
|
||||||
background-image: url('../images/topAndDown/sp_icon_sdqhx.png');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.right {
|
.right {
|
||||||
|
|||||||
@@ -50,15 +50,20 @@
|
|||||||
<div v-if="drawerRight" class="right-arrow" @click="closeRight"></div>
|
<div v-if="drawerRight" class="right-arrow" @click="closeRight"></div>
|
||||||
<div v-else class="shrink-right" @click="closeRight"></div>
|
<div v-else class="shrink-right" @click="closeRight"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="switch-btn">
|
<div class="switch-btn">
|
||||||
<div class="arrow"></div>
|
<div class="arrow" @click="previousBtn"></div>
|
||||||
<div class="btn">
|
<el-carousel height="150px" type="card" ref="tunnelBtn" :autoplay="false">
|
||||||
<div>一号隧道</div>
|
<div class="btn">
|
||||||
<div>二号隧道</div>
|
<el-carousel-item v-for="(item,index) in tunnelList" :key="item.value">
|
||||||
<div>三号隧道</div>
|
{{ item.name }}
|
||||||
</div>
|
</el-carousel-item>
|
||||||
<div class="arrow right"></div>
|
</div>
|
||||||
|
</el-carousel>
|
||||||
|
<div class="arrow right" @click="nextBtn"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -76,13 +81,37 @@ import {useAuthStore} from '@/store/userstore.js'
|
|||||||
|
|
||||||
const authStore = useAuthStore()
|
const authStore = useAuthStore()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const selectIndex=ref(1)
|
const selectIndex = ref(1)
|
||||||
const drawerLeft = ref(true)
|
const drawerLeft = ref(true)
|
||||||
const drawerRight = ref(true)
|
const drawerRight = ref(true)
|
||||||
const currentSite = ref('松江站')
|
const currentSite = ref('松江站')
|
||||||
const currentUser = ref('admin')
|
const currentUser = ref('admin')
|
||||||
const currentDate = ref(dateFormat())
|
const currentDate = ref(dateFormat())
|
||||||
|
const tunnelBtn=ref()
|
||||||
|
const tunnelList = ref([
|
||||||
|
{
|
||||||
|
value: 0,
|
||||||
|
name: '一号隧道'
|
||||||
|
}, {
|
||||||
|
value: 1,
|
||||||
|
name: '二号隧道'
|
||||||
|
}, {
|
||||||
|
value: 2,
|
||||||
|
name: '三号隧道'
|
||||||
|
}, {
|
||||||
|
value: 3,
|
||||||
|
name: '四号隧道'
|
||||||
|
}, {
|
||||||
|
value: 4,
|
||||||
|
name: '五号隧道'
|
||||||
|
}, {
|
||||||
|
value: 5,
|
||||||
|
name: '六号隧道'
|
||||||
|
}, {
|
||||||
|
value: 6,
|
||||||
|
name: '七号隧道'
|
||||||
|
},
|
||||||
|
])
|
||||||
const manageSelect = () => {
|
const manageSelect = () => {
|
||||||
// getInfo();
|
// getInfo();
|
||||||
};
|
};
|
||||||
@@ -96,6 +125,14 @@ const handleLogout = () => {
|
|||||||
authStore.userLogout()
|
authStore.userLogout()
|
||||||
router.push('/login')
|
router.push('/login')
|
||||||
}
|
}
|
||||||
|
const previousBtn = () => {
|
||||||
|
tunnelBtn.value.prev()
|
||||||
|
}
|
||||||
|
const nextBtn = () => {
|
||||||
|
tunnelBtn.value.next();
|
||||||
|
// tunnelList.value.push(tunnelList.value.shift())
|
||||||
|
// console.log('tunnelList.value', tunnelList.value)
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user