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