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

141 lines
2.8 KiB

  1. <template>
  2. <!-- <view>伴宠师认证</view> -->
  3. <view>
  4. <view class="box">
  5. <view class="content bg-fff">
  6. <view class="">
  7. <view class="label size-22 level" :style="{borderRadius:'10rpx'}">
  8. 选择题
  9. </view>
  10. <view class="">
  11. <view class="size-28 mt32 mb20">
  12. 1猫咪每天在地上走路时不时还会打滚 身上是很不干净的最好每个星期洗次澡
  13. </view>
  14. <view class="size-28 color-777 p20 daan mb24">
  15. A
  16. </view>
  17. <view class="size-28 color-777 p20 daan active mb24">
  18. B
  19. </view>
  20. </view>
  21. </view>
  22. <view class="mt60">
  23. <view class="label size-22 level" :style="{borderRadius:'10rpx'}">
  24. 主观题
  25. </view>
  26. <view class="">
  27. <view class="size-28 mt32 mb20">
  28. 1喂养服务流程:如果您收到一笔喂养猫咪的订单备注猫咪性格怕生请问您会如何进行服务?请详细描述您的全部服务流程(若服务宠物不包含猫咪可回答)
  29. </view>
  30. <view class="size-28 color-777 p20 daan">
  31. <textarea value="" placeholder="" />
  32. <text :style="{color:'#FF2A2A'}">字数低于700字不予合格</text>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="footer-btn buttom ">
  39. <view class="size-22 color-777 tips-rest">
  40. <!-- todo -->
  41. 剩余考试机会<text class="highlight">{{ restTimes }}</text>
  42. </view>
  43. <view class="btn" @click="onClick">
  44. 重新考试
  45. </view>
  46. </view>
  47. </view>
  48. </template>
  49. <script setup>
  50. import { ref } from 'vue'
  51. import { onShow } from '@dcloudio/uni-app'
  52. const restTimes = ref()
  53. onShow(() => {
  54. // todo: fetch
  55. restTimes.value = 3
  56. })
  57. const onClick = () => {
  58. uni.reLaunch({
  59. url: "/otherPages/authentication/examination/start"
  60. // todo: check
  61. // url: "/otherPages/authentication/list/index"
  62. })
  63. }
  64. </script>
  65. <style lang="scss" scoped>
  66. .active {
  67. color: #FFBF60;
  68. background-color: rgb(255, 241, 240);
  69. }
  70. .daan {
  71. background-color: #F3F3F3;
  72. border-radius: 50rpx;
  73. }
  74. .p20 {
  75. padding: 20px;
  76. }
  77. .box {
  78. // background-image: linear-gradient(to bottom, #ffbf60, #f2f2f2);
  79. padding: 16rpx;
  80. .step {
  81. width: 720rpx;
  82. height: 32rpx;
  83. border-radius: 32rpx;
  84. background-color: #D9D9D9;
  85. .in {
  86. width: 50%;
  87. height: 32rpx;
  88. background-color: #ffbf60;
  89. border-radius: 32rpx;
  90. }
  91. }
  92. }
  93. .content {
  94. border-radius: 20rpx;
  95. padding: 15rpx 20rpx;
  96. .label {
  97. width: 86rpx;
  98. padding: 5rpx 15rpx;
  99. color: #fff;
  100. background-color: #FFBF60;
  101. justify-content: center;
  102. }
  103. }
  104. .level {
  105. display: flex;
  106. }
  107. .subjectivity {
  108. height: auto;
  109. }
  110. .buttom {
  111. display: grid;
  112. place-items: center;
  113. }
  114. .tips {
  115. &-rest {
  116. color: #707070;
  117. font-size: 22rpx;
  118. margin: 9rpx 0 13rpx 0;
  119. .highlight {
  120. color: #FF8DC6;
  121. }
  122. }
  123. }
  124. </style>