소스 검색

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

xujing 5 년 전
부모
커밋
dea23cb320
2개의 변경된 파일8개의 추가작업 그리고 7개의 파일을 삭제
  1. 2
    1
      src/pages/h5SampleManager/h5Sample/components/ContactInfo.jsx
  2. 6
    6
      src/pages/h5SampleManager/h5Sample/detail.jsx

+ 2
- 1
src/pages/h5SampleManager/h5Sample/components/ContactInfo.jsx 파일 보기

@@ -82,11 +82,12 @@ class TypeForm extends React.Component {
82 82
                   <div className={styles.right}>{this.props.type.address}</div>
83 83
                 </div>}
84 84
               </div>
85
+              {this.props.type.avatar != null &&
85 86
               <div style={{ textAlign: 'center' }}>
86 87
                 <img src={this.props.type.wxCardImg} height="80px" width="80px" />
87 88
                 <p style={{ margin: ' 0px', fontSize: '0.096rem', color: '#666' }}>扫码添加微信好友</p>
88 89
                 <p sstyle={{ margin: ' 0px', fontSize: '0.096rem', color: '#666' }}>备注H5活动咨询</p>
89
-              </div>
90
+              </div>}
90 91
             </div>
91 92
           </Form>
92 93
         </Col>

+ 6
- 6
src/pages/h5SampleManager/h5Sample/detail.jsx 파일 보기

@@ -82,16 +82,16 @@ const header = props => {
82 82
         <Form.Item label="样例名">
83 83
           <span>{demandData.sampleName}</span>
84 84
         </Form.Item>
85
-        <Form.Item label="样例体验链接">
85
+        {demandData.sampleTryLink != '' && demandData.sampleTryLink != null && <Form.Item label="样例体验链接">
86 86
           <span>{demandData.sampleTryLink}</span><span style={{marginLeft:'10px'}}><a onClick={(e) => copyLink(demandData.sampleTryLink)} style={{ color: 'orange' }}> <img src={copyImg} height="16px" width="14px" /> 复制链接</a></span>
87
-        </Form.Item>
88
-        <Form.Item label="样例体验小程序码/二维码" help="请使用微信扫码查看样例体验">
87
+        </Form.Item>}
88
+        {demandData.sampleTryCode != '' && demandData.sampleTryCode != null &&<Form.Item label="样例体验小程序码/二维码" help="请使用微信扫码查看样例体验">
89 89
             <img src={demandData.sampleTryCode} height="100px" width="120px" />
90
-        </Form.Item>
91
-        <Form.Item label="联系人">
90
+        </Form.Item>}
91
+        {demandData.taContactList != null &&demandData.taContactList != ''   && <Form.Item label="联系人">
92 92
             <span style={{color:'rgba(0, 0, 0, 0.45)', fontSize:'14px'}}>若您想在您的小程序举办类似活动,请联系以下联系人咨询,或直接点击底部的 提交需求 按钮下单,下单后与联系人沟通定制活动</span>
93 93
             <DragableUploadImageList sampleId={sampleId}></DragableUploadImageList>
94
-        </Form.Item>
94
+        </Form.Item>}
95 95
         <Form.Item label="样例内容">
96 96
             {demandData.sampleType === 'rich' ? getFieldDecorator('sampleContent')(<Wangedit contenteditable={false}/>) : getFieldDecorator('sampleContentLink')(<a href={demandData.sampleContentLink} target="_blank">{demandData.sampleContentLink}</a>)}
97 97
         </Form.Item>