Banner.vue 2.5 KB

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