PatClockInSuc.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <template>
  2. <div class="container">
  3. <div class="bgimg"></div>
  4. <div class="content">
  5. <!-- <div class="title">注射打卡</div> -->
  6. <div class="loginForm">
  7. <div class="clocksucbg">
  8. <img src="../assets/images/clockinbg.png" width="100%" alt="">
  9. <div class="clocksucmsg" >您已打卡成功</div>
  10. </div>
  11. <div class="clockintime">距离【目标谷活性{{timeinfo.mbghx}}%】还有{{timeinfo.remain_time}}小时</div>
  12. </div>
  13. <div class="footer">
  14. <div class="jbbtn" @click="goPage('/patindex')">返回</div>
  15. <div class="jbbtn" @click="goPage('/patinjectionlist')">注射记录</div>
  16. </div>
  17. </div>
  18. </div>
  19. </template>
  20. <script>
  21. import {
  22. Field,
  23. Picker
  24. } from 'mint-ui'
  25. export default {
  26. name: 'Index',
  27. components: {
  28. Field,
  29. Picker
  30. },
  31. data() {
  32. return {
  33. form: {},
  34. nowDatetime:this.$datetime.formatDateTimeFull(new Date()),
  35. timeinfo:{}
  36. }
  37. },
  38. methods: {
  39. goPage(path) {
  40. if(path==-1){
  41. this.$router.go(-1)
  42. }else{
  43. this.$router.push(path)
  44. }
  45. }
  46. },
  47. created(){
  48. //获取时间
  49. this.$api.get_patient_timecalc().then(res=>{
  50. this.timeinfo=res.data.data
  51. })
  52. }
  53. }
  54. </script>
  55. <style scoped lang="scss">
  56. .loginForm {
  57. width: 84%;
  58. margin: auto;
  59. margin-top: 4rem;
  60. background: #fff;
  61. padding: 1rem;
  62. border-radius: 5px;
  63. .mint-field {
  64. border: 1px solid #ccc;
  65. border-radius: 50px;
  66. margin-top: 1rem;
  67. }
  68. .mint-cell {
  69. min-height: 2.12rem;
  70. }
  71. .clocksucbg{
  72. width:80%;
  73. margin:auto;
  74. position: relative;
  75. /* padding-top:4rem; */
  76. /* height: 16rem; */
  77. // height: 19rem;
  78. }
  79. .clocksucmsg{
  80. width:100%;
  81. position:absolute;
  82. text-align: center;
  83. top:calc(50% - 1rem);
  84. font-size:1.4rem;
  85. color:#fff;
  86. font-weight: bold;
  87. height: 2rem;
  88. }
  89. .clockintime {
  90. // width: 60%;
  91. font-size: 1rem;
  92. color: #ccc;
  93. margin: auto;
  94. margin-top: 2rem;
  95. margin-bottom: 4rem;
  96. }
  97. }
  98. .footer{
  99. display: flex;
  100. margin-top:2rem;
  101. .jbbtn{
  102. width: 42%;
  103. }
  104. }
  105. </style>