mechanism.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <view class="bg-white">
  3. <u-dropdown>
  4. <u-dropdown-item @change="addressList" v-model="value1" :title="options1[value1-1].label" :options="options1"></u-dropdown-item>
  5. </u-dropdown>
  6. <view class="margin-sm">
  7. <view v-for="(item,index) in mechanismList" :key="index" @click="xuanzephone(item)" class="padding bg-white margin-top-sm flex justify-between align-center"
  8. style="border-radius: 16rpx;box-shadow: 0 0 50rpx 0 rgba(0, 0, 0, 0.1);">
  9. <view class="">
  10. <view class="text-bold" style="color: #333333;font-size: 30rpx;">
  11. {{item.name}}
  12. </view>
  13. <view class="margin-top-sm" style="color: #999999; font-size: 26rpx;">
  14. 地址:<text style="color: #666666;">{{item.address}}</text>
  15. </view>
  16. <view class="margin-top-sm" style="color: #999999; font-size: 26rpx;">
  17. 距离:<text style="color: #666666;">{{item.distance}}</text>
  18. </view>
  19. </view>
  20. <view class="">
  21. <u-radio-group v-model="value">
  22. <u-radio @change="radioChange" :key="index" :name="item.id">
  23. </u-radio>
  24. </u-radio-group>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="cu-tabbar-height"></view>
  29. <view class="cu-tabbar-height"></view>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. onLoad() {
  35. },
  36. onShow() {
  37. },
  38. data() {
  39. return {
  40. value: "",
  41. value1: 1,
  42. mechanismList: [{
  43. id: "1",
  44. name: "成都高新区合作社区卫生服务中心",
  45. address: "西部园区顺江小区清源环街171号",
  46. distance: "10km"
  47. },
  48. {
  49. id: "2",
  50. name: "成都高新区合作社区卫生服务中心",
  51. address: "西部园区顺江小区清源环街171号",
  52. distance: "10km"
  53. },
  54. {
  55. id: "3",
  56. name: "成都高新区合作社区卫生服务中心",
  57. address: "西部园区顺江小区清源环街171号",
  58. distance: "10km"
  59. },
  60. {
  61. id: "4",
  62. name: "成都高新区合作社区卫生服务中心",
  63. address: "西部园区顺江小区清源环街171号",
  64. distance: "10km"
  65. },
  66. {
  67. id: "5",
  68. name: "成都高新区合作社区卫生服务中心",
  69. address: "西部园区顺江小区清源环街171号",
  70. distance: "10km"
  71. }
  72. ],
  73. options1: [{
  74. label: 'xxx地区',
  75. value: 1,
  76. },
  77. {
  78. label: 'yyy地区',
  79. value: 2,
  80. },
  81. {
  82. label: 'zzz地区',
  83. value: 3,
  84. }
  85. ],
  86. }
  87. },
  88. methods: {
  89. xuanzephone(item) {
  90. this.value = item.id
  91. },
  92. addressList(value) {
  93. this.value1 = value
  94. }
  95. }
  96. }
  97. </script>
  98. <style lang="scss" scoped>
  99. .main {}
  100. </style>