学员端小程序
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.

106 lines
2.2 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="pageBgImg">
  3. <topNavbar title="人个中心"></topNavbar>
  4. <view class="pad">
  5. <view class="card">
  6. <view class="row">
  7. <view class="lab">手机号</view>
  8. <view class="val">{{ vuex_userInfo.phone }}</view>
  9. </view>
  10. </view>
  11. <view class="card">
  12. <view class="row border">
  13. <view class="lab">我的驾校</view>
  14. <view class="val">江西海正驾校</view>
  15. </view>
  16. <view class="row border">
  17. <view class="lab">我的教练</view>
  18. <view class="val">xxx</view>
  19. </view>
  20. <view class="row border">
  21. <view class="lab">所学车型</view>
  22. <view class="val">xxx</view>
  23. </view>
  24. <view class="row">
  25. <view class="lab">报名时间</view>
  26. <view class="val">xxx</view>
  27. </view>
  28. </view>
  29. <view class="card">
  30. <view class="row">
  31. <view class="lab">实名认证</view>
  32. <view class="val">已完成</view>
  33. </view>
  34. </view>
  35. <view class="card">
  36. <view class="row">
  37. <view class="lab">拍照&体检&面签</view>
  38. <view class="val">已完成</view>
  39. </view>
  40. </view>
  41. <view class="logout" @click="logOutFn">退出登录</view>
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. import { logOut } from '@/config/api.js'
  47. export default {
  48. methods: {
  49. logOutFn() {
  50. let _this = this
  51. uni.showModal({
  52. content: '确定要退出登录吗?',
  53. success: async function (res) {
  54. if (res.confirm) {
  55. logOut().then(()=>{
  56. _this.$store.commit('goLogin')
  57. }).catch(()=>{
  58. _this.$store.commit('goLogin')
  59. })
  60. } else if (res.cancel) {
  61. console.log('用户点击取消');
  62. }
  63. }
  64. });
  65. }
  66. }
  67. }
  68. </script>
  69. <style lang="scss" scoped>
  70. .card {
  71. padding: 6rpx;
  72. margin-bottom: 20rpx;
  73. }
  74. .row {
  75. display: flex;
  76. align-items: center;
  77. justify-content: space-between;
  78. height: 98rpx;
  79. font-size: 28rpx;
  80. padding: 0 30rpx;
  81. &.border {
  82. border-bottom: 2rpx solid #E8E9EC;
  83. }
  84. }
  85. .logout {
  86. width: 396rpx;
  87. height: 72rpx;
  88. background: #FFFFFF;
  89. border-radius: 8rpx;
  90. border: 2rpx solid #E8E9EC;
  91. font-size: 28rpx;
  92. color: #ADADAD;
  93. text-align: center;
  94. line-height: 72rpx;
  95. margin: 88rpx auto;
  96. }
  97. </style>