zhaoguLaoren.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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">
  12. <label class="uni-list-cell uni-list-cell-pd" v-for="item in items" :key="item.value">
  13. <view>
  14. <radio :value="item.value" :checked="item.value === data.shentizhuangkuang" />
  15. </view>
  16. <view>{{item.text}}</view>
  17. </label>
  18. </radio-group>
  19. </view>
  20. <laorenNianling @change="onChange"></laorenNianling>
  21. </view>
  22. </template>
  23. <script setup>
  24. import {
  25. useHetong
  26. } from "../useHetong.js"
  27. import laorenNianling from "./laorenNianling.vue"
  28. import {ref} from "vue"
  29. const {
  30. injectHetong
  31. } = useHetong();
  32. const data = injectHetong()
  33. const emits = defineEmits(['change'])
  34. const items = [
  35. {
  36. value: 1,
  37. text: '能自理'
  38. },{
  39. value: 2,
  40. text: '半自理'
  41. },{
  42. value: 3,
  43. text: '不能自理'
  44. },
  45. ]
  46. function onChange() {
  47. emits('change')
  48. }
  49. function radioChange() {}
  50. </script>
  51. <style>
  52. </style>