creatinine.vue 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <template>
  2. <view class="content">
  3. <view class="content_top">
  4. <view class="text_width">血肌酐情况</view>
  5. </view>
  6. <view class="">
  7. <view class="value_box" style="">
  8. <view class="box p_cnt_list" style="">
  9. <!-- <van-cell-group inset>
  10. <van-field v-model="value" label="血肌酐数值" placeholder="请输入" />
  11. </van-cell-group> -->
  12. <view>血肌酐数值</view>
  13. <view class="text">
  14. <input type="text" placeholder="请输入" value=''/>
  15. </view>
  16. </view>
  17. </view>
  18. <view class="value_box" style="">
  19. <view class="box" style="">
  20. <view class="text" style="">血肌酐单位</view>
  21. <view class="option" style="">
  22. <van-radio-group v-model="checked" direction="horizontal"
  23. v-for="(item, index) in unitarr" :key="index">
  24. <van-radio class="radio" :name="item.id">{{item.name}}</van-radio>
  25. </van-radio-group>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="value_box" style="">
  30. <view class="time_box" style="" @click="startShow = true">
  31. <view class="time_text" style="">化验时间</view>
  32. <view class="time_value" style="">
  33. <!-- <text v-if="">请选择></text> -->
  34. <text>{{formatDate((currentDate/1000),'yyyy-MM-dd')}}</text>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="content_bottom" style="">
  40. <view class="button_box" style="" @click="next_click">
  41. <view class="button" style="">下一步</view>
  42. </view>
  43. </view>
  44. <van-popup :show="startShow"
  45. position="bottom" :style="{ height: '40%' }"
  46. >
  47. <van-datetime-picker
  48. :value="currentDate"
  49. type="date"
  50. :min-date="minDate"
  51. :max-date="maxDate"
  52. @confirm = "confirm"
  53. @cancel = "cancel"
  54. />
  55. </van-popup>
  56. </view>
  57. </template>
  58. <script>
  59. import moment from 'moment'
  60. import {formatDate} from "@/utils/formatDate.js"
  61. export default {
  62. data() {
  63. return {
  64. unitarr:[{id:1,name:'umol/L'},{id:2,name:'mg/dl'}],
  65. startShow:false,
  66. currentDate: new Date().getTime(),
  67. minDate: new Date(1924,0,1).getTime(),
  68. maxDate: new Date().getTime(),
  69. // Test_time:'',
  70. }
  71. },
  72. methods: {
  73. showclick(){
  74. console.log('111111',this.startShow);
  75. this.startShow = true
  76. },
  77. confirm(e){
  78. this.currentDate = e.detail
  79. this.startShow = false
  80. },
  81. cancel(){
  82. this.startShow = false
  83. },
  84. formatDate(value, fmt) {
  85. return formatDate(new Date(value * 1000), fmt)
  86. },
  87. next_click(){
  88. wx.navigateTo({
  89. url:'/pages/Health_record/albumen'
  90. })
  91. console.log('跳转尿蛋白');
  92. }
  93. }
  94. }
  95. </script>
  96. <style lang="scss" scoped>
  97. .content{
  98. .content_top{
  99. padding: 40rpx;
  100. .text_width{
  101. font-weight: 900;
  102. }
  103. }
  104. .value_box{
  105. padding: 10rpx 40rpx;
  106. .box{
  107. border-bottom: 1px solid black;
  108. .text{
  109. line-height: 40px;
  110. }
  111. .option{
  112. display: flex;
  113. text-align: center;
  114. padding-bottom: 5px;
  115. .option_text{
  116. width: 130rpx;
  117. line-height: 60rpx;
  118. border: 1px solid;
  119. border-radius: 20rpx;
  120. margin-right: 10px;
  121. }
  122. .radio{
  123. margin-right: 80rpx;
  124. }
  125. }
  126. }
  127. .time_box{
  128. display: flex;
  129. line-height: 80rpx;
  130. .time_text{
  131. text-align: left;
  132. flex: 1;
  133. }
  134. .time_value{
  135. text-align: right;
  136. flex: 1;
  137. }
  138. }
  139. .p_cnt_list {
  140. height: 60rpx;
  141. padding: 10rpx 0;
  142. display: flex;
  143. justify-content: space-between;
  144. align-items: center;
  145. font-size: 30rpx;
  146. .text{
  147. text-align: right;
  148. }
  149. // font-weight: bold;
  150. }
  151. }
  152. .content_bottom{
  153. width: 100%;
  154. position: fixed;
  155. bottom: 30rpx;
  156. .button_box{
  157. margin: 0 auto;
  158. width: 80%;
  159. background:linear-gradient(#4dc691,#66cfa1,#7ad7ae);
  160. border-radius: 100rpx;
  161. display: flex;
  162. .button{
  163. flex: 1;
  164. line-height:90rpx;
  165. color: white;
  166. text-align: center;
  167. }
  168. }
  169. }
  170. }
  171. </style>