UserAgree.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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/doctor2.jpg" width="100%" alt="">
  14. <img v-if="type==2" src="../assets/images/patient2.jpg" width="100%" alt="">
  15. </div>
  16. </div>
  17. <div class="footer">
  18. <div class="jbbtn" @click="goPage">返回</div>
  19. </div>
  20. </div>
  21. </div>
  22. </template>
  23. <script>
  24. import {
  25. Field
  26. } from 'mint-ui'
  27. export default {
  28. name: 'Index',
  29. components: {
  30. Field
  31. },
  32. data() {
  33. return {
  34. msg: 'Welcome to Your Vue.js App',
  35. agreenDoc: '',
  36. type:this.$route.query.type
  37. }
  38. },
  39. methods: {
  40. goPage() {
  41. let from = this.$route.query.from;
  42. if (this.type == 1) {
  43. this.$router.push('/docindex')
  44. } else {
  45. this.$router.push('/patindex')
  46. }
  47. }
  48. },
  49. created() {
  50. console.log(this.type,33333333333333)
  51. },
  52. }
  53. </script>
  54. <style scoped lang="scss">
  55. .loginForm {
  56. width: 90%;
  57. margin: auto;
  58. margin-top: 2rem;
  59. /* border:1px solid red; */
  60. height: 80vh;
  61. border-radius: 1rem;
  62. background: #fff;
  63. padding: 10px;
  64. /* height: 100%; */
  65. }
  66. .agreedoc {
  67. height: 100%;
  68. overflow-y: scroll;
  69. }
  70. .footer {
  71. bottom: 1rem;
  72. margin: 0 auto;
  73. left: 0;
  74. right: 0;
  75. bottom: 1rem;
  76. }
  77. .container .content .loginForm{
  78. margin-top:2rem;
  79. }
  80. </style>