diff --git a/public/react/src/common/DateUtil.js b/public/react/src/common/DateUtil.js
new file mode 100644
index 00000000..652b72eb
--- /dev/null
+++ b/public/react/src/common/DateUtil.js
@@ -0,0 +1,46 @@
+import moment from "moment";
+
+// 处理整点 半点
+// 取传入时间往后的第一个半点
+export function handleDateString(dateString) {
+ if (!dateString) return dateString;
+ const ar = dateString.split(':')
+ if (ar[1] == '00' || ar[1] == '30') {
+ return dateString
+ }
+ const miniute = parseInt(ar[1]);
+ if (miniute < 30 || miniute == 60) {
+ return [ar[0], '30'].join(':')
+ }
+ if (miniute < 60) {
+ // 加一个小时
+ const tempStr = [ar[0], '00'].join(':');
+ const format = "YYYY-MM-DD HH:mm";
+ const _moment = moment(tempStr, format)
+ _moment.add(1, 'hours')
+ return _moment.format(format)
+ }
+
+ return dateString
+}
+
+// 给moment对象取下一个半点或整点
+export function getNextHalfHourOfMoment(moment) {
+ if (!moment) {
+ return moment
+ }
+ const minutes = moment.minutes()
+ if (minutes < 30) {
+ moment.minutes(30)
+ } else if (minutes < 60) {
+ moment.minutes(0).add(1, 'hours')
+ }
+ return moment
+}
+
+export function formatDuring(mss){
+ var days = parseInt(mss / (1000 * 60 * 60 * 24));
+ var hours = parseInt((mss % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
+ var minutes = parseInt((mss % (1000 * 60 * 60)) / (1000 * 60));
+ return days + "天" + hours + "小时" + minutes + "分";
+}
\ No newline at end of file
diff --git a/public/react/src/common/educoder.js b/public/react/src/common/educoder.js
index 41efb375..e25ecb9d 100644
--- a/public/react/src/common/educoder.js
+++ b/public/react/src/common/educoder.js
@@ -13,6 +13,8 @@ export { updatePageParams as updatePageParams } from './RouterUti
export { bytesToSize as bytesToSize } from './UnitUtil';
+export { handleDateString, getNextHalfHourOfMoment,formatDuring } from './DateUtil'
+
export { isDev as isDev } from './Env'
export { toStore as toStore, fromStore as fromStore } from './Store'
diff --git a/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js b/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js
index 2ba39f9c..0902bcc4 100644
--- a/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js
+++ b/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js
@@ -92,7 +92,10 @@ class PackageConcent extends Component {
diff --git a/public/react/src/modules/projectPackages/PackageIndexNEITaskDetails/PackageIndexNEITaskDetails.js b/public/react/src/modules/projectPackages/PackageIndexNEITaskDetails/PackageIndexNEITaskDetails.js
new file mode 100644
index 00000000..772d2f3c
--- /dev/null
+++ b/public/react/src/modules/projectPackages/PackageIndexNEITaskDetails/PackageIndexNEITaskDetails.js
@@ -0,0 +1,258 @@
+import React, {Component} from 'react';
+import {Link} from "react-router-dom";
+import axios from 'axios';
+import { Input ,Icon,Button,Pagination,DatePicker,Breadcrumb} from 'antd';
+import { handleDateString} from 'educoder';
+import locale from 'antd/lib/date-picker/locale/zh_CN';
+import MDEditors from '../MDEditors';
+import PhoneModel from '../PackageIndexNewandEdit/PhoneModel';
+import '../packageconcnet.css';
+const { Search } = Input;
+
+class PackageIndexNEITaskDetails extends Component {
+ constructor(props) {
+ super(props)
+ this.contentMdRef = React.createRef();
+ this.state = {
+ modalCancel:false
+ }
+ }
+
+ componentDidMount() {
+
+
+ }
+
+ setclick=()=>{
+ const mdContnet = this.contentMdRef.current.getValue().trim();
+ console.log(mdContnet)
+ }
+
+ onChangeTimePicker = (value, dateString) => {
+ this.setState({
+ TimePickervalue: dateString
+ })
+ }
+
+ setPublication=()=>{
+ this.props.setPublicationfun()
+ }
+
+ modalCancel=()=>{
+ this.setState({
+ modalCancel:false
+ })
+ }
+
+ editmodels=()=>{
+ this.setState({
+ modalCancel:true
+ })
+ }
+
+
+ render() {
+ let {modalCancel}=this.state;
+ return (
+
+
+
+
+
'}>
+ Home
+
+ Application Center
+
+ An Application
+
+
+
+
+
+
+
+
+
+
+
+
+ {/*
*/}
+ {/*
*/}
+ {/*
*/}
+ {/*
待发布 */}
+ {/*
*/}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ¥8000.00~¥8000.00
+
+
+
+
+
+
+
+
+ 发布时间:2019-03-05 12:23
+
+
+ 竞标截止时间:2019-09-12 24:00
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 竞标截止:
+
+
+
+ 支付费用:
+ ¥
+ }
+ />
+ ~
+ ¥
+ }
+ />
+
+
+
+
+
+ 姓名:
+
+
+
+ 手机号:
+
+
+ this.editmodels()}>
+
+
+
+
+
+
+ {/*未注册才显示!*/}
+
+ 手机号:
+
+
+
+
+
+ 获取验证码}
+ />
+
+
+
+ {/**/}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ )
+ }
+}
+
+export default PackageIndexNEITaskDetails;
+
diff --git a/public/react/src/modules/projectPackages/PackageIndexNewandEdit/PackageIndexNEIBanner.js b/public/react/src/modules/projectPackages/PackageIndexNewandEdit/PackageIndexNEIBanner.js
index 0f3d86b7..ffb28d3d 100644
--- a/public/react/src/modules/projectPackages/PackageIndexNewandEdit/PackageIndexNEIBanner.js
+++ b/public/react/src/modules/projectPackages/PackageIndexNewandEdit/PackageIndexNEIBanner.js
@@ -1,7 +1,6 @@
import React, {Component} from 'react';
import {Link} from "react-router-dom";
import { Steps, Divider } from 'antd';
-import 'antd/dist/antd.css';
const { Step } = Steps;
class PackageIndexNEIBanner extends Component {
diff --git a/public/react/src/modules/projectPackages/PackageIndexNewandEdit/PackageIndexNEIBannerConcent.js b/public/react/src/modules/projectPackages/PackageIndexNewandEdit/PackageIndexNEIBannerConcent.js
index 22032639..85fc4bee 100644
--- a/public/react/src/modules/projectPackages/PackageIndexNewandEdit/PackageIndexNEIBannerConcent.js
+++ b/public/react/src/modules/projectPackages/PackageIndexNewandEdit/PackageIndexNEIBannerConcent.js
@@ -2,8 +2,10 @@ import React, {Component} from 'react';
import {Link} from "react-router-dom";
import axios from 'axios';
import { Input ,Icon,Button,Pagination,DatePicker} from 'antd';
+import { handleDateString} from 'educoder';
import locale from 'antd/lib/date-picker/locale/zh_CN';
import MDEditors from '../MDEditors';
+import PhoneModel from './PhoneModel';
import '../packageconcnet.css';
const { Search } = Input;
@@ -12,7 +14,7 @@ class PackageIndexNEIBannerConcent extends Component {
super(props)
this.contentMdRef = React.createRef();
this.state = {
-
+ modalCancel:false
}
}
@@ -32,9 +34,31 @@ class PackageIndexNEIBannerConcent extends Component {
})
}
+ setPublication=()=>{
+ this.props.setPublicationfun()
+ }
+
+ modalCancel=()=>{
+ this.setState({
+ modalCancel:false
+ })
+ }
+
+ editmodels=()=>{
+ this.setState({
+ modalCancel:true
+ })
+ }
+
+
render() {
+ let {modalCancel}=this.state;
return (
-
+
+
@@ -93,17 +117,13 @@ class PackageIndexNEIBannerConcent extends Component {
id="_file"
multiple="multiple" name="attachments[dummy][file]"
onChange={() => {
- debugger;
+ // debugger;
window.addInputFiles(window.$('.file_selector')[0])
}}
style={{'display': 'none'}} type="file">
-
-
-
-
@@ -146,7 +166,7 @@ class PackageIndexNEIBannerConcent extends Component {
onChange={this.onChangeTimePicker}
suffix={
-
¥
+
¥
}
/>
@@ -168,21 +188,56 @@ class PackageIndexNEIBannerConcent extends Component {
-
+ this.editmodels()}>
+
+
+
+
+ {/*未注册才显示!*/}
+
+ 手机号:
+
+
+
+
+
+ 获取验证码}
+ />
+
+
+
+ {/**/}
+
+
+
+
+