Banner.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <template>
  2. <div class="container">
  3. <div class="banner">
  4. <div class="logo fl">
  5. <img class="logoLT" src="../../images/logo.png" alt="朗通logo"/>
  6. <img class="logoShaoyifu" src="../../images/logo_shaoyifu.png" alt="邵逸夫logo"/>
  7. <span class="bannerName">医学数据平台</span>
  8. <!-- <img class="img-title" src="../../images/title.png"/> -->
  9. </div>
  10. <div class="consult fr">
  11. <span>咨询热线:{{phone}} &nbsp;</span> |
  12. <span>服务时间:{{workTime}}</span>
  13. <!-- <span class="toLogin" v-show="route=='/register'">已有账号?<b @click="toLogin">立即登录</b></span> -->
  14. </div>
  15. </div>
  16. </div>
  17. </template>
  18. <script>
  19. // import '@components/login/login.less';
  20. export default {
  21. template: '#banner-template',
  22. data() {
  23. return {
  24. phone: '400-600-1919',
  25. workTime: '09:00-17:30'
  26. }
  27. },
  28. computed:{
  29. route(){
  30. return this.$route.path;
  31. }
  32. },
  33. methods:{
  34. toLogin(){
  35. this.$router.push({path:'/'});
  36. }
  37. }
  38. };
  39. </script>
  40. <style lang="less">
  41. * {
  42. margin: 0;
  43. padding: 0;
  44. }
  45. html, body {
  46. width: 100%;
  47. height: 100%;
  48. /* background-image:url(/src/images/bg.jpg);
  49. background-size: 100% 100%;
  50. background-repeat: no-repeat; */
  51. }
  52. .container {
  53. width: 100%;
  54. height: 100%;
  55. background-color: #f3f6fb;
  56. // background-image: url(../../images/bg.jpg);
  57. // background-size: 100% 100%;
  58. // background-repeat: no-repeat;
  59. .banner {
  60. height: 60px;
  61. background: #fff;
  62. line-height: 60px;
  63. position: relative;
  64. }
  65. .banner img {
  66. display: inline-block;
  67. // margin-top: 10px;
  68. margin-left: 30px;
  69. position: relative;
  70. top: 2px;
  71. }
  72. .bannerName {
  73. margin-left: 13px;
  74. font-size: 14px;
  75. color: #2871FA;
  76. letter-spacing: 0;
  77. font-weight: bold;
  78. }
  79. .img-title {
  80. margin-left: 10px !important;
  81. }
  82. .consult {
  83. margin-right: 30px;
  84. color: #424243;
  85. font-size: 14px;
  86. float: right;
  87. }
  88. .logo {
  89. display: inline-block;
  90. position: relative;
  91. left: 13.5%;
  92. }
  93. .banner .logoLT{
  94. top: 1px;
  95. height: 20px
  96. }
  97. .banner .logoShaoyifu{
  98. height: 38px;
  99. top: 13px;
  100. margin: 0 10ox 0 20px;
  101. }
  102. .consult {
  103. display: inline-block;
  104. }
  105. .toLogin{
  106. margin-left: 10px;
  107. >b{
  108. color:#1774f0;
  109. cursor: pointer;
  110. }
  111. }
  112. }
  113. </style>