Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
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 b6d0a5fb
authored
Mar 29, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
服务中心/客户编辑加字段,popup加自定义class
1 parent
d6a592a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
21 deletions
packageMine/pages/customerManagement/saleList/saleList.js
packageMine/pages/customerManagement/saleList/saleList.js
View file @
b6d0a5f
...
@@ -15,7 +15,6 @@ Page({
...
@@ -15,7 +15,6 @@ Page({
// 邀请销售
// 邀请销售
isPopupShow
:
false
,
isPopupShow
:
false
,
popupVal
:
''
,
popupVal
:
''
,
inviteMerchantId
:
''
,
// 提示
// 提示
isTipShow
:
false
,
isTipShow
:
false
,
tipObj
:
{
tipObj
:
{
...
@@ -54,18 +53,6 @@ Page({
...
@@ -54,18 +53,6 @@ Page({
this
.
getList
(
true
)
this
.
getList
(
true
)
},
},
getMerchantId
()
{
let
{
customerInfo
}
=
this
.
data
let
params
=
{
merchantNos
:
customerInfo
.
merchantId
}
mineCustomerApi
.
getMerchantId
(
params
).
then
(
res
=>
{
this
.
setData
({
inviteMerchantId
:
res
?
res
[
0
]?.
id
:
''
})
})
},
getList
(
isReset
=
false
)
{
getList
(
isReset
=
false
)
{
let
{
customerInfo
}
=
this
.
data
let
{
customerInfo
}
=
this
.
data
mineCustomerApi
.
getEmployeeList
({
merchantId
:
customerInfo
.
merchantId
}).
then
(
res
=>
{
mineCustomerApi
.
getEmployeeList
({
merchantId
:
customerInfo
.
merchantId
}).
then
(
res
=>
{
...
@@ -83,7 +70,7 @@ Page({
...
@@ -83,7 +70,7 @@ Page({
// 获取邀请二维码和链接
// 获取邀请二维码和链接
getInviteCode
()
{
getInviteCode
()
{
let
{
customerInfo
,
popupVal
,
inviteMerchantId
}
=
this
.
data
let
{
customerInfo
,
popupVal
}
=
this
.
data
let
_this
=
this
let
_this
=
this
let
sceneStr
=
''
let
sceneStr
=
''
let
sceneToNum
=
{
let
sceneToNum
=
{
...
@@ -92,10 +79,6 @@ Page({
...
@@ -92,10 +79,6 @@ Page({
'SC003'
:
2
,
'SC003'
:
2
,
'SC004'
:
3
,
'SC004'
:
3
,
}
}
if
(
!
inviteMerchantId
)
{
wx
.
$api
.
showToast
(
'缺少商户号'
)
return
true
}
if
(
!
customerInfo
.
sceneList
||
!
customerInfo
.
sceneList
.
length
)
{
if
(
!
customerInfo
.
sceneList
||
!
customerInfo
.
sceneList
.
length
)
{
wx
.
$api
.
showToast
(
'缺少场景值'
)
wx
.
$api
.
showToast
(
'缺少场景值'
)
return
true
return
true
...
@@ -105,7 +88,7 @@ Page({
...
@@ -105,7 +88,7 @@ Page({
sceneStr
=
sceneStr
+
(
sceneStr
?
(
','
+
sceneToNum
[
item
])
:
sceneToNum
[
item
])
sceneStr
=
sceneStr
+
(
sceneStr
?
(
','
+
sceneToNum
[
item
])
:
sceneToNum
[
item
])
})
})
let
params
=
{
let
params
=
{
merchantId
:
inviteM
erchantId
,
merchantId
:
customerInfo
.
m
erchantId
,
staffLabel
:
sceneStr
staffLabel
:
sceneStr
}
}
mineCustomerApi
.
getInviteCode
(
params
).
then
(
res
=>
{
mineCustomerApi
.
getInviteCode
(
params
).
then
(
res
=>
{
...
@@ -146,7 +129,6 @@ Page({
...
@@ -146,7 +129,6 @@ Page({
}
}
})
})
this
.
getList
()
this
.
getList
()
this
.
getMerchantId
()
return
true
return
true
}
}
wx
.
$router
.
getData
(
res
=>
{
wx
.
$router
.
getData
(
res
=>
{
...
@@ -154,7 +136,6 @@ Page({
...
@@ -154,7 +136,6 @@ Page({
customerInfo
:
res
customerInfo
:
res
})
})
this
.
getList
()
this
.
getList
()
this
.
getMerchantId
()
})
})
},
},
...
...
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