Commit 39fad81c authored by liwei's avatar liwei

liwei

parent be484649
...@@ -42,8 +42,8 @@ ...@@ -42,8 +42,8 @@
:show-indicators="false" :show-indicators="false"
:touchable="true" :touchable="true"
:initial-swipe="tabIndex-1" :initial-swipe="tabIndex-1"
:duration="1000"
class="scroll" class="scroll"
ref="demo"
@change="swipeChange" @change="swipeChange"
> >
<van-swipe-item @click="swipeItemClick"> <van-swipe-item @click="swipeItemClick">
...@@ -365,7 +365,6 @@ export default { ...@@ -365,7 +365,6 @@ export default {
}, },
tabChange(index) { tabChange(index) {
console.log(index); console.log(index);
console.log(this.$refs.demo);
this.tabIndex = index; this.tabIndex = index;
// if(index==2){ // if(index==2){
// setTimeout(() => { // setTimeout(() => {
...@@ -461,6 +460,24 @@ export default { ...@@ -461,6 +460,24 @@ export default {
flex: 1; flex: 1;
height: 64 * @toVw; height: 64 * @toVw;
line-height: 74 * @toVw; line-height: 74 * @toVw;
// .demo {
// display: inline-block;
// width: 86 * @toVw;
// height: 35 * @toVw;
// line-height: 35 * @toVw;
// position: relative;
// text-shadow: 0px 1px 1px rgba(187, 82, 0, 1);
// color: white;
// font-size: 15 * @toVw;
// animation: slideIn 0.5s linear;
// img {
// width: 86 * @toVw;
// position: absolute;
// top: 0;
// left: 0;
// z-index: -1;
// }
// }
.activity { .activity {
display: inline-block; display: inline-block;
width: 86 * @toVw; width: 86 * @toVw;
...@@ -470,7 +487,7 @@ export default { ...@@ -470,7 +487,7 @@ export default {
text-shadow: 0px 1px 1px rgba(187, 82, 0, 1); text-shadow: 0px 1px 1px rgba(187, 82, 0, 1);
color: white; color: white;
font-size: 15 * @toVw; font-size: 15 * @toVw;
transition: opacity 0.5s; animation: slideOut 1s linear;
img { img {
width: 86 * @toVw; width: 86 * @toVw;
position: absolute; position: absolute;
...@@ -481,6 +498,22 @@ export default { ...@@ -481,6 +498,22 @@ export default {
} }
} }
} }
@keyframes slideOut {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes slideIn {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
.anActivity { .anActivity {
margin-top: 24 * @toVw; margin-top: 24 * @toVw;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment