# ComplaintDialog 课件附件投诉
用于pc端课程附件投诉,最终会提交到O端进行审核
# Demo
# 初始化
单独引入时:可以在js入口,也可以在页面内引入
import { complaintDialog } from '@xiaoe/sense';
import '@xiaoe/sense/static/index.css';
Vue.use(complaintDialog)
1
2
3
2
3
# 效果
<complaint-dialog
:visible.sync="complanitDialogVisible"
:resourceType="resourceInfo.ResourceType"
:resourceId="resourceInfo.Id"
/>
1
2
3
4
5
2
3
4
5
# 业务背景
附件是课程的重要辅助,目的是为了让B端用户以方便快捷的方式将所需资料分享给目标学员,且学员快速接收到资料。目前素材中心仅支持文档上传,导致商家附件上传过程繁琐及学员下载不便。考虑到此缺陷影响B端商家对系统的体验和C端学员学习体验,因此考虑实现上传压缩包方案。 PRD戳这里 (opens new window)
# 参数
参数 | 说明 | 类型 | 是否必填 | 默认值 |
---|---|---|---|---|
visible | 控制显隐 | Boolean | 否 | false |
resourceType | 课程类型 | Number | 是 | 1 |
resourceId | 课程id | String | 是 | - |
appID | appid | String | 否 | - |
# 事件
事件名称 | 说明 | 类型 | 是否必填 |
---|---|---|---|
getSelectedCourse | 获取已选择的投诉资料 | Function | 否 |