index.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <template>
  2. <view>
  3. <car-common ref="common"></car-common>
  4. <car-loading v-if="isLoading" ></car-loading>
  5. <u-navbar title="确认身份" :is-back="noback">
  6. <view class="slot-wrap"></view>
  7. <view class="navbar-right" @click="gotoHome" v-if="!noback" >
  8. <u-icon name="home-fill" color="#999" size="28"></u-icon>
  9. <span >前往首页</span>
  10. </view>
  11. </u-navbar>
  12. <view class="confirm" v-show="!list.length">
  13. <view class="confirm-img-border3" v-if="!isLoading" >
  14. <view class="confirm-img-border">
  15. <view class="confirm-img">
  16. <img src="static/img/discern.png" alt="">
  17. </view>
  18. </view>
  19. </view>
  20. <h3>欢迎乘坐{{passengerInfo.routeName}}车<br>请前往上车处刷脸登记</h3>
  21. </view>
  22. <view class="confirm" v-show="list.length">
  23. <h3 >请选择购票人的照片?</h3>
  24. <p v-show="!num">一位乘客仅需选择一张照片</p>
  25. <p v-show="num">如需为您的同伴购票请同时选中Ta的照片</p>
  26. <view class="confirm-pic" v-if="list.length">
  27. <template v-for="item in list">
  28. <view class="confirm-pic-item " :class="item.ck?'active':''" @click="ckBtn(item)" >
  29. <img :src="item.imageUrl" alt="">
  30. </view>
  31. </template>
  32. </view>
  33. <p v-show="!num"><span style="color: #007AFF;">若无本人照片?</span>请前往上车处重新刷脸登记</p>
  34. </view>
  35. <view class="upload-button" >
  36. <view class="reset-btn" @click="upBusNoTicketList(false)">
  37. <u-icon name="shuaxin" custom-prefix="custom-icon" color="#2979ff" size="36"></u-icon>
  38. </view>
  39. <view class="submit-btn" v-show="num">
  40. <u-button type="primary" shape="circle" @click="submit">确定</u-button>
  41. </view>
  42. <view class="submit-btn" v-show="!num">
  43. <u-button class="gray-btn" type="default" shape="circle" >请选择</u-button>
  44. </view>
  45. </view>
  46. </view>
  47. </template>
  48. <script>
  49. import api from './index.js'
  50. export default api;
  51. </script>
  52. <style scoped lang="scss">
  53. .confirm-img-border3{
  54. border: 2px solid #ffb8b8;
  55. height: 248px;
  56. width: 248px;
  57. border-radius: 50%;
  58. margin: 50px auto 20px;
  59. .confirm-img{
  60. border-color:#ff6666;
  61. }
  62. }
  63. .confirm{
  64. margin-top: 20px;
  65. .confirm-img{
  66. height: 240px;
  67. width: 240px;
  68. border-radius: 50%;
  69. overflow: hidden;
  70. border:4px solid #1677ff;
  71. img{
  72. height: 100%;
  73. width: 100%;
  74. }
  75. }
  76. .confirm-img-border{
  77. border: 2px solid #fff;
  78. height: 244px;
  79. width: 244px;
  80. border-radius: 50%;
  81. }
  82. .confirm-img-border2{
  83. border: 2px solid #7fb4ff;
  84. height: 248px;
  85. width: 248px;
  86. border-radius: 50%;
  87. margin: 50px auto 20px;
  88. }
  89. .confirm-img-border3{
  90. border: 2px solid #ffb8b8;
  91. height: 248px;
  92. width: 248px;
  93. border-radius: 50%;
  94. margin: 50px auto 20px;
  95. .confirm-img{
  96. border-color:#ff6666;
  97. }
  98. }
  99. h3{
  100. text-align: center;
  101. font-size: 18px;
  102. }
  103. p{
  104. color:#999;text-align: center;
  105. margin-top: 10rpx;
  106. }
  107. }
  108. .navbar-right {
  109. display: flex;
  110. margin-right: 20rpx;
  111. span{
  112. color:rgb(96, 98, 102);
  113. margin-left: 3px;
  114. }
  115. }
  116. .slot-wrap {
  117. display: flex;
  118. align-items: center;
  119. flex: 1;
  120. }
  121. .confirm-pic{
  122. display: flex;
  123. flex-direction: row;
  124. flex-wrap: wrap;
  125. padding: 20px;
  126. margin-bottom: 30px;
  127. .confirm-pic-item{
  128. height:100px;
  129. width: 100px;
  130. border-radius: 50%;
  131. overflow: hidden;
  132. border: 3px solid #fff;
  133. margin-bottom: 10px;
  134. margin-right: 5%;
  135. &:nth-child(3n+0){
  136. margin-right: 0;
  137. }
  138. &.active{
  139. border: 3px solid #1677ff;
  140. }
  141. img{
  142. height: 100%;
  143. width: 100%;
  144. }
  145. }
  146. }
  147. .upload-button{
  148. position: fixed;
  149. left: 30rpx;
  150. bottom:30rpx;
  151. right: 30rpx;
  152. display: flex;
  153. .reset-btn{
  154. height: 40px;
  155. width: 40px;
  156. border-radius: 50%;
  157. text-align: center;
  158. line-height: 40px;
  159. border: 1px solid #eee;
  160. margin-right: 10px;
  161. }
  162. .submit-btn{
  163. flex: 1;
  164. .gray-btn{
  165. background-color: #bfbfbf;
  166. color:#fff;
  167. border-color: #bfbfbf;
  168. }
  169. }
  170. }
  171. </style>