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 3f1cb536
authored
Oct 20, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
超管判断逻辑
1 parent
5facc217
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
pages/mineDetail/customerManagement/customerManagement.js
pages/tab/output/output.js
pages/mineDetail/customerManagement/customerManagement.js
View file @
3f1cb53
...
@@ -125,10 +125,15 @@ Component({
...
@@ -125,10 +125,15 @@ Component({
isEdit
:
true
isEdit
:
true
}
}
],
],
listObj
listObj
,
isSuper
:
false
},
},
attached
()
{
attached
()
{
// this.initTime()
// this.initTime()
let
{
userInfo
}
=
wx
.
$storage
.
get
()
this
.
setData
({
isSuper
:
userInfo
.
isSuper
})
this
.
getMerchantCustomInfoList
()
this
.
getMerchantCustomInfoList
()
},
},
/**
/**
...
@@ -191,7 +196,7 @@ Component({
...
@@ -191,7 +196,7 @@ Component({
},
},
changeStatus
(
e
)
{
changeStatus
(
e
)
{
console
.
log
(
e
)
console
.
log
(
e
)
let
{
customerList
}
=
this
.
data
let
{
customerList
,
isSuper
}
=
this
.
data
let
{
index
,
item
}
=
e
.
currentTarget
.
dataset
let
{
index
,
item
}
=
e
.
currentTarget
.
dataset
// let
// let
let
status
=
customerList
[
index
].
isEdit
let
status
=
customerList
[
index
].
isEdit
...
@@ -200,7 +205,7 @@ Component({
...
@@ -200,7 +205,7 @@ Component({
// 提交客户信息更新
// 提交客户信息更新
// this.checkout(customerList[index])
// this.checkout(customerList[index])
// console.log('customerList[index]', customerList[index])
// console.log('customerList[index]', customerList[index])
this
.
submit
(
customerList
[
index
])
!
isSuper
&&
this
.
submit
(
customerList
[
index
])
}
else
{
}
else
{
customerList
[
index
][
'isEdit'
]
=
true
customerList
[
index
][
'isEdit'
]
=
true
this
.
setData
({
this
.
setData
({
...
...
pages/tab/output/output.js
View file @
3f1cb53
...
@@ -52,7 +52,7 @@ Page({
...
@@ -52,7 +52,7 @@ Page({
console
.
log
(
userInfo
)
console
.
log
(
userInfo
)
this
.
setData
({
this
.
setData
({
userInfo
,
userInfo
,
isSuper
:
userInfo
.
subLoginUser
.
isSuper
isSuper
:
userInfo
.
isSuper
})
})
this
.
getMerchantRange
()
this
.
getMerchantRange
()
},
},
...
...
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