104 lines
2.0 KiB
Vue
104 lines
2.0 KiB
Vue
<template>
|
|
<view class="container" :style="themeColor">
|
|
<view class="cancel-wrap">
|
|
<view class="cancel-img">
|
|
<image :src="$util.img('public/uniapp/member/success.png')" show-menu-by-longpress></image>
|
|
</view>
|
|
<view class="cancel-title">{{ $lang('cancel.cancelSuccess') }}</view>
|
|
<view class="cancel-reason">{{ $lang('cancel.cancelSuccessTip') }}</view>
|
|
<view class="cancel-btn"><button class="color-base-bg" @click="success">{{ $lang('common.done') }}</button></view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import memberPublic from './public/js/member-public.js';
|
|
|
|
export default {
|
|
mixins: [memberPublic],
|
|
components: {},
|
|
data() {
|
|
return {
|
|
state: ''
|
|
};
|
|
},
|
|
onLoad(option) {
|
|
|
|
if (option.back) this.back = option.back;
|
|
|
|
// 判断登录
|
|
if (!this.storeToken) {
|
|
this.$util.redirectTo(this.$util.LOGIN_PAGE_URL);
|
|
} else {
|
|
this.getStatus();
|
|
}
|
|
},
|
|
methods: {
|
|
getStatus() {
|
|
this.$api.sendRequest({
|
|
url: '/membercancel/api/membercancel/info',
|
|
success: res => {
|
|
if (res.code >= 0) {
|
|
if (res.data && res.data.status == 1) {
|
|
this.clearLoginState();
|
|
this.$util.redirectTo(this.$util.LOGIN_PAGE_URL);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
},
|
|
success() {
|
|
this.clearLoginState();
|
|
this.$util.redirectTo(this.$util.LOGIN_PAGE_URL);
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.cancel-wrap {
|
|
padding-top: 84rpx;
|
|
text-align: center;
|
|
|
|
.cancel-img {
|
|
width: 100rpx;
|
|
height: 100rpx;
|
|
display: inline-block;
|
|
|
|
image {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
.cancel-title {
|
|
text-align: center;
|
|
font-size: 24rpx;
|
|
line-height: 24rpx;
|
|
margin-top: 30rpx;
|
|
}
|
|
|
|
.cancel-reason {
|
|
color: #838383;
|
|
font-size: 20rpx;
|
|
line-height: 40rpx;
|
|
margin-top: 20rpx;
|
|
padding: 0 175rpx;
|
|
}
|
|
|
|
.cancel-btn {
|
|
width: 100%;
|
|
margin-top: 173rpx;
|
|
|
|
button {
|
|
display: inline-block;
|
|
width: 300rpx;
|
|
height: 80rpx;
|
|
font-size: 28rpx;
|
|
line-height: 80rpx;
|
|
margin: 0 15rpx;
|
|
color: #ffffff;
|
|
}
|
|
}
|
|
}
|
|
</style> |