|
@@ -291,7 +291,7 @@ export default class SupportCreatePage extends Component {
|
|
|
pageSize={resource.pageSize}
|
|
|
totalSize={resource.totalSize}
|
|
|
multiple={!isCover}
|
|
|
- selectorName={isCover ? 'PictureSingle' : 'Index'}
|
|
|
+ selectorName={isCover ? 'PictureSingle' : 'Picture'}
|
|
|
onCancel={() => this.handleSelectorCancel(isCover ? 'cover' : 'carousel')}
|
|
|
onChange={data => this.handleSelectorChange(isCover ? 'cover' : 'carousel', data)}
|
|
|
onFinish={rows => this.handleSelectorFinish(isCover ? 'cover' : 'carousel', rows)}
|
|
@@ -334,24 +334,6 @@ export default class SupportCreatePage extends Component {
|
|
|
</Button>
|
|
|
);
|
|
|
};
|
|
|
- const renderCoverCardName = () => {
|
|
|
- return (
|
|
|
- <div className={styles.cardName}>
|
|
|
- <span>
|
|
|
- <a onClick={() => this.handleSelectorModalShow('cover')}>配套封面</a>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- );
|
|
|
- };
|
|
|
- const renderCarouselCardName = () => {
|
|
|
- return (
|
|
|
- <div className={styles.cardName}>
|
|
|
- <span>
|
|
|
- <a onClick={() => this.handleSelectorModalShow('carousel')}>详情图册</a>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- );
|
|
|
- };
|
|
|
return (
|
|
|
<div>
|
|
|
{/* 基础信息Card */}
|
|
@@ -439,51 +421,46 @@ export default class SupportCreatePage extends Component {
|
|
|
</Form.Item>
|
|
|
</Form>
|
|
|
</Card>
|
|
|
- {/* 封面及走马灯选择Card */}
|
|
|
- <Card title="封面|图册" style={{ marginBottom: 16 }}>
|
|
|
- <Row gutter={16}>
|
|
|
- <Col
|
|
|
- md={{ span: 10, offset: 1 }}
|
|
|
- lg={{ span: 8, offset: 2 }}
|
|
|
- xl={{ span: 6, offset: 4 }}
|
|
|
- xxl={{ span: 4, offset: 5 }}
|
|
|
+ <Row gutter={16} style={{ marginBottom: 16 }}>
|
|
|
+ <Col span={12}>
|
|
|
+ <Card
|
|
|
+ title={
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ onClick={() => this.handleSelectorModalShow('cover')}
|
|
|
+ >配套封面
|
|
|
+ </Button>
|
|
|
+ }
|
|
|
+ className={styles.picCard}
|
|
|
>
|
|
|
- <Card
|
|
|
- hoverable
|
|
|
- title={renderCoverCardName()}
|
|
|
- >
|
|
|
- <div className={styles.cover}>
|
|
|
- <img src={coverUrl && genAbsolutePicUrl(coverUrl)} alt="" />
|
|
|
- </div>
|
|
|
- {!coverSelectorDestroy && getResourceModal(true)}
|
|
|
- </Card>
|
|
|
- </Col>
|
|
|
- <Col
|
|
|
- md={{ span: 10, offset: 2 }}
|
|
|
- lg={{ span: 8, offset: 4 }}
|
|
|
- xl={{ span: 6, offset: 4 }}
|
|
|
- xxl={{ span: 4, offset: 5 }}
|
|
|
+ {coverUrl && <img src={coverUrl && genAbsolutePicUrl(coverUrl)} alt="" />}
|
|
|
+ {!coverSelectorDestroy && getResourceModal(true)}
|
|
|
+ </Card>
|
|
|
+ </Col>
|
|
|
+ <Col span={12}>
|
|
|
+ <Card
|
|
|
+ title={
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ onClick={() => this.handleSelectorModalShow('carousel')}
|
|
|
+ >详情图册
|
|
|
+ </Button>
|
|
|
+ }
|
|
|
+ className={styles.carouselCard}
|
|
|
>
|
|
|
- <Card
|
|
|
- hoverable
|
|
|
- title={renderCarouselCardName()}
|
|
|
- >
|
|
|
- <div className={styles.carousel}>
|
|
|
- <Carousel autoplay>
|
|
|
- {
|
|
|
- imgList.map(
|
|
|
- path => (
|
|
|
- <img key={path} src={genAbsolutePicUrl(path)} alt="" />
|
|
|
- )
|
|
|
- )
|
|
|
- }
|
|
|
- </Carousel>
|
|
|
- </div>
|
|
|
- {!carouselSelectorDestroy && getResourceModal(false)}
|
|
|
- </Card>
|
|
|
- </Col>
|
|
|
- </Row>
|
|
|
- </Card>
|
|
|
+ <Carousel autoplay>
|
|
|
+ {
|
|
|
+ imgList.map(
|
|
|
+ path => (
|
|
|
+ <img key={path} src={genAbsolutePicUrl(path)} alt="" />
|
|
|
+ )
|
|
|
+ )
|
|
|
+ }
|
|
|
+ </Carousel>
|
|
|
+ {!carouselSelectorDestroy && getResourceModal(false)}
|
|
|
+ </Card>
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
{/* 相关周边配套选择Card */}
|
|
|
<Card title={renderSupportCardName()} style={{ marginBottom: 70 }}>
|
|
|
<AXDragSortTable
|