|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
import { Button, Card, Icon, Intent, Tag } from '@blueprintjs/core';
|
|
|
|
|
import React, { Component, CSSProperties } from 'react';
|
|
|
|
|
import { CURRENT_HOST } from '../../../../Common/HostUrl';
|
|
|
|
|
import { getFileSize } from '../../../../Common/Utils';
|
|
|
|
|
import GalleryStore from '../GalleryStore';
|
|
|
|
|
import { IGalleryItem } from '../interface/GalleryInterfaces';
|
|
|
|
|
import { State, StateIcon } from '../StateIcon';
|
|
|
|
@ -58,7 +59,7 @@ export default class GalleryItem extends Component<GalleryItemProps>
|
|
|
|
|
<span><Icon icon='user' /> {this.props.item.login_name}</span>
|
|
|
|
|
<span><Icon icon='shop' /> {this.props.item.shop_name}</span>
|
|
|
|
|
<span><Icon icon='flame' /> {this.props.item.hot}</span>
|
|
|
|
|
<span><Icon icon='document' /> {(Number(this.props.item.size) / 1024).toFixed(2)}M</span>
|
|
|
|
|
<span><Icon icon='document' />{getFileSize(Number.parseInt(this.props.item.size))}</span>
|
|
|
|
|
<span>{this.props.item.create_date}</span>
|
|
|
|
|
<Button text='免费使用' intent={Intent.PRIMARY} onClick={async () => { await this.GalleryStore.OpenGallery(this.props.item.gallery_id); }} />
|
|
|
|
|
</div>
|
|
|
|
|