|
@@ -47,6 +47,12 @@
|
|
</view>
|
|
</view>
|
|
<image src="../../static/img/myimg/gengduo1@3x.png" class="arrow"></image>
|
|
<image src="../../static/img/myimg/gengduo1@3x.png" class="arrow"></image>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class='cu-item' style='margin-bottom:10px;' @click='unsubscribe'>
|
|
|
|
+ <view>
|
|
|
|
+ <text>注销账户</text>
|
|
|
|
+ </view>
|
|
|
|
+ <image src="../../static/img/myimg/gengduo1@3x.png" class="arrow"></image>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
<view class='exitloginwrap'>
|
|
<view class='exitloginwrap'>
|
|
<button @click='logout()' class='exitlogin'>退出登录</button>
|
|
<button @click='logout()' class='exitlogin'>退出登录</button>
|
|
@@ -281,6 +287,21 @@
|
|
url: `/pages/user/fankui`
|
|
url: `/pages/user/fankui`
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ unsubscribe(){
|
|
|
|
+ var that=this
|
|
|
|
+ uni.clearStorage({
|
|
|
|
+ success: function(res) {
|
|
|
|
+ console.log('success');
|
|
|
|
+ that.$store.commit('logout')
|
|
|
|
+ that.$api.logout()
|
|
|
|
+ // plus.nativeUI.toast(
|
|
|
|
+ // "注销成功");
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: `/pages/public/login`
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
logout() {
|
|
logout() {
|
|
// const that = this
|
|
// const that = this
|
|
this.isShowAlert = true
|
|
this.isShowAlert = true
|