|
|
|
@ -233,6 +233,7 @@ class PackageIndexNEIBannerConcent extends Component {
|
|
|
|
|
{name:"人工智能",value:"ai"},
|
|
|
|
|
{name:"其他",value:"other"},
|
|
|
|
|
]
|
|
|
|
|
console.log(this.props)
|
|
|
|
|
return (
|
|
|
|
|
<div className="mb20">
|
|
|
|
|
{/*<PhoneModel*/}
|
|
|
|
@ -256,68 +257,19 @@ class PackageIndexNEIBannerConcent extends Component {
|
|
|
|
|
})}
|
|
|
|
|
</div>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<div className={"color-red"}>请选择类型</div>
|
|
|
|
|
|
|
|
|
|
<div className="ant-form-item-label mb10">
|
|
|
|
|
<label htmlFor="coursesNew_description" className="ant-form-item-required font-16" >需求标题和详情</label>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<Input placeholder="请输入需求标题,示例:美食类APP开发,最大限制60个字符" maxLength="60" className="input-100-40s mt5 fafafas mb20"
|
|
|
|
|
<Input placeholder="请输入需求标题,示例:美食类APP开发,最大限制60个字符" maxLength="60" className="input-100-40s mt5 fafafas"
|
|
|
|
|
value={title} onInput={this.settitlefun}/>
|
|
|
|
|
|
|
|
|
|
<div className={"color-red mt10"}>不能为空</div>
|
|
|
|
|
<MDEditors ref={this.contentMdRef} placeholder="请填写清晰完整的需求内容" mdID={'courseContentMD'} refreshTimeout={1500}
|
|
|
|
|
watch={false} className="courseMessageMD" initValue={this.state.content}></MDEditors>
|
|
|
|
|
{/* 请求status 422 */}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/*<form className="newForm newFormbox mt10 mb20">*/}
|
|
|
|
|
{/*<span id={`attachments_fields`} className="attachments_fields"*/}
|
|
|
|
|
{/*xmlns="http://www.w3.org/1999/html">*/}
|
|
|
|
|
{/*</span>*/}
|
|
|
|
|
{/*<span className="add_attachment">*/}
|
|
|
|
|
{/*<input className="file_selector"*/}
|
|
|
|
|
{/*data-are-you-sure="您确定要删除吗?"*/}
|
|
|
|
|
{/*data-delete-all-files="您确定要删除所有文件吗"*/}
|
|
|
|
|
{/*data-description-placeholder="可选的描述"*/}
|
|
|
|
|
{/*data-field-is-public="公开"*/}
|
|
|
|
|
{/*data-file-count="个文件已上传"*/}
|
|
|
|
|
{/*data-lebel-file-uploding="个文件正在上传"*/}
|
|
|
|
|
{/*data-max-concurrent-uploads="2"*/}
|
|
|
|
|
{/*data-max-file-size-message="该文件无法上传。超过文件大小限制 (10 MB),建议上传到百度云等其他共享工具里,然后在txt文档里给出链接以及共享密码并上传"*/}
|
|
|
|
|
{/*data-max-file-size="10485760" data-upload-path="/uploads.js"*/}
|
|
|
|
|
{/*id="_file"*/}
|
|
|
|
|
{/*multiple="multiple" name="attachments[dummy][file]"*/}
|
|
|
|
|
{/*onChange={() => {*/}
|
|
|
|
|
{/*debugger;*/}
|
|
|
|
|
{/*console.log(window.$('.file_selector')[0])*/}
|
|
|
|
|
{/*window.addInputFiles(window.$('.file_selector')[0])*/}
|
|
|
|
|
{/*}}*/}
|
|
|
|
|
{/*style={{'display': 'none'}} type="file">*/}
|
|
|
|
|
{/*</input>*/}
|
|
|
|
|
{/*</span>*/}
|
|
|
|
|
{/*</form>*/}
|
|
|
|
|
|
|
|
|
|
<form className="newForm">
|
|
|
|
|
<span id={`attachments_fields`} className="attachments_fields"
|
|
|
|
|
xmlns="http://www.w3.org/1999/html">
|
|
|
|
|
{ attachments_url && !!attachments_url.length &&
|
|
|
|
|
this.renderAttachment()
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
<span className="add_attachment">
|
|
|
|
|
<input className="file_selector" data-are-you-sure="您确定要删除吗?"
|
|
|
|
|
data-delete-all-files="您确定要删除所有文件吗" data-description-placeholder="可选的描述"
|
|
|
|
|
data-field-is-public="公开" data-file-count="个文件已上传"
|
|
|
|
|
data-lebel-file-uploding="个文件正在上传" data-max-concurrent-uploads="2"
|
|
|
|
|
data-max-file-size-message="该文件无法上传。超过文件大小限制 (50 MB),建议上传到百度云等其他共享工具里,然后在txt文档里给出链接以及共享密码并上传"
|
|
|
|
|
data-max-file-size="52428800" data-upload-path="/uploads.js" id="_file"
|
|
|
|
|
multiple="multiple" name="attachments[dummy][file]"
|
|
|
|
|
onChange={()=>{debugger;window.addInputFiles( window.$('.file_selector')[0] ) }}
|
|
|
|
|
style={{'display':'none'}} type="file">
|
|
|
|
|
</input>
|
|
|
|
|
</span>
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
<div className={"color-red"}>不能为空</div>
|
|
|
|
|
<div className="df uploadBtn">
|
|
|
|
|
<a href="javascript:void(0);" className="fl" onClick={() => window.$('#_file').click()}
|
|
|
|
|
data-tip-down="请选择文件上传">
|
|
|
|
@ -326,6 +278,36 @@ class PackageIndexNEIBannerConcent extends Component {
|
|
|
|
|
</a>
|
|
|
|
|
<span style={{ fontSize: "14px"}}>(最多可添加 <span className={"color-orange06"}>5</span> 个图片/文件,每个大小不超过 <span className={"color-orange06"}>10MB</span>)</span>
|
|
|
|
|
</div>
|
|
|
|
|
<form className="newForm newFormbox mt10 mb20">
|
|
|
|
|
<span id={`attachments_fields`} className="attachments_fields"
|
|
|
|
|
xmlns="http://www.w3.org/1999/html">
|
|
|
|
|
</span>
|
|
|
|
|
<span className="add_attachment">
|
|
|
|
|
<input className="file_selector"
|
|
|
|
|
data-are-you-sure="您确定要删除吗?"
|
|
|
|
|
data-delete-all-files="您确定要删除所有文件吗"
|
|
|
|
|
data-description-placeholder="可选的描述"
|
|
|
|
|
data-field-is-public="公开"
|
|
|
|
|
data-file-count="个文件已上传"
|
|
|
|
|
data-lebel-file-uploding="个文件正在上传"
|
|
|
|
|
data-max-concurrent-uploads="2"
|
|
|
|
|
data-max-file-size-message="该文件无法上传。超过文件大小限制 (10 MB),建议上传到百度云等其他共享工具里,然后在txt文档里给出链接以及共享密码并上传"
|
|
|
|
|
data-max-file-size="10485760" data-upload-path="/uploads.js"
|
|
|
|
|
id="_file"
|
|
|
|
|
multiple="multiple" name="attachments[dummy][file]"
|
|
|
|
|
onChange={() => {
|
|
|
|
|
debugger;
|
|
|
|
|
console.log(window.$('.file_selector')[0])
|
|
|
|
|
window.addInputFiles(window.$('.file_selector')[0])
|
|
|
|
|
}}
|
|
|
|
|
style={{'display': 'none'}} type="file">
|
|
|
|
|
</input>
|
|
|
|
|
</span>
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
@ -347,6 +329,10 @@ class PackageIndexNEIBannerConcent extends Component {
|
|
|
|
|
value={this.state.deadline_at}
|
|
|
|
|
onChange={this.onChangeTimePicker}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<div className={"color-red ml100"}>不能为空</div>
|
|
|
|
|
|
|
|
|
|
<div className={"color-red ml100"}>不能早于当前时间</div>
|
|
|
|
|
</p>
|
|
|
|
|
<p className="clearfix mb20 shaiContent">
|
|
|
|
|
<span className="shaiTitle fl mt5 ml10">支付费用:</span>
|
|
|
|
@ -372,6 +358,9 @@ class PackageIndexNEIBannerConcent extends Component {
|
|
|
|
|
<span>¥</span>
|
|
|
|
|
}
|
|
|
|
|
/>
|
|
|
|
|
<div className={"color-red ml100"}>不能为空</div>
|
|
|
|
|
<div className={"color-red ml100"}>不能小于零</div>
|
|
|
|
|
<div className={"color-red ml100"}>最高费用不能小于最低费用</div>
|
|
|
|
|
</p>
|
|
|
|
|
<div className="ant-form-item-label mb10">
|
|
|
|
|
<label htmlFor="coursesNew_description" className="ant-form-item-required font-16" >联系方式</label>
|
|
|
|
@ -385,6 +374,7 @@ class PackageIndexNEIBannerConcent extends Component {
|
|
|
|
|
placeholder="请输入姓名"
|
|
|
|
|
onInput={this.onChangeContact_name}
|
|
|
|
|
/>
|
|
|
|
|
<div className={"color-red ml100"}>不能为空</div>
|
|
|
|
|
</p>
|
|
|
|
|
{modalCancel===false?<p className="clearfix mb20 shaiContent">
|
|
|
|
|
<span className="shaiTitle fl mt5 ml25">手机号:</span>
|
|
|
|
@ -413,6 +403,8 @@ class PackageIndexNEIBannerConcent extends Component {
|
|
|
|
|
placeholder="请输入手机号码"
|
|
|
|
|
onInput={this.onChangeContact_phone}
|
|
|
|
|
/>
|
|
|
|
|
<div className={"color-red ml100"}>不能为空</div>
|
|
|
|
|
<div className={"color-red ml100"}>请输入正确的手机号</div>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<span className="shaiTitle mt5 ml17 fl">
|
|
|
|
@ -427,6 +419,8 @@ class PackageIndexNEIBannerConcent extends Component {
|
|
|
|
|
onSearch={()=>this.getverificationcode()}
|
|
|
|
|
onInput={this.onChangeCode}
|
|
|
|
|
/>
|
|
|
|
|
<div className={"color-red"}>验证码不能为空</div>
|
|
|
|
|
<div className={"color-red"}>验证码不正确</div>
|
|
|
|
|
</span>
|
|
|
|
|
<span>
|
|
|
|
|
{/*<Button type="primary" className="defalutSubmitbtn ml10 defalutSubmitbtnmodels">重新发送()</Button>*/}
|
|
|
|
|