|
|
|
@ -77,6 +77,9 @@ |
|
|
|
|
<button hover-class="hover-logout-btn" class="u-reset-button logout-btn" @tap="showModal = true"> |
|
|
|
|
退出登录 |
|
|
|
|
</button> |
|
|
|
|
<button hover-class="hover-logout-btn" class="u-reset-button logout-btn" @tap="logoutShow=true"> |
|
|
|
|
注销账号 |
|
|
|
|
</button> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
@ -96,6 +99,9 @@ |
|
|
|
|
<!-- modal --> |
|
|
|
|
<u-modal ref="uModal" v-model="showModal" :show-cancel-button="true" confirm-color="#F54141" |
|
|
|
|
cancel-color="#666666" @confirm="confirmLogOut" content="确定退出登录?"></u-modal> |
|
|
|
|
<u-modal ref="uModal" v-model="logoutShow" :show-cancel-button="true" confirm-color="#F54141" |
|
|
|
|
cancel-color="#666666" @confirm="logoutHandle" content="确定注销账号?"></u-modal> |
|
|
|
|
<u-modal v-model="show" content="申请已提交等待审核" :show-cancel-button="false" @confirm="show=false"></u-modal> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
@ -112,6 +118,8 @@ export default { |
|
|
|
|
userData: {}, |
|
|
|
|
showCalendar: false, |
|
|
|
|
showModal: false, |
|
|
|
|
show:false, |
|
|
|
|
logoutShow:false, |
|
|
|
|
editInfoDisabled: true, |
|
|
|
|
thirdOauthInfo: null //第三方信息 |
|
|
|
|
}; |
|
|
|
@ -130,6 +138,10 @@ export default { |
|
|
|
|
this.userData.birthday = `${e.year}-${e.month}-${e.day}`; |
|
|
|
|
this.editInfoDisabled = this.userData.birthday == this.userInfo.birthday; |
|
|
|
|
}, |
|
|
|
|
//注销账号 |
|
|
|
|
logoutHandle(){ |
|
|
|
|
this.show = true; |
|
|
|
|
}, |
|
|
|
|
// 修改密码 |
|
|
|
|
changePwd() { |
|
|
|
|
this.showAuthModal("changePwd"); |
|
|
|
|