|
@@ -17,7 +17,7 @@ class DemandList extends Component {
|
|
|
defaultCurrent: 1,
|
|
|
defaultPageSize: 10,
|
|
|
showQuickJumper: true,
|
|
|
- pageSize: 6,
|
|
|
+ pageSize:8,
|
|
|
onChange: function (page) {
|
|
|
this.loadData(page);
|
|
|
}.bind(this),
|
|
@@ -170,13 +170,16 @@ class DemandList extends Component {
|
|
|
<Row gutter={20}>
|
|
|
{
|
|
|
this.state.dataSource.map(item=>{
|
|
|
- return <Col span={8} style={{marginBottom:10}}>
|
|
|
+ return <Col span={6} style={{marginBottom:10}}>
|
|
|
<Card>
|
|
|
- <p>优惠额 : ¥{item.money} 元</p>
|
|
|
- <p>名称 : {item.name}</p>
|
|
|
- <p>生效日期 : {item.starTime}</p>
|
|
|
- <p>截止日期 : {item.endTime}</p>
|
|
|
- <p>有效天数 : {item.durationDay}</p>
|
|
|
+ <div className="discountList">
|
|
|
+ <p>¥<span>{parseInt(item.money)}</span> 元</p>
|
|
|
+ <div className="intro">
|
|
|
+ <p>名称 : {item.name}</p>
|
|
|
+ <p>有效天数 : {item.durationDay}</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <p>有效日期 : {(item.starTime.split(' ')[0]).replace(/-/g,'.')} - {(item.endTime.split(' ')[0]).replace(/-/g,'.')}</p>
|
|
|
</Card>
|
|
|
</Col>
|
|
|
})
|