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

213 lines
4.0 KiB

  1. <template>
  2. <!-- <view>基本考核完成</view> -->
  3. <view class="page po-r">
  4. <image src="" mode="" class="mainBg"></image>
  5. <view class="w-100 po-a content">
  6. <stepProgress :step="2"></stepProgress>
  7. <view class="info">
  8. <view class="top">
  9. <view class="flex-rowl top-title">
  10. <up-icon class="icon" name="checkmark-circle-fill" color="#FFBF60" size="34rpx"></up-icon>
  11. <text>基本考核答题已完成</text>
  12. </view>
  13. <view class="flex-rowl top-desc">
  14. <up-icon class="icon" name="error-circle" color="#707070" size="27rpx"></up-icon>
  15. <text>进行培训考核的答题前请认真观看下面的视频和资料</text>
  16. </view>
  17. </view>
  18. <view class="info-box">
  19. <view class="info-box-title">
  20. 平台&服务介绍
  21. </view>
  22. <view class="info-box-content">
  23. <view class="flex-colc info-item"
  24. v-for="(item, index) in introList"
  25. :key="`intro-${index}`"
  26. >
  27. <view class="video">
  28. <video
  29. :src="item.url"
  30. play-btn-position="center"
  31. :show-fullscreen-btn="false"
  32. :show-center-play-btn="true"
  33. :show-progress="false"
  34. :show-play-btn="false"
  35. :picture-in-picture-mode="[]"
  36. ></video>
  37. </view>
  38. <text class="desc">{{ item.title }}</text>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="info-box">
  43. <view class="info-box-title">
  44. 服务培训
  45. </view>
  46. <view class="info-box-content">
  47. <view class="flex-colc info-item">
  48. <image src="../static/examination/bg-train-manual.png" mode="widthFix"></image>
  49. </view>
  50. </view>
  51. </view>
  52. <view class="flex-rowc tools">
  53. <view class="flex-rowc btn" @click="toNext">
  54. 进入培训考核
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. </template>
  61. <script setup>
  62. import { ref } from 'vue'
  63. import { onShow } from '@dcloudio/uni-app'
  64. import stepProgress from '../components/stepProgress.vue';
  65. const toNext = () => {
  66. uni.navigateTo({
  67. url: "/otherPages/authentication/examination/train"
  68. })
  69. }
  70. const introList = ref([])
  71. onShow(() => {
  72. // todo: delete test data
  73. introList.value = [
  74. {
  75. url: '',
  76. title: '猫妈狗爸平台介绍',
  77. },
  78. {
  79. url: '',
  80. title: '喂养学习视频',
  81. },
  82. ]
  83. })
  84. </script>
  85. <style scoped lang="scss">
  86. .page {
  87. position: relative;
  88. width: 100vw;
  89. .mainBg {
  90. width: 100vw;
  91. height: 442rpx;
  92. background-image: linear-gradient(to bottom, #FFBF60, #f5f5f5);
  93. }
  94. .content {
  95. top: 0;
  96. left: 0;
  97. padding: 16rpx;
  98. width: 100%;
  99. box-sizing: border-box;
  100. }
  101. }
  102. .info{
  103. margin-top: 22rpx;
  104. box-sizing: border-box;
  105. width: 100%;
  106. height: auto;
  107. background-color: #FFFFFF;
  108. padding: 22rpx 20rpx 38rpx 20rpx;
  109. border-radius: 16rpx;
  110. .top{
  111. width: 100%;
  112. background-color: #FFFCF1;
  113. box-sizing: border-box;
  114. padding: 19rpx 26rpx;
  115. border-radius: 16rpx;
  116. color: #707070;
  117. &-title {
  118. font-size: 28rpx;
  119. .icon {
  120. margin-right: 5rpx;
  121. }
  122. }
  123. &-desc {
  124. margin-top: 22rpx;
  125. font-size: 22rpx;
  126. .icon {
  127. margin-right: 12rpx;
  128. }
  129. }
  130. }
  131. &-box {
  132. margin-top: 30rpx;
  133. &-title {
  134. display: inline-block;
  135. font-size: 30rpx;
  136. &::before {
  137. content: "";
  138. display: inline-block;
  139. width: 9rpx;
  140. height: 33rpx;
  141. background-color: #FFBF60;
  142. margin-right: 7rpx;
  143. border-radius: 5rpx;
  144. }
  145. }
  146. &-content {
  147. display: grid;
  148. grid-template-columns: repeat(2, 1fr);
  149. grid-column-gap: 27rpx;
  150. }
  151. }
  152. &-item {
  153. width: 100%;
  154. margin-top: 30rpx;
  155. .video {
  156. width: 100%;
  157. height: 197rpx;
  158. border-radius: 16rpx;
  159. overflow: hidden;
  160. }
  161. video {
  162. width: 100%;
  163. height: 100%;
  164. }
  165. image {
  166. width: 100%;
  167. }
  168. .desc {
  169. color: #707070;
  170. font-size: 22rpx;
  171. line-height: 40rpx;
  172. }
  173. }
  174. }
  175. .tools {
  176. margin-top: 79rpx;
  177. }
  178. .btn {
  179. font-size: 30rpx;
  180. line-height: 40rpx;
  181. color: #fff;
  182. width: 574rpx;
  183. padding: 27rpx 0;
  184. box-sizing: border-box;
  185. border-radius: 41rpx;
  186. background-color: #FFBF60;
  187. }
  188. </style>