!2147 优化:画廊列表展示没有全景图链接不展示全景图漫游按钮

pull/2142/MERGE
林三 2 years ago committed by ChenX
parent 7787f3aa1c
commit f776a7bfbe

@ -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>

Loading…
Cancel
Save