text: import wx from 'labrador';
  import { sleep } from './utils/util';
  import createStore from './utils/store'
  import reducers from './reducers'
  import connect from './utils/wechat-weapp-redux/connect'
  import Provider from './utils/wechat-weapp-redux/Provider'
  const store = createStore(reducers)
  export default class {
    constructor(){
      // 音乐播放状态
      const setSongStatus = isPlaying => () => {
        wx.setStorage({
          key: 'isPlaying',
          data: isPlaying
        })
      }
      wx.onBackgroundAudioPause(setSongStatus(false))
      wx.onBackgroundAudioStop(setSongStatus(false))
      wx.onBackgroundAudioPlay(setSongStatus(true))
    }
    store = store
    dispatch = store.dispatch
    connect = connect
  }