|
@@ -132,6 +132,7 @@ const AdvertisementList = Form.create()(
|
|
key: i + 1,
|
|
key: i + 1,
|
|
id: thisdata.id,
|
|
id: thisdata.id,
|
|
title: thisdata.title,
|
|
title: thisdata.title,
|
|
|
|
+ jumpUrl: thisdata.jumpUrl,
|
|
bannerUrl: thisdata.bannerUrl,
|
|
bannerUrl: thisdata.bannerUrl,
|
|
sort: thisdata.sort,
|
|
sort: thisdata.sort,
|
|
display: thisdata.display,
|
|
display: thisdata.display,
|
|
@@ -233,6 +234,11 @@ const AdvertisementList = Form.create()(
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ title: "跳转链接",
|
|
|
|
+ dataIndex: "jumpUrl",
|
|
|
|
+ key: "jumpUrl"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
title: "是否显示",
|
|
title: "是否显示",
|
|
dataIndex: "display",
|
|
dataIndex: "display",
|
|
key: "display",
|
|
key: "display",
|
|
@@ -340,6 +346,7 @@ const AdvertisementList = Form.create()(
|
|
this.setState({
|
|
this.setState({
|
|
id: thisdata.id,
|
|
id: thisdata.id,
|
|
title: thisdata.title,
|
|
title: thisdata.title,
|
|
|
|
+ jumpUrl: thisdata.jumpUrl,
|
|
bannerUrl: thisdata.bannerUrl
|
|
bannerUrl: thisdata.bannerUrl
|
|
? splitUrl(thisdata.bannerUrl, ",", globalConfig.avatarUploadHost)
|
|
? splitUrl(thisdata.bannerUrl, ",", globalConfig.avatarUploadHost)
|
|
: [],
|
|
: [],
|
|
@@ -462,7 +469,8 @@ const AdvertisementList = Form.create()(
|
|
bannerUrl: this.state.bannerUrl
|
|
bannerUrl: this.state.bannerUrl
|
|
? this.state.bannerUrl[0].response.data
|
|
? this.state.bannerUrl[0].response.data
|
|
: undefined,
|
|
: undefined,
|
|
- title: this.state.title
|
|
|
|
|
|
+ title: this.state.title,
|
|
|
|
+ jumpUrl: this.state.jumpUrl || undefined,
|
|
},
|
|
},
|
|
success: function(data) {
|
|
success: function(data) {
|
|
let theArr = [];
|
|
let theArr = [];
|
|
@@ -502,7 +510,8 @@ const AdvertisementList = Form.create()(
|
|
bannerUrl: this.state.bannerUrl
|
|
bannerUrl: this.state.bannerUrl
|
|
? this.state.bannerUrl[0].response.data
|
|
? this.state.bannerUrl[0].response.data
|
|
: undefined,
|
|
: undefined,
|
|
- title: this.state.title
|
|
|
|
|
|
+ title: this.state.title,
|
|
|
|
+ jumpUrl: this.state.jumpUrl || undefined,
|
|
},
|
|
},
|
|
success: function(data) {
|
|
success: function(data) {
|
|
let theArr = [];
|
|
let theArr = [];
|
|
@@ -529,6 +538,7 @@ const AdvertisementList = Form.create()(
|
|
this.setState({
|
|
this.setState({
|
|
bannerUrl: undefined,
|
|
bannerUrl: undefined,
|
|
title: undefined,
|
|
title: undefined,
|
|
|
|
+ jumpUrl: undefined,
|
|
sortNumber: undefined,
|
|
sortNumber: undefined,
|
|
display: 1,
|
|
display: 1,
|
|
position: "0"
|
|
position: "0"
|
|
@@ -685,6 +695,23 @@ const AdvertisementList = Form.create()(
|
|
</div>
|
|
</div>
|
|
<div className="clearfix">
|
|
<div className="clearfix">
|
|
<FormItem
|
|
<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"
|
|
className="half-item"
|
|
labelCol={{ span: 8 }}
|
|
labelCol={{ span: 8 }}
|
|
wrapperCol={{ span: 12 }}
|
|
wrapperCol={{ span: 12 }}
|
|
@@ -730,7 +757,7 @@ const AdvertisementList = Form.create()(
|
|
fileList={this.getOrgCodeUrl}
|
|
fileList={this.getOrgCodeUrl}
|
|
pictureUrl={this.state.bannerUrl}
|
|
pictureUrl={this.state.bannerUrl}
|
|
/>
|
|
/>
|
|
- <p>图片建议:要清晰。</p>
|
|
|
|
|
|
+ <p>图片尺寸:1920X680 图片建议:要清晰。</p>
|
|
</FormItem>
|
|
</FormItem>
|
|
</div>
|
|
</div>
|
|
<div className="clearfix">
|
|
<div className="clearfix">
|