This commit is contained in:
zmj 2024-05-09 15:07:46 +08:00
parent 304389778b
commit f252a59da0

View File

@ -42,7 +42,9 @@
userOut,
getLogout
} from '@/api/user.js'
import { mapGetters } from "vuex";
import {
mapGetters
} from "vuex";
export default {
name: 'user_about',
data() {
@ -63,7 +65,7 @@
this.setTitle(this.type)
},
methods: {
toCancel(){
toCancel() {
uni.redirectTo({
url: '/pages/users/user_about/index?from=the_cancellation_prompt'
})
@ -77,37 +79,41 @@
mask: true
});
this.moal = false;
(new Promise(call=>{
(new Promise(call => {
userOut().then(res => {
if(res.data.status === 200){
if (res.data.status === 200) {
uni.hideLoading()
call()
}else{
} else {
uni.showModal({
title: '提示',
content: res.message,
success: ({confirm}) => {
success: ({
confirm
}) => {
if (confirm) {
userOut({key: res.data.result.key}).then(res => {
userOut({
key: res.data.result.key
}).then(res => {
uni.hideLoading()
if(res.data.status === 200){
if (res.data.status === 200) {
call()
}else{
} else {
this.$util.Tips({
title: res.message
});
}
})
}else{
} else {
uni.hideLoading()
}
}
});
}
})
})).then(v=>{
})).then(v => {
this.$store.commit("LOGOUT");
setTimeout(()=>{
setTimeout(() => {
uni.reLaunch({
url: '/pages/index/index'
});
@ -133,7 +139,7 @@
this.loaded = false;
cacheInfo(this.type).then(res => {
this.data = res.data[this.type]
if(res.data.title) {
if (res.data.title) {
uni.setNavigationBarTitle({
title: res.data.title
})
@ -181,19 +187,23 @@
padding: 30rpx;
color: #282828;
}
.cancelTxt {
overflow: hidden;
overflow-y: auto;
image{
image {
max-width: 100%;
}
}
.cancel {
position: fixed;
bottom: 60rpx;
left: 0;
z-index: 1;
width: 100%;
.checkbox {
display: flex;
align-items: center;
@ -201,21 +211,26 @@
margin: 0 auto;
font-size: 24rpx;
font-weight: 400;
span {
margin-left: 5rpx;
}
.font {
color: var(--view-theme);
font-style: normal;
}
.iconfont {
font-size: 28rpx;
margin-right: 15rpx;
}
.icon-xuanzhong1{
.icon-xuanzhong1 {
color: var(--view-theme);
}
}
.btn {
width: 690rpx;
height: 90rpx;
@ -231,6 +246,7 @@
}
}
}
.outMoal {
width: 100%;
height: 100%;
@ -242,6 +258,7 @@
display: flex;
align-items: center;
justify-content: center;
.box {
position: fixed;
width: 590rpx;
@ -251,15 +268,18 @@
border-radius: 20rpx;
text-align: center;
padding: 50rpx;
.title {
font-size: 30rpx;
font-weight: 600;
color: #282828;
}
.moalBtn {
margin-top: 43rpx;
display: flex;
justify-content: space-between;
.ok {
width: 234rpx;
height: 66rpx;
@ -269,6 +289,7 @@
line-height: 66rpx;
color: var(--view-theme);
}
.no {
width: 234rpx;
height: 66rpx;