MarketingQuestion.vue 8.98 KB
<template>
  <div class="main-content-box">
    <el-carousel class="swiper-box" height="37.15vh" ref="slideCarousel" trigger="click" arrow="never" :interval="0">
      <el-carousel-item class="">
        <div class="markeing-box">
          <Phone :imgName="'ai-dialogue'">
            <div class="dialogue-content" slot="content">
              <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>
              <div v-show="showR" class="dialog-item">
                <img class="avatar m-s-r" src="../../../assets//images/ai-avatar.png" alt="" />
                <div class="user-content m-r" id="qestion-1"></div>
              </div>
            </div>
          </Phone>
          <Phone class="enterprise-box" :imgName="'scrip-bg'">
            <div class="enterprise" slot="content">
              <div class="enterprise-item">
                贴膜和车是没有任何关系的,别误会了,车今天开过来没有贴膜,不是一样的开过来了吗,现在您不贴膜直接开回家吃午饭也是一样能够开回去,不是说不贴膜,车子就不能开了,所以贴膜主要是保护车内人的行驶安全、舒适…
              </div>
              <div class="enterprise-item">
                材质是不一样的,表面上看它可能就是一层塑料,但是它里边的这个结构是非常复杂的,不同的结构,有的膜是五层、有的膜是七层、还有的十几层那都是有区别的,况且我们这个价格是全国统一价,你在官网是能查到的,这对车主来说是最公平合理。
              </div>
            </div>
          </Phone>
          <div class="markeing-descript">
            <div class="second-title">营销提问应答</div>
            <div class="descript">基于大量行业数据的训练和GPT的技术,智能知识库为从事汽车增值服务的销售人员提供专业的销售话术生成以及客户销售建议。</div>
            <!-- <div class="qr-code">
              <img src="../../../assets//images/QR-code.png" alt="" />
            </div> -->
          </div>
        </div>
      </el-carousel-item>
      <el-carousel-item>
        <div class="AI-box">
          <div class="AI-box-title">AI模拟对练</div>
          <div class="AI-box-desc">
            AI模拟对练为线下驻店人员提供了一个高效的培训平台,通过模拟真实的客户互动场景,帮助员工提升服务技能,增强自信心,同时降低培训成本。它通过个性化反馈和实时评估,加速员工对新产品或服务的掌握,确保服务标准化。
          </div>
          <video @click="openVideoDia" muted="true" class="ai-video-box" ref="AIvideoRef" id="aivideosOut" controls autoplay loop>
            <!-- <source src="/media/cc0-videos/flower.webm" type="video/webm" /> -->
            <source :src="`https://img02.glsx.com.cn/weapp/resource/miniprogram/material/ai-practice.mp4?v=${version}`" type="video/mp4" />
          </video>
        </div>
      </el-carousel-item>
    </el-carousel>
    <Dialog title="AI模拟对练" type="2" :isShow="dialogShow" @closeDialog="closeDialog"></Dialog>
  </div>
</template>
<script>
import Phone from './Phone.vue'
import Dialog from './Dialog.vue'
export default {
  name: 'MarketingQuestion',
  components: {
    Phone,
    Dialog
  },
  data() {
    return {
      showQ: false,
      showR: false,
      pNode: null,
      timer: null,
      dialogShow: false,
      version: undefined
    }
  },
  mounted() {
    this.pNode = document.getElementById('qestion-1')
    // const str = '这位先生/女士/老板,一分钱一分货,就像同一款衣服,为什么有上万的,也有几百的,它材质是不一样的,表面上看它可能就是一层塑料,但是它里边的这个结构是非常复杂的,不同的结构,有的膜是五层、有的膜是七层、还有的十几层那都是有区别的,况且我们这个价格是全国统一价,你在官网是能查到的,这对车主来说是最公平合理。'
    this.showText()
    // t = setInterval(this.showText, 10000)
    this.$refs.AIvideoRef.addEventListener('ended', this.replayVideo)
    this.version = Math.random()*10
  },
  methods: {
    showText() {
      this.showQ = true
      setTimeout(() => {
        this.addText()
        this.showR = true
      }, 1000)
    },
    addText() {
      const str =
        '这位先生/女士/老板,一分钱一分货,就像同一款衣服,为什么有上万的,也有几百的,它材质是不一样的,表面上看它可能就是一层塑料,但是它里边的这个结构是非常复杂的,不同的结构,有的膜是五层、有的膜是七层、还有的十几层那都是有区别的,况且我们这个价格是全国统一价,你在官网是能查到的,这对车主来说是最公平合理。'
      let i = 0
      this.timer = setInterval(() => {
        if (i < str.length - 1) {
          this.pNode.innerHTML = this.pNode.innerHTML + str[i]
          i = i + 1
        } else {
          clearInterval(this.timer)
          setTimeout(() => {
            this.showQ = false
            this.showR = false
            this.pNode.innerHTML = ''
            setTimeout(() => {
              this.showText()
            }, 1000)
          }, 1000)
        }
      }, 100)
    },
    openVideoDia() {
      this.dialogShow = true
      document.getElementById("aivideosOut").muted = true;
      console.log(document.getElementById("aivideosOut").muted);
    },
    closeDialog() {
      this.dialogShow = false
    },
    replayVideo() {
      const video = this.$refs.AIvideoRef
      video.currentTime = 0
      video.play()
    }
  },
  beforeDestroy() {
    this.showQ = false
    this.showR = false
    this.pNode.innerHTML = ''
    clearInterval(this.timer)
    this.$refs.AIvideoRef.removeEventListener('ended', this.replayVideo)
  }
}
</script>
<style lang="scss" scoped>
.main-content-box {
  width: 100%;
  height: 37.15vh;
  border-image: linear-gradient(to right, #1f5387, #73eaff, #275fca) 1;
  background-image: url(../../../assets/images/marketing-ask-bg.png);
  background-size: 100% 100%;
}
.markeing-box {
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-sizing: border-box;
  padding: 2.59vh 1.04vw;
  width: 100%;
  height: 100%;
}
.dialogue-content {
  padding-top: 3.98vh;
  font-size: 7.1px;
  line-height: 9.76px;
  color: #fff;
  .dialog-item {
    display: flex;
    // flex-direction: row-reverse;
    align-items: center;
    align-items: baseline;
    padding: 0.65vh 0.26vw 0;
    .user-content {
      background: rgba(255, 255, 255, 0.1);
      border-radius: 4.44px 0 4.44px 4.44px;
      padding: 4px;
    }
  }
  .avatar {
    width: 0.47vw;
    height: 0.47vw;
  }
  .m-s-l {
    margin-left: 5px;
  }
  .m-s-r {
    margin-right: 5px;
  }
  .m-r {
    margin-right: 1.04vw;
  }
  .m-l {
    margin-left: 1.04vw;
  }
}
.enterprise-box {
  margin-left: 0.42vw;
}
.enterprise {
  padding-top: 8vh;
  font-size: 7px;
  color: #ffffff;
  &-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0.53vh 0.36vw;
    padding: 4px;
  }
}
.markeing-descript {
  width: 11.04vw;
  margin-left: 0.83vw;
  .second-title {
    font-size: 20px;
    text-align: center;
    color: #5894ff;
    background-image: -webkit-linear-gradient(left, #0185f9, #53faff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2.5vh;
    margin-top: -1vh;
  }
  .descript {
    color: #09aef2;
    font-size: 12px;
  }
  .qr-code {
    width: 7.29vw;
    height: 7.29vw;
    // border: 1px solid;
    // border-image: linear-gradient(to right, #01A4F9, #6DF5F9) 4;
    margin: 1.78vh auto 0;
  }
}
.AI-box {
  text-align: center;
  color: #5894ff;
  background-image: -webkit-linear-gradient(left, #0185f9, #53faff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  &-title {
    font-weight: 500;
    font-size: 20px;
    margin-top: 1.54vh;
  }
  &-desc {
    font-weight: 400;
    font-size: 12px;
    color: #09aef2;
    margin: 0.64vh 0 0.84vh 0;
    padding: 0 2.17vw;
  }
  .ai-video-box {
    width: 25vw;
    height: 25vh;
  }
}
.swiper-box {
  width: 100%;
}
/deep/ .el-carousel__indicator button {
  width: 3vw;
  height: 0.93vh;
  border-radius: 4px;
}
/deep/ .el-carousel__indicator.is-active button {
  width: 3vw;
  height: 0.93vh;
  background-image: linear-gradient(90deg, #01a4f9 1%, #6df5f9 100%);
  border-radius: 4px;
}
/deep/ .el-carousel__indicator--horizontal {
  padding: 0.625vw 0.808vw;
}
video::-webkit-media-controls-fullscreen-button {
     display: none;
}
</style>