Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xugong
hls-xcmg-vue-app
Commits
cf754486
Commit
cf754486
authored
Jun 10, 2021
by
jiacheng.mao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userQuery 增加校验
parent
1c6e32bb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
9 deletions
+27
-9
function-list.vue
src/pages/functionCenter/function-list.vue
+3
-1
home-page.vue
src/pages/home/home-page.vue
+3
-1
my-info.vue
src/pages/myInfo/my-info.vue
+18
-6
setting.vue
src/pages/myInfo/setting.vue
+3
-1
No files found.
src/pages/functionCenter/function-list.vue
View file @
cf754486
...
...
@@ -159,7 +159,9 @@ export default {
beforeRouteEnter
(
to
,
from
,
next
)
{
// if (true) {
next
(
vm
=>
{
vm
.
userQuery
()
if
(
window
.
localStorage
.
getItem
(
'user_phone'
))
{
vm
.
userQuery
()
}
})
// }
// next()
...
...
src/pages/home/home-page.vue
View file @
cf754486
...
...
@@ -102,7 +102,9 @@ export default {
next
(
vm
=>
{
// if (from.name === 'Login') {
vm
.
moduleSeparateList
=
[...
functionState
.
moduleSeparateList
]
vm
.
userQuery
()
if
(
window
.
localStorage
.
getItem
(
'user_phone'
))
{
vm
.
userQuery
()
}
// vm.guessingQuery() // 猜你喜欢查询
vm
.
isVisitor
=
!
window
.
localStorage
.
getItem
(
'password'
)
// vm.guessingQuery() // 猜你喜欢查询
...
...
src/pages/myInfo/my-info.vue
View file @
cf754486
...
...
@@ -296,7 +296,9 @@ export default {
vm
.
carCount
=
'0'
vm
.
multiRoleList
=
[]
vm
.
multipleRole
=
window
.
localStorage
.
getItem
(
'multipleRole'
)
vm
.
userQuery
()
if
(
window
.
localStorage
.
getItem
(
'user_phone'
))
{
vm
.
userQuery
()
}
vm
.
numQuery
()
})
next
()
...
...
@@ -606,7 +608,9 @@ export default {
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
hlsPopup
.
showLongCenter
(
'解绑成功'
)
vm
.
userQuery
()
if
(
window
.
localStorage
.
getItem
(
'user_phone'
))
{
vm
.
userQuery
()
}
vm
.
approveBtn
=
false
vm
.
$router
.
push
({
name
:
'UserBind'
,
...
...
@@ -642,7 +646,9 @@ export default {
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
hlsPopup
.
showLongCenter
(
'解绑成功'
)
vm
.
userQuery
()
if
(
window
.
localStorage
.
getItem
(
'user_phone'
))
{
vm
.
userQuery
()
}
// vm.flag = true
vm
.
approveBtn
=
false
}
else
{
...
...
@@ -1002,7 +1008,9 @@ export default {
function
(
suc
)
{
let
success
=
JSON
.
parse
(
suc
)
if
(
success
.
code
===
1
)
{
vm
.
userQuery
()
if
(
window
.
localStorage
.
getItem
(
'user_phone'
))
{
vm
.
userQuery
()
}
}
},
function
(
reason
)
{
...
...
@@ -1024,7 +1032,9 @@ export default {
}
}
else
if
(
authFlag
===
false
)
{
hlsPopup
.
showLongCenter
(
'用户已绑定!'
)
vm
.
userQuery
()
if
(
window
.
localStorage
.
getItem
(
'user_phone'
))
{
vm
.
userQuery
()
}
}
},
async
getNpCertificationUrl
()
{
...
...
@@ -1062,7 +1072,9 @@ export default {
hlsPopup
.
showLongCenter
(
'绑定失败!'
)
}
else
if
((
res
.
info
.
code
===
0
)
&&
(
res
.
info
.
data
.
openId
))
{
hlsPopup
.
showLongCenter
(
'绑定成功!'
)
vm
.
userQuery
()
if
(
window
.
localStorage
.
getItem
(
'user_phone'
))
{
vm
.
userQuery
()
}
}
else
{
hlsPopup
.
showError
(
res
.
info
.
msg
)
}
...
...
src/pages/myInfo/setting.vue
View file @
cf754486
...
...
@@ -214,7 +214,9 @@ export default {
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
hlsPopup
.
showLongCenter
(
'解绑成功'
)
vm
.
userQuery
()
if
(
window
.
localStorage
.
getItem
(
'user_phone'
))
{
vm
.
userQuery
()
}
// vm.flag = true
vm
.
approveBtn
=
false
}
else
{
...
...
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