Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
f00f63e0
Commit
f00f63e0
authored
Jun 30, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
超级用户
parent
859346a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
17 deletions
+29
-17
mine.vue
src/pages/index/mine.vue
+29
-17
No files found.
src/pages/index/mine.vue
View file @
f00f63e0
...
...
@@ -17,11 +17,13 @@
<u-icon
class=
"tel-arrow-icon"
name=
"arrow-up-fill"
></u-icon>
</view>
</view>
<view
v-if=
"isSuperuser"
class=
"super-button"
><u-button
@
click=
"$u.throttle(handleSuperButton, 500)"
>
切换用户
</u-button></view>
</view>
<view
class=
"header-right-view"
@
click=
"$u.throttle(handleClickSetting, 500)"
>
<image
:src=
"shezhiImage"
class=
"right-image-view"
></image>
<text>
设置
</text>
<view
class=
"setting-view"
>
<image
:src=
"shezhiImage"
class=
"right-image-view"
></image>
<text>
设置
</text>
</view>
<view
v-if=
"isSuperuser"
class=
"super-button"
><u-button
@
click=
"handleSuperButton"
>
切换用户
</u-button></view>
</view>
</view>
<view
class=
"ware-house-view"
>
...
...
@@ -185,6 +187,13 @@
isSuperuser
()
{
return
this
.
vuex_superuser
}
},
watch
:
{
vuex_token
(
val
,
oldVal
)
{
if
(
val
&&
!
this
.
isSuperuser
)
{
this
.
allowLogin
()
}
},
},
onLoad
()
{
app
.
trackPage
(
'我的首页'
)
...
...
@@ -327,22 +336,25 @@
}
}
}
.super-button
{
margin-left
:
20rpx
;
}
}
.header-right-view
{
display
:
flex
;
justify-content
:
flex-end
;
align-items
:
center
;
color
:
#FFFFFF
;
margin-right
:
4rpx
;
font-size
:
26rpx
;
margin-top
:
-24rpx
;
.right-image-view
{
width
:
34rpx
;
height
:
32rpx
;
margin-right
:
10rpx
;
.setting-view
{
display
:
flex
;
justify-content
:
flex-end
;
align-items
:
center
;
color
:
#FFFFFF
;
margin-right
:
4rpx
;
font-size
:
26rpx
;
margin-top
:
-24rpx
;
.right-image-view
{
width
:
34rpx
;
height
:
32rpx
;
margin-right
:
10rpx
;
}
}
.super-button
{
margin-top
:
20rpx
;
}
}
}
...
...
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