Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
hotfusion committed Oct 24, 2024
1 parent 9b032e4 commit 628491b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"aws": "ssh -i 'hotfusion.pem' [email protected]"
},
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions src/view/hotfusion/src/assets/less/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/view/hotfusion/src/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default {
<Aboutus v-on:goto="goTo" :parentIndex="activeIndex"/>
</swiper-slide>
<swiper-slide>
<PriceList v-on:goto="goTo"></PriceList>
<PriceList v-on:goto="goTo" :parentIndex="activeIndex"></PriceList>
</swiper-slide>
<swiper-slide>
<Contactus v-on:goto="goTo" @completed="swiper.slideTo(1)" :enable="activeIndex === 3"></Contactus>
Expand Down
28 changes: 20 additions & 8 deletions src/view/hotfusion/src/pages/contactus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
})
})
}
},
Expand Down Expand Up @@ -109,7 +117,9 @@ export default {
})
);
setTimeout(() => {
this.onSlideChange();
this.onSlideChange({
activeIndex:0
});
},100)
},
watch : {
Expand All @@ -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)
}
}
Expand Down Expand Up @@ -153,9 +165,9 @@ export default {
<swiper-slide>
<div class="paragraph" center ref="paragraph">
<div class="icon">
<i class="fas fa-paper-plane"></i>
<i class="fas fa-envelope"></i>
</div>
<h1 value="You message has been recived!">
<h1 value="You message has been received!">
</h1>
<div class="line"></div>
<p>
Expand Down

0 comments on commit 628491b

Please sign in to comment.