学员端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

103 lines
2.1 KiB

<template>
<view class="pageBgImg">
<topNavbar title="人个中心"></topNavbar>
<view class="pad">
<view class="card">
<view class="row">
<view class="lab">手机号</view>
<view class="val">{{ vuex_userInfo.mobile }}</view>
</view>
</view>
<view class="card">
<view class="row border">
<view class="lab">我的驾校</view>
<view class="val">江西海正驾校</view>
</view>
<view class="row border">
<view class="lab">我的教练</view>
<view class="val">xxx</view>
</view>
<view class="row border">
<view class="lab">所学车型</view>
<view class="val">xxx</view>
</view>
<view class="row">
<view class="lab">报名时间</view>
<view class="val">xxx</view>
</view>
</view>
<view class="card">
<view class="row">
<view class="lab">实名认证</view>
<view class="val">已完成</view>
</view>
</view>
<view class="card">
<view class="row">
<view class="lab">拍照&体检&面签</view>
<view class="val">已完成</view>
</view>
</view>
<view class="logout" @click="logOutFn">退出登录</view>
</view>
</view>
</template>
<script>
import { logOut } from '@/config/api.js'
export default {
methods: {
logOutFn() {
let _this = this
uni.showModal({
content: '确定要退出登录吗?',
success: async function (res) {
if (res.confirm) {
await logOut()
_this.$store.commit('goLogin')
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
}
}
}
</script>
<style lang="scss" scoped>
.card {
padding: 6rpx;
margin-bottom: 20rpx;
}
.row {
display: flex;
align-items: center;
justify-content: space-between;
height: 98rpx;
font-size: 28rpx;
padding: 0 30rpx;
&.border {
border-bottom: 2rpx solid #E8E9EC;
}
}
.logout {
width: 396rpx;
height: 72rpx;
background: #FFFFFF;
border-radius: 8rpx;
border: 2rpx solid #E8E9EC;
font-size: 28rpx;
color: #ADADAD;
text-align: center;
line-height: 72rpx;
margin: 88rpx auto;
}
</style>