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

102 lines
2.1 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.mobile }}</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. await logOut()
  56. _this.$store.commit('goLogin')
  57. } else if (res.cancel) {
  58. console.log('用户点击取消');
  59. }
  60. }
  61. });
  62. }
  63. }
  64. }
  65. </script>
  66. <style lang="scss" scoped>
  67. .card {
  68. padding: 6rpx;
  69. margin-bottom: 20rpx;
  70. }
  71. .row {
  72. display: flex;
  73. align-items: center;
  74. justify-content: space-between;
  75. height: 98rpx;
  76. font-size: 28rpx;
  77. padding: 0 30rpx;
  78. &.border {
  79. border-bottom: 2rpx solid #E8E9EC;
  80. }
  81. }
  82. .logout {
  83. width: 396rpx;
  84. height: 72rpx;
  85. background: #FFFFFF;
  86. border-radius: 8rpx;
  87. border: 2rpx solid #E8E9EC;
  88. font-size: 28rpx;
  89. color: #ADADAD;
  90. text-align: center;
  91. line-height: 72rpx;
  92. margin: 88rpx auto;
  93. }
  94. </style>