mini-program/pages/agreement-description/agreement-description.vue
@@ -23,7 +23,7 @@ </view> <view class="tc-btn"> <view class="tc-btn-item" @click="show = false">我再想想</view> <view class="tc-btn-item" style="color: #E4001D;">确认注销</view> <view class="tc-btn-item" style="color: #E4001D;" @click="loginOut()">确认注销</view> </view> </view> </u-popup> @@ -46,7 +46,11 @@ loginOut() { this.$u.api.logOff() .then(res => { if (res.code === 200) { if (res.code == 200) { uni.showToast({ title:'账号注销成功', icon:'success' }) this.$store.commit('clear') uni.switchTab({ url: '/pages/index/index'