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

209 lines
3.4 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 { onShow } 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. onShow(() => {
  24. // todo: fetch
  25. status.value = 'pass'
  26. })
  27. </script>
  28. <style scoped lang="scss">
  29. .bt120 {
  30. margin-bottom: 120rpx;
  31. width: 716rpx;
  32. box-sizing: border-box;
  33. }
  34. .footer-btn {
  35. width: 100vw;
  36. height: 144rpx;
  37. background-color: #fff;
  38. display: flex;
  39. justify-content: center;
  40. position: fixed;
  41. bottom: 0;
  42. left: 0;
  43. align-items: center;
  44. .btn {
  45. font-size: 30rpx;
  46. color: #fff;
  47. display: flex;
  48. justify-content: center;
  49. align-items: center;
  50. width: 574rpx;
  51. height: 94rpx;
  52. border-radius: 94rpx;
  53. background-color: #FFBF60;
  54. }
  55. }
  56. .type {
  57. width: 190rpx;
  58. margin-bottom: 74rpx;
  59. }
  60. .form {
  61. padding: 40rpx 32rpx;
  62. box-sizing: border-box;
  63. width: 716rpx;
  64. }
  65. .title {
  66. &::before {
  67. content: "";
  68. display: block;
  69. width: 9rpx;
  70. height: 33rpx;
  71. background-color: #FFBF60;
  72. margin-right: 7rpx;
  73. }
  74. }
  75. .mb6 {
  76. margin-bottom: 6rpx;
  77. }
  78. .containers {
  79. position: relative;
  80. .neir {
  81. padding: 47rpx 27rpx 36rpx 27rpx;
  82. border-radius: 16rpx;
  83. box-sizing: border-box;
  84. width: 716rpx;
  85. .steps {
  86. .line {
  87. width: 163rpx;
  88. height: 3rpx;
  89. background-color: #BDBDBD;
  90. margin-bottom: 30rpx;
  91. }
  92. .num {
  93. width: 50rpx;
  94. height: 50rpx;
  95. background-color: #FFBF60;
  96. border-radius: 50%;
  97. }
  98. }
  99. }
  100. .mainBg {
  101. width: 100vw;
  102. height: 442rpx;
  103. background-image: linear-gradient(to bottom, #FFBF60, #f5f5f5);
  104. }
  105. .content {
  106. top: 0;
  107. left: 0;
  108. padding: 16rpx;
  109. .logo {
  110. width: 194rpx;
  111. height: 70rpx;
  112. }
  113. .renz {
  114. image {
  115. width: 26rpx;
  116. height: 26rpx;
  117. }
  118. }
  119. }
  120. }
  121. .content_{
  122. width: 675rpx;
  123. height: 926rpx;
  124. // background-color: pink;
  125. background-color: #fff;
  126. position: absolute;
  127. top: 410rpx;
  128. left: 15rpx;
  129. padding: 1% 3%;
  130. font-size: 28rpx;
  131. color: #707070;
  132. .img_{
  133. width: 310rpx;
  134. height: 311rpx;
  135. margin: 80rpx 0 0 190rpx;
  136. }
  137. .text{
  138. width: 420rpx;
  139. height: 74rpx;
  140. justify-content: center;
  141. margin: 30rpx 0 0 140rpx;
  142. }
  143. .text_{
  144. width: 674rpx;
  145. height: 74rpx;
  146. justify-content: center;
  147. margin: 30rpx 0 0 10rpx;
  148. font-size: 22rpx !important;
  149. }
  150. .buttom{
  151. width: 594rpx;
  152. height: 94rpx;
  153. display: grid;
  154. place-items: center;
  155. background-color: #FFBF60;
  156. margin: 250rpx 0 0 40rpx;
  157. font-size: 30rpx;
  158. color: #FFFFFF;
  159. }
  160. .buttom_{
  161. width: 594rpx;
  162. height: 94rpx;
  163. justify-content: center;
  164. line-height: 94rpx;
  165. background-color: #FFBF60;
  166. margin: 360rpx 0 0 40rpx;
  167. font-size: 30rpx;
  168. color: #FFFFFF;
  169. .img image{
  170. margin-left: 5rpx;
  171. margin-right: -15rpx;
  172. }
  173. }
  174. }
  175. .level{
  176. display: flex;
  177. }
  178. </style>