epidemic-pass.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <template>
  2. <view class="page">
  3. <view class="content">
  4. <text class=" text-xl ">出入信息填写</text>
  5. <view class="name">
  6. <view >
  7. <text>*</text>
  8. <text>您的姓名</text>
  9. </view>
  10. <view class="input">
  11. <input type="text" value="" placeholder="请输入您的姓名"/>
  12. </view>
  13. </view>
  14. <view class="cause">
  15. <view >
  16. <text >*</text>
  17. <text>出入原因</text>
  18. </view>
  19. <view class="input">
  20. <input type="text" value="" placeholder="请填写出入小区的原因"/>
  21. </view>
  22. </view>
  23. <view class="radio1 flex justify-between" >
  24. <view >
  25. <text >*</text>
  26. <text style="line-height: 56rpx;">体温是否异常(高于37.3摄氏度属于异常)</text>
  27. </view>
  28. <view class="switch">
  29. <switch style="transform: scale(.9);" class='blue' @change="switch1Change" :checked="switch1Check" ></switch>
  30. </view>
  31. </view>
  32. <view class="radio1 flex justify-between" >
  33. <view >
  34. <text >*</text>
  35. <text style="line-height: 56rpx;">是否有咳嗽 / 乏力 / 呼吸困难 / 流鼻涕 / 腹泻等异常症状</text>
  36. </view>
  37. <view class="switch">
  38. <switch style="transform: scale(.9);" class='blue' @change="switch2Change" :checked="switch2Check" ></switch>
  39. </view>
  40. </view>
  41. </view>
  42. <view class=" footer-fixed" @click="submit">
  43. <view class="cu-btn flex text-lg bg-red-btn" style="padding: 46rpx 0;">
  44. 提交信息
  45. </view>
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. export default {
  51. data() {
  52. return {
  53. switch1Check:false,
  54. switch2Check:false
  55. }
  56. },
  57. methods: {
  58. switch1Change(e){
  59. this.switch1Check=e.target.value
  60. },
  61. switch2Change(e){
  62. this.switch2Check=e.target.value
  63. },
  64. submit(){
  65. uni.navigateTo({
  66. url:"./detail"
  67. })
  68. }
  69. }
  70. }
  71. </script>
  72. <style lang="scss">
  73. .page{
  74. min-height: 100vh;
  75. background-color: #FFFFFF;
  76. }
  77. .content{
  78. padding: 40rpx;
  79. .name,.cause,.radio1,.radio2{
  80. padding-top: 40rpx;
  81. view:nth-child(1){
  82. display: flex;
  83. // *星号
  84. text:nth-child(1){
  85. font-weight: 800;
  86. font-size: 38rpx;
  87. color: #D43A39;
  88. padding-right: 10rpx;
  89. }
  90. //您的姓名
  91. text:nth-child(2){
  92. font-size: 30rpx;
  93. }
  94. }
  95. .input{
  96. padding: 20rpx 0 15rpx 25rpx;
  97. border-bottom: 1rpx solid #d6d6d6;
  98. }
  99. }
  100. switch{
  101. display: flex;
  102. }
  103. .radio1,.radio2{
  104. padding-bottom: 15rpx;
  105. border-bottom: 1rpx solid #d6d6d6;
  106. .switch{
  107. display: flex;
  108. justify-content: center;
  109. align-items: center;
  110. }
  111. }
  112. }
  113. </style>