transferVideoDetailLogic.js 720 Bytes
/**
 * 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;
    }
}