zhaoguLaoren.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <template>
  2. <view class="fwnr-item-box">
  3. <view class="title-row-box">
  4. <text>照顾老人:</text>
  5. <view class="title-del-btn">
  6. <icon class="del-icon"></icon>
  7. </view>
  8. </view>
  9. <!-- <view class="fwnr-label-input">
  10. <view class="fwnr-form-label"><text class="form-label-require"></text>身体情况</view>
  11. <radio-group @change="radioChange" class="fwnr-radio-box">
  12. <label class="fwnr-radio-item" v-for="item in items" :key="item.value">
  13. <radio :value="item.value" :checked="item.value === data.shentizhuangkuang" />
  14. <view>{{item.text}}</view>
  15. </label>
  16. </radio-group>
  17. </view> -->
  18. <view class="form-label-radio fwnr-label-radio">
  19. <view class="phone-form-label"><text class="form-label-require"></text>身体情况</view>
  20. <view class="form-radio-group">
  21. <!-- :class="{genderActive: formData.gender==1}" -->
  22. <view class="form-radio-item genderActive">能自理</view>
  23. <view class="form-radio-item">半自理</view>
  24. <view class="form-radio-item">不能自理</view>
  25. </view>
  26. </view>
  27. <laorenNianling @change="onChange"></laorenNianling>
  28. </view>
  29. </template>
  30. <script setup>
  31. import {
  32. useHetong
  33. } from "../useHetong.js"
  34. import laorenNianling from "./laorenNianling.vue"
  35. import {ref} from "vue"
  36. const {
  37. injectHetong
  38. } = useHetong();
  39. const data = injectHetong()
  40. const emits = defineEmits(['change'])
  41. const items = [
  42. {
  43. value: 1,
  44. text: '能自理'
  45. },{
  46. value: 2,
  47. text: '半自理'
  48. },{
  49. value: 3,
  50. text: '不能自理'
  51. },
  52. ]
  53. function onChange() {
  54. emits('change')
  55. }
  56. function radioChange() {}
  57. </script>
  58. <style>
  59. </style>