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

219 lines
3.6 KiB

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