UserAgree.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <template>
  2. <div class="container">
  3. <div class="bgimg"></div>
  4. <div class="content">
  5. <div class="title" v-if="type==1">操作手册-医生版</div>
  6. <div class="title" v-if="type==2">操作手册-个人版</div>
  7. <div class="loginForm">
  8. <div class="agreedoc">
  9. <!-- <iframe v-if="type==1" src="https://xjcoss.oss-cn-shanghai.aliyuncs.com/zky/static/pdf/doctor.pdf#toolbar=0"
  10. frameborder="0" height="100%"></iframe>
  11. <iframe v-if="type==2" src="https://xjcoss.oss-cn-shanghai.aliyuncs.com/zky/static/pdf/patient.pdf#toolbar=0"
  12. frameborder="0" height="100%"></iframe> -->
  13. <img v-if="type==1" src="../assets/images/doctor1.jpg" width="100%" alt="">
  14. <img v-if="type==1" src="../assets/images/doctor2.jpg" width="100%" alt="">
  15. <img v-if="type==2" src="../assets/images/patient.jpg" width="100%" alt="">
  16. </div>
  17. </div>
  18. <div class="footer">
  19. <div class="jbbtn" @click="goPage">返回</div>
  20. </div>
  21. </div>
  22. </div>
  23. </template>
  24. <script>
  25. import {
  26. Field
  27. } from 'mint-ui'
  28. export default {
  29. name: 'Index',
  30. components: {
  31. Field
  32. },
  33. data() {
  34. return {
  35. msg: 'Welcome to Your Vue.js App',
  36. agreenDoc: '',
  37. type:this.$route.query.type
  38. }
  39. },
  40. methods: {
  41. goPage() {
  42. let from = this.$route.query.from;
  43. if (this.type == 1) {
  44. this.$router.push('/docindex')
  45. } else {
  46. this.$router.push('/patindex')
  47. }
  48. }
  49. },
  50. created() {
  51. console.log(this.type,33333333333333)
  52. },
  53. }
  54. </script>
  55. <style scoped lang="scss">
  56. .loginForm {
  57. width: 90%;
  58. margin: auto;
  59. margin-top: 2rem;
  60. /* border:1px solid red; */
  61. height: 80vh;
  62. border-radius: 1rem;
  63. background: #fff;
  64. padding: 10px;
  65. /* height: 100%; */
  66. }
  67. .agreedoc {
  68. height: 100%;
  69. overflow-y: scroll;
  70. }
  71. .footer {
  72. bottom: 1rem;
  73. margin: 0 auto;
  74. left: 0;
  75. right: 0;
  76. bottom: 1rem;
  77. }
  78. .container .content .loginForm{
  79. margin-top:2rem;
  80. }
  81. </style>