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

160 lines
2.8 KiB

2 months ago
  1. <template>
  2. <view class="box bg-fff">
  3. <view class="size-22 color-ffb tip">
  4. 完善服务信息和接单状态后才可以开始接单哦
  5. </view>
  6. <view class="title mt24">
  7. 基本资料
  8. </view>
  9. <view class="flex-colc">
  10. <image class="head" src="@/static/images/ydd/img.png" mode="widthFix"></image>
  11. <text class="size-28 color-999 mt10">点击更换头像</text>
  12. </view>
  13. <DForm :list="state.list" @submit="handleSubmit"></DForm>
  14. <view class="title mt24 flex-rowl">
  15. 展示信息
  16. <text class="size-22 color-ffb fw700">(重要)</text>
  17. </view>
  18. <DForm :list="state.list1" @submit="handleSubmit"></DForm>
  19. <view class="title mt24 flex-rowl">
  20. 服务资料
  21. </view>
  22. <DForm :list="state.list2" @submit="handleSubmit"></DForm>
  23. </view>
  24. <view class="size-24 color-ffb flex-rowc mt32 pb28">
  25. 伴宠师查看服务酬劳服务时长等规则
  26. </view>
  27. </template>
  28. <script setup>
  29. import DForm from "@/components/dForm/index.vue"
  30. import {
  31. reactive
  32. } from "vue";
  33. const state = reactive({
  34. list2: [{
  35. type: "select",
  36. label: "服务宠物类型",
  37. key: "type",
  38. placeholder: "请选择",
  39. options: [{
  40. name: "大兴区"
  41. },
  42. {
  43. name: "小型犬"
  44. }
  45. ]
  46. },
  47. {
  48. type: "input",
  49. label: "基础服务",
  50. unit: "年",
  51. key: "base",
  52. placeholder: "宠物喂养上门遛狗",
  53. },
  54. {
  55. type: "select",
  56. label: "增值服务",
  57. key: "zenz",
  58. placeholder: "请选择",
  59. options: [{
  60. name: "男"
  61. },
  62. {
  63. name: "女"
  64. }
  65. ]
  66. }
  67. ],
  68. list1: [{
  69. type: "input",
  70. label: "个人简介",
  71. key: "jianjie",
  72. placeholder: "请输入",
  73. },
  74. {
  75. type: "input",
  76. label: "养宠经验",
  77. unit: "年",
  78. key: "jingyan",
  79. placeholder: "请输入",
  80. },
  81. {
  82. type: "select",
  83. label: "服务记录",
  84. key: "jilu",
  85. placeholder: "请选择",
  86. options: [{
  87. name: "男"
  88. },
  89. {
  90. name: "女"
  91. }
  92. ]
  93. }
  94. ],
  95. list: [{
  96. type: "input",
  97. label: "昵称",
  98. key: "name",
  99. placeholder: "请输入",
  100. },
  101. {
  102. type: "input",
  103. label: "手机号",
  104. key: "idCard",
  105. placeholder: "请输入",
  106. },
  107. {
  108. type: "select",
  109. label: "性别",
  110. key: "sex",
  111. placeholder: "请选择",
  112. options: [{
  113. name: "男"
  114. },
  115. {
  116. name: "女"
  117. }
  118. ]
  119. }
  120. ]
  121. })
  122. const handleSubmit = () => {}
  123. </script>
  124. <style lang="scss" scoped>
  125. .head {
  126. width: 165rpx;
  127. margin-top: 28rpx;
  128. }
  129. .title {
  130. font-size: 30rpx;
  131. font-weight: 700;
  132. display: flex;
  133. align-items: center;
  134. &:before {
  135. display: block;
  136. content: "";
  137. width: 10rpx;
  138. border-radius: 10rpx;
  139. height: 34rpx;
  140. background-color: #FFBF60;
  141. margin-right: 15rpx;
  142. }
  143. }
  144. .box {
  145. padding: 24rpx 36rpx;
  146. .tip {
  147. background-color: rgb(255, 245, 229);
  148. padding: 15rpx;
  149. }
  150. }
  151. </style>