Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
7cd97c70
Commit
7cd97c70
authored
Dec 05, 2022
by
sunerhu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.缓存个人信息
parent
c3e515e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
pages/personalCenter/personalCenter.vue
+1
-0
pages/systemMsg/system_msg.vue
+9
-0
No files found.
pages/personalCenter/personalCenter.vue
View file @
7cd97c70
...
@@ -186,6 +186,7 @@
...
@@ -186,6 +186,7 @@
this
.
customerBasicInfo
=
res
[
'data'
];
this
.
customerBasicInfo
=
res
[
'data'
];
this
.
inviteEqrode
=
this
.
customerBasicInfo
.
invitationCode
;
this
.
inviteEqrode
=
this
.
customerBasicInfo
.
invitationCode
;
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
uni
.
setStorageSync
(
'userinfodataForm'
,
res
.
data
)
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
[
'message'
],
title
:
res
[
'message'
],
...
...
pages/systemMsg/system_msg.vue
View file @
7cd97c70
...
@@ -70,6 +70,15 @@
...
@@ -70,6 +70,15 @@
})
})
},
},
oneKeyRead
(){
oneKeyRead
(){
console
.
log
(
this
.
system_msgs_list
,
46
)
if
(
this
.
system_msgs_list
.
length
==
0
){
uni
.
showToast
({
title
:
'暂无可清除未读消息'
,
duration
:
2000
,
icon
:
'none'
})
return
false
}
api
.
oneKeyRead
({
systemType
:
1
,
userId
:
2
}).
then
((
res
)
=>
{
api
.
oneKeyRead
({
systemType
:
1
,
userId
:
2
}).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
if
(
res
[
'success'
]){
uni
.
showToast
({
uni
.
showToast
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment