|
@@ -26,6 +26,9 @@
|
|
|
<div class="plusDrawer" @tap="hideModal">
|
|
|
<plusDrawer ref="plusDrawer"></plusDrawer>
|
|
|
</div>
|
|
|
+ <view>
|
|
|
+ <button class="cu-btn bg-red lg" @tap="falseLogin" type="" :style="{ 'height': buttonHeight}">注销账号</button>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -44,6 +47,7 @@
|
|
|
badge: 22,
|
|
|
inconList:["form","favor","question","edit"],
|
|
|
modalName:null,
|
|
|
+ buttonHeight:'',
|
|
|
address: '宁夏新能源公司',
|
|
|
drawerList: [{
|
|
|
"name": "首页"
|
|
@@ -114,9 +118,6 @@
|
|
|
uni.getStorageSync('windpowerstationName');
|
|
|
return uni.getStorageSync('windpowerstationName');
|
|
|
},
|
|
|
- openDrawer: function() {
|
|
|
- this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList);
|
|
|
- },
|
|
|
showModal(e) {
|
|
|
this.modalName = e.currentTarget.dataset.target;
|
|
|
this.$refs.plusDrawer.showModal(this.plusDrawerList, this.modalName);
|
|
@@ -125,6 +126,16 @@
|
|
|
this.modalName = null;
|
|
|
this.$refs.plusDrawer.hideModal(this.modalName);
|
|
|
},
|
|
|
+ falseLogin: function() {
|
|
|
+ this.removeUsernamePassword();
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/components/login/Login'
|
|
|
+ });
|
|
|
+ },
|
|
|
+ removeUsernamePassword: function() {
|
|
|
+ uni.removeStorageSync('gyeeusername');
|
|
|
+ uni.removeStorageSync('gyeepassword');
|
|
|
+ },
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
@@ -203,5 +214,10 @@
|
|
|
text-align: center;
|
|
|
margin-left: 18px;
|
|
|
}
|
|
|
-
|
|
|
+ .cu-btn {
|
|
|
+ width: 80%;
|
|
|
+ height: 40px;
|
|
|
+ margin-left: 10%;
|
|
|
+ margin-top: 25px;
|
|
|
+ }
|
|
|
</style>
|