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

246 lines
4.9 KiB

3 months ago
3 months ago
3 months ago
  1. <template>
  2. <view class="containers po-r">
  3. <image src="" mode="" class="mainBg"></image>
  4. <view class="w-100 po-a content">
  5. <view class="flex-rowl">
  6. <image src="@/static/images/ydd/logo.png" mode="" class="logo"></image>
  7. <view class="size-36 fw700 color-fff">
  8. 伴宠师认证
  9. </view>
  10. </view>
  11. <view class="renz flex-rowl mt10">
  12. <text class="size-28 color-fff mr24">查看认证要求工作详情服务酬劳扥信息</text>
  13. <image src="@/static/images/ydd/more.png" mode=""></image>
  14. </view>
  15. <view class="neir bg-fff mt24">
  16. <view class="steps flex-between">
  17. <view class="step flex-colc">
  18. <view class="num mb6 flex-rowc size-26 color-fff">
  19. 1
  20. </view>
  21. <text class="size-22">基本考核</text>
  22. </view>
  23. <view class="line"></view>
  24. <view class="step flex-colc">
  25. <view class="num mb6 flex-rowc size-26 color-fff">
  26. 2
  27. </view>
  28. <text class="size-22">培训考核</text>
  29. </view>
  30. <view class="line"></view>
  31. <view class="step flex-colc">
  32. <view class="num mb6 flex-rowc size-26 color-fff">
  33. 3
  34. </view>
  35. <text class="size-22">最终准备</text>
  36. </view>
  37. </view>
  38. <view class="color-ffb size-22 mt32">
  39. 为保证喂养员认证顺利进行请认真填写并确保信息的真实性
  40. </view>
  41. </view>
  42. <view class="bg-fff mt22 form ">
  43. <view class="title fw700 size-30 flex-rowl">
  44. 基本信息
  45. </view>
  46. <dFrom :list="state.list" :isFooter="false" />
  47. </view>
  48. <view class="bg-fff mt22 form bt120">
  49. <view class="title fw700 size-30 flex-rowl">
  50. 个人宠物类型
  51. </view>
  52. <view class="flex-between wrap mt32">
  53. <image class="type" src="@/static/images/ydd/img1.png" mode="widthFix"></image>
  54. <image class="type" src="@/static/images/ydd/img2.png" mode="widthFix"></image>
  55. <image class="type" src="@/static/images/ydd/img3.png" mode="widthFix"></image>
  56. <image class="type" src="@/static/images/ydd/img4.png" mode="widthFix"></image>
  57. <image class="type" src="@/static/images/ydd/img5.png" mode="widthFix"></image>
  58. <image class="type" src="@/static/images/ydd/img6.png" mode="widthFix"></image>
  59. </view>
  60. </view>
  61. <view class="footer-btn" @click="toNext">
  62. <view class="btn">
  63. 下一步
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </template>
  69. <script setup>
  70. import {
  71. reactive
  72. } from "vue";
  73. import dFrom from "@/components/dForm/index.vue"
  74. const state = reactive({
  75. list: [{
  76. type: "input",
  77. label: "姓名",
  78. key: "name",
  79. placeholder: "请输入您的真实姓名",
  80. },
  81. {
  82. type: "input",
  83. label: "身份证号",
  84. key: "idCard",
  85. placeholder: "请输入您的真实身份证号",
  86. },
  87. {
  88. type: "radio",
  89. label: "性别",
  90. key: "sex",
  91. options: [{
  92. name: "男"
  93. },
  94. {
  95. name: "女"
  96. }
  97. ]
  98. },
  99. {
  100. type: "input",
  101. label: "年龄",
  102. key: "gender",
  103. placeholder: "请输入您的年龄",
  104. },
  105. {
  106. type: "input",
  107. label: "养宠经验",
  108. key: "shij",
  109. placeholder: "请输入您的养宠年限",
  110. unit: "年"
  111. },
  112. {
  113. type: "select",
  114. label: "是否有专业执照",
  115. key: "shij",
  116. placeholder: "请选择",
  117. options: [{
  118. name: "是"
  119. }, {
  120. name: "没有"
  121. }]
  122. },
  123. ]
  124. })
  125. const toNext = () => {
  126. uni.navigateTo({
  127. url: "/otherPages/authentication/examination/start"
  128. })
  129. }
  130. </script>
  131. <style lang="scss" scoped>
  132. .bt120 {
  133. margin-bottom: 120rpx;
  134. width: 716rpx;
  135. box-sizing: border-box;
  136. }
  137. .footer-btn {
  138. width: 100vw;
  139. height: 144rpx;
  140. background-color: #fff;
  141. display: flex;
  142. justify-content: center;
  143. position: fixed;
  144. bottom: 0;
  145. left: 0;
  146. align-items: center;
  147. .btn {
  148. font-size: 30rpx;
  149. color: #fff;
  150. display: flex;
  151. justify-content: center;
  152. align-items: center;
  153. width: 574rpx;
  154. height: 94rpx;
  155. border-radius: 94rpx;
  156. background-color: #FFBF60;
  157. }
  158. }
  159. .type {
  160. width: 190rpx;
  161. margin-bottom: 74rpx;
  162. }
  163. .form {
  164. padding: 40rpx 32rpx;
  165. box-sizing: border-box;
  166. width: 716rpx;
  167. }
  168. .title {
  169. &::before {
  170. content: "";
  171. display: block;
  172. width: 9rpx;
  173. height: 33rpx;
  174. background-color: #FFBF60;
  175. margin-right: 7rpx;
  176. }
  177. }
  178. .mb6 {
  179. margin-bottom: 6rpx;
  180. }
  181. .containers {
  182. .neir {
  183. padding: 47rpx 27rpx 36rpx 27rpx;
  184. border-radius: 16rpx;
  185. box-sizing: border-box;
  186. width: 716rpx;
  187. .steps {
  188. .line {
  189. width: 163rpx;
  190. height: 3rpx;
  191. background-color: #BDBDBD;
  192. margin-bottom: 30rpx;
  193. }
  194. .num {
  195. width: 50rpx;
  196. height: 50rpx;
  197. background-color: #FFBF60;
  198. border-radius: 50%;
  199. }
  200. }
  201. }
  202. .mainBg {
  203. width: 100vw;
  204. height: 442rpx;
  205. background-image: linear-gradient(to bottom, #FFBF60, #f5f5f5);
  206. }
  207. .content {
  208. top: 0;
  209. left: 0;
  210. padding: 16rpx;
  211. .logo {
  212. width: 194rpx;
  213. height: 70rpx;
  214. }
  215. .renz {
  216. image {
  217. width: 26rpx;
  218. height: 26rpx;
  219. }
  220. }
  221. }
  222. }
  223. </style>