|
@@ -39,7 +39,7 @@
|
|
|
</view>
|
|
|
|
|
|
<view class="set-id sys-color-gray-9">ID:87999890</view>
|
|
|
- <view class="set-quit sys-color-black">退出账号</view>
|
|
|
+ <view class="set-quit sys-color-black" @click="logOut">退出账号</view>
|
|
|
|
|
|
|
|
|
</view>
|
|
@@ -75,6 +75,22 @@ export default {
|
|
|
this.getStorageSize()
|
|
|
},
|
|
|
methods: {
|
|
|
+ logOut(){
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '是否退出当前账户?',
|
|
|
+ success: function (res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ uni.clearStorageSync();
|
|
|
+ uni.reLaunch({
|
|
|
+ url:'/pages/login/index'
|
|
|
+ })
|
|
|
+ } else if (res.cancel) {
|
|
|
+ console.log('用户点击取消');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
goToUrl(url){
|
|
|
if(url===''){
|
|
|
return;
|