# 抽奖 （学员端）
> 具体逻辑看文档（待写）

## Demo
```javascript
// json 引入：
"lottery-fab": "/subpkg/npm-compoent/miniprogram_npm/live_mp_mkt/Lottery/Student/components/LotteryFAB/index"
// 跨包引用，需要配置
"componentPlaceholder": {
    "lottery-fab": "view"
}
```
```javascript
<lottery-fab class="lottery-fab">
</lottery-fab>
```
```javascript
// json 引入：
"lottery-popups": "/subpkg/npm-compoent/miniprogram_npm/live_mp_mkt/Lottery/Student/components/LotteryPopups/index"
// 跨包引用，需要配置
"componentPlaceholder": {
    "lottery-popups": "view"
}
```
```javascript
<lottery-popups
    screenType="fullscreen"
    baseInfo="{{ baseInfo }}"
    bind:inputFocus="onInputFocus"
    bind:inputBlur="onInputBlur"
    bind:inputChange="onInputChange"
    bind:collectInfo="onCollectInfo"
></lottery-popups>
```

## Attributes

| 参数       | 说明     | 类型   | 可选值       | 默认值 |
| ---------- | -------- | ------ | ------------ | ------ |
| baseInfo   |          | Object |              |        |
| screenType | 是否全屏 | String | 'fullscreen' | ‘’     |

## Events

| 事件名称    | 说明             | 回调参数       |
| ----------- | ---------------- | -------------- |
| inputFocus  | 输入框focus      |                |
| inputBlur   | 输入框blur       |                |
| inputChange | 输入指定评论     | value 指定评论 |
| collectInfo | 调起信息采集弹窗 |                |

