数字化园区前端项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Index.vue 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <!-- 园区资讯问答 -->
  2. <template>
  3. <div class="information">
  4. <section class="nav_box">
  5. <Nav></Nav>
  6. <div class="second_nv">
  7. <div>
  8. <div class="position">
  9. <img src="" alt="" />
  10. <span>
  11. 当前位置:
  12. <span class="pointer">园区资讯问答</span>
  13. <span style="margin:0 4px;">></span>
  14. <span class="current pointer">详情</span>
  15. </span>
  16. </div>
  17. <div class="head_title">
  18. <span class="text">园区资讯问答</span>
  19. <span class="english">Questions and Answers</span>
  20. </div>
  21. </div>
  22. </div>
  23. </section>
  24. <section class="content_box">
  25. <router-view></router-view>
  26. </section>
  27. <Footer></Footer>
  28. </div>
  29. </template>
  30. <script>
  31. //这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
  32. //例如:import 《组件名称》 from '《组件路径》';
  33. import Nav from "@components/Header.vue";
  34. import Footer from "@components/Footer.vue";
  35. export default {
  36. //import引入的组件需要注入到对象中才能使用
  37. components: { Nav, Footer },
  38. data() {
  39. //这里存放数据
  40. return {
  41. input2: "",
  42. };
  43. },
  44. //监听属性 类似于data概念
  45. computed: {},
  46. //监控data中的数据变化
  47. watch: {},
  48. //方法集合
  49. methods: {},
  50. //生命周期 - 创建完成(可以访问当前this实例)
  51. created() {},
  52. //生命周期 - 挂载完成(可以访问DOM元素)
  53. mounted() {},
  54. };
  55. </script>
  56. <style lang="scss" scoped>
  57. //@import url(); 引入公共css类
  58. .nav_box {
  59. background-image: linear-gradient(135deg, #42a6fe 0%, #0070d2 100%);
  60. .second_nv {
  61. @include size(100%, 140px);
  62. > div {
  63. @include size(1200px, 100%);
  64. margin: 0 auto;
  65. @include flex(column, flex-start, flex-start, null);
  66. position: relative;
  67. }
  68. .head_title {
  69. width: 100%;
  70. @include flex(column, center, center, null);
  71. .text {
  72. @include font(36px, #ffffff);
  73. font-weight: 600;
  74. }
  75. .english {
  76. @include font(14px, #ffffff);
  77. margin-top: 4px;
  78. }
  79. }
  80. .position {
  81. @include flex(row, flex-start, center, null);
  82. img {
  83. @include size(16px, 16px);
  84. background: #ffffff;
  85. margin-right: 6px;
  86. }
  87. padding-top: 10px;
  88. @include border-box;
  89. @include font(16px, #ffffff);
  90. .current {
  91. font-weight: 600;
  92. }
  93. }
  94. }
  95. }
  96. .content_box {
  97. width: 1200px;
  98. min-height: 400px;
  99. margin: 0 auto;
  100. padding: 30px 0;
  101. @include border-box;
  102. }
  103. </style>