From 628491b7dcf3cf22267380a0cefe48a7b32f609d Mon Sep 17 00:00:00 2001 From: hotfusion Date: Thu, 24 Oct 2024 14:20:24 -0400 Subject: [PATCH] . --- src/package.json | 2 +- src/view/hotfusion/src/assets/less/index.less | 1 + src/view/hotfusion/src/index.vue | 2 +- src/view/hotfusion/src/pages/contactus.vue | 28 +++++++++++++------ 4 files changed, 23 insertions(+), 10 deletions(-) diff --git a/src/package.json b/src/package.json index 9a03ff5..0b13e22 100644 --- a/src/package.json +++ b/src/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "aws": "ssh -i 'hotfusion.pem' ec2-user@ec2-18-220-23-158.us-east-2.compute.amazonaws.com" }, "repository": { "type": "git", diff --git a/src/view/hotfusion/src/assets/less/index.less b/src/view/hotfusion/src/assets/less/index.less index 96fa2ce..101cc66 100644 --- a/src/view/hotfusion/src/assets/less/index.less +++ b/src/view/hotfusion/src/assets/less/index.less @@ -174,6 +174,7 @@ html { background-color: transparent !important; border: solid 4px #fff; color: #fff; + flex-direction: row !important; i,svg{ font-size: 20px; margin-right: 10px; diff --git a/src/view/hotfusion/src/index.vue b/src/view/hotfusion/src/index.vue index c9bad25..ea23505 100644 --- a/src/view/hotfusion/src/index.vue +++ b/src/view/hotfusion/src/index.vue @@ -73,7 +73,7 @@ export default { - + diff --git a/src/view/hotfusion/src/pages/contactus.vue b/src/view/hotfusion/src/pages/contactus.vue index b42220a..73b7d34 100644 --- a/src/view/hotfusion/src/pages/contactus.vue +++ b/src/view/hotfusion/src/pages/contactus.vue @@ -30,9 +30,17 @@ export default { }, onSlideChange(e){ setTimeout(() => { - let element = this.$refs.paragraph.querySelector('h1'); - element.innerHTML = ''; - KUTE.default.to(element, {text: element.getAttribute('value')}).start(); + let p = [...this.$el.querySelectorAll('.paragraph')]; + + p.forEach((x, i) => { + + let element = x.querySelector('h1'); + if(element){ + element.innerHTML = ''; + KUTE.default.to(element, {text: element.getAttribute('value')}).start(); + } + + }) }) } }, @@ -109,7 +117,9 @@ export default { }) ); setTimeout(() => { - this.onSlideChange(); + this.onSlideChange({ + activeIndex:0 + }); },100) }, watch : { @@ -118,11 +128,13 @@ export default { layout.component.elements .forEach(item => item.setDisable(!value)); if(!index && value) - layout.component.elements[index].setFocus() + layout.component.elements[index].setFocus(); }); setTimeout(() => { - this.onSlideChange(); + this.onSlideChange({ + activeIndex:0 + }); },100) } } @@ -153,9 +165,9 @@ export default {
- +
-

+