freezing.vue
2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<template>
<view class="freezing" :style="vuex_theme">
<view class="box">
<view class="icon">
<icon type="waiting" size="53"></icon>
</view>
<view class="text">
<view class="title">冻结中</view>
<view class="describe">您已经提交账号注销申请,此账号已被冻结, 工作人员会在15个工作日内处理您的请求</view>
</view>
</view>
<view class="btn fixed_bottom_btn">
<view class="left_btn">
<c-button type="cancel" text="撤销注销" @click="giveUp">
</c-button>
</view>
<view class="right_btn">
<c-button type="confirm" text="联系客服" @click="contactCustomer">
</c-button>
</view>
</view>
</view>
</template>
<script>
import {
mapState,
mapActions
} from 'vuex'
import {
cancelDelAccountApi,
} from '@/config/api.js';
export default {
data() {
return {
}
},
onLoad(option) {
},
computed: {
...mapState({
// vuex_phone: (state) => state.vuex_phone,
}),
},
methods: {
giveUp() {
cancelDelAccountApi({
phone: this.vuex_phone,
}).then(async data => {
console.log(data)
uni.showToast({
title: '撤销成功'
});
this.$u.route('/pages/main/my/login/login');
})
},
contactCustomer() {
uni.makePhoneCall({
phoneNumber: "150-7142-1900"
})
},
}
}
</script>
<style lang="scss" scoped>
.freezing {
width: 100%;
height: 100%;
position: relative;
.box {
.icon {
padding: 308rpx 0 0 0;
text-align: center;
}
.text {
text-align: center;
.title {
font-size: 34rpx;
color: #000000;
line-height: 48rpx;
margin: 44rpx 0 32rpx 0;
}
.describe {
width: 560rpx;
margin: 0 auto;
font-size: 28rpx;
color: rgba(0, 0, 0, 0.5);
line-height: 40rpx;
}
}
}
.fixed_bottom_btn {
width: 100%;
height: 144rpx;
padding: 24rpx 32rpx;
background: #FFFFFF;
position: fixed;
bottom: 0;
left: 0;
z-index: 99;
border-top: 1rpx solid #F0F0F1;
view {
display: inline-block;
}
.left_btn {
width: 212rpx;
margin: 0 40rpx 0 0;
}
.right_btn {
width: 434rpx;
}
}
}
</style>