liting2017 6 роки тому
батько
коміт
2e70e2aa43

+ 1 - 1
js/component/account/index/collection.less

@@ -33,7 +33,7 @@
 				box-sizing: border-box;
 				border: 1px solid rgba(180, 182, 182, 0.5);
 				position: relative;
-				height: 320px;
+				height: 270px;
 				width: 100%;
 				.imgBj{
 					box-sizing: border-box;

+ 3 - 3
js/component/administration/news/newForm.jsx

@@ -255,7 +255,7 @@ const NewDetailForm = Form.create()(React.createClass({
 							{getFieldDecorator('title', {
 								rules: [ { required: true, message: '此项为必填项!' } ],
 								initialValue: theData.title
-							})(<Input placeholder="请输入您的新闻标题" />)}
+							})(<Input placeholder="请输入您的新闻标题" maxLength={40} />)}
 						</FormItem>
 						<FormItem className="half-item" {...formItemLayout} label="新闻类型">
 							{getFieldDecorator('type', {
@@ -286,7 +286,7 @@ const NewDetailForm = Form.create()(React.createClass({
 							{getFieldDecorator('source', {
 								rules: [ { required: true, message: '此项为必填项!' } ],
 								initialValue: theData.source
-							})(<Input placeholder="请输入新闻来源" />)}
+							})(<Input placeholder="请输入新闻来源" maxLength={45} />)}
 						</FormItem>
 						<FormItem className="half-item" {...formItemLayout} label="来源链接">
 							{getFieldDecorator('sourceUrl', {
@@ -326,7 +326,7 @@ const NewDetailForm = Form.create()(React.createClass({
 							{getFieldDecorator('summary', {
 								rules: [ { required: true, message: '此项为必填项!' } ],
 								initialValue: theData.summary
-							})(<Input type="textarea" rows={4} placeholder="输入新闻简介" />)}
+							})(<Input type="textarea" rows={4} maxLength={144} placeholder="输入新闻简介" />)}
 						</FormItem>
 					</div>
 					<div className="clearfix">

+ 3 - 3
js/component/administration/policy/policyForm.jsx

@@ -246,7 +246,7 @@ const NewDetailForm = Form.create()(React.createClass({
 							{getFieldDecorator('title', {
 								rules: [ { required: true, message: '此项为必填项!' } ],
 								initialValue: theData.title
-							})(<Input placeholder="请输入您的政策政策标题" />)}
+							})(<Input placeholder="请输入您的政策政策标题" maxLength={40}/>)}
 						</FormItem>
 					</div>
 					<div className="clearfix">
@@ -265,7 +265,7 @@ const NewDetailForm = Form.create()(React.createClass({
 							{getFieldDecorator('source', {
 								rules: [ { required: true, message: '此项为必填项!' } ],
 								initialValue: theData.source
-							})(<Input placeholder="请输政策来源" />)}
+							})(<Input placeholder="请输政策来源" maxLength={45} />)}
 						</FormItem>
 						<FormItem className="half-item" {...formItemLayout} label="来源链接">
 							{getFieldDecorator('sourceUrl', {
@@ -306,7 +306,7 @@ const NewDetailForm = Form.create()(React.createClass({
 							{getFieldDecorator('summary', {
 								rules: [ { required: true, message: '此项为必填项!' } ],
 								initialValue: theData.summary
-							})(<Input type="textarea" rows={4} placeholder="输入政策简介" />)}
+							})(<Input type="textarea" rows={4} maxLength={144}  placeholder="输入政策简介" />)}
 						</FormItem>
 					</div>
 					<div className="clearfix">

+ 7 - 9
js/component/administration/product/proForm.jsx

@@ -163,7 +163,7 @@ const NewDetailForm = Form.create()(React.createClass({
 							{getFieldDecorator('title', {
 								rules: [ { required: true, message: '此项为必填项!' } ],
 								initialValue: theData.title
-							})(<Input placeholder="请输入您的专栏标题" />)}
+							})(<Input placeholder="请输入您的专栏标题" maxLength={40}/>)}
 						</FormItem>
 						<FormItem className="half-item" {...formItemLayout} label="产品类型">
 							{getFieldDecorator('category', {
@@ -183,13 +183,8 @@ const NewDetailForm = Form.create()(React.createClass({
 							{getFieldDecorator('source', {
 								rules: [ { required: true, message: '此项为必填项!' } ],
 								initialValue: theData.source
-							})(<Input placeholder="请输入来源" />)}
+							})(<Input placeholder="请输入来源" maxLength={45} />)}
 						</FormItem>
-						{/* <FormItem className="half-item" {...formItemLayout} label="来源链接">
-							{getFieldDecorator('sourceUrl', {
-								initialValue: theData.sourceUrl
-							})(<Input placeholder="请输入来源链接" />)}
-						</FormItem> */}
 					</div>
 					<div className="clearfix">
 						<FormItem  labelCol={{ span: 3 }} wrapperCol={{ span: 18 }} label="关键字">
@@ -202,7 +197,10 @@ const NewDetailForm = Form.create()(React.createClass({
 						</FormItem>
 					</div>
 					<div className="clearfix">
-						<FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 18 }} label="专栏图片">
+						<FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 18 }} label={<span>
+														<strong style={{ color: '#f00' }}> * </strong>
+														<span>专栏图片</span>
+													</span>}>
 							<Crop 
 								getAllImg={(e)=>{this.setState({pictureUrl:e})}}
 								number = {1} 
@@ -218,7 +216,7 @@ const NewDetailForm = Form.create()(React.createClass({
 							{getFieldDecorator('summary', {
 								rules: [ { required: true, message: '此项为必填项!' } ],
 								initialValue: theData.summary
-							})(<Input type="textarea" rows={4} placeholder="输入简介" />)}
+							})(<Input type="textarea" rows={4} maxLength={144} placeholder="输入简介" />)}
 						</FormItem>
 					</div>
 					<div className="clearfix">