transferVideoDetailLogic.js
720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* Created by xiniu on 2018/11/20.
*/
import {action, observable} from 'mobx';
export default class transferVideoDetailLogic {
@observable
loading = false;
@observable
currentTime = 0;
@observable
isPlaying = false;
@observable
showHeaderInfo = false;
@observable
tempIsPlaying = false;
// 滑动slider
@action
moveSlider(currentTime) {
this.currentTime = currentTime;
}
// 暂停/播放
@action
switchPlay(flag) {
this.isPlaying = flag;
}
@action
switchHeader(flag) {
this.showHeaderInfo = flag;
}
// 暂停/播放
@action
tempSwitchPlay(flag) {
this.tempIsPlaying = flag;
}
}