|
@@ -33,7 +33,7 @@ const Avatar = React.createClass({
|
|
name={this.props.name}
|
|
name={this.props.name}
|
|
showUploadList={false}
|
|
showUploadList={false}
|
|
action={globalConfig.context + "/api/admin/news/upload"}
|
|
action={globalConfig.context + "/api/admin/news/upload"}
|
|
- data={{ 'sign': this.props.sign }}
|
|
|
|
|
|
+ data={{ 'sign':'news_title_picture' }}
|
|
beforeUpload={beforeUpload}
|
|
beforeUpload={beforeUpload}
|
|
onChange={this.handleChange} >
|
|
onChange={this.handleChange} >
|
|
{
|
|
{
|
|
@@ -417,7 +417,7 @@ const News = React.createClass({
|
|
<div className="modal-box" style={{ position: 'absolute', right: '0', width: '480px' }}>
|
|
<div className="modal-box" style={{ position: 'absolute', right: '0', width: '480px' }}>
|
|
<span className="modal-box-title">标题图片</span>
|
|
<span className="modal-box-title">标题图片</span>
|
|
<div className="modal-box-detail clearfix" style={{ width: '360px' }}>
|
|
<div className="modal-box-detail clearfix" style={{ width: '360px' }}>
|
|
- <Avatar sign={'news'} visible={this.state.visible}
|
|
|
|
|
|
+ <Avatar sign={'news_title_picture'} visible={this.state.visible}
|
|
imageUrl={this.state.RowData.titleImg ? (globalConfig.avatarHost + "/upload" + this.state.RowData.titleImg) : null}
|
|
imageUrl={this.state.RowData.titleImg ? (globalConfig.avatarHost + "/upload" + this.state.RowData.titleImg) : null}
|
|
urlData={(url) => { this.state.RowData.titleImg = url }} />
|
|
urlData={(url) => { this.state.RowData.titleImg = url }} />
|
|
</div>
|
|
</div>
|