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

131 lines
3.6 KiB

1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
  1. <template>
  2. <view class="po-r">
  3. <image class="bg" src="" mode=""></image>
  4. <view class="po-a content w-100">
  5. <view class="top bg-fff">
  6. <view class="com-title size-32 fw700 flex-rowl">
  7. 您选择的宠物类型
  8. </view>
  9. <image class="mt32" v-if="petType === 'cat'" src="../static/list/cat-active.png" mode="widthFix"></image>
  10. <image class="mt32" v-else-if="petType === 'dog'" src="../static/list/dog-active.png" mode="widthFix"></image>
  11. <image class="mt32" v-else-if="petType === 'special-pet'" src="../static/list/special-pet-active.png" mode="widthFix"></image>
  12. </view>
  13. <view class="text po-r bg-fff">
  14. <text
  15. class="size-28">即将开始基础养宠经验考核该环节是对喂养员科学养宠经验及理念的基础考核考核题目均为选择判断题题目较为简单;大多为科学养宠所涉及的常识题以客观事实判定标准答案;小部分题目为平台对喂养员的要求以平台自行判定标准答案!</text>
  16. <view class="po-a flex-rowl tips">
  17. <image class="ml16" src="@/static/images/ydd/icon1.png" mode="widthFix"></image>
  18. <text class="size-28 ml16">养宠考试说明</text>
  19. </view>
  20. </view>
  21. <view class="text po-r bg-fff mb150">
  22. <text
  23. class="size-28">即将开始基础养宠经验考核该环节是对喂养员科学养宠经验及理念的基础考核考核题目均为选择判断题题目较为简单;大多为科学养宠所涉及的常识题以客观事实判定标准答案;小部分题目为平台对喂养员的要求以平台自行判定标准答案!</text>
  24. <view class="po-a flex-rowl tips">
  25. <image class="ml16" src="@/static/images/ydd/icon2.png" mode="widthFix"></image>
  26. <text class="size-28 ml16">考试注意事项</text>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="footer-btn flex-colc">
  31. <view class="size-22 color-777 tips-rest">
  32. <!-- todo -->
  33. 剩余考试机会<text class="highlight">{{ restTimes }}</text>
  34. </view>
  35. <view class="btn" @click="toNext">
  36. 开始考试
  37. </view>
  38. </view>
  39. </view>
  40. </template>
  41. <script setup>
  42. import { ref, onMounted } from 'vue'
  43. import { onShow } from '@dcloudio/uni-app'
  44. const petType = ref()
  45. const restTimes = ref()
  46. onShow(() => {
  47. // todo: fetch
  48. petType.value = 'cat'
  49. restTimes.value = 3
  50. })
  51. const content =
  52. `即将开始基础养宠经验考核,该环节是对喂养员科学养宠经验及理念的基础考核,考核题目均为选择判断题,题目较为简单;大多为科学养宠所涉及的常识题,以客观事实判定标准答案;小部分题目为平台对喂养员的要求,以平台自行判定标准答案!`
  53. const toNext = () => {
  54. uni.navigateTo({
  55. url: "/otherPages/authentication/examination/base"
  56. })
  57. }
  58. </script>
  59. <style lang="scss" scoped>
  60. .mb150 {
  61. margin-bottom: 150rpx;
  62. }
  63. .text {
  64. padding: 50rpx 37rpx;
  65. border-radius: 20rpx;
  66. margin-top: 43px;
  67. }
  68. .tips {
  69. width: 302rpx;
  70. height: 67rpx;
  71. background-color: #FFEBCE;
  72. top: -28rpx;
  73. left: 20rpx;
  74. border-radius: 0 90rpx 0 0;
  75. image {
  76. width: 40rpx;
  77. }
  78. }
  79. .content {
  80. padding: 16rpx;
  81. width: 718rpx;
  82. left: 0;
  83. top: 0;
  84. }
  85. .bg {
  86. width: 750rpx;
  87. height: 432px;
  88. background-image: linear-gradient(to bottom, #FFBF60, #f5f5f5);
  89. }
  90. .top {
  91. padding: 46rpx 17rpx 17rpx;
  92. margin: 16rpx;
  93. border-radius: 20rpx;
  94. image {
  95. width: 198rpx;
  96. }
  97. }
  98. .tips {
  99. &-rest {
  100. color: #707070;
  101. font-size: 22rpx;
  102. margin: 9rpx 0 13rpx 0;
  103. .highlight {
  104. color: #FF8DC6;
  105. }
  106. }
  107. }
  108. .footer-btn {
  109. height: 163rpx;
  110. box-sizing: border-box;
  111. padding-bottom: 18rpx;
  112. }
  113. </style>