renal.vue 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <template>
  2. <view class="content">
  3. <view class="content_top">
  4. <view class="text_width">肾功能情况</view>
  5. <view class="remark">填写真实信息,生成合适的康复计划</view>
  6. </view>
  7. <view class="checkbox_box">
  8. <van-checkbox-group class="checkbox-group" v-model="checked" @change="toggle">
  9. <van-checkbox class="check_box" v-for="item in list" :name="item">
  10. {{item}}
  11. </van-checkbox>
  12. </van-checkbox-group>
  13. </view>
  14. <view class="content_bottom" style="">
  15. <view class="button_box" style="" @click="next_click">
  16. <view class="button" style="">下一步</view>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. list: ['未透析', '血液透析','腹膜透析','肾脏移植'],
  26. checked:[],
  27. }
  28. },
  29. methods: {
  30. // 选择病情
  31. toggle(e){
  32. this.checked = e.detail
  33. console.log('index',this.checked);
  34. // const arr=[]
  35. // arr.push(e)
  36. // this.checked = arr
  37. },
  38. // 跳转
  39. next_click(){
  40. wx.navigateTo({
  41. // pages/Health_record/archives
  42. url:'/pages/Health_record/archives'
  43. })
  44. }
  45. }
  46. }
  47. </script>
  48. <style lang="scss" scoped>
  49. .content{
  50. .content_top{
  51. padding: 40rpx;
  52. .text_width{
  53. font-weight: 900;
  54. }
  55. .remark{
  56. font-size: 14px;
  57. color: gray;
  58. line-height: 30px;
  59. }
  60. .sex_box{
  61. padding: 40rpx 0;
  62. .radio{
  63. margin-right: 80rpx;
  64. }
  65. }
  66. .hw_eight{
  67. padding: 40rpx 0;
  68. display: flex;
  69. .height{
  70. flex:1;
  71. .input{
  72. display:inline-block;
  73. border: 1px solid black;
  74. width: 120rpx;
  75. }
  76. }
  77. }
  78. }
  79. .content_bottom{
  80. width: 100%;
  81. position: fixed;
  82. bottom: 30rpx;
  83. .button_box{
  84. margin: 0 auto;
  85. width: 80%;
  86. background:linear-gradient(#4dc691,#66cfa1,#7ad7ae);
  87. border-radius: 100rpx;
  88. display: flex;
  89. .button{
  90. flex: 1;
  91. line-height:90rpx;
  92. color: white;
  93. text-align: center;
  94. }
  95. }
  96. }
  97. .checkbox_box{
  98. height: 75vh;
  99. overflow: auto;
  100. }
  101. }
  102. </style>
  103. <style lang="scss">
  104. .checkbox-group {
  105. height: 50px;
  106. .check_box{
  107. width: 100%;
  108. .van-checkbox{
  109. height: 50px !important;
  110. background: gainsboro;
  111. padding: 0 20px;
  112. margin-bottom: 10px;
  113. text-align: center;
  114. }
  115. }
  116. }
  117. </style>