|
@@ -230,9 +230,20 @@ const AdvertisementList = Form.create()(
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
+ title: "跳转地址",
|
|
|
+ dataIndex: "jumpUrl",
|
|
|
+ key: "jumpUrl",
|
|
|
+ render: r => {
|
|
|
+ return (
|
|
|
+ <span>{r === 'javascript:;' ? '' : r}</span>
|
|
|
+ )
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
title: "公司",
|
|
|
dataIndex: "locations",
|
|
|
key: "locations",
|
|
|
+ width:150,
|
|
|
render: r => {
|
|
|
let text = '';
|
|
|
r && r.map((v,i)=>(
|
|
@@ -360,6 +371,7 @@ const AdvertisementList = Form.create()(
|
|
|
this.setState({
|
|
|
id: thisdata.id,
|
|
|
title: thisdata.title,
|
|
|
+ jumpUrl: thisdata.jumpUrl === 'javascript:;' ? undefined : thisdata.jumpUrl,
|
|
|
bannerUrl: thisdata.bannerUrl
|
|
|
? splitUrl(thisdata.bannerUrl, ",", globalConfig.avatarUploadHost)
|
|
|
: [],
|
|
@@ -490,7 +502,8 @@ const AdvertisementList = Form.create()(
|
|
|
bannerUrl: this.state.bannerUrl
|
|
|
? this.state.bannerUrl[0].response.data
|
|
|
: undefined,
|
|
|
- title: this.state.title
|
|
|
+ title: this.state.title,
|
|
|
+ jumpUrl: this.state.jumpUrl || 'javascript:;',
|
|
|
},
|
|
|
success: function(data) {
|
|
|
let theArr = [];
|
|
@@ -536,7 +549,8 @@ const AdvertisementList = Form.create()(
|
|
|
bannerUrl: this.state.bannerUrl
|
|
|
? this.state.bannerUrl[0].response.data
|
|
|
: undefined,
|
|
|
- title: this.state.title
|
|
|
+ title: this.state.title,
|
|
|
+ jumpUrl: this.state.jumpUrl || 'javascript:;',
|
|
|
},
|
|
|
success: function(data) {
|
|
|
let theArr = [];
|
|
@@ -564,6 +578,7 @@ const AdvertisementList = Form.create()(
|
|
|
this.setState({
|
|
|
bannerUrl: undefined,
|
|
|
title: undefined,
|
|
|
+ jumpUrl: undefined,
|
|
|
sortNumber: undefined,
|
|
|
display: 1,
|
|
|
position: "0",
|
|
@@ -742,6 +757,23 @@ const AdvertisementList = Form.create()(
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
|
+ className="half-item"
|
|
|
+ labelCol={{ span: 8 }}
|
|
|
+ wrapperCol={{ span: 12 }}
|
|
|
+ label="跳转地址"
|
|
|
+ >
|
|
|
+ <Input
|
|
|
+ placeholder="请输入跳转地址"
|
|
|
+ value={this.state.jumpUrl}
|
|
|
+ onChange={e => {
|
|
|
+ this.setState({ jumpUrl: e.target.value });
|
|
|
+ }}
|
|
|
+ style={{ width: "240px" }}
|
|
|
+ />
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+ <div className="clearfix">
|
|
|
+ <FormItem
|
|
|
className="half-item"
|
|
|
labelCol={{ span: 8 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
@@ -816,7 +848,7 @@ const AdvertisementList = Form.create()(
|
|
|
fileList={this.getOrgCodeUrl}
|
|
|
pictureUrl={this.state.bannerUrl}
|
|
|
/>
|
|
|
- <p>图片建议:要清晰。</p>
|
|
|
+ <p>建议尺寸:1920X680 图片建议:要清晰。</p>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|