| | |
| | | <template> |
| | | <div class="IndexMoudleBlock-wrap"> |
| | | <div class="IndexMoudle-block"> |
| | | |
| | | <div |
| | | @click="handleClickTk" |
| | | class="IndexMoudle-block" |
| | | > |
| | | <svg |
| | | class="IndexMoudleSvg" |
| | | xmlns="http://www.w3.org/2000/svg" |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="IndexMoudle-block"> |
| | | <div |
| | | @click="handleClickTk" |
| | | class="IndexMoudle-block" |
| | | > |
| | | <svg |
| | | class="IndexMoudleSvg" |
| | | xmlns="http://www.w3.org/2000/svg" |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="IndexMoudle-block"> |
| | | <div |
| | | @click="handleClickTk" |
| | | class="IndexMoudle-block"> |
| | | <svg |
| | | class="IndexMoudleSvg" |
| | | xmlns="http://www.w3.org/2000/svg" |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="IndexMoudle-block"> |
| | | <div |
| | | @click="handleClickTk" |
| | | class="IndexMoudle-block"> |
| | | <svg |
| | | class="IndexMoudleSvg" |
| | | xmlns="http://www.w3.org/2000/svg" |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="IndexMoudle-block"> |
| | | <div |
| | | @click="handleClickTk" |
| | | class="IndexMoudle-block"> |
| | | <svg |
| | | class="IndexMoudleSvg" |
| | | xmlns="http://www.w3.org/2000/svg" |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <indexMoudleForm ref="indexMoudleForm" v-if="indexMoudleVisiable"></indexMoudleForm> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import {animateShanFlash} from '@/utils/animateShanFlash' |
| | | import {getHost,getSnmp,getTask,getTaskInfoById,getUps,getKongtiao} from '@/api/daping' |
| | | import countTo from "vue-count-to" |
| | | import indexMoudleForm from "./IndexMoudleBlock/IndexMoudleForm"; |
| | | export default { |
| | | name: "IndexMoudleBlock", |
| | | components: { |
| | | countTo |
| | | countTo, |
| | | indexMoudleForm |
| | | }, |
| | | data() { |
| | | return { |
| | | indexMoudleVisiable:false, //弹框 |
| | | fuwuqiconfig1: { |
| | | number: [0], |
| | | }, |
| | |
| | | clearInterval(this.timer) |
| | | }, |
| | | mounted() { |
| | | this.loading() |
| | | //this.loading() |
| | | this.getHost() |
| | | this.getSnmp() |
| | | this.getTask() |
| | |
| | | |
| | | }, |
| | | methods: { |
| | | handleClickTk() { |
| | | this.indexMoudleVisiable = true |
| | | this.$nextTick(() => { |
| | | this.$refs.indexMoudleForm.init() |
| | | }) |
| | | }, |
| | | getHost(){ //主机 |
| | | getHost().then(res =>{ |
| | | console.log(res,'res====') |
| | |
| | | yoyo: true |
| | | }) |
| | | }) |
| | | tl.from('.IndexMoudleBlock-wrap',{ |
| | | y:'100', |
| | | autoAlpha: 0, |
| | | ease:'back.out(1.7)', |
| | | duration:1, |
| | | delay:0.5, |
| | | oncomplete: setTimeout(() => { |
| | | this.$refs.fuwuCountTo1.start(); |
| | | this.$refs.fuwuCountTo2.start(); |
| | | this.$refs.shutongCountTo1.start(); |
| | | this.$refs.shutongCountTo2.start(); |
| | | this.$refs.yunweiCountTo1.start(); |
| | | this.$refs.yunweiCountTo2.start(); |
| | | this.$refs.donghuanCountTo1.start(); |
| | | this.$refs.donghuanCountTo2.start(); |
| | | this.$refs.donghuanCountTo2.start(); |
| | | this.$refs.donghuanCountTo3.start(); |
| | | this.$refs.donghuanCountTo4.start(); |
| | | this.$refs.menjinCountTo1.start(); |
| | | this.$refs.menjinCountTo2.start(); |
| | | this.$refs.menjinCountTo3.start(); |
| | | this.$refs.menjinCountTo4.start(); |
| | | },1000) |
| | | tl.fromTo('.IndexMoudleBlock-wrap',{ |
| | | x:'-105%', |
| | | },{ |
| | | x:'0', |
| | | //autoAlpha: 0, |
| | | ease:'back.out(1.7)', |
| | | duration:1, |
| | | delay:0.5, |
| | | oncomplete: setTimeout(() => { |
| | | this.$refs.fuwuCountTo1.start(); |
| | | this.$refs.fuwuCountTo2.start(); |
| | | this.$refs.shutongCountTo1.start(); |
| | | this.$refs.shutongCountTo2.start(); |
| | | this.$refs.yunweiCountTo1.start(); |
| | | this.$refs.yunweiCountTo2.start(); |
| | | this.$refs.donghuanCountTo1.start(); |
| | | this.$refs.donghuanCountTo2.start(); |
| | | this.$refs.donghuanCountTo2.start(); |
| | | this.$refs.donghuanCountTo3.start(); |
| | | this.$refs.donghuanCountTo4.start(); |
| | | this.$refs.menjinCountTo1.start(); |
| | | this.$refs.menjinCountTo2.start(); |
| | | this.$refs.menjinCountTo3.start(); |
| | | this.$refs.menjinCountTo4.start(); |
| | | },1000) |
| | | }) |
| | | |
| | | |
| | | } |
| | | }, |
| | | loading2(){ |
| | | const tl = this.gsap.timeline({defaults: {duration: 0.8}}) |
| | | let pathArry = this.gsap.utils.toArray('.zhuangshi-kuai') |
| | | pathArry.forEach(item => { |
| | | animateShanFlash(item.children,{ |
| | | duration: 1.2, |
| | | yoyo: true |
| | | }) |
| | | }) |
| | | tl.fromTo('.IndexMoudleBlock-wrap',{ |
| | | x:'0', |
| | | },{ |
| | | x:'-105%', |
| | | //autoAlpha: 0, |
| | | ease:'back.out(1.7)', |
| | | duration:1, |
| | | delay:0.5, |
| | | oncomplete: setTimeout(() => { |
| | | this.$refs.fuwuCountTo1.start(); |
| | | this.$refs.fuwuCountTo2.start(); |
| | | this.$refs.shutongCountTo1.start(); |
| | | this.$refs.shutongCountTo2.start(); |
| | | this.$refs.yunweiCountTo1.start(); |
| | | this.$refs.yunweiCountTo2.start(); |
| | | this.$refs.donghuanCountTo1.start(); |
| | | this.$refs.donghuanCountTo2.start(); |
| | | this.$refs.donghuanCountTo2.start(); |
| | | this.$refs.donghuanCountTo3.start(); |
| | | this.$refs.donghuanCountTo4.start(); |
| | | this.$refs.menjinCountTo1.start(); |
| | | this.$refs.menjinCountTo2.start(); |
| | | this.$refs.menjinCountTo3.start(); |
| | | this.$refs.menjinCountTo4.start(); |
| | | },1000) |
| | | }) |
| | | |
| | | |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | .IndexMoudleBlock-wrap{ |
| | | width: 100%; |
| | | display: flex; |
| | | transform: translateX(-105%); |
| | | .IndexMoudle-block{ |
| | | position: relative; |
| | | margin: 0.0521rem /* 10/192 */ 0.078125rem /* 15/192 */; |
| | | cursor: pointer; |
| | | .IndexMoudleSvg{ |
| | | width: 100%; |
| | | height: 100%; |