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 00be05fd
authored
Jun 07, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
跟进和一件营销
1 parent
6295ea34
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
67 additions
and
6 deletions
src/api/solicit.js
src/assets/css/index.scss
src/utils/emo.js
src/views/solicit/follow.vue
src/views/solicit/marketing.vue
src/api/solicit.js
View file @
00be05f
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-06-06 14:26:32
* @LastEditors: huyue
* @LastEditTime: 2022-06-0
6 21:19:53
* @LastEditTime: 2022-06-0
7 14:27:45
*/
const
url
=
'/rop-scrm-marketing/router'
export
default
{
...
...
@@ -39,7 +39,7 @@ export default {
solicitationFollow
(
data
)
{
data
.
method
=
'marketing.api.solicit.solicitationFollow'
return
window
.
$HTTP
({
url
,
url
:
'http://192.168.3.226:8593/rop-scrm-marketing/router'
,
data
,
returnAll
:
true
})
...
...
src/assets/css/index.scss
View file @
00be05f
...
...
@@ -229,3 +229,7 @@ img {
margin-right
:
13px
;
display
:
inline-block
;
}
.emo_img
{
width
:
20px
;
height
:
20px
;
}
\ No newline at end of file
src/utils/emo.js
0 → 100644
View file @
00be05f
/*
* @Description:
* @Author: huyue
* @Date: 2022-06-07 15:05:02
* @LastEditors: huyue
* @LastEditTime: 2022-06-07 15:05:04
*/
const
emoji
=
[
[
'微笑'
,
'撇嘴'
,
'色'
,
'发呆'
,
'得意'
,
'流泪'
,
'害羞'
,
'闭嘴'
],
[
'睡'
,
'大哭'
,
'尴尬'
,
'发怒'
,
'调皮'
,
'呲牙'
,
'惊讶'
,
'难过'
],
[
'酷'
,
'囧'
,
'抓狂'
,
'吐'
,
'微笑'
,
'愉快'
,
'白眼'
,
'傲慢'
],
[
'饥饿'
,
'困'
,
'惊恐'
,
'流汗'
,
'憨笑'
,
'大兵'
,
'奋斗'
,
'咒骂'
],
[
'疑问'
,
'嘘'
,
'晕'
,
'折磨'
,
'衰'
,
'骷髅'
,
'敲打'
,
'再见'
],
[
'擦汗'
,
'抠鼻'
,
'鼓掌'
,
'糗大了'
,
'坏笑'
,
'左哼哼'
,
'右哼哼'
,
'哈欠'
],
[
'鄙视'
,
'委屈'
,
'快哭了'
,
'阴险'
,
'亲亲'
,
'吓'
,
'可怜'
,
'菜刀'
],
[
'西瓜'
,
'啤酒'
,
'篮球'
,
'乒乓'
,
'咖啡'
,
'饭'
,
'猪头'
,
'玫瑰'
],
[
'凋谢'
,
'示爱'
,
'爱心'
,
'心碎'
,
'蛋糕'
,
'闪电'
,
'炸弹'
,
'刀'
],
[
'足球'
,
'瓢虫'
,
'便便'
,
'月亮'
,
'太阳'
,
'礼物'
,
'拥抱'
,
'强'
],
[
'弱'
,
'握手'
,
'胜利'
,
'抱拳'
,
'勾引'
,
'拳头'
,
'差劲'
,
'爱你'
],
[
'NO'
,
'OK'
,
'爱情'
,
'飞吻'
,
'跳跳'
,
'发抖'
,
'怄火'
,
'转圈'
],
[
'磕头'
,
'回头'
,
'跳绳'
,
'投降'
,
'挥手'
,
'激动'
,
'街舞'
,
'左太极'
],
[
'右太极'
,
'嘿哈'
,
'捂脸'
,
'奸笑'
,
'机智'
,
'皱眉'
,
'耶'
,
'社会社会'
],
[
'让我看看'
,
'666'
,
'红包'
,
'蜡烛'
,
'烟花'
,
'福'
,
'庆祝'
,
'爆竹'
]
]
export
default
emoji
\ No newline at end of file
src/views/solicit/follow.vue
View file @
00be05f
...
...
@@ -115,13 +115,15 @@ export default {
},
computed
:
{
...
mapState
({
follewIndex
:
state
=>
state
.
solicit
.
follewIndex
follewIndex
:
state
=>
state
.
solicit
.
follewIndex
,
activityId
:
state
=>
state
.
solicit
.
activityId
,
staffId
:
state
=>
state
.
solicit
.
staffId
})
},
created
()
{
this
.
statisticList
=
this
.
$constants
.
STATICLIST
this
.
getFollowDataList
()
//
this.solicitationFollow()
this
.
solicitationFollow
()
},
methods
:
{
...
mapMutations
({
...
...
src/views/solicit/marketing.vue
View file @
00be05f
...
...
@@ -12,6 +12,11 @@
<img
:src=
"item.attContent"
/>
</div>
</
template
>
<
template
v-else-if=
"item.attType == 7"
>
<div
class=
"marking-image"
>
<img
:src=
"item.attContent"
/>
</div>
</
template
>
</div>
<!-- <div class="font-14 color-3">尊敬的客户,您好!我店本月推出自费喷漆特惠活动,折扣后单面喷漆低至200元,点击下方链接享受优惠:</div> -->
</template>
...
...
@@ -37,6 +42,7 @@
import
{
solicitApi
}
from
'@/api'
import
{
Toast
}
from
'vant'
import
{
mapState
,
mapMutations
}
from
'vuex'
import
emoji
from
'@/utils/emo'
export
default
{
data
()
{
return
{
...
...
@@ -49,7 +55,7 @@ export default {
businessUuid
:
'string'
,
businessDesc
:
'string'
,
attContent
:
'
把v下吧教科书空间上传开始接触烧烤聚会恐惧好快就好v了;是dhvs;绿茶会计核算的;健康v还都是恐惧和大家客户啊是看不见彼此间莫桑比克吃的空间舒适的空间回复出可视电话v 开始v看回放v空间发挥恐惧和抗拒款双肩包女教师的女,马摘星不你就看是的不吃vkjdsbvksjbvkjs。 的vsdvasdhlvjsh看女款和v看就dshvksjhvsdhvs;开局后大家看和vkjdhvkdjhvkjdshv看电视剧 把v下吧教科书空间上传开始接触烧烤聚会恐惧好快就好v了;是dhvs;绿茶会计核算的;健康v还都是恐惧和大家客户啊是看不见彼此间莫桑比克吃的空间舒适的空间回复出可视电话v 开始v看回放v空间发挥恐惧和抗拒款双肩包女教师的女,马摘星不你就看是的不吃vkjdsbvksjbvkjs。 的vsdvasdhlvjsh看女款和v看就dshvksjhvsdhvs;开局后大家看和vkjdhvkdjhvkjdshv看电视剧 jlkajsdfaklsj\n大法师[困][饥饿][示爱]
'
,
'
和vkjdhvkdjhvkjdshv看电视剧 jlkajsdfaklsj\n大法师[困][饥饿][示爱]😂asdfasdfaadfadfa dfadfasdf adfsdf df adfa dfasd fadf a
'
,
attType
:
1
,
attNum
:
0
,
mediaId
:
'string'
,
...
...
@@ -99,7 +105,8 @@ export default {
this
.
hideLoading
()
if
(
code
==
'0'
)
{
// this.marketingDetails = data
this
.
$set
(
this
,
'marketingDetails'
,
data
)
// this.$set(this, 'marketingDetails', data)
if
(
this
.
marketingDetails
.
attachmentList
&&
this
.
marketingDetails
.
attachmentList
[
0
].
attType
==
1
)
this
.
getEmoImg
()
this
.
SET_COUSTOMER_LIST
({
customerInfoList
:
data
.
customerInfoList
})
}
else
{
Notify
(
message
)
...
...
@@ -134,6 +141,28 @@ export default {
},
goTo
(
name
)
{
this
.
$router
.
push
({
name
})
},
// 表情包转化图片
getEmoImg
()
{
console
.
log
(
'jinalile'
)
const
attContent
=
this
.
marketingDetails
.
attachmentList
[
0
].
attContent
const
htm
=
attContent
.
replace
(
/
\[[\u
4E00-
\u
9FA56
]{1,4}
]/gi
,
function
(
res
)
{
let
word
=
res
.
replace
(
/
\[
|
\]
/gi
,
''
)
const
list
=
emoji
.
flat
(
Infinity
)
let
index
=
parseInt
(
list
.
indexOf
(
word
))
+
1
if
(
index
<
10
)
{
index
=
'00'
+
index
}
else
if
(
index
>=
10
&&
index
<
100
)
{
index
=
'0'
+
index
}
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
.
$set
(
this
.
marketingDetails
.
attachmentList
,
0
,
{
attType
:
1
,
attContent
:
htm
})
}
}
}
...
...
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