傅行帆 5 年前
父节点
当前提交
2f8f6cf819
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3
    2
      src/pages/sample/h5/components/H5Card.jsx

+ 3
- 2
src/pages/sample/h5/components/H5Card.jsx 查看文件

@@ -54,15 +54,16 @@ const H5Card = props => {
54 54
           position: 'relative',
55 55
           padding: '0.1rem'
56 56
         }}
57
+        bodyStyle={{padding:'0'}}
57 58
         // style={{ width: 480,height: 450,marginTop: 50,position: "relative" }}
58 59
         // cover={<img width="100%" style={{ height: '1.3rem' }} alt="example"  src={h5Data.coverImg} />}
59 60
         extra={<a onClick={deleteSample}>删除</a>}
60 61
         title={h5Data.status == 1 ? '已发布' : h5Data.status == 0 ? '未发布' : ''}
61 62
       >
62
-        <img onClick={toEdit} style={{ backgroundImage: `url(` + h5Data.coverImg + `)`, width: '100%', padding: '0 0 66.66% 0', marginBottom: '10px', backgroundSize: '100% 100%' }}   ></img>
63
+        <img onClick={toEdit} style={{ backgroundImage: `url('` + h5Data.coverImg + `')`, width: '100%', padding: '0 0 66.66% 0', marginBottom: '10px', backgroundSize: '100% 100%' }}   ></img>
63 64
         <Meta onClick={toEdit} title={h5Data.sampleName} />
64 65
 
65
-        <div style={{ position: "absolute", bottom: "50px", right: "0px", margin: '20px', }}>
66
+        <div style={{ position: "absolute", bottom: "50px", right: "0.1rem", }}>
66 67
           {(h5Data.tags || []).map((x, i) => {
67 68
             return <Tag style={{ marginTop: '10px' }} color={colerArr[i]}>{x}</Tag>
68 69
           })}