傅行帆 5 years ago
parent
commit
2f6a552cb4
1 changed files with 5 additions and 4 deletions
  1. 5
    4
      src/pages/sample/h5/components/H5Card.jsx

+ 5
- 4
src/pages/sample/h5/components/H5Card.jsx View File

@@ -45,9 +45,8 @@ const H5Card = props => {
45 45
       <Card
46 46
         hoverable
47 47
         style={{
48
-          minWidth: '240px',
48
+          minWidth: '300px',
49 49
           marginRight: '0.1rem',
50
-          height: '2.1rem',
51 50
           background: 'rgba(255, 255, 255, 1)',
52 51
           boxShadow: '0px 0px 16px 2px rgba(0, 0, 0, 0.12)',
53 52
           borderRadius: '12px',
@@ -56,14 +55,16 @@ const H5Card = props => {
56 55
           padding: '0.1rem'
57 56
         }}
58 57
         // style={{ width: 480,height: 450,marginTop: 50,position: "relative" }}
59
-        cover={<img width="100%" style={{ height: '1.3rem' }} alt="example" onClick={toEdit} src={h5Data.coverImg} />}
58
+        // cover={<img width="100%" style={{ height: '1.3rem' }} alt="example"  src={h5Data.coverImg} />}
60 59
         extra={<a onClick={deleteSample}>删除</a>}
61 60
         title={h5Data.status == 1 ? '已发布' : h5Data.status == 0 ? '未发布' : ''}
62 61
       >
62
+        <img onClick={toEdit} style={{ backgroundImage: `url(` + h5Data.coverImg + `)`, width: '100%', padding: '0 0 66.66% 0', marginBottom: '10px', backgroundSize: '100% 100%' }}   ></img>
63 63
         <Meta onClick={toEdit} title={h5Data.sampleName} />
64
+
64 65
         <div style={{ position: "absolute", bottom: "50px", right: "0px", margin: '20px', }}>
65 66
           {(h5Data.tags || []).map((x, i) => {
66
-            return <Tag style={{marginTop:'10px'}} color={colerArr[i]}>{x}</Tag>
67
+            return <Tag style={{ marginTop: '10px' }} color={colerArr[i]}>{x}</Tag>
67 68
           })}
68 69
         </div>
69 70
       </Card>