Commit f56e6a3a by guomingpang

Merge branch 'dev' of…

Merge branch 'dev' of ssh://xmgit.ixm5.cn:10022/xiaomai-cloud-class/xiaomai-cloud-class-web into dev
parents f213070b b76ef7f6
...@@ -2,15 +2,14 @@ ...@@ -2,15 +2,14 @@
* @Author: 吴文洁 * @Author: 吴文洁
* @Date: 2020-08-05 10:07:47 * @Date: 2020-08-05 10:07:47
* @LastEditors: yuananting * @LastEditors: yuananting
* @LastEditTime: 2021-07-18 16:54:33 * @LastEditTime: 2021-07-23 14:26:26
* @Description: 线上课新增/编辑页 * @Description: 线上课新增/编辑页
* @Copyright: 杭州杰竞科技有限公司 版权所有 * @Copyright: 杭州杰竞科技有限公司 版权所有
*/ */
import React from 'react' import React from 'react'
import { Button, Input, message, Modal, Tooltip, Form, Popconfirm, Menu, Dropdown, Cascader } from 'antd' import { Button, Input, message, Modal, Cascader, Tooltip, Form, Popconfirm, Menu, Dropdown } from 'antd'
import { FileTypeIcon } from '@/common/constants/academic/lessonEnum' import { FileTypeIcon } from '@/common/constants/academic/lessonEnum'
import { CourseCatalogSelect } from '@/modules/common/'
import ShowTips from '@/components/ShowTips' import ShowTips from '@/components/ShowTips'
import Breadcrumbs from '@/components/Breadcrumbs' import Breadcrumbs from '@/components/Breadcrumbs'
import moment from 'moment' import moment from 'moment'
...@@ -122,8 +121,19 @@ class AddVideoCourse extends React.Component { ...@@ -122,8 +121,19 @@ class AddVideoCourse extends React.Component {
} }
catalogChange = (value, _categoryName) => { catalogChange = (value, _categoryName) => {
console.log(value, _categoryName) const categoryName = _.pluck(_categoryName, 'categoryName').join('-')
this.setState({ categoryId: value, categoryName: _categoryName[0] }) const changeValueLength = value.length
switch (changeValueLength) {
case 1:
this.setState({ categoryId: value[0], categoryName })
break
case 2:
this.setState({ categoryId: value[1], categoryName })
break
default:
this.setState({ categoryId: null })
break
}
} }
// 获取线上课详情 // 获取线上课详情
handleFetchScheudleDetail = (courseId) => { handleFetchScheudleDetail = (courseId) => {
...@@ -712,7 +722,6 @@ class AddVideoCourse extends React.Component { ...@@ -712,7 +722,6 @@ class AddVideoCourse extends React.Component {
imageFile, imageFile,
selectTypeList, selectTypeList,
accept, accept,
categoryId,
} = this.state } = this.state
const defaultCover = 'https://image.xiaomaiketang.com/xm/TwtGPQGE4K.png' const defaultCover = 'https://image.xiaomaiketang.com/xm/TwtGPQGE4K.png'
const isDefaultCover = coverUrl === defaultCover || coverUrl == null const isDefaultCover = coverUrl === defaultCover || coverUrl == null
...@@ -907,7 +916,6 @@ class AddVideoCourse extends React.Component { ...@@ -907,7 +916,6 @@ class AddVideoCourse extends React.Component {
} }
/> />
)} )}
{/* <CourseCatalogSelect courseCatalogList={courseCatalogList} value={categoryId} onChange={this.catalogChange} /> */}
</div> </div>
<div className='intro-info mt16'> <div className='intro-info mt16'>
<AddVideoIntro <AddVideoIntro
......
/* /*
* @Author: yuananting * @Author: yuananting
* @Date: 2021-02-23 18:28:50 * @Date: 2021-02-23 18:28:50
* @LastEditors: fusanqiasng * @LastEditors: wufan
* @LastEditTime: 2021-06-25 14:35:20 * @LastEditTime: 2021-07-23 15:03:50
* @Description: 助学工具-课程分类 * @Description: 助学工具-课程分类
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
height: 44px; height: 44px;
padding: 0; padding: 0;
span { span {
line-height: 44px; line-height: 47px;
vertical-align: middle; vertical-align: middle;
} }
.ant-tree-node-content-wrapper.ant-tree-node-selected { .ant-tree-node-content-wrapper.ant-tree-node-selected {
...@@ -45,10 +45,10 @@ ...@@ -45,10 +45,10 @@
*.node-title-div { *.node-title-div {
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: space-between;
.title-opts { .title-opts {
visibility: hidden; visibility: hidden;
margin-right: 16px; margin-left: 24px;
margin-bottom: 4px;
} }
} }
} }
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
.xm-audio { .xm-audio {
display: flex; display: flex;
align-items: center; align-items: center;
width: 280px; width: 315px;
padding: 10px 20px; padding: 10px 0 10px 20px;
border-radius: 5px; border-radius: 5px;
background-color: #ffffff; background-color: #ffffff;
.audio-image { .audio-image {
......
...@@ -101,7 +101,6 @@ ...@@ -101,7 +101,6 @@
.voice-box { .voice-box {
margin-bottom: 12px; margin-bottom: 12px;
box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1); box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);
padding: 10px 20px;
width: 320px; width: 320px;
} }
} }
......
...@@ -314,7 +314,6 @@ ...@@ -314,7 +314,6 @@
.audio-box { .audio-box {
position: relative; position: relative;
box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1); box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);
padding: 10px 20px;
width: 320px; width: 320px;
margin-bottom: 12px; margin-bottom: 12px;
.icon_sider { .icon_sider {
......
...@@ -68,7 +68,6 @@ ...@@ -68,7 +68,6 @@
.voice-box { .voice-box {
margin-bottom: 12px; margin-bottom: 12px;
box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1); box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);
padding: 10px 20px;
width: 320px; width: 320px;
} }
} }
...@@ -144,7 +143,6 @@ ...@@ -144,7 +143,6 @@
.voice-box { .voice-box {
margin-bottom: 12px; margin-bottom: 12px;
box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1); box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);
padding: 10px 20px;
width: 320px; width: 320px;
} }
} }
...@@ -248,7 +246,6 @@ ...@@ -248,7 +246,6 @@
margin-bottom: 16px; margin-bottom: 16px;
.audio-box { .audio-box {
box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1); box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);
padding: 10px 20px;
width: 320px; width: 320px;
margin-bottom: 12px; margin-bottom: 12px;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment