Commit 66d19401 by 胡悦

提交

1 parent 7c9bc515
<template>
<view class="layout">
<view class="layout" @click.prevent="touch">
<wnCanvas :drawStatus="penSwitch" :canvasId="`c-${madiaId}`" custom>
<template slot="customContent">
<view class="title">{{ title }}</view>
<view class="container">
<view class="container-left">
<view v-for="(item, index) in views" :key="item.name" class="item" @click="showSection(index)" :class="item.class" :style="item.style">
<view v-for="(item, index) in views" :key="item.name" class="item" @click.stop="showSection(index)" :class="item.class" :style="item.style">
<view class="image-container">
<image :src="item.detailUrl" mode="widthFix" class="item-image" />
<view class="item-text">{{item.name}}</view>
......@@ -212,6 +212,10 @@ export default {
// 否则,打开新点击的项
this.showIndex = index;
}
},
touch() {
console.log(111111)
this.showIndex = -1
}
},
};
......@@ -245,6 +249,9 @@ export default {
position: relative;
column-gap: 16rpx;
border-radius: 24rpx;
.image-container {
font-size: 0;
}
&::after{
content: "";
display: block;
......@@ -275,21 +282,16 @@ export default {
border-radius: 24rpx;
}
.details-section {
// position: absolute;
// top: 0;
// left: 0;
width: 100%;
height: 100%;
color: #FFFFFF;
padding: 24rpx;
border-radius: 24rpx;
background-image: linear-gradient(180deg, #21425cb3 0%, #4A84F9 68%);
display: none;
display: flex;
flex-direction: column;
justify-content: flex-end;
animation: show-gradient .2s linear;
// overflow: hidden;
// animation: slide-top 2s linear;
transform: translateY(100%);
.section-title {
font-size: 30rpx;
}
......@@ -299,11 +301,10 @@ export default {
}
}
.show {
display: flex;
animation: show-gradient .2s linear forwards;
}
.hide {
// display: none;
animation: hidden-gradient 2s linear;
animation: hidden-gradient .2s linear;
}
}
&-right {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!