Commit 3d8dc527 by 杨明

Merge branch 'v1.0.0' of http://192.168.3.233:8090/h5/glsk-data-view-scene into v1.0.0

2 parents a0f9a34a 4c96d4b3

5.02 MB | W: | H:

1.17 MB | W: | H:

src/assets/images/bg.png
src/assets/images/bg.png
src/assets/images/bg.png
src/assets/images/bg.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -55,7 +55,7 @@ export default {
height: 50vh;
top: 50%;
transform: translateY(-50%);
z-index: 14;
z-index: 99;
cursor: pointer;
}
.img {
......@@ -74,7 +74,7 @@ export default {
top: 50%;
// transform: translateY(-50%);
margin-top: -42px;
z-index: 11;
z-index: 98;
opacity: 0;
}
}
......
......@@ -2,7 +2,7 @@
<div class="markeing-box">
<Phone :imgName="'ai-dialogue'">
<div class="dialogue-content" slot="content">
<div v-show="showQ" class="dialog-item">
<div v-if="showQ" class="dialog-item">
<div class="user-content m-l">为什么这么贵?不就是一层塑料纸吗?</div>
<img class="avatar m-s-l" src="../../../assets//images/user-avatar.png" alt="">
</div>
......@@ -27,8 +27,6 @@
</div>
</template>
<script>
let t = null
let pNode = null
import Phone from "./Phone.vue"
export default {
name: 'MarketingQuestion',
......@@ -38,49 +36,51 @@ export default {
data() {
return {
showQ: false,
showR: false
showR: false,
pNode: null,
timer: null
}
},
mounted() {
pNode = document.getElementById('qestion-1')
this.pNode = document.getElementById('qestion-1')
// const str = '这位先生/女士/老板,一分钱一分货,就像同一款衣服,为什么有上万的,也有几百的,它材质是不一样的,表面上看它可能就是一层塑料,但是它里边的这个结构是非常复杂的,不同的结构,有的膜是五层、有的膜是七层、还有的十几层那都是有区别的,况且我们这个价格是全国统一价,你在官网是能查到的,这对车主来说是最公平合理。'
this.showText()
t = setInterval(() => {
pNode.innerHTML = ''
this.showText()
}, 10000)
// t = setInterval(this.showText, 10000)
},
methods: {
showText() {
if (!this.showQ) {
this.showQ = true
setTimeout(() => {
this.addText()
this.showR = true
}, 1000)
} else {
this.showQ = false
this.showR = false
setTimeout(() => {
this.showText()
}, 1000)
}
this.showQ = true
setTimeout(() => {
this.addText()
this.showR = true
}, 1000)
},
addText() {
const str = '这位先生/女士/老板,一分钱一分货,就像同一款衣服,为什么有上万的,也有几百的,它材质是不一样的,表面上看它可能就是一层塑料,但是它里边的这个结构是非常复杂的,不同的结构,有的膜是五层、有的膜是七层、还有的十几层那都是有区别的,况且我们这个价格是全国统一价,你在官网是能查到的,这对车主来说是最公平合理。'
let i = 0
const timer = setInterval(() => {
this.timer = setInterval(() => {
if (i < str.length - 1) {
pNode.innerHTML = pNode.innerHTML + str[i]
this.pNode.innerHTML = this.pNode.innerHTML + str[i]
i = i + 1
} else {
clearInterval(timer)
clearInterval(this.timer)
setTimeout(() => {
this.showQ = false
this.showR = false
this.pNode.innerHTML = ''
setTimeout(() => {
this.showText()
}, 1000)
}, 1000)
}
}, 50)
}
},
destroyed() {
clearInterval(t)
beforeDestroy() {
this.showQ = false
this.showR = false
this.pNode.innerHTML = ''
clearInterval(this.timer)
}
}
</script>
......
......@@ -69,7 +69,7 @@ export default {
height: 1.83vh;
background: #0A214D;
font-weight: 400;
font-size: 7px;
font-size: 10px;
color: #fff;
margin-right: 2vw;
span {
......
......@@ -69,7 +69,7 @@ export default {
height: 1.83vh;
background: #0a214d;
font-weight: 400;
font-size: 9px;
font-size: 10px;
color: #fff;
margin-right: 2vw;
span {
......
......@@ -62,7 +62,7 @@ export default {
height: 1.83vh;
background: #0A214D;
font-weight: 400;
font-size: 9px;
font-size: 10px;
color: #fff;
margin-right: 2vw;
span {
......
......@@ -59,13 +59,13 @@ export default {
.legend-item {
// background: #0A214D;
align-items: center;
font-size: 7px;
font-size: 10px;
color: #FFFFFF;
box-sizing: border-box;
margin: 2px 2px 2px 0;
white-space: nowrap;
.item-content {
width: 2.5vw;
width: 2.8vw;
overflow: hidden;
}
.icon {
......
......@@ -158,7 +158,7 @@ export default {
height: 5.61vh;
background: #092A46;
font-weight: 600;
font-size: 10px;
font-size: 12px;
color: #e8e8e8;
text-align: center;
}
......@@ -183,7 +183,7 @@ export default {
&-title {
width: 2.78vw;
font-weight: 400;
font-size: 10px;
font-size: 12px;
color: #fff;
text-align: center;
// white-space: pre-wrap;
......@@ -219,7 +219,7 @@ export default {
.clew-line-text {
padding: 0.85vh 0.56vw 0.73vh 0.56vw;
font-weight: 400;
font-size: 10px;
font-size: 12px;
color: #fff;
border-bottom: 1px solid #0E2949;
box-sizing: border-box;
......@@ -285,7 +285,7 @@ export default {
}
}
.retrieve {
font-size: 10px;
font-size: 12px;
color: #ff3540;
.estimate-num {
color: #ff3540 !important;
......
......@@ -69,7 +69,7 @@ export default {
height: 1.83vh;
background: #0A214D;
font-weight: 400;
font-size: 9px;
font-size: 10px;
color: #fff;
margin-right: 2vw;
span {
......
......@@ -92,7 +92,7 @@ export default {
align-items: center;
.project-title {
color: #e8e8e8;
font-size: 10px;
font-size: 12px;
line-height: 12px;
margin-top: 0.4vh;
// &.fontSmall {
......@@ -126,7 +126,7 @@ export default {
}
padding-left: 0.5vw;
.project-content-desc {
font-size: 9px;
font-size: 12px;
color: #dddddd;
}
.project-content-num {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!