Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
thinkApp
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
游洁
thinkApp
Commits
56094a3f
Commit
56094a3f
authored
Sep 26, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
b9881c26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
4 deletions
+55
-4
bottom.vue
src/components/bottom.vue
+55
-4
No files found.
src/components/bottom.vue
View file @
56094a3f
<
template
>
<
template
>
<view
class=
"bottom"
>
<view
class=
"bottom"
@
click=
"signOut"
>
<!--
<image
src=
"../static/"
mode=
""
class=
"img"
/>
-->
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1664188705000_453.png"
mode=
""
class=
"img"
/>
<text>
退出登录
</text>
</view>
</view>
</
template
>
</
template
>
<
script
>
import
{
reactive
,
toRefs
,
onMounted
}
from
"vue"
;
export
default
{
name
:
""
,
props
:
[],
components
:
{},
setup
(
props
)
{
let
data
=
reactive
({
});
let
methods
=
{
signOut
(){
uni
.
showModal
({
title
:
'提示'
,
content
:
'将退出登录,是否继续'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
uni
.
removeStorageSync
(
'erpUserInfo'
)
uni
.
removeStorageSync
(
'userInfo'
)
uni
.
reLaunch
({
url
:
'/pages/login/accountLogin'
});
}
else
if
(
res
.
cancel
)
{
}
}
});
}
};
onMounted
(()
=>
{
});
return
{
...
toRefs
(
data
),
...
methods
,
};
},
};
</
script
>
<
style
scoped
>
<
style
scoped
>
.bottom
{
.bottom
{
width
:
100vw
;
width
:
100vw
;
...
@@ -10,9 +53,17 @@
...
@@ -10,9 +53,17 @@
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
margin-bottom
:
100
rpx
;
font-size
:
30
rpx
;
font-weight
:
bold
;
color
:
#DC3241
;
line-height
:
70
rpx
;
}
}
.img
{
.img
{
width
:
165
rpx
;
width
:
29
rpx
;
height
:
55
rpx
;
height
:
30
rpx
;
}
.bottom
text
{
margin-left
:
17
rpx
;
}
}
</
style
>
</
style
>
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