Class: Shake

Shake(pageContext, opts)

九宫格翻纸牌组件逻辑部分

Constructor

new Shake(pageContext, opts)

Parameters:
Name Type Description
pageContext Object page路由指针
opts Object 组件所需参数
Properties
Name Type Description
shakeThreshold Number 频率阈值
callback function 结束回调
Author:
  • pfan
Source:
Example
new Shake(this,{
   shakeThreshold: 70, //阈值
   callback: (idx, award) => {
     //结束回调, 参数对应宫格索引,对应奖项    
   }
 })