-
@@ -64,7 +62,8 @@ export default {
indicatorRef: null,
lefts: [],
indicatorSpace: 0,
- open: false
+ open: false,
+ type: 1
}
},
computed: {
@@ -85,9 +84,17 @@ export default {
bus.on(this.name + '-end', this.end)
},
methods: {
+ toggleType(type) {
+ if (type !== this.type) {
+ this.type = type
+ this.open = false
+ }
+ },
change(index) {
if (this.index === 0 && index === 0) {
this.open = !this.open
+ } else {
+ this.open = false
}
this.$emit('update:index', index)
this.$setCss(this.indicatorRef, 'transition-duration', `300ms`)
@@ -181,13 +188,16 @@ export default {
.tab {
transition: color .3s;
color: rgb(156, 158, 165);
+ position: relative;
img {
+ position: absolute;
@width: 1rem;
width: @width;
height: @width;
margin-left: .4rem;
transition: all .3s;
+ margin-top: .7rem;
}
&.open {
@@ -240,7 +250,8 @@ export default {
}
.l-button {
- width: 49%;
+ flex: 1;
+ margin: 0 .3rem;
height: 2.8rem;
background: rgb(33, 36, 45);
display: flex;
@@ -248,6 +259,7 @@ export default {
justify-content: center;
border-radius: 2rem;
color: rgb(157, 161, 170);
+ transition: all .3s;
&.active {
background: rgb(57, 57, 65);
diff --git a/src/pages/slide/SlideVertical.vue b/src/pages/slide/SlideVertical.vue
index c11ac76..d28c6cc 100644
--- a/src/pages/slide/SlideVertical.vue
+++ b/src/pages/slide/SlideVertical.vue
@@ -29,6 +29,7 @@ export default {
this.startY = e.touches[0].pageY
},
touchMove(e) {
+ console.log('move',e.touches[0].pageY)
this.moveX = e.touches[0].pageX - this.startX
this.moveY = e.touches[0].pageY - this.startY