提交 50ad3701 编写于 作者: DCloud_JSON's avatar DCloud_JSON

Update 补缺少的 this

上级 bf0973fa
...@@ -189,8 +189,8 @@ ...@@ -189,8 +189,8 @@
'transform', 'transform',
`translate(${this.x}px,${this.y}px) rotate(${this.x/-30}deg) scale(1)` `translate(${this.x}px,${this.y}px) rotate(${this.x/-30}deg) scale(1)`
) )
this.setINodeStyle("state-icon-like",'opacity', this.x < 0 ? 0 : movePercent * 10) this.setINodeStyle("state-icon-like",'opacity', this.x < 0 ? 0 : this.movePercent * 10)
this.setINodeStyle("state-icon-dislike",'opacity', this.x > 0 ? 0 : movePercent * 10) this.setINodeStyle("state-icon-dislike",'opacity', this.x > 0 ? 0 : this.movePercent * 10)
} }
} }
} }
......
...@@ -71,9 +71,8 @@ ...@@ -71,9 +71,8 @@
let visibleList = this.list.slice(3 * page, 3 * page + 3) let visibleList = this.list.slice(3 * page, 3 * page + 3)
// 换数据 // 换数据
this.visibleList = visibleList this.visibleList = visibleList
} }
},
current(current) {
this.state.forEach((val : string, index : number) => { this.state.forEach((val : string, index : number) => {
if (index === current) { if (index === current) {
this.doPlay(current) this.doPlay(current)
...@@ -105,7 +104,7 @@ ...@@ -105,7 +104,7 @@
if (this.state[index] === 'play') { if (this.state[index] === 'play') {
this.doPause(index) this.doPause(index)
} else { } else {
this.doPlay(current) this.doPlay(this.current)
} }
}, },
onLoadstart(index : number) { onLoadstart(index : number) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册