Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-attachment-customer
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 669102f5
authored
Jun 09, 2022
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
9a5a959e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
src/components/CustomerCard.vue
src/views/solicit/marketing.vue
src/components/CustomerCard.vue
View file @
669102f
...
@@ -183,11 +183,11 @@ export default {
...
@@ -183,11 +183,11 @@ export default {
Toast
(
'尚未添加好友,请尝试添加客户为好友'
)
Toast
(
'尚未添加好友,请尝试添加客户为好友'
)
}
}
// 如果没有手机号,跳转到添加好友页面
// 如果没有手机号,跳转到添加好友页面
this
.
$nextTick
(()
=>
{
setTimeout
(()
=>
{
window
.
$wx
.
navigateToAddCustomer
().
then
(
res
=>
{
window
.
$wx
.
navigateToAddCustomer
().
then
(
res
=>
{
// console.log(res)
// console.log(res)
})
})
})
}
,
1000
)
return
return
}
}
...
...
src/views/solicit/marketing.vue
View file @
669102f
...
@@ -140,9 +140,9 @@ export default {
...
@@ -140,9 +140,9 @@ export default {
solicitApi
.
createdOcmarketing
(
params
).
then
(
res
=>
{
solicitApi
.
createdOcmarketing
(
params
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
Toast
(
'营销活动已创建,请及时在「企业微信-群发助手」中确认发送'
)
Toast
(
'营销活动已创建,请及时在「企业微信-群发助手」中确认发送'
)
this
.
$nextTick
(()
=>
{
setTimeout
(()
=>
{
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
})
}
,
1000
)
}
else
{
}
else
{
Notify
(
'营销活动创建失败'
)
Notify
(
'营销活动创建失败'
)
}
}
...
@@ -154,7 +154,6 @@ export default {
...
@@ -154,7 +154,6 @@ export default {
},
},
// 表情包转化图片
// 表情包转化图片
getEmoImg
()
{
getEmoImg
()
{
console
.
log
(
'jinalile'
)
const
attContent
=
this
.
marketingDetails
.
attachmentList
[
0
].
attContent
const
attContent
=
this
.
marketingDetails
.
attachmentList
[
0
].
attContent
const
htm
=
attContent
.
replace
(
/
\[[\u
4E00-
\u
9FA56
]{1,4}
]/gi
,
function
(
res
)
{
const
htm
=
attContent
.
replace
(
/
\[[\u
4E00-
\u
9FA56
]{1,4}
]/gi
,
function
(
res
)
{
let
word
=
res
.
replace
(
/
\[
|
\]
/gi
,
''
)
let
word
=
res
.
replace
(
/
\[
|
\]
/gi
,
''
)
...
@@ -167,7 +166,6 @@ export default {
...
@@ -167,7 +166,6 @@ export default {
}
}
return
`<img class="emo_img" src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/
${
index
}
.png">`
return
`<img class="emo_img" src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/
${
index
}
.png">`
})
})
console
.
log
(
htm
)
this
.
marketingDetails
.
attachmentList
[
0
].
attContent
=
htm
this
.
marketingDetails
.
attachmentList
[
0
].
attContent
=
htm
this
.
$set
(
this
.
marketingDetails
.
attachmentList
,
0
,
{
this
.
$set
(
this
.
marketingDetails
.
attachmentList
,
0
,
{
attType
:
1
,
attType
:
1
,
...
...
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