Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 04d35a7c
authored
Mar 24, 2023
by
姜鹏凯
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop'
2 parents
0b691bed
b4565d9e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
7 deletions
linkwe-pc/src/utils/index.js
linkwe-pc/src/views/application/shortLinkPopularize/components/IdentityAttachment.vue
linkwe-pc/src/utils/index.js
View file @
04d35a7
...
@@ -753,12 +753,16 @@ export function setAttachments(list) {
...
@@ -753,12 +753,16 @@ export function setAttachments(list) {
list
.
forEach
((
dd
)
=>
{
list
.
forEach
((
dd
)
=>
{
if
(
dd
.
msgType
===
'image'
)
{
if
(
dd
.
msgType
===
'image'
)
{
let
obj
=
{
let
obj
=
{
materialName
:
dd
.
title
,
id
:
dd
.
materialId
,
mediaType
:
'0'
,
mediaType
:
'0'
,
materialUrl
:
dd
.
picUrl
materialUrl
:
dd
.
picUrl
}
}
arr
.
push
(
obj
)
arr
.
push
(
obj
)
}
else
if
(
dd
.
msgType
===
'video'
)
{
}
else
if
(
dd
.
msgType
===
'video'
)
{
let
obj
=
{
let
obj
=
{
materialName
:
dd
.
title
,
id
:
dd
.
materialId
,
mediaType
:
'2'
,
mediaType
:
'2'
,
materialUrl
:
dd
.
fileUrl
,
materialUrl
:
dd
.
fileUrl
,
coverUrl
:
dd
.
picUrl
,
coverUrl
:
dd
.
picUrl
,
...
@@ -768,6 +772,8 @@ export function setAttachments(list) {
...
@@ -768,6 +772,8 @@ export function setAttachments(list) {
arr
.
push
(
obj
)
arr
.
push
(
obj
)
}
else
if
(
dd
.
msgType
===
'file'
)
{
}
else
if
(
dd
.
msgType
===
'file'
)
{
let
obj
=
{
let
obj
=
{
materialName
:
dd
.
title
,
id
:
dd
.
materialId
,
mediaType
:
'3'
,
mediaType
:
'3'
,
materialUrl
:
dd
.
fileUrl
,
materialUrl
:
dd
.
fileUrl
,
digest
:
dd
.
description
,
digest
:
dd
.
description
,
...
@@ -776,12 +782,16 @@ export function setAttachments(list) {
...
@@ -776,12 +782,16 @@ export function setAttachments(list) {
arr
.
push
(
obj
)
arr
.
push
(
obj
)
}
else
if
(
dd
.
msgType
===
'text'
)
{
}
else
if
(
dd
.
msgType
===
'text'
)
{
let
obj
=
{
let
obj
=
{
materialName
:
dd
.
title
,
id
:
dd
.
materialId
,
mediaType
:
'4'
,
mediaType
:
'4'
,
content
:
dd
.
content
content
:
dd
.
content
}
}
arr
.
push
(
obj
)
arr
.
push
(
obj
)
}
else
if
(
dd
.
msgType
===
'link'
)
{
}
else
if
(
dd
.
msgType
===
'link'
)
{
let
obj
=
{
let
obj
=
{
materialName
:
dd
.
title
,
id
:
dd
.
materialId
,
mediaType
:
'9'
,
mediaType
:
'9'
,
content
:
dd
.
content
,
content
:
dd
.
content
,
coverUrl
:
dd
.
picUrl
,
coverUrl
:
dd
.
picUrl
,
...
@@ -792,6 +802,8 @@ export function setAttachments(list) {
...
@@ -792,6 +802,8 @@ export function setAttachments(list) {
}
else
if
(
dd
.
msgType
===
'miniprogram'
)
{
}
else
if
(
dd
.
msgType
===
'miniprogram'
)
{
let
ff
=
{
let
ff
=
{
mediaType
:
'11'
,
mediaType
:
'11'
,
materialName
:
dd
.
title
,
id
:
dd
.
materialId
,
digest
:
dd
.
appId
,
digest
:
dd
.
appId
,
materialName
:
dd
.
title
,
materialName
:
dd
.
title
,
coverUrl
:
dd
.
picUrl
,
coverUrl
:
dd
.
picUrl
,
...
@@ -800,6 +812,8 @@ export function setAttachments(list) {
...
@@ -800,6 +812,8 @@ export function setAttachments(list) {
arr
.
push
(
ff
)
arr
.
push
(
ff
)
}
else
if
(
dd
.
msgType
===
'news'
)
{
}
else
if
(
dd
.
msgType
===
'news'
)
{
let
ff
=
{
let
ff
=
{
materialName
:
dd
.
title
,
id
:
dd
.
materialId
,
mediaType
:
'12'
,
mediaType
:
'12'
,
digest
:
dd
.
description
,
digest
:
dd
.
description
,
materialUrl
:
dd
.
fileUrl
,
materialUrl
:
dd
.
fileUrl
,
...
@@ -810,6 +824,8 @@ export function setAttachments(list) {
...
@@ -810,6 +824,8 @@ export function setAttachments(list) {
arr
.
push
(
ff
)
arr
.
push
(
ff
)
}
else
if
(
dd
.
msgType
===
'posters'
)
{
}
else
if
(
dd
.
msgType
===
'posters'
)
{
let
obj
=
{
let
obj
=
{
materialName
:
dd
.
title
,
id
:
dd
.
materialId
,
mediaType
:
'5'
,
mediaType
:
'5'
,
materialUrl
:
dd
.
fileUrl
,
materialUrl
:
dd
.
fileUrl
,
materialName
:
dd
.
title
materialName
:
dd
.
title
...
...
linkwe-pc/src/views/application/shortLinkPopularize/components/IdentityAttachment.vue
View file @
04d35a7
...
@@ -301,11 +301,11 @@
...
@@ -301,11 +301,11 @@
if
(
val
.
templateInfo
)
{
if
(
val
.
templateInfo
)
{
this
.
form
.
templateInfo
=
val
.
templateInfo
this
.
form
.
templateInfo
=
val
.
templateInfo
this
.
form
.
attachments
=
val
.
attachments
this
.
form
.
attachments
=
val
.
attachments
if
(
this
.
form
.
templateInfo
)
{
//
if (this.form.templateInfo) {
// this.form.templateInfo = this.baseData.templateInfo
// this.form.templateInfo = this.baseData.templateInfo
this
.
talkForm
=
this
.
form
this
.
talkForm
=
this
.
form
this
.
talkList
=
this
.
form
.
attachments
this
.
talkList
=
this
.
form
.
attachments
}
//
}
this
.
$forceUpdate
()
this
.
$forceUpdate
()
}
}
},
},
...
@@ -342,6 +342,9 @@
...
@@ -342,6 +342,9 @@
let
arr
=
[]
let
arr
=
[]
this
.
talkList
.
forEach
((
item
)
=>
{
this
.
talkList
.
forEach
((
item
)
=>
{
let
attachments
=
{}
let
attachments
=
{}
attachments
.
title
=
item
.
materialName
attachments
.
realType
=
+
item
.
mediaType
attachments
.
materialId
=
item
.
id
//素材
switch
(
item
.
mediaType
)
{
switch
(
item
.
mediaType
)
{
case
'0'
:
case
'0'
:
// 图片
// 图片
...
@@ -353,7 +356,6 @@
...
@@ -353,7 +356,6 @@
attachments
.
picUrl
=
item
.
coverUrl
attachments
.
picUrl
=
item
.
coverUrl
attachments
.
fileUrl
=
item
.
materialUrl
attachments
.
fileUrl
=
item
.
materialUrl
attachments
.
description
=
item
.
digest
attachments
.
description
=
item
.
digest
attachments
.
title
=
item
.
materialName
attachments
.
msgType
=
'video'
attachments
.
msgType
=
'video'
break
break
case
'3'
:
case
'3'
:
...
@@ -361,7 +363,6 @@
...
@@ -361,7 +363,6 @@
attachments
.
picUrl
=
this
.
filPicType
(
item
.
materialUrl
)
attachments
.
picUrl
=
this
.
filPicType
(
item
.
materialUrl
)
attachments
.
fileUrl
=
item
.
materialUrl
attachments
.
fileUrl
=
item
.
materialUrl
attachments
.
description
=
item
.
digest
attachments
.
description
=
item
.
digest
attachments
.
title
=
item
.
materialName
attachments
.
msgType
=
'file'
attachments
.
msgType
=
'file'
break
break
case
'4'
:
case
'4'
:
...
@@ -379,15 +380,16 @@
...
@@ -379,15 +380,16 @@
attachments
.
content
=
item
.
content
attachments
.
content
=
item
.
content
attachments
.
picUrl
=
item
.
coverUrl
attachments
.
picUrl
=
item
.
coverUrl
attachments
.
linkUrl
=
item
.
materialUrl
attachments
.
linkUrl
=
item
.
materialUrl
attachments
.
title
=
item
.
materialName
attachments
.
msgType
=
'link'
attachments
.
msgType
=
'link'
if
(
this
.
otherType
===
3
)
{
attachments
.
materialName
=
item
.
materialName
}
break
break
case
'11'
:
case
'11'
:
// 小程序
// 小程序
attachments
.
picUrl
=
item
.
coverUrl
attachments
.
picUrl
=
item
.
coverUrl
attachments
.
fileUrl
=
item
.
materialUrl
attachments
.
fileUrl
=
item
.
materialUrl
attachments
.
appId
=
item
.
digest
attachments
.
appId
=
item
.
digest
attachments
.
title
=
item
.
materialName
attachments
.
msgType
=
'miniprogram'
attachments
.
msgType
=
'miniprogram'
break
break
case
'12'
:
case
'12'
:
...
@@ -396,7 +398,6 @@
...
@@ -396,7 +398,6 @@
attachments
.
description
=
item
.
digest
attachments
.
description
=
item
.
digest
attachments
.
content
=
item
.
content
attachments
.
content
=
item
.
content
attachments
.
picUrl
=
item
.
coverUrl
attachments
.
picUrl
=
item
.
coverUrl
attachments
.
title
=
item
.
materialName
attachments
.
msgType
=
'news'
attachments
.
msgType
=
'news'
break
break
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment