From 544b89808282ac9b2924b265c6267f4726acceda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Sat, 13 Jul 2019 17:17:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/modules/projectPackages/MDEditors.js | 2 +- .../PackageIndex/PackageConcent.js | 2 +- .../PackageIndexNEIBannerConcent.js | 84 +++++++++---------- .../projectPackages/packageconcnet.css | 4 + 4 files changed, 48 insertions(+), 44 deletions(-) diff --git a/public/react/src/modules/projectPackages/MDEditors.js b/public/react/src/modules/projectPackages/MDEditors.js index 030fb6cf..b6fee558 100644 --- a/public/react/src/modules/projectPackages/MDEditors.js +++ b/public/react/src/modules/projectPackages/MDEditors.js @@ -222,7 +222,7 @@ export default class MDEditors extends Component { const _placeholder = placeholder || ""; // amp; // 编辑时要传memoId - const imageUrl = `/api/attachments.json`; + const imageUrl = `/upload_with_markdown?container_id=&container_type=Memo`; // 创建editorMd let react_id = `react_${_id}`; diff --git a/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js b/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js index 958404d5..c1422416 100644 --- a/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js +++ b/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js @@ -253,7 +253,7 @@ class PackageConcent extends Component { {moment(item.deadline_at).endOf('day').fromNow()}竞标截止 -
+
{item.bidding_users_count}人竞标 diff --git a/public/react/src/modules/projectPackages/PackageIndexNewandEdit/PackageIndexNEIBannerConcent.js b/public/react/src/modules/projectPackages/PackageIndexNewandEdit/PackageIndexNEIBannerConcent.js index 07df9c1c..56ccd3de 100644 --- a/public/react/src/modules/projectPackages/PackageIndexNewandEdit/PackageIndexNEIBannerConcent.js +++ b/public/react/src/modules/projectPackages/PackageIndexNewandEdit/PackageIndexNEIBannerConcent.js @@ -734,48 +734,48 @@ class PackageIndexNEIBannerConcent extends Component { watch={false} className="courseMessageMD" initValue={this.state.content} setcheckoutcontent={()=>this.setcheckoutcontent()}> {/* 请求status 422 */} {this.state.contenttypes===true?
不能为空
:""} -
- window.$('#_file').click()} - data-tip-down="请选择文件上传"> - {/**/} - 上传附件 - - (最多可添加 5 个图片/文件,每个大小不超过 10MB) -
- {attachments&&attachments.map((item,key)=>{ - return( -
- - {item.title}    {bytesToSize(item.filesize)} -
- )})} -
- - - - { - debugger; - console.log(window.$('.file_selector')[0]) - window.addInputFiles(window.$('.file_selector')[0]) - }} - style={{'display': 'none'}} - type="file"> - - -
+ {/*
*/} + {/* window.$('#_file').click()}*/} + {/*data-tip-down="请选择文件上传">*/} + {/*/!**!/*/} + {/*上传附件*/} + {/**/} + {/*(最多可添加 5 个图片/文件,每个大小不超过 10MB)*/} + {/*
*/} + {/*{attachments&&attachments.map((item,key)=>{*/} + {/*return(*/} + {/*
*/} + {/**/} + {/*{item.title}    {bytesToSize(item.filesize)}*/} + {/*
*/} + {/*)})}*/} + {/*
*/} + {/**/} + {/**/} + {/**/} + {/* {*/} + {/*debugger;*/} + {/*console.log(window.$('.file_selector')[0])*/} + {/*window.addInputFiles(window.$('.file_selector')[0])*/} + {/*}}*/} + {/*style={{'display': 'none'}}*/} + {/*type="file">*/} + {/**/} + {/**/} + {/*
*/}
diff --git a/public/react/src/modules/projectPackages/packageconcnet.css b/public/react/src/modules/projectPackages/packageconcnet.css index d97bd8f4..7de95ba8 100644 --- a/public/react/src/modules/projectPackages/packageconcnet.css +++ b/public/react/src/modules/projectPackages/packageconcnet.css @@ -308,4 +308,8 @@ .pagemancenter{ text-align: center; +} + +.pd35{ + padding-left: 35px; } \ No newline at end of file