Sfoglia il codice sorgente

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/estateagents-admin-manager into dev

# Conflicts:
#	src/pages/activity/drainage/DrainageList.jsx
魏超 5 anni fa
parent
commit
96def88666

+ 2
- 1
src/pages/h5SampleManager/h5Sample/detail.jsx Vedi File

@@ -103,7 +103,8 @@ const header = props => {
103 103
           <DragableUploadImageList sampleId={sampleId}></DragableUploadImageList>
104 104
         </Form.Item>}
105 105
         <Form.Item label="样例内容">
106
-          {demandData.sampleType === 'rich' ? getFieldDecorator('sampleContent')(<Wangedit contenteditable={false} />) : getFieldDecorator('sampleContentLink')(<a style={{ color: "blue" }} href={demandData.sampleContentLink} target="_blank" >{demandData.sampleContentLink}</a>)}
106
+          {demandData.sampleType === 'link' && <div><span style={{ color: 'rgba(0, 0, 0, 0.45)', fontSize: '14px' }}>点击链接查看内容</span><br/></div>}
107
+          {demandData.sampleType === 'rich' ? getFieldDecorator('sampleContent')(<div dangerouslySetInnerHTML={{ __html: demandData.sampleContent}}></div>) : getFieldDecorator('sampleContentLink')(<a style={{ color: "blue" }} href={demandData.sampleContentLink} target="_blank" >{demandData.sampleContentLink}</a>)}
107 108
         </Form.Item>
108 109
         <Form.Item wrapperCol={{ span: 15, offset: 7 }}>
109 110
           <div style={{ margin: '0.16rem 0 0.06rem' }}>

+ 5
- 8
src/pages/h5SampleManager/h5Sample/list.jsx Vedi File

@@ -60,14 +60,11 @@ function CartBody(props) {
60 60
       </div>
61 61
 
62 62
       }
63
-      <img className={Styles.cover} style={{ backgroundImage: `url(` + data.coverImg + `)` }}   ></img>
64
-      <div style={{ padding: '0.05rem 0.096rem' }}>
65
-        <p className={Styles.cardText}>
66
-          {/* <span className={Styles.title}>样例名</span> */}
67
-          <span style={{ textOverflow: 'ellipsis', whiteSpace: 'nowrap', overflow: 'hidden' }}>{data.sampleName}</span>
68
-        </p>
69
-
70
-      </div>
63
+      <img className={Styles.cover} style={{ backgroundImage: `url('` + data.coverImg + `')` }}   ></img>
64
+      <p className={Styles.cardText} style={{ padding: '0.05rem 0.096rem' }}>
65
+        {/* <span className={Styles.title}>样例名</span> */}
66
+        <span style={{ textOverflow: 'ellipsis', whiteSpace: 'nowrap', overflow: 'hidden' }}>{data.sampleName}</span>
67
+      </p>
71 68
     </Card>
72 69
   )
73 70
 }

+ 1
- 1
src/pages/h5SampleManager/h5Sample/style.less Vedi File

@@ -77,7 +77,7 @@
77 77
 .cover{
78 78
   width: 100%;
79 79
 
80
-  padding-bottom: 56.25%;
80
+  padding-bottom: 66.8%;
81 81
   background-size: 100% 100% !important;
82 82
  
83 83
   border-radius: 12px 12px 0 0;