洛阳学员端
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.
 
 
 
 
 
 

128 lines
3.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.phone }}</view>
</view>
</view>
<view class="card" v-if="vuex_userInfo.schoolName">
<view class="row border">
<view class="lab">我的驾校</view>
<view class="val">{{ vuex_userInfo.schoolName||'' }}</view>
</view>
<view class="row border">
<view class="lab">我的教练</view>
<view class="val">{{ vuex_userInfo.coachName||'' }}</view>
</view>
<view class="row border">
<view class="lab">所学车型</view>
<view class="val">{{ vuex_userInfo.trainType||'' }}</view>
</view>
<view class="row">
<view class="lab">报名时间</view>
<view class="val">{{ $u.timeFormat(vuex_userInfo.applyDate, 'yyyy-mm-dd hh:MM:ss')}}</view>
</view>
</view>
<view class="card" v-if="vuex_userInfo.cardType>1" @click="$goPage('/pages/mineEntry/personaInfo/myInfo')">
<view class="row">
<view class="lab">个人信息</view>
<view class="flex">
<view class="val">查看</view>
<view class="icon">
<u-icon name="arrow-right"></u-icon>
</view>
</view>
</view>
</view>
<view class="card" v-if="vuex_userInfo.cardType==1">
<view class="row">
<view class="lab">实名认证</view>
<view class="val">已完成</view>
</view>
</view>
<view class="card" v-if="cardType==1">
<view class="row">
<view class="lab">拍照&体检&面签</view>
<view class="val">已完成</view>
</view>
</view>
<view class="logout" @click="logOutFn">退出登录</view>
<view class="logout" @click="deleteTestClick" style="margin-top: 40rpx;">删除测试账号开发用的</view>
</view>
</view>
</template>
<script>
import { logOut,deleteTest } from '@/config/api.js'
export default {
methods: {
logOutFn() {
let _this = this
uni.showModal({
content: '确定要退出登录吗?',
success: async function (res) {
if (res.confirm) {
logOut().then(()=>{
_this.$store.commit('goLogin')
}).catch(()=>{
_this.$store.commit('goLogin')
})
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
},
async deleteTestClick() {
const res = await deleteTest({phone: this.vuex_userInfo.phone})
this.$store.commit('goLogin')
console.log(res)
}
}
}
</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>