Commit 56094a3f authored by youjie's avatar youjie

no message

parent b9881c26
<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: 100rpx;
font-size: 30rpx;
font-weight: bold;
color: #DC3241;
line-height: 70rpx;
} }
.img { .img {
width: 165rpx; width: 29rpx;
height: 55rpx; height: 30rpx;
}
.bottom text{
margin-left: 17rpx;
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment