Commit f7334b2f authored by baixian's avatar baixian

优化

parent df19c4b5
......@@ -105,7 +105,7 @@ class ThemeEditor extends React.Component {
<div className={pageStyle.uploadflex}>
<div className={pageStyle.uploadimg} onClick={editorAddText}><Icon style={{ marginRight: 10 }} type="font-size" />添加文字</div>
<div className={pageStyle.uploadimg}><input type="file" id="uploadImg" className={pageStyle.fileuploadinput} onChange={editorUploadImg} accept="image/*" /><Icon style={{ marginRight: 10 }} type="picture" />添加图片</div>
<div className={pageStyle.uploadimg}><input type="file" id="uploadVideo" className={pageStyle.fileuploadinput} onChange={editorUploadAudio} accept="video/*" /><Icon style={{ marginRight: 10 }} type="video-camera" />添加视频</div>
<div className={pageStyle.uploadimg}><input type="file" id="uploadVideo" className={pageStyle.fileuploadinput} onChange={editorUploadAudio} accept="video/mp4,video/*" /><Icon style={{ marginRight: 10 }} type="video-camera" />添加视频</div>
</div>
<Modal visible={previewVisible} footer={null} onCancel={this.handleCancel}>
<img alt="图片" style={{ width: '100%' }} src={imagify(previewImage)} />
......
......@@ -175,7 +175,7 @@ class BannerEditor extends React.Component {
}
{bannerVideo.length == 0 &&
<div className={PageStyle.fileuploadbox}>
<input type="file" id="uploadinput" className={PageStyle.fileuploadinput} onChange={(e) => { this.uploadBannerVideo(e); }} accept="video/*" />
<input type="file" id="uploadinput" className={PageStyle.fileuploadinput} onChange={(e) => { this.uploadBannerVideo(e); }} accept="video/mp4,video/*" />
<div className={PageStyle.fileuploadlayer}>
<div className={PageStyle.uploadtext}>点击上传</div>
</div>
......
......@@ -197,7 +197,7 @@ class OrgdescEditorForm extends React.Component {
}
{ele.content.length == 0 &&
<div className={PageStyle.fileuploadbox}>
<input type="file" id="uploadinput" className={PageStyle.fileuploadinput} onChange={(e) => { this.uploadVideo(e, index, ele.type); }} accept="video/*" />
<input type="file" id="uploadinput" className={PageStyle.fileuploadinput} onChange={(e) => { this.uploadVideo(e, index, ele.type); }} accept="video/mp4,video/*" />
<div className={PageStyle.fileuploadlayer}>
<div className={PageStyle.uploadtext}>点击上传</div>
</div>
......
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