disease.vue 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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: ['a', 'b','1','2','a', 'b','1','2','a', 'b','1','2'],
  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. url:'/pages/Health_record/creatinine'
  42. })
  43. }
  44. }
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. .content{
  49. .content_top{
  50. padding: 40rpx;
  51. .text_width{
  52. font-weight: 900;
  53. }
  54. .remark{
  55. font-size: 14px;
  56. color: gray;
  57. line-height: 30px;
  58. }
  59. .sex_box{
  60. padding: 40rpx 0;
  61. .radio{
  62. margin-right: 80rpx;
  63. }
  64. }
  65. .hw_eight{
  66. padding: 40rpx 0;
  67. display: flex;
  68. .height{
  69. flex:1;
  70. .input{
  71. display:inline-block;
  72. border: 1px solid black;
  73. width: 120rpx;
  74. }
  75. }
  76. }
  77. }
  78. .content_bottom{
  79. width: 100%;
  80. position: fixed;
  81. bottom: 30rpx;
  82. .button_box{
  83. margin: 0 auto;
  84. width: 80%;
  85. background:linear-gradient(#4dc691,#66cfa1,#7ad7ae);
  86. border-radius: 100rpx;
  87. display: flex;
  88. .button{
  89. flex: 1;
  90. line-height:90rpx;
  91. color: white;
  92. text-align: center;
  93. }
  94. }
  95. }
  96. .checkbox_box{
  97. height: 75vh;
  98. overflow: auto;
  99. }
  100. }
  101. </style>
  102. <style lang="scss">
  103. .checkbox-group {
  104. height: 50px;
  105. .check_box{
  106. width: 100%;
  107. .van-checkbox{
  108. height: 50px !important;
  109. background: gainsboro;
  110. padding: 0 20px;
  111. margin-bottom: 10px;
  112. }
  113. }
  114. }
  115. </style>