Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
X
XiTianSenMall
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
leiqingsong
XiTianSenMall
Commits
5af94b96
Commit
5af94b96
authored
Mar 14, 2021
by
leiqingsong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
0d41adf1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
6 deletions
+14
-6
App.vue
H5/src/App.vue
+1
-1
BaseNavBar.vue
H5/src/components/BaseNavBar.vue
+8
-0
localGetter.js
H5/src/utils/localGetter.js
+1
-1
settings.vue
H5/src/views/settings.vue
+4
-4
No files found.
H5/src/App.vue
View file @
5af94b96
...
...
@@ -6,7 +6,7 @@
</
template
>
<
script
>
import
{
getAuthToken
,
showBottomBar
}
from
"@/utils/bridgeToAppFun"
;
import
{
getAuthToken
}
from
"@/utils/bridgeToAppFun"
;
import
BaseNavBar
from
"./components/BaseNavBar.vue"
;
export
default
{
components
:
{
...
...
H5/src/components/BaseNavBar.vue
View file @
5af94b96
...
...
@@ -10,6 +10,7 @@
</
template
>
<
script
>
// import { navigateBack } from "@/utils/bridgeToAppFun";
export
default
{
name
:
"BaseNavBar"
,
props
:
{
...
...
@@ -20,6 +21,13 @@ export default {
},
methods
:
{
onClickLeft
()
{
// console.log(this.$router);
// const currentPage = this.$router.currentRoute;
// if (whiteList.indexof(currentPage) > -1) {
// navigateBack();
// } else {
// this.$router.go(-1);
// }
this
.
$router
.
go
(
-
1
);
},
onClickRight
()
{
...
...
H5/src/utils/localGetter.js
View file @
5af94b96
export
function
getUserId
()
{
let
userInfo
=
localStorage
.
getItem
(
"user"
);
if
(
userInfo
)
{
return
JSON
.
parse
(
userInfo
).
userId
||
""
;
return
JSON
.
parse
(
userInfo
).
userId
;
}
else
{
return
""
;
}
...
...
H5/src/views/settings.vue
View file @
5af94b96
...
...
@@ -72,11 +72,11 @@ export default {
};
console
.
log
(
'setting-userId'
,
params
);
getUserInfo2
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
localStorage
.
setItem
(
"user"
,
JSON
.
stringify
(
res
.
data
));
if
(
res
.
userId
)
{
localStorage
.
setItem
(
"user"
,
JSON
.
stringify
(
res
));
this
.
$nextTick
(()
=>
{
this
.
inviteeCode
=
res
.
data
.
i
nviteCode
;
this
.
avatar
=
"http://8.131.244.76:81"
+
res
.
data
.
headImage
;
this
.
inviteeCode
=
res
.
beI
nviteCode
;
this
.
avatar
=
"http://8.131.244.76:81"
+
res
.
headImage
;
})
}
});
...
...
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