Skip to content

Commit

Permalink
没有下单链接时隐藏按钮 (#62)
Browse files Browse the repository at this point in the history
Co-authored-by: huangdeliang <[email protected]>
  • Loading branch information
wonder-o and huangdeliang authored Mar 9, 2020
1 parent 0291e35 commit 2827a9b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/Elements/Logistics/DetailDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,11 @@ class DetailDrawer extends React.Component<{}, IDetailDrawerState> {
</div>
}
<div className={styles.order}>
<Button type="primary" onClick={this.onOrderClick}>
{Message('ORDER')}
</Button>
{data.orderUrl && (
<Button type="primary" onClick={this.onOrderClick}>
{Message('ORDER')}
</Button>
)}
</div>
</Drawer>
);
Expand Down

0 comments on commit 2827a9b

Please sign in to comment.