OrderSpare.vue 900 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template>
  2. <view class="">
  3. <radio-group @change="radioChange">
  4. <label class="radio-list" v-for="(item, index) in list" :key="index">
  5. <radio class="radio" :value="item.name" />
  6. <CellRadio :item="item"></CellRadio>
  7. </label>
  8. </radio-group>
  9. </view>
  10. </template>
  11. <script>
  12. import CellRadio from '../components/CellRadio.vue'
  13. import OrderList from '../components/OrderList.vue'
  14. export default {
  15. components: {
  16. CellRadio,
  17. OrderList
  18. },
  19. props: {
  20. list: {
  21. type: Array,
  22. default: () => []
  23. }
  24. },
  25. data() {
  26. return {}
  27. },
  28. methods: {
  29. radioChange(e) {
  30. }
  31. }
  32. }
  33. </script>
  34. <style lang="scss" scoped>
  35. .radio-list {
  36. display: flex;
  37. padding: 20rpx 10rpx 20rpx;
  38. align-items: center;
  39. color: $uni-text-color;
  40. border-bottom: 2rpx solid #d8d8d8;
  41. font-size: $uni-font-size-base;
  42. line-height: 1.8;
  43. .radio {
  44. margin-right: 10rpx;
  45. }
  46. }
  47. </style>