92 lines
2.4 KiB
Vue
92 lines
2.4 KiB
Vue
![]() |
<template>
|
||
|
<view class="setting-container" :style="{height: `${windowHeight}px`}">
|
||
|
<view class="menu-list">
|
||
|
<!-- <view class="list-cell list-cell-arrow" @click="handleToPwd">-->
|
||
|
<!-- <view class="menu-item-box">-->
|
||
|
<!-- <view class="iconfont icon-password menu-icon"></view>-->
|
||
|
<!-- <view>修改密码</view>-->
|
||
|
<!-- </view>-->
|
||
|
<!-- </view>-->
|
||
|
<view class="list-cell list-cell-arrow" @click="handleAbout">
|
||
|
<view class="menu-item-box">
|
||
|
<view>关于我们</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
<view class="list-cell list-cell-arrow" @click="handleCleanTmp">
|
||
|
<view class="menu-item-box">
|
||
|
<view>意见反馈</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
<view class="list-cell list-cell-arrow" @click="showBindMobile = true">
|
||
|
<view class="menu-item-box">
|
||
|
<view>绑定手机号</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
<view class="cu-list menu">
|
||
|
<view class="cu-item item-box">
|
||
|
<view class="content text-center" @click="handleLogout">
|
||
|
<text>退出登录</text>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
|
||
|
<bind-mobile-popup :show.sync="showBindMobile"/>
|
||
|
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import BindMobilePopup from "@/pages/mine/setting/components/BindMobilePopup.vue";
|
||
|
|
||
|
export default {
|
||
|
components: {BindMobilePopup},
|
||
|
data() {
|
||
|
return {
|
||
|
showBindMobile: false, // 展示绑定手机号
|
||
|
windowHeight: uni.getSystemInfoSync().windowHeight
|
||
|
}
|
||
|
},
|
||
|
methods: {
|
||
|
handleAbout() {
|
||
|
this.$tab.navigateTo('/pages/mine/about/index')
|
||
|
},
|
||
|
handleToPwd() {
|
||
|
this.$tab.navigateTo('/pages/mine/pwd/index')
|
||
|
},
|
||
|
handleToUpgrade() {
|
||
|
this.$modal.showToast('模块建设中~')
|
||
|
},
|
||
|
handleCleanTmp() {
|
||
|
this.$modal.showToast('模块建设中~')
|
||
|
},
|
||
|
handleLogout() {
|
||
|
this.$modal.confirm('确定注销并退出系统吗?').then(() => {
|
||
|
this.$store.dispatch('LogOut').then(() => {
|
||
|
this.$tab.reLaunch('/pages/index/index')
|
||
|
})
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss" scoped>
|
||
|
.page {
|
||
|
background-color: #f8f8f8;
|
||
|
}
|
||
|
|
||
|
.item-box {
|
||
|
background-color: #FFFFFF;
|
||
|
margin: 30rpx;
|
||
|
display: flex;
|
||
|
flex-direction: row;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
padding: 10rpx;
|
||
|
border-radius: 8rpx;
|
||
|
color: $quote-color-red;
|
||
|
font-size: 32rpx;
|
||
|
}
|
||
|
</style>
|