first commit

This commit is contained in:
仲么了
2023-11-16 15:13:28 +08:00
commit 6023eac4fe
209 changed files with 34095 additions and 0 deletions

16
pages/setting/setting.css Normal file
View File

@@ -0,0 +1,16 @@
.option-block{
display: flex;
flex-direction: column;
justify-content: flex-start;
}
.exit-block{
height: 100rpx;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
font-size: 30rpx;
color:#303233;
border-bottom: solid 1px rgba(240,240,240,1);
}

50
pages/setting/setting.vue Normal file
View File

@@ -0,0 +1,50 @@
<template>
<view>
<back :pageNameFlag="pageNameFlag" :showFlag="showFlag" :pageName='pageName'></back>
<view class="option-block">
<view class="exit-block" @click="exit">退出登录</view>
</view>
</view>
</template>
<script>
import back from '../../components/back.vue';
export default {
data() {
return {
pageNameFlag:1,
showFlag:0,
pageName:'设置',
}
},
methods: {
exit(){
uni.showModal({
title: '提示',
content: '确认退出登录',
success: function (res) {
if (res.confirm) {
uni.removeStorageSync("account")
uni.removeStorageSync("password")
uni.removeStorageSync("userInfo")
uni.removeStorageSync("loginTime")
uni.reLaunch({
url:'../login/login'
})
} else if (res.cancel) {
console.log('用户点击取消');
return;
}
}
});
}
},
components:{
back
}
}
</script>
<style>
@import url("setting.css");
</style>