guhongwei пре 5 година
родитељ
комит
5ff4cc76a3
2 измењених фајлова са 37 додато и 9 уклоњено
  1. 19 0
      src/layout/altai/index/image.vue
  2. 18 9
      src/views/altai/index.vue

+ 19 - 0
src/layout/altai/index/image.vue

@@ -0,0 +1,19 @@
+<template>
+  <div id="image">
+    <p>image</p>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'image',
+  props: {},
+  components: {},
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="scss" scoped></style>

+ 18 - 9
src/views/altai/index.vue

@@ -31,6 +31,9 @@
         <el-col :span="24" class="foot">
           <foot :foot="foot"></foot>
         </el-col>
+        <el-col :span="24" class="img">
+          <imageInfo></imageInfo>
+        </el-col>
       </div>
     </el-row>
   </div>
@@ -46,19 +49,20 @@ import keji from '../../layout/altai/index/keji.vue';
 import lianjie from '../../layout/altai/index/lianjie.vue';
 import foot from '../../layout/altai/index/foot.vue';
 import native from '../../layout/altai/index/native.vue';
+import imageInfo from '../../layout/altai/index/image.vue';
 export default {
   name: 'index',
   props: {
-    mapUrl: null,//首页地图图片
-    ziXunList:null,
-    noticeList:null,
-    lawList:null,
-    keJiList:null,
-    linkList: null,//友情链接
-    foot:null,//头部信息+底部信息
+    mapUrl: null, //首页地图图片
+    ziXunList: null,
+    noticeList: null,
+    lawList: null,
+    keJiList: null,
+    linkList: null, //友情链接
+    foot: null, //头部信息+底部信息
   },
   components: {
-    top,//头部
+    top, //头部
     ditu,
     zixun,
     notice,
@@ -66,7 +70,8 @@ export default {
     keji,
     lianjie,
     foot,
-    native,//导航
+    native, //导航
+    imageInfo, //图片飘动
   },
   data: () => ({}),
   created() {},
@@ -142,4 +147,8 @@ export default {
   color: #858f9b;
   background-color: rgba(0, 0, 0, 0.4);
 }
+.img {
+  position: fixed;
+  top: 0;
+}
 </style>