|
@@ -178,7 +178,7 @@ const Edit = props => {
|
178
|
178
|
if (helpActivityId) {
|
179
|
179
|
console.log(helpActivityId, 'helpActivityId')
|
180
|
180
|
useEffect(() => {
|
181
|
|
- request({ ...apis.activity.poster, params: { targetId: helpActivityId, targetType: 'activity' } }).then((data) => {
|
|
181
|
+ request({ ...apis.activity.poster, params: { targetId: helpActivityId, targetType: 'helpActivity' } }).then((data) => {
|
182
|
182
|
console.log(data, "2222")
|
183
|
183
|
if (data.length > 0) {
|
184
|
184
|
setPosterId(data[0].posterId)
|
|
@@ -206,13 +206,13 @@ const Edit = props => {
|
206
|
206
|
const submitPoster = () => {
|
207
|
207
|
if (helpActivityId) {
|
208
|
208
|
if (posterId) {
|
209
|
|
- request({ ...apis.activity.updatePoster, urlData: { id: posterId }, data: { targetId: helpActivityId, targetType: 'activity', posterImg: imgValue, posterTitle: inputValue, posterDescription: textAreaValue }, }).then((data) => {
|
|
209
|
+ request({ ...apis.activity.updatePoster, urlData: { id: posterId }, data: { targetId: helpActivityId, targetType: 'helPactivity', posterImg: imgValue, posterTitle: inputValue, posterDescription: textAreaValue }, }).then((data) => {
|
210
|
210
|
message.info("保存成功")
|
211
|
211
|
}).catch((err) => {
|
212
|
212
|
message.info(err.msg || err.message)
|
213
|
213
|
})
|
214
|
214
|
} else {
|
215
|
|
- request({ ...apis.activity.addPoster, data: { targetId: helpActivityId, targetType: 'activity', posterImg: imgValue, posterTitle: inputValue, posterDescription: textAreaValue }, }).then((data) => {
|
|
215
|
+ request({ ...apis.activity.addPoster, data: { targetId: helpActivityId, targetType: 'helPactivity', posterImg: imgValue, posterTitle: inputValue, posterDescription: textAreaValue }, }).then((data) => {
|
216
|
216
|
setPosterId(data.posterId)
|
217
|
217
|
message.info("保存成功")
|
218
|
218
|
}).catch((err) => {
|
|
@@ -264,15 +264,15 @@ const Edit = props => {
|
264
|
264
|
|
265
|
265
|
<div >
|
266
|
266
|
<div style={{ display: 'flex', width: '100%', margin: '60px 0' }}>
|
267
|
|
- <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>海报图片1</p>
|
|
267
|
+ <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>海报图片</p>
|
268
|
268
|
<ImageUploader value={imgValue} onChange={e => changeImg(e)} />
|
269
|
269
|
</div>
|
270
|
270
|
<div style={{ display: 'flex', alignItems: 'center', width: '100%', marginBottom: '60px' }}>
|
271
|
|
- <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>海报标题1</p>
|
|
271
|
+ <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>海报标题</p>
|
272
|
272
|
<Input style={{ width: '20vw' }} value={inputValue} placeholder="请输入海报标题" onChange={e => changeInput(e.target.value)} />
|
273
|
273
|
</div>
|
274
|
274
|
<div style={{ display: 'flex', margin: '10px 0 40px 0', width: '100%' }}>
|
275
|
|
- <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>海报描述1</p>
|
|
275
|
+ <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>海报描述</p>
|
276
|
276
|
<TextArea rows={5} value={textAreaValue} onChange={e => changeTextArea(e.target.value)} />
|
277
|
277
|
</div>
|
278
|
278
|
|
|
@@ -293,7 +293,7 @@ const Edit = props => {
|
293
|
293
|
|
294
|
294
|
if (helpActivityId) {
|
295
|
295
|
useEffect(() => {
|
296
|
|
- request({ ...apis.activity.shareContent, params: { targetId: helpActivityId, targetType: 'activity' }, }).then((data) => {
|
|
296
|
+ request({ ...apis.activity.shareContent, params: { targetId: helpActivityId, targetType: 'helPactivity' }, }).then((data) => {
|
297
|
297
|
console.log(data, "2222")
|
298
|
298
|
if (data.length > 0) {
|
299
|
299
|
setShareContentId(data[0].shareContentId)
|
|
@@ -309,13 +309,13 @@ const Edit = props => {
|
309
|
309
|
const submitShare = () => {
|
310
|
310
|
if (helpActivityId) {
|
311
|
311
|
if (shareContentId) {
|
312
|
|
- request({ ...apis.activity.updateShareContent, urlData: { id: shareContentId }, data: { targetId: helpActivityId, shareContentType: 'activity', shareContentImg: imgValue, shareContentTitle: inputValue }, }).then((data) => {
|
|
312
|
+ request({ ...apis.activity.updateShareContent, urlData: { id: shareContentId }, data: { targetId: helpActivityId, shareContentType: 'helPactivity', shareContentImg: imgValue, shareContentTitle: inputValue }, }).then((data) => {
|
313
|
313
|
message.info("保存成功")
|
314
|
314
|
}).catch((err) => {
|
315
|
315
|
message.info(err.msg || err.message)
|
316
|
316
|
})
|
317
|
317
|
} else {
|
318
|
|
- request({ ...apis.activity.addShareContent, data: { targetId: helpActivityId, shareContentType: 'activity', shareContentImg: imgValue, shareContentTitle: inputValue }, }).then((data) => {
|
|
318
|
+ request({ ...apis.activity.addShareContent, data: { targetId: helpActivityId, shareContentType: 'helPactivity', shareContentImg: imgValue, shareContentTitle: inputValue }, }).then((data) => {
|
319
|
319
|
setShareContentId(data.shareContentId)
|
320
|
320
|
message.info("保存成功")
|
321
|
321
|
}).catch((err) => {
|
|
@@ -329,7 +329,7 @@ const Edit = props => {
|
329
|
329
|
|
330
|
330
|
return <div style={{ padding: '20px' }}>
|
331
|
331
|
<div style={{ display: 'flex', margin: '10px 0 40px 0', width: '100%' }}>
|
332
|
|
- <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>分享模板1</p>
|
|
332
|
+ <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>分享模板</p>
|
333
|
333
|
<div>
|
334
|
334
|
<p style={{ display: 'flex', alignItems: 'center', fontSize: '14px', color: '#999', margin: '0', lineHeight: '0' }}><img src={logo} style={{ width: '22px', marginRight: '10px' }} />知与行互动</p>
|
335
|
335
|
<p style={{ fontSize: '16px', color: '#222', fontWeight: '600', margin: '0' }}>{inputValue ? inputValue : '置业V客厅 精准获客平台'}</p>
|
|
@@ -337,11 +337,11 @@ const Edit = props => {
|
337
|
337
|
</div>
|
338
|
338
|
</div>
|
339
|
339
|
<div style={{ display: 'flex', alignItems: 'center', width: '100%' }}>
|
340
|
|
- <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>分享标题1</p>
|
|
340
|
+ <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>分享标题</p>
|
341
|
341
|
<Input placeholder="请输入分享标题" value={inputValue} onChange={e => changeInput(e.target.value)} />
|
342
|
342
|
</div>
|
343
|
343
|
<div style={{ display: 'flex', width: '100%', marginTop: '40px' }}>
|
344
|
|
- <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>分享图片1</p>
|
|
344
|
+ <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>分享图片</p>
|
345
|
345
|
<ImageUploader value={imgValue} onChange={e => changeImg(e)} />
|
346
|
346
|
</div>
|
347
|
347
|
<Button type="primary" htmlType="submit" onClick={submitShare} style={{ margin: '40px 40px 40px 220px' }}> 确定</Button>
|
|
@@ -353,9 +353,9 @@ const Edit = props => {
|
353
|
353
|
<div>
|
354
|
354
|
<div>
|
355
|
355
|
<Radio.Group value={tab} buttonStyle="solid" onChange={e => changeTab(e.target.value)}>
|
356
|
|
- <Radio.Button value="basic">基本信息1</Radio.Button>
|
357
|
|
- <Radio.Button value="poster">海报图片1</Radio.Button>
|
358
|
|
- <Radio.Button value="share">分享设置1</Radio.Button>
|
|
356
|
+ <Radio.Button value="basic">基本信息</Radio.Button>
|
|
357
|
+ <Radio.Button value="poster">海报图片</Radio.Button>
|
|
358
|
+ <Radio.Button value="share">分享设置</Radio.Button>
|
359
|
359
|
</Radio.Group>
|
360
|
360
|
</div>
|
361
|
361
|
<div>
|