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 38ecd6a2
authored
Jun 17, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'wangzh_dev_2.3.3' into 'v2.3.3'
commit See merge request
!67
2 parents
7e5d8ee8
f031600c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
10 deletions
src/components/CustomerCard.vue
src/views/solicit/lookCustomer.vue
src/views/solicit/statistic.vue
src/components/CustomerCard.vue
View file @
38ecd6a
...
...
@@ -49,7 +49,7 @@
</div>
</div>
<!-- 电话营销弹窗 -->
<
van-action-sheet
v-model:show=
"show"
:actions=
"actions"
@
select=
"onSelect"
cancel-text=
"取消"
close-on-click-action
@
cancel=
"onCancel"
/
>
<
!--
<van-action-sheet
v-model:show=
"show"
:actions=
"actions"
@
select=
"onSelect"
cancel-text=
"取消"
close-on-click-action
@
cancel=
"onCancel"
/>
--
>
</div>
</
template
>
...
...
@@ -127,14 +127,15 @@ export default {
},
// 电话招揽
callCustomer
(
val
)
{
//
console.log(val)
console
.
log
(
val
)
if
(
!
val
.
phoneNumber
)
{
Toast
(
'系统尚未查询到该用户的电话号码'
)
return
}
this
.
phoneNumber
=
val
.
phoneNumber
// 打开电话营销弹窗
this
.
show
=
true
// this.show = true
this
.
$emit
(
'showAction'
,
{
phoneNumber
:
this
.
phoneNumber
})
},
// 选择电话营销方式
onSelect
(
e
)
{
...
...
src/views/solicit/lookCustomer.vue
View file @
38ecd6a
...
...
@@ -11,13 +11,14 @@
<drop-down
:selectOption1=
"statusList"
:selectOption2=
"resultList"
:currentValue1=
"status"
:currentValue2=
"result"
@
changeFirst=
"changeFirst"
@
changeSecond=
"selectSecondChange"
></drop-down>
</div>
<scroll-view
class=
"content"
@
ReachBottom=
"onReachBottom"
ref=
"scrollView"
>
<customer-card
v-if=
"customerInfo.length > 0"
:customerInfo=
"customerInfo"
@
showFollowPop=
"showFollowPop"
@
showInfoPop=
"showInfoPop"
></customer-card>
<customer-card
v-if=
"customerInfo.length > 0"
:customerInfo=
"customerInfo"
@
showFollowPop=
"showFollowPop"
@
showInfoPop=
"showInfoPop"
@
showAction=
"showAction"
></customer-card>
<empty
v-else
></empty>
</scroll-view>
<!-- 跟进弹窗 -->
<customer-follow-popup
ref=
"customerFollowRef"
:info=
"followCustomerData"
@
changeIndexEvent=
"changeIndexEvent"
></customer-follow-popup>
<!-- 客户信息弹窗 -->
<customer-info-popup
ref=
"customerInfoRef"
></customer-info-popup>
<van-action-sheet
v-model:show=
"show"
:actions=
"actions"
@
select=
"onSelect"
cancel-text=
"取消"
close-on-click-action
@
cancel=
"onCancel"
/>
</div>
</
template
>
<
script
>
...
...
@@ -27,6 +28,10 @@ import { Notify } from 'vant'
export
default
{
data
()
{
return
{
// 电话营销弹窗
show
:
false
,
actions
:
[{
name
:
'呼叫'
},
{
name
:
'复制'
}],
phoneNumber
:
''
,
flag
:
false
,
keyWord
:
''
,
status
:
0
,
...
...
@@ -66,6 +71,26 @@ export default {
this
.
getSendCustomerList
()
},
methods
:
{
// 初始化微信接口
initWx
()
{
window
.
$wx
=
wxConfig
window
.
$wx
.
init
([
'setClipboardData'
,
'navigateToAddCustomer'
,
'openEnterpriseChat'
,
'makePhoneCall'
]).
then
(()
=>
{})
},
// 电话招揽弹窗关闭
onCancel
()
{
this
.
show
=
false
},
// 选择电话营销方式
onSelect
(
e
)
{
// 呼叫
if
(
e
.
name
===
'呼叫'
)
{
// window.location.href = 'tel://' + this.telNumber
this
.
makePhoneCall
(
this
.
phoneNumber
)
return
}
// 复制
this
.
setClipboardData
(
this
.
phoneNumber
)
},
showFollowPop
(
data
)
{
this
.
$refs
.
customerFollowRef
.
init
()
this
.
customerIndex
=
data
.
customerIndex
...
...
@@ -74,6 +99,10 @@ export default {
showInfoPop
(
data
)
{
this
.
$refs
.
customerInfoRef
.
getCustomerDetail
(
data
.
followCustomerData
)
},
showAction
(
data
)
{
this
.
show
=
true
this
.
phoneNumber
=
data
.
phoneNumber
},
changeIndexEvent
()
{
let
params
=
{
customerId
:
this
.
followCustomerData
.
actCutId
...
...
src/views/solicit/statistic.vue
View file @
38ecd6a
...
...
@@ -8,7 +8,7 @@
<div>
1. 客户开启消息免打扰,消息发送失败;
</div>
<div>
2. 群发次数达到上限,上限次数为每个客户每天仅可接收1条群发消息。(系统将连续重试3天)
</div>
</div>
<customer-card
v-if=
"customerInfo1.length > 0"
:customerInfo=
"customerInfo1"
@
showFollowPop=
"showFollowPop"
@
showInfoPop=
"showInfoPop"
></customer-card>
<customer-card
v-if=
"customerInfo1.length > 0"
:customerInfo=
"customerInfo1"
@
showFollowPop=
"showFollowPop"
@
showInfoPop=
"showInfoPop"
@
showAction=
"showAction"
></customer-card>
<empty
v-else
></empty>
</scroll-view>
</van-tab>
...
...
@@ -32,7 +32,7 @@
</div>
</div>
<select-bar
:index=
"alreadyIndex"
:list=
"selectBarList"
@
change=
"changeSelectTab"
></select-bar>
<customer-card
v-if=
"customerInfo2.length > 0"
:customerInfo=
"customerInfo2"
@
showFollowPop=
"showFollowPop"
@
showInfoPop=
"showInfoPop"
></customer-card>
<customer-card
v-if=
"customerInfo2.length > 0"
:customerInfo=
"customerInfo2"
@
showFollowPop=
"showFollowPop"
@
showInfoPop=
"showInfoPop"
@
showAction=
"showAction"
></customer-card>
<empty
v-else
></empty>
</van-tab>
</van-tabs>
...
...
@@ -40,6 +40,7 @@
<customer-follow-popup
ref=
"customerFollowRef"
:info=
"followCustomerData"
@
changeIndexEvent=
"changeIndexEvent"
></customer-follow-popup>
<!-- 客户信息弹窗 -->
<customer-info-popup
ref=
"customerInfoRef"
></customer-info-popup>
<van-action-sheet
v-model:show=
"show"
:actions=
"actions"
@
select=
"onSelect"
cancel-text=
"取消"
close-on-click-action
@
cancel=
"onCancel"
/>
</div>
</template>
...
...
@@ -54,6 +55,10 @@ export default {
components
:
{
SelectBar
,
Empty
,
ScrollView
},
data
()
{
return
{
// 电话营销弹窗
show
:
false
,
actions
:
[{
name
:
'呼叫'
},
{
name
:
'复制'
}],
phoneNumber
:
''
,
tabIndex
:
0
,
alreadyIndex
:
0
,
deliveredNum
:
0
,
...
...
@@ -146,6 +151,30 @@ export default {
this
.
getSendCustomerList
(
1
)
// 已送达
},
methods
:
{
// 初始化微信接口
initWx
()
{
window
.
$wx
=
wxConfig
window
.
$wx
.
init
([
'setClipboardData'
,
'navigateToAddCustomer'
,
'openEnterpriseChat'
,
'makePhoneCall'
]).
then
(()
=>
{})
},
// 电话招揽弹窗关闭
onCancel
()
{
this
.
show
=
false
},
// 选择电话营销方式
onSelect
(
e
)
{
// 呼叫
if
(
e
.
name
===
'呼叫'
)
{
// window.location.href = 'tel://' + this.telNumber
this
.
makePhoneCall
(
this
.
phoneNumber
)
return
}
// 复制
this
.
setClipboardData
(
this
.
phoneNumber
)
},
showAction
(
data
)
{
this
.
show
=
true
this
.
phoneNumber
=
data
.
phoneNumber
},
staffSendStatus
()
{
let
params
=
{
// id: 65,
...
...
@@ -206,10 +235,14 @@ export default {
let
{
alreadyIndex
}
=
this
let
params
=
{
customerGroupType
:
2
,
id
:
this
.
activityId
,
staffId
:
this
.
staffId
,
groupId
:
this
.
groupId
,
sendStatus
:
index
// 发送状态 0-未发送 1-已发送
id
:
86
,
staffId
:
26816
,
groupId
:
112
,
sendStatus
:
1
,
// id: this.activityId,
// staffId: this.staffId,
// groupId: this.groupId,
// sendStatus: index // 发送状态 0-未发送 1-已发送
}
if
(
index
===
1
)
{
// 0-未查看 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