topInfo.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <template>
  2. <div :class="['headTopBox', { componentBorder: this.$store.state.template.previewStatus==false }]">
  3. <div class="headTopInfo">
  4. <div class="headTopInfoLeft">欢迎光临:{{ this.$store.state.template.webSiteInfo.website_name }}</div>
  5. <div class="headTopInfoRight">
  6. <div><i class="el-icon-office-building"></i>商圈</div>
  7. <div><i class="el-icon-data-board"></i>广告服务</div>
  8. <div><i class="el-icon-user"></i>登录</div>
  9. <div><i class="el-icon-edit"></i>注册</div>
  10. </div>
  11. </div>
  12. <div class="headTopLogoBox">
  13. <img :src="this.$store.state.template.webSiteInfo.logo">
  14. <div class="headTopLogoInputBox">
  15. <el-input placeholder="请输入内容" v-model="searchValue"></el-input>
  16. <el-button type="primary">搜索</el-button>
  17. </div>
  18. </div>
  19. </div>
  20. </template>
  21. <script>
  22. export default {
  23. props: {
  24. },
  25. data() {
  26. return {
  27. searchValue:""
  28. };
  29. },
  30. methods: {
  31. },
  32. mounted() {
  33. },
  34. };
  35. </script>
  36. <style scoped lang="less">
  37. .componentBorder {
  38. border: 2px dashed #999;
  39. }
  40. .headTopBox {
  41. width: 80%;
  42. height: 190px;
  43. .headTopInfo {
  44. display: flex;
  45. justify-content: space-between;
  46. align-items: center;
  47. padding: 10px 20px;
  48. font-size: 12px;
  49. .headTopInfoRight {
  50. display: flex;
  51. justify-content: space-between;
  52. align-items: center;
  53. div {
  54. margin-left: 10px;
  55. i {
  56. margin-right: 5px;
  57. }
  58. }
  59. }
  60. }
  61. .headTopLogoBox {
  62. display: flex;
  63. align-items: center;
  64. justify-content: space-between;
  65. padding: 30px 0;
  66. img {
  67. width: 300px;
  68. height: 90px;
  69. display: block;
  70. }
  71. .headTopLogoInputBox {
  72. width: 300px;
  73. color: #333;
  74. display: flex;
  75. justify-content: space-between;
  76. align-items: center;
  77. button {
  78. border-radius: 0 !important;
  79. background: #19499F !important;
  80. }
  81. }
  82. }
  83. }
  84. </style>