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

126 lines
2.9 KiB

2 months ago
  1. <template>
  2. <view class="tips color-ffb size-22">
  3. 注意:这段内容将会在您的喂养员个人主页做为"服务案例展示并开放给其他铲屎官查看请认真编辑哟
  4. </view>
  5. <view class="li bg-fff">
  6. <view class="title">
  7. 服务类型
  8. <text class="size-22 color-999 ml10">可多选</text>
  9. </view>
  10. <up-checkbox-group v-model="state.checkboxValue" placement="column" @change="checkboxChange">
  11. <view class="flex-rowl mt40">
  12. <up-checkbox shape="circle" class="mr10" :customStyle="{marginBottom: '8px'}"
  13. v-for="(item, index) in checkboxList1" :key="index" :label="item.name" :name="item.name">
  14. </up-checkbox>
  15. </view>
  16. </up-checkbox-group>
  17. </view>
  18. <view class="li bg-fff">
  19. <view class="title">
  20. 服务时间
  21. </view>
  22. <view class="flex-between mt16">
  23. <text class="size-28 color-999">选择服务时间</text>
  24. <view class="flex-rowr">
  25. <input disabled type="text" placeholder="请选择" class="t-r size-28 mr10" />
  26. <image src="@/static/images/ydd/bottom.png" mode="widthFix" style="width: 30rpx;"></image>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="li bg-fff">
  31. <view class="title">
  32. 服务地点
  33. </view>
  34. <view class="flex-between mt16">
  35. <text class="size-28 color-999">选择服务地点</text>
  36. <view class="flex-rowr">
  37. <input disabled type="text" placeholder="请选择" class="t-r size-28 mr10" />
  38. <image src="@/static/images/ydd/bottom.png" mode="widthFix" style="width: 30rpx;"></image>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="li bg-fff">
  43. <view class="title">
  44. 文字记录
  45. </view>
  46. <textarea class="text" placeholder="请输入文字记录,可简单描述服务过程中发生的趣事,或夸奖一下服务宠物吧,10-100字"></textarea>
  47. </view>
  48. <view class="li bg-fff">
  49. <view class="title">
  50. 图片记录
  51. </view>
  52. <view class="size-28 color-999 mt16">
  53. 请选择具有代表性的2-3张服务宠物图片服务过程图片或视频截图让铲屎官感受到您对毛孩子的爱吧
  54. </view>
  55. </view>
  56. <view class="footer-box">
  57. <view class="btn">
  58. 立即上传
  59. </view>
  60. </view>
  61. </template>
  62. <script setup>
  63. import {
  64. reactive
  65. } from 'vue';
  66. const state = reactive({
  67. checkboxValue: []
  68. })
  69. const checkboxList1 = [{
  70. name: '猫咪喂养',
  71. },
  72. {
  73. name: '狗狗喂养',
  74. },
  75. {
  76. name: '异宠喂养',
  77. },
  78. ]
  79. const checkboxChange = () => {}
  80. </script>
  81. <style lang="scss" scoped>
  82. .text {
  83. padding: 16rpx;
  84. background-color: #F3F3F3;
  85. font-size: 28rpx;
  86. margin-top: 16rpx;
  87. border-radius: 20rpx;
  88. }
  89. .tips {
  90. padding: 8rpx 16rpx;
  91. background-color: rgb(255, 250, 242);
  92. }
  93. .li {
  94. margin: 20rpx;
  95. border-radius: 20rpx;
  96. padding: 24rpx 36rpx;
  97. }
  98. .title {
  99. font-size: 30rpx;
  100. font-weight: 700;
  101. display: flex;
  102. align-items: center;
  103. &:before {
  104. display: block;
  105. content: "";
  106. width: 10rpx;
  107. border-radius: 10rpx;
  108. height: 34rpx;
  109. background-color: #FFBF60;
  110. margin-right: 15rpx;
  111. }
  112. }
  113. </style>