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