洛阳学员端
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.

236 lines
4.9 KiB

  1. <template>
  2. <view class="main">
  3. <view class="signAndOut">
  4. <view class="top_row">
  5. <view class="flex-box">
  6. <view class="icon">
  7. <image src="@/static/images/carIcon/home_icon_buzhou@2x.png" mode=""></image>
  8. </view>
  9. <view class="txt">步骤</view>
  10. </view>
  11. <view class="flex-box">
  12. <view class="icon">
  13. <image src="@/static/images/carIcon/home_icon_zhuangtai@2x.png" mode=""></image>
  14. </view>
  15. <view class="txt">状态</view>
  16. </view>
  17. </view>
  18. <view class="step">
  19. <view class="li" :class="{active: step1}">
  20. <view class="leftIcon" >
  21. <view class="icon">1</view>
  22. <view class="line" ></view>
  23. </view>
  24. <view class="textCon">
  25. <view class="text">信息认证</view>
  26. <view class="redTps" v-if="!step1">失败原因{{stepFailureReason}}</view>
  27. </view>
  28. <view class="btn" :class="{red: !step1}">{{step1?'通过': '不通过'}}</view>
  29. </view>
  30. <view class="li" :class="{active: step2}">
  31. <view class="leftIcon">
  32. <view class="icon">2</view>
  33. <view class="line" ></view>
  34. </view>
  35. <view class="textCon">
  36. <view class="text">人脸识别</view>
  37. <view class="redTps"></view>
  38. </view>
  39. <view class="btn" v-if="step2">通过</view>
  40. </view>
  41. <view class="li" :class="{active: step3}">
  42. <view class="leftIcon">
  43. <view class="icon">3</view>
  44. </view>
  45. <view class="textCon">
  46. <view class="text">信息同步</view>
  47. <view class="redTps"></view>
  48. </view>
  49. <view class="btn" v-if="step3">通过</view>
  50. </view>
  51. </view>
  52. <view class="footBtn">
  53. <view class="oneBtn" :class="{active: btnActive}" v-if="!step1" @click="$goPage('/pages/other/oldStudentBinding/oldStudentBinding?goBackIndex=1')">重新认证</view>
  54. <view class="oneBtn" :class="{active: step3}" v-else @click="goBack">我知道了</view>
  55. </view>
  56. </view>
  57. </view>
  58. </template>
  59. <script>
  60. // import {Base64} from 'node_modules/js-base64/base64.js';
  61. // const PPFace = uni.requireNativePlugin('PP-BaiduFaceV2');
  62. export default {
  63. data() {
  64. return {
  65. deviceCode: 0,
  66. stepFailureReason: '未通过',
  67. step1: false,
  68. step2: false,
  69. step3: false,
  70. btnActive: false
  71. }
  72. },
  73. onLoad(options) {
  74. },
  75. methods: {
  76. }
  77. }
  78. </script>
  79. <style lang="scss" scoped>
  80. .main {
  81. padding: 10rpx 32rpx;
  82. }
  83. .signAndOut {
  84. width: 100%;
  85. height: calc(100vh - 150rpx);
  86. background-color: #fff;
  87. padding: 48rpx;
  88. border-radius: 16rpx;
  89. position: relative;
  90. .footBtn {
  91. padding: 48rpx 100rpx;
  92. position: absolute;
  93. left: 0;
  94. width: 100%;
  95. bottom: 60rpx;
  96. }
  97. .top_row {
  98. display: flex;
  99. justify-content: space-between;
  100. padding: 0 0 0 52rpx;
  101. .flex-box {
  102. display: flex;
  103. align-items: center;
  104. .icon {
  105. width: 28rpx;
  106. height: 28rpx;
  107. image {
  108. display: block;
  109. width: 100%;
  110. height: 100%;
  111. }
  112. }
  113. .txt {
  114. font-size: 28rpx;
  115. color: #FD6401;
  116. margin-left: 14rpx;
  117. }
  118. }
  119. }
  120. .step {
  121. padding: 50rpx 0 0 0;
  122. .li {
  123. width: 100%;
  124. display: flex;
  125. height: 256rpx;
  126. // padding: 0 0 8rpx 0;
  127. .leftIcon {
  128. width: 56rpx;
  129. height: 100%;
  130. position: relative;
  131. .icon {
  132. width: 56rpx;
  133. height: 56rpx;
  134. border-radius: 50%;
  135. font-size: 24rpx;
  136. color: #fff;
  137. text-align: center;
  138. line-height: 56rpx;
  139. // background: url('../../../../static/images/carIcon/home_icon_weidao@2x.png');
  140. background-size: 100% 100%;
  141. }
  142. .line {
  143. position: absolute;
  144. left: 26rpx;
  145. top: 50rpx;
  146. width: 5rpx;
  147. height: 200rpx;
  148. border: 2rpx solid;
  149. border-image: linear-gradient(180deg, rgba(238, 238, 238, 1), rgba(216, 216, 216, 1)) 2 2;
  150. }
  151. }
  152. .textCon {
  153. flex: 1;
  154. padding: 0 0 0 8rpx;
  155. font-weight: 550;
  156. .text {
  157. font-size: 36rpx;
  158. color: #363A44;
  159. }
  160. .redTps {
  161. font-size: 28rpx;
  162. color: #E63633;
  163. }
  164. }
  165. .btn {
  166. width: 108rpx;
  167. height: 52rpx;
  168. text-align: center;
  169. line-height: 52rpx;
  170. color: #ffffff;
  171. background: linear-gradient(180deg, #53D3E5 0%, #3593FB 100%);
  172. border-radius: 8rpx;
  173. &.red {
  174. background: linear-gradient(180deg, #ea7c48 0%, #f54e40 100%);
  175. }
  176. }
  177. &.active {
  178. .leftIcon {
  179. .icon {
  180. // background: url('../../../static/images/icon/home_icon_yiguo@2x.png');
  181. background-size: 100% 100%;
  182. }
  183. .line {
  184. border-image: linear-gradient(180deg, rgba(83, 211, 229, 1), rgba(53, 147, 251, 1)) 2 2;
  185. }
  186. }
  187. }
  188. }
  189. }
  190. }
  191. .oneBtn {
  192. width: 100%;
  193. height: 96rpx;
  194. border-radius: 48rpx;
  195. font-size: 36rpx;
  196. color: #fff;
  197. background: linear-gradient(180deg, #EEEEEE 0%, #D8D8D8 100%);
  198. text-align: center;
  199. line-height: 96rpx;
  200. &.active {
  201. background: linear-gradient(180deg, #3593FB 0%, #53D3E5 100%);
  202. }
  203. }
  204. </style>