Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
comment_app
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
莫晓莉
comment_app
Commits
16f9c45a
Commit
16f9c45a
authored
Sep 22, 2020
by
莫晓莉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mxl
parent
a7572587
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
pages/user/user.vue
+8
-2
No files found.
pages/user/user.vue
View file @
16f9c45a
<
template
>
<view
class=
""
>
<view
class=
"center"
>
<view
class=
"logo"
@
click=
"bindLogin"
:hover-class=
"!token ? 'logo-hover' : ''"
>
<!--
<image
class=
"logo-img"
:src=
"token ? userinfo.avatar : avatarUrl"
></image>
-->
<view
v-if=
"token"
class=
"logo"
:hover-class=
"!token ? 'logo-hover' : ''"
>
<image
class=
"logo-img"
:src=
"avatarUrl"
></image>
<view
class=
"logo-title"
>
<text
class=
"uer-name"
>
Hi,
{{
token
?
user
.
name
:
'您未登录'
}}
</text>
<text
class=
"go-login navigat-arrow"
v-if=
"!token"
>

</text>
</view>
</view>
<view
v-if=
"!token"
class=
"logo"
@
click=
"bindLogin"
:hover-class=
"!token ? 'logo-hover' : ''"
>
<image
class=
"logo-img"
:src=
"avatarUrl"
></image>
<view
class=
"logo-title"
>
<text
class=
"uer-name"
>
Hi,
{{
token
?
user
.
name
:
'您未登录'
}}
</text>
...
...
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