Commit 06093497 authored by 李腾's avatar 李腾

feat: 修改查看物流

parent 8e038f49
...@@ -113,13 +113,17 @@ const TableList = props => { ...@@ -113,13 +113,17 @@ const TableList = props => {
const renderContent = (record, key) => { const renderContent = (record, key) => {
if (record.mchOrderSkuVoList) { if (record.mchOrderSkuVoList) {
return record?.mchOrderSkuVoList.map((item, index) => ( return record?.mchOrderSkuVoList.map((item, index) => {
const tableContentHeight = item?.expressList?.length || 1;
return (
<div <div
// eslint-disable-next-line prefer-template
style={{ height: tableContentHeight * 60 + 'px' }}
className={[ className={[
'tableContent', 'tableContent',
index < record?.mchOrderSkuVoList?.length - 1 ? 'border' : null, index < record?.mchOrderSkuVoList?.length - 1 ? 'border' : null,
].join(' ')} ].join(' ')}
// style={{ height: `${(item.expressList?.length || 1) * 60}px` }}
key={item.orderSkuId} key={item.orderSkuId}
> >
{key === 'skuName' ? <PopoverDom name={item[key]} url={item.imageUrl} /> : ''} {key === 'skuName' ? <PopoverDom name={item[key]} url={item.imageUrl} /> : ''}
...@@ -167,13 +171,14 @@ const TableList = props => { ...@@ -167,13 +171,14 @@ const TableList = props => {
handleCom(record, item); handleCom(record, item);
}} }}
> >
查看物流1 查看物流
</Button> </Button>
) : ( ) : (
item[key] item[key]
)} )}
</div> </div>
)); );
});
} }
return ''; return '';
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment