傅行帆 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
       <Card
45
       <Card
46
         hoverable
46
         hoverable
47
         style={{
47
         style={{
48
-          minWidth: '240px',
48
+          minWidth: '300px',
49
           marginRight: '0.1rem',
49
           marginRight: '0.1rem',
50
-          height: '2.1rem',
51
           background: 'rgba(255, 255, 255, 1)',
50
           background: 'rgba(255, 255, 255, 1)',
52
           boxShadow: '0px 0px 16px 2px rgba(0, 0, 0, 0.12)',
51
           boxShadow: '0px 0px 16px 2px rgba(0, 0, 0, 0.12)',
53
           borderRadius: '12px',
52
           borderRadius: '12px',
56
           padding: '0.1rem'
55
           padding: '0.1rem'
57
         }}
56
         }}
58
         // style={{ width: 480,height: 450,marginTop: 50,position: "relative" }}
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
         extra={<a onClick={deleteSample}>删除</a>}
59
         extra={<a onClick={deleteSample}>删除</a>}
61
         title={h5Data.status == 1 ? '已发布' : h5Data.status == 0 ? '未发布' : ''}
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
         <Meta onClick={toEdit} title={h5Data.sampleName} />
63
         <Meta onClick={toEdit} title={h5Data.sampleName} />
64
+
64
         <div style={{ position: "absolute", bottom: "50px", right: "0px", margin: '20px', }}>
65
         <div style={{ position: "absolute", bottom: "50px", right: "0px", margin: '20px', }}>
65
           {(h5Data.tags || []).map((x, i) => {
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
         </div>
69
         </div>
69
       </Card>
70
       </Card>