checkPage.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. this.statusVal = uni.getStorageSync("firstAuthentication").authenticationStatus
  26. if (this.statusVal == '未认证' || !this.statusVal) {
  27. this.tipsInfo = "认证司机身份后即可查看车友信息哦"
  28. this.type = 1
  29. }
  30. if (this.statusVal == '审核中') {
  31. this.tipsInfo = "您的身份正在审核哦,请耐心等待"
  32. this.type = 2
  33. } else if (this.statusVal == '未通过') {
  34. this.tipsInfo = "您的身份没用通过审核哦,您可以重新认证身份~"
  35. this.type = 3
  36. }
  37. if(this.statusVal == "已认证"){
  38. uni.setTabBarItem({
  39. index: 1,
  40. text: '车友',
  41. pagePath: "/pages/riders/index",
  42. iconPath: 'static/images/common/zhaoche.png',
  43. selectedIconPath: 'static/images/common/zhaoche_check.png'
  44. })
  45. uni.switchTab({
  46. url: '/pages/riders/index'
  47. });
  48. }
  49. },
  50. onLoad() {},
  51. methods:{
  52. authentication(num){
  53. if (num == 1) {
  54. this.$u.route("/pages/mine/driverCertification")
  55. } else if (num == 3) {
  56. this.$u.route("/pages/mine/editDriverCertification")
  57. } else if (num == 2) {
  58. // this.$u.route("")
  59. uni.switchTab({
  60. url: '/pages/mine/index'
  61. });
  62. }
  63. }
  64. }
  65. }
  66. </script>
  67. <style lang="scss" scoped>
  68. .center{
  69. .tips{
  70. margin-top: 400rpx;
  71. text-align: center;
  72. // line-height: 50%;
  73. .tips_img{
  74. width: 200rpx;
  75. height: 200rpx;
  76. }
  77. }
  78. .tips_title,.tips_center{
  79. color: #323333 ;
  80. text-align: center;
  81. }
  82. .tips_title{
  83. color: #323333 ;
  84. font-size: 42rpx;
  85. font-weight: 600;
  86. }
  87. .tips_center{
  88. font-size: 26rpx;
  89. margin-top: 22rpx;
  90. }
  91. .tips_btn{
  92. text-align: center;
  93. background: #2772FB ;
  94. width: 70%;
  95. margin: 83rpx auto;
  96. padding: 30rpx 0;
  97. border-radius: 10rpx;
  98. color: #FFFFFF;
  99. }
  100. .tips_btns{
  101. text-align: center;
  102. width: 70%;
  103. margin: 83rpx auto;
  104. padding: 30rpx 0;
  105. border-radius: 10rpx;
  106. color: #A3A3A3;
  107. }
  108. }
  109. </style>