济南总部
-
- 山东省济南市历下区千佛山路1号建邦创意星空广场A座10楼A1002室
-
+
山东省济南市历下区千佛山路1号建邦创意星空广场A座10楼A1002室
总部电话:0531-58252556
工业互联网业务:15066150005 王老师
物联网业务:15169050007 王老师
@@ -248,12 +264,15 @@
import top from "@/components/header.vue";
import bottom from "@/components/footer.vue";
import headline from "@/components/headline.vue";
+import ElStep from "@/components/elStep.vue";
+import BScroll from "better-scroll";
export default {
name: "HomeView",
components: {
top,
bottom,
headline,
+ ElStep
},
data() {
return {
@@ -261,24 +280,39 @@ export default {
solutabsIndex: "0",
solutabsIndexs: "0",
num: 0, //跳转楼层
+ active: 0, //发展历程
+ stepList: [
+ { index: 1, title: "2020" },
+ { index: 2, title: "2021" },
+ { index: 3, title: "2022" },
+ { index: 4, title: "现在" }
+ ],
+ bscorll: null,
+ scroll: null
};
},
- created() {
- var that = this;
- var inner = document.getElementsByClassName("floor");
- // 注册滚动监听事件
- window.onscroll = function () {
- // 获取滚动条距离页面底部的距离
- var tops = document.documentElement.scrollTop || document.body.scrollTop;
- // console.log(tops)
- //判断滚动的位置,从而改变楼层选项的样式
- for (var i = 0; i < inner.length; i++) {
- if (inner[i].offsetTop <= tops + 200 && tops <= inner[i].offsetTop) {
- that.num = i;
- }
- }
- };
- },
+ // mounted() {
+ // this.$nextTick(() => {
+ // this.scroll = new Bscroll(this.$refs.scroll, {});
+ // });
+ // },
+ // created() {
+ // var that = this;
+ // var inner = document.getElementsByClassName("floor");
+ // // 注册滚动监听事件
+ // window.onscroll = function() {
+ // // 获取滚动条距离页面底部的距离
+ // var tops = document.documentElement.scrollTop || document.body.scrollTop;
+ // // console.log(tops)
+ // //判断滚动的位置,从而改变楼层选项的样式
+ // for (var i = 0; i < inner.length; i++) {
+ // if (inner[i].offsetTop <= tops + 200 && tops <= inner[i].offsetTop) {
+ // that.num = i;
+ // }
+ // }
+ // };
+ // },
+
methods: {
// 楼层跳转的方法index
handleSelect(index) {
@@ -287,14 +321,28 @@ export default {
var inner = document.getElementsByClassName("floor");
window.scrollTo({
top: inner[index].offsetTop - 50,
- behavior: "smooth",
+ behavior: "smooth"
});
},
handleSelects(index) {
//荣誉
},
- },
+
+ inputVal(val) {
+ this.val = val;
+ },
+ submit() {
+ console.log(this.val);
+ },
+ stepFunction(index) {
+ this.active = index;
+ this.goStep(this.active);
+ },
+ goStep(index) {
+ console.log(index, 78787);
+ }
+ }
};