猫妈狗爸伴宠师小程序前端代码
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.

217 lines
3.5 KiB

  1. <template>
  2. <!-- <view>伴宠师认证</view> -->
  3. <view class="containers po-r">
  4. <image src="" mode="" class="mainBg"></image>
  5. <view class="w-100 po-a content">
  6. <stepProgress :step="2"></stepProgress>
  7. </view>
  8. <view class="content_ box-size" :style="{borderRadius:'16rpx'}">
  9. <passView v-if="status === 'pass'"></passView>
  10. <failView v-else-if="status === 'fail'"></failView>
  11. <waitingView v-else></waitingView>
  12. </view>
  13. </view>
  14. </template>
  15. <script setup>
  16. import { ref } from 'vue'
  17. import { onLoad } from '@dcloudio/uni-app'
  18. import stepProgress from '../../components/stepProgress.vue';
  19. import waitingView from './waiting.vue'
  20. import passView from './pass.vue'
  21. import failView from './fail.vue'
  22. const status = ref('waiting')
  23. onLoad((option) => {
  24. switch(option?.status) {
  25. case '1':
  26. status.value = 'pass'
  27. break
  28. case '2':
  29. status.value = 'fail'
  30. break
  31. default:
  32. status.value = 'waiting'
  33. break
  34. }
  35. })
  36. </script>
  37. <style scoped lang="scss">
  38. .bt120 {
  39. margin-bottom: 120rpx;
  40. width: 716rpx;
  41. box-sizing: border-box;
  42. }
  43. .footer-btn {
  44. width: 100vw;
  45. height: 144rpx;
  46. background-color: #fff;
  47. display: flex;
  48. justify-content: center;
  49. position: fixed;
  50. bottom: 0;
  51. left: 0;
  52. align-items: center;
  53. .btn {
  54. font-size: 30rpx;
  55. color: #fff;
  56. display: flex;
  57. justify-content: center;
  58. align-items: center;
  59. width: 574rpx;
  60. height: 94rpx;
  61. border-radius: 94rpx;
  62. background-color: #FFBF60;
  63. }
  64. }
  65. .type {
  66. width: 190rpx;
  67. margin-bottom: 74rpx;
  68. }
  69. .form {
  70. padding: 40rpx 32rpx;
  71. box-sizing: border-box;
  72. width: 716rpx;
  73. }
  74. .title {
  75. &::before {
  76. content: "";
  77. display: block;
  78. width: 9rpx;
  79. height: 33rpx;
  80. background-color: #FFBF60;
  81. margin-right: 7rpx;
  82. }
  83. }
  84. .mb6 {
  85. margin-bottom: 6rpx;
  86. }
  87. .containers {
  88. position: relative;
  89. .neir {
  90. padding: 47rpx 27rpx 36rpx 27rpx;
  91. border-radius: 16rpx;
  92. box-sizing: border-box;
  93. width: 716rpx;
  94. .steps {
  95. .line {
  96. width: 163rpx;
  97. height: 3rpx;
  98. background-color: #BDBDBD;
  99. margin-bottom: 30rpx;
  100. }
  101. .num {
  102. width: 50rpx;
  103. height: 50rpx;
  104. background-color: #FFBF60;
  105. border-radius: 50%;
  106. }
  107. }
  108. }
  109. .mainBg {
  110. width: 100vw;
  111. height: 442rpx;
  112. background-image: linear-gradient(to bottom, #FFBF60, #f5f5f5);
  113. }
  114. .content {
  115. top: 0;
  116. left: 0;
  117. padding: 16rpx;
  118. .logo {
  119. width: 194rpx;
  120. height: 70rpx;
  121. }
  122. .renz {
  123. image {
  124. width: 26rpx;
  125. height: 26rpx;
  126. }
  127. }
  128. }
  129. }
  130. .content_{
  131. width: 675rpx;
  132. height: 926rpx;
  133. // background-color: pink;
  134. background-color: #fff;
  135. position: absolute;
  136. top: 410rpx;
  137. left: 15rpx;
  138. padding: 1% 3%;
  139. font-size: 28rpx;
  140. color: #707070;
  141. .img_{
  142. width: 310rpx;
  143. height: 311rpx;
  144. margin: 80rpx 0 0 190rpx;
  145. }
  146. .text{
  147. width: 420rpx;
  148. height: 74rpx;
  149. justify-content: center;
  150. margin: 30rpx 0 0 140rpx;
  151. }
  152. .text_{
  153. width: 674rpx;
  154. height: 74rpx;
  155. justify-content: center;
  156. margin: 30rpx 0 0 10rpx;
  157. font-size: 22rpx !important;
  158. }
  159. .buttom{
  160. width: 594rpx;
  161. height: 94rpx;
  162. display: grid;
  163. place-items: center;
  164. background-color: #FFBF60;
  165. margin: 250rpx 0 0 40rpx;
  166. font-size: 30rpx;
  167. color: #FFFFFF;
  168. }
  169. .buttom_{
  170. width: 594rpx;
  171. height: 94rpx;
  172. justify-content: center;
  173. line-height: 94rpx;
  174. background-color: #FFBF60;
  175. margin: 360rpx 0 0 40rpx;
  176. font-size: 30rpx;
  177. color: #FFFFFF;
  178. .img image{
  179. margin-left: 5rpx;
  180. margin-right: -15rpx;
  181. }
  182. }
  183. }
  184. .level{
  185. display: flex;
  186. }
  187. </style>