|
|
|
@ -69,16 +69,18 @@ export default class GalleryItem extends Component<GalleryItemProps>
|
|
|
|
|
<span><Icon icon='flame' /> {this.props.item.hot}</span>
|
|
|
|
|
<span><Icon icon='document' />{getFileSize(Number.parseInt(this.props.item.size))}</span>
|
|
|
|
|
<span>{this.props.item.create_date}</span>
|
|
|
|
|
<div className='panoramaButton'>
|
|
|
|
|
<Button
|
|
|
|
|
text='全景图漫游'
|
|
|
|
|
onClick={() =>
|
|
|
|
|
{
|
|
|
|
|
if (this.props.item.pano_url)
|
|
|
|
|
window.open(this.props.item.pano_url);
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
{
|
|
|
|
|
this.props.item.pano_url && <div className='panoramaButton'>
|
|
|
|
|
<Button
|
|
|
|
|
text='全景图漫游'
|
|
|
|
|
onClick={() =>
|
|
|
|
|
{
|
|
|
|
|
if (this.props.item.pano_url)
|
|
|
|
|
window.open(this.props.item.pano_url);
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
<Button text='免费使用' intent={Intent.PRIMARY} onClick={async () => { await this.GalleryStore.OpenGallery(this.props.item.gallery_id); }} />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|