Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d9d74f13
authored
Apr 09, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
37494e86
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
12 deletions
pages/detail/components/Media_1.vue
pages/detail/detail.vue
store/modules/user.js
pages/detail/components/Media_1.vue
View file @
d9d74f1
...
...
@@ -139,13 +139,7 @@ export default {
popKey
:
'employeeBoxVisible'
}
],
customerInfo
:
{
customerName
:
''
,
carModel
:
''
,
phoneNumber
:
''
,
salesUuid
:
''
,
staffName
:
''
}
customerInfo
:
this
.
$store
.
state
.
user
.
customerInfo
}
},
mounted
()
{
...
...
pages/detail/detail.vue
View file @
d9d74f1
...
...
@@ -150,6 +150,7 @@ export default {
},
// 完成接待
done
()
{
this
.
$store
.
dispatch
(
'clearCustomerInfo'
)
this
.
stopAudio
();
uni
.
navigateBack
();
},
...
...
store/modules/user.js
View file @
d9d74f1
...
...
@@ -10,24 +10,42 @@
export
default
{
state
()
{
return
{
customerInfo
:
{},
customerInfo
:
{
customerName
:
''
,
carModel
:
''
,
phoneNumber
:
''
,
salesUuid
:
''
,
staffName
:
''
},
};
},
mutations
:
{
getCustomerInfo
(
state
)
{
getCustomerInfo
(
state
)
{
return
state
.
customerInfo
},
setCustomerInfo
(
state
,
data
)
{
state
.
customerInfo
=
data
},
clearCustomerInfo
(
state
){
state
.
customerInfo
=
{
customerName
:
''
,
carModel
:
''
,
phoneNumber
:
''
,
salesUuid
:
''
,
staffName
:
''
}
}
},
actions
:
{
// 获取用户详情
async
getCustomerInfo
({
commit
})
{
return
commit
(
'getCustomerInfo'
)
getCustomerInfo
({
state
})
{
return
state
.
customerInfo
},
async
setCustomerInfo
({
commit
},
value
)
{
setCustomerInfo
({
commit
},
value
)
{
commit
(
'setCustomerInfo'
,
value
);
},
clearCustomerInfo
({
commit
}){
commit
(
'clearCustomerInfo'
)
}
},
};
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