Logo

GitLab

Sign in

customer / shanghai-railway-rnapp

  • Back to Group
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • shanghai-railway-rnapp
  • forum
  • pages
  • uploadVideo
  • logic
  • uploadVideoFirstLogic.js
  • 社区配置
    e11e32fc
    赵世强 authored
    2020-03-18 13:08:53 +0800  
    Browse Code »
uploadVideoFirstLogic.js 447 Bytes
Edit Raw Blame History
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
/**
 * Created by xiniu on 2018/11/8.
 */
import {action, observable} from 'mobx';

export default class uploadVideoFirstLogic {
    @observable
    loading = false;
    @observable
    currentTime = 0;
    @observable
    isPlaying = false;

    // 滑动slider
    @action
    moveSlider(currentTime) {
        this.currentTime = currentTime;
    }

    // 暂停/播放
    @action
    switchPlay(flag) {
        this.isPlaying = flag;
    }
}