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
| <template>
| <view class="page_bg">
| <uv-navbar title="设置" :autoBack="true" :placeholder="true" leftIconColor="#fff" bgColor="rgba(0,0,0,0)" titleStyle="color:#fff"></uv-navbar>
|
| <view class="set_nav">
| <navigator class="item" url="/pages/policy/policy?id=1" hover-class="none" :render-link="false">
| <view class="name">
| 用户协议
| </view>
| <uv-icon name="arrow-right" color="rgba(0, 0, 0, 0.40)" size="36rpx"></uv-icon>
| </navigator>
| <navigator class="item" url="/pages/policy/policy?id=2" hover-class="none" :render-link="false">
| <view class="name">
| 隐私政策
| </view>
| <uv-icon name="arrow-right" color="rgba(0, 0, 0, 0.40)" size="36rpx"></uv-icon>
| </navigator>
| <navigator class="item" url="#" hover-class="none" :render-link="false">
| <view class="name">
| APP升级
| </view>
| <uv-icon name="arrow-right" color="rgba(0, 0, 0, 0.40)" size="36rpx"></uv-icon>
| </navigator>
| </view>
| <view class="set_btn" @click="postUnRegistry">
| 注销用户
| </view>
|
| <view class="foot_tips">
| APP版本:V1.2
| </view>
|
| </view>
| </template>
|
| <script>
| import { unRegistry } from '@/api/api.js'
| export default {
| data() {
| return {
|
| }
| },
| onLoad() {
|
| },
| methods: {
| postUnRegistry(){
| uni.showModal({
| title: '提示',
| content: '确定注销用户吗?',
| success: function (res) {
| if (res.confirm) {
| console.log('用户点击确定');
| unRegistry().then(res=>{
| console.log('注销----',res)
| uni.showToast({
| title: res.msg,
| duration: 2000,
| icon: 'none'
| });
| uni.removeStorageSync('token');
| uni.removeStorageSync('userId');
| uni.reLaunch({
| url: '/pages/login/login'
| });
| })
| } else if (res.cancel) {
| console.log('用户点击取消');
| }
| }
| });
|
| },
| }
| }
| </script>
|
| <style lang="scss" scoped>
| .set_btn{
| width: 386rpx;
| font-size: 27rpx;
| color: rgba(0,0,0,0.9);
| line-height: 96rpx;
| height: 96rpx;
| background: #FFFFFF;
| border-radius: 385rpx 385rpx 385rpx 385rpx;
| border: 2rpx solid rgba(0,0,0,0.15);
| text-align: center;
| margin: 60rpx auto;
| }
| .set_nav{
| padding:0 30rpx;
| .item{
| height: 138rpx;
| background: linear-gradient( 180deg, #FFFFFF 0%, rgba(255,255,255,0.5) 100%);
| box-shadow: 8rpx 8rpx 23rpx 0rpx rgba(67,147,248,0.1), -8rpx -8rpx 23rpx 0rpx rgba(255,255,255,0.4);
| border-radius: 23rpx 23rpx 23rpx 23rpx;
| border: 2rpx solid #FFFFFF;
| display: flex;
| align-items: center;
| justify-content: space-between;
| padding:0 30rpx;
| margin-top: 24rpx;
| .name{
| font-weight: 500;
| font-size: 27rpx;
| color: rgba(0,0,0,0.9);
| line-height: 46rpx;
| }
| }
| }
| .foot_tips{
| position: fixed;
| left: 0;
| bottom: 100rpx;
| right: 0;
| text-align: center;
| font-size: 30rpx;
| color: rgba(0,0,0,0.7);
| line-height: 38rpx;
| }
| .page_bg{
| width: 100%;
| min-height: calc(100vh - var(--window-bottom));
| background:url('/static/img/bg_2.jpg') no-repeat center top;
| background-size: 100% auto;
| }
| </style>
|
|