checkPage.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <template>
  2. <view class="center">
  3. <view class="tips">
  4. <image src="../../static/images/riders/weirenzheng.png" mode="" class="tips_img" v-if="type == 1"></image>
  5. <image src="../../static/images/riders/shenhezhong.png" mode="" class="tips_img" v-if="type == 2"></image>
  6. <image src="../../static/images/riders/weitongguo.png" mode="" class="tips_img" v-if="type == 3"></image>
  7. </view>
  8. <view class="tips_title">司机身份未认证</view>
  9. <view class="tips_center">{{tipsInfo}}</view>
  10. <view class="tips_btn" @click="authentication(1)" v-if="type == 1">立即认证</view>
  11. <view class="tips_btns" @click="authentication(2)" v-if="type == 2">知道了</view>
  12. <view class="tips_btn" @click="authentication(3)" v-if="type == 3">重新认证</view>
  13. </view>
  14. </template>
  15. <script>
  16. export default{
  17. data(){
  18. return{
  19. tipsInfo:"",
  20. statusVal:"",
  21. type:""
  22. }
  23. },
  24. onShow() {
  25. },
  26. onLoad() {
  27. this.statusVal = uni.getStorageSync("firstAuthentication").authenticationStatus
  28. if (this.statusVal == '未认证' || !this.statusVal) {
  29. this.tipsInfo = "认证司机身份后即可查看车友信息哦"
  30. this.type = 1
  31. }
  32. if (this.statusVal == '审核中') {
  33. this.tipsInfo = "您的身份正在审核哦,请耐心等待"
  34. this.type = 2
  35. } else if (this.statusVal == '未通过') {
  36. this.tipsInfo = "您的身份没用通过审核哦,您可以重新认证身份~"
  37. this.type = 3
  38. }
  39. },
  40. methods:{
  41. authentication(num){
  42. if (num == 1) {
  43. this.$u.route("/pages/mine/driverCertification")
  44. } else if (num == 3) {
  45. this.$u.route("/pages/mine/editDriverCertification")
  46. } else if (num == 2) {
  47. // this.$u.route("")
  48. uni.switchTab({
  49. url: '/pages/mine/index'
  50. });
  51. }
  52. }
  53. }
  54. }
  55. </script>
  56. <style lang="scss" scoped>
  57. .center{
  58. .tips{
  59. margin-top: 400rpx;
  60. text-align: center;
  61. // line-height: 50%;
  62. .tips_img{
  63. width: 200rpx;
  64. height: 200rpx;
  65. }
  66. }
  67. .tips_title,.tips_center{
  68. color: #323333 ;
  69. text-align: center;
  70. }
  71. .tips_title{
  72. color: #323333 ;
  73. font-size: 42rpx;
  74. font-weight: 600;
  75. }
  76. .tips_center{
  77. font-size: 26rpx;
  78. margin-top: 22rpx;
  79. }
  80. .tips_btn{
  81. text-align: center;
  82. background: #2772FB ;
  83. width: 70%;
  84. margin: 83rpx auto;
  85. padding: 30rpx 0;
  86. border-radius: 10rpx;
  87. color: #FFFFFF;
  88. }
  89. .tips_btns{
  90. text-align: center;
  91. width: 70%;
  92. margin: 83rpx auto;
  93. padding: 30rpx 0;
  94. border-radius: 10rpx;
  95. color: #A3A3A3;
  96. }
  97. }
  98. </style>