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
fa618f13
Commit
fa618f13
authored
Jun 07, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
52afa11e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
66 additions
and
0 deletions
+66
-0
signOut.vue
src/components/signOut.vue
+66
-0
No files found.
src/components/signOut.vue
0 → 100644
View file @
fa618f13
<
template
>
<view
class=
"signOut-box"
@
click=
"signOut"
>
<view
class=
"index-header-signOut flex"
>
<van-image
width=
"72rpx"
height=
"72rpx"
fit=
"cover"
class=
"img"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1654580469000_635.png"
/>
<text>
退出登录
</text>
</view>
</view>
</
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
.
reLaunch
({
url
:
'/pages/login/accountLogin'
});
uni
.
removeStorageSync
(
'userInfo'
)
}
else
if
(
res
.
cancel
)
{
}
}
});
}
};
onMounted
(()
=>
{
});
return
{
...
toRefs
(
data
),
...
methods
,
};
},
};
</
script
>
<
style
scoped
>
.index-header-signOut
text
{
font-size
:
26
rpx
;
font-weight
:
bold
;
color
:
#282828
;
margin-left
:
20
rpx
;
letter-spacing
:
2
rpx
;
}
.index-header-signOut
{
align-items
:
center
;
}
.signOut-box
{
padding
:
0
30
rpx
;
}
</
style
>
\ No newline at end of file
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