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
14ab878e
Commit
14ab878e
authored
Jun 10, 2021
by
jiacheng.mao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userQuery增加校验
parent
0adea6e1
Changes
4
Show 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 @
14ab878e
...
...
@@ -159,7 +159,9 @@ export default {
beforeRouteEnter
(
to
,
from
,
next
)
{
// if (true) {
next
(
vm
=>
{
if
(
window
.
localStorage
.
getItem
(
'user_phone'
))
{
vm
.
userQuery
()
}
})
// }
// next()
...
...
src/pages/home/home-page.vue
View file @
14ab878e
...
...
@@ -102,7 +102,9 @@ export default {
next
(
vm
=>
{
// if (from.name === 'Login') {
vm
.
moduleSeparateList
=
[...
functionState
.
moduleSeparateList
]
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 @
14ab878e
...
...
@@ -296,7 +296,9 @@ export default {
vm
.
carCount
=
'0'
vm
.
multiRoleList
=
[]
vm
.
multipleRole
=
window
.
localStorage
.
getItem
(
'multipleRole'
)
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
(
'解绑成功'
)
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
(
'解绑成功'
)
if
(
window
.
localStorage
.
getItem
(
'user_phone'
))
{
vm
.
userQuery
()
}
// vm.flag = true
vm
.
approveBtn
=
false
}
else
{
...
...
@@ -1002,8 +1008,10 @@ export default {
function
(
suc
)
{
let
success
=
JSON
.
parse
(
suc
)
if
(
success
.
code
===
1
)
{
if
(
window
.
localStorage
.
getItem
(
'user_phone'
))
{
vm
.
userQuery
()
}
}
},
function
(
reason
)
{
let
error
=
JSON
.
parse
(
reason
)
...
...
@@ -1024,8 +1032,10 @@ export default {
}
}
else
if
(
authFlag
===
false
)
{
hlsPopup
.
showLongCenter
(
'用户已绑定!'
)
if
(
window
.
localStorage
.
getItem
(
'user_phone'
))
{
vm
.
userQuery
()
}
}
},
async
getNpCertificationUrl
()
{
let
vm
=
this
...
...
@@ -1062,7 +1072,9 @@ export default {
hlsPopup
.
showLongCenter
(
'绑定失败!'
)
}
else
if
((
res
.
info
.
code
===
0
)
&&
(
res
.
info
.
data
.
openId
))
{
hlsPopup
.
showLongCenter
(
'绑定成功!'
)
if
(
window
.
localStorage
.
getItem
(
'user_phone'
))
{
vm
.
userQuery
()
}
}
else
{
hlsPopup
.
showError
(
res
.
info
.
msg
)
}
...
...
src/pages/myInfo/setting.vue
View file @
14ab878e
...
...
@@ -214,7 +214,9 @@ export default {
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
hlsPopup
.
showLongCenter
(
'解绑成功'
)
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