           else
             @current_idx = null
             console.log '播放完毕'
+            @play = false
         # , 1500
 
   show_tip_text: ($tip, func)->

    @play = false

  play_demo: (screen)->
    @play = true
    @current_idx ||= 0
    if @current_idx is 0



  to_page: (page_id, direction = 'toright')->
    @play = false
    @current_idx = null

    current_page_id = @$elm.find(".page-flow .page.active").data('num')
    return if page_id is current_page_id

