|
@@ -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: 'helPactivity', 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: 'helPactivity', 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) => {
|
|
@@ -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: 'helPactivity' }, }).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: 'helPactivity', 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: 'helPactivity', 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) => {
|