修复:添加退出功能
This commit is contained in:
parent
46a1bc4392
commit
3e58f9baa1
|
|
@ -948,4 +948,19 @@ Page({
|
|||
url: '/packageI/member_cancel/member_cancel'
|
||||
});
|
||||
},
|
||||
|
||||
// 退出登录
|
||||
LogOutLogin(){
|
||||
wx.removeStorageSync("nickname");
|
||||
wx.removeStorageSync("session");
|
||||
wx.removeStorageSync("wx_token");
|
||||
wx.removeStorageSync("storeMessage");
|
||||
|
||||
wx.navigateTo({
|
||||
url: '/packageG/member_v2/member_v2'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
|
|
|||
|
|
@ -141,6 +141,7 @@
|
|||
</view>
|
||||
<view class="buttongroup">
|
||||
<view class="button" catchtap="submitInfo">确认修改</view>
|
||||
<view class="button" catchtap="LogOutLogin">退出登录</view>
|
||||
</view>
|
||||
</view>
|
||||
<van-action-sheet show="{{showSex}}" actions="{{sexItems}}" bind:close="sexClose" bind:select="sexSelectBtn" cancel-text="取消" bind:cancel="sexClose" />
|
||||
|
|
|
|||
|
|
@ -82,17 +82,23 @@ page {
|
|||
|
||||
.buttongroup {
|
||||
padding: 10px 0;
|
||||
width: 100%;
|
||||
display: inline-flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.buttongroup .button {
|
||||
background-color: #ef4f4f;
|
||||
width: 80%;
|
||||
width: 40%;
|
||||
margin: 0 auto;
|
||||
font-size: 30rpx;
|
||||
height: 90rpx;
|
||||
line-height: 90rpx;
|
||||
height: 70rpx;
|
||||
line-height: 70rpx;
|
||||
text-align: center;
|
||||
border-radius: 6rpx;
|
||||
border-radius: 10rpx;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue