<script>
import logo from '../../assets/images/logo.png'
import s1 from '../../assets/images/lbt1.jpeg'
import s2 from '../../assets/images/lbt2.jpeg'
import s3 from '../../assets/images/lbt3.jpeg'
import tb1 from '../../assets/images/tb1.png'
import { ref, onMounted } from 'vue'
import FootView from '../../components/footView.vue'

export default {
  components: {
    FootView,
  },
  data() {
    return {
      imagePath: {
        logo: logo,
        tb1: tb1,
        s1: s1,
        s2: s2,
        s3: s3,
      },
    }
  },
  setup() {
    const slides = [{ image: s1 }, { image: s2 }, { image: s3 }]

    const currentIndex = ref(0)

    const nextSlide = () => {
      currentIndex.value = (currentIndex.value + 1) % slides.length
    }

    const prevSlide = () => {
      currentIndex.value = (currentIndex.value - 1 + slides.length) % slides.length
    }
    function tiaoZhuan(id) {
      const element = document.getElementById(id)
      if (element) {
        element.scrollIntoView({ behavior: 'smooth' })
      }
    }
    const geet = () => {
      alert(`欢迎咨询！`)
    }
    const tiJiao = () => {
      alert('提交成功！')
    }
    const shouye = (id) => {
      tiaoZhuan(id)
    }
    const canPingFangan = (id) => {
      tiaoZhuan(id)
    }
    const jieJuewenTi = (id) => {
      tiaoZhuan(id)
    }
    const keHuanLi = (id) => {
      tiaoZhuan(id)
    }
    const yuanYuwoMen = (id) => {
      tiaoZhuan(id)
    }
    const tij = () => {
      alert('提交成功！')
    }
    // 自动播放
    onMounted(() => {
      setInterval(nextSlide, 4000)
    })

    return {
      slides,
      currentIndex,
      nextSlide,
      prevSlide,
      geet,
      shouye,
      canPingFangan,
      tiaoZhuan,
      jieJuewenTi,
      keHuanLi,
      yuanYuwoMen,
      tiJiao,
      tij,
    }
  },
}
</script>
<template>
  <div class="box">
    <div class="common-layout">
      <el-container>
        <!-- 顶部 -->
        <el-header>
          <div class="dhl" id="dhl">
            <div class="left-box">
              <img class="img-1" :src="imagePath.logo" alt="Logo" />
              <span class="sys-title">辉擎科技</span>
            </div>
            <div class="right-box">
              <div class="dhl-x">
                <div><a href="#" @click="shouye('dhl')">首页</a></div>
                <div><a href="#" @click="canPingFangan('bk')">产品方案</a></div>
                <div><a href="#" @click="jieJuewenTi('fan-mk')">行业解决问题</a></div>
                <div><a href="#" @click="keHuanLi('bk-2')">客户案例</a></div>
                <div><a href="#" @click="yuanYuwoMen('lx-mk')">关于我们</a></div>
              </div>
              <el-button @click="geet" class="an-3" type="primary">免费咨询</el-button>
            </div>
          </div>
        </el-header>
        <el-main class="main" style="padding: 0 20px">
          <div class="carousel">
            <div class="slides" :style="{ transform: `translateX(-${currentIndex * 100}%)` }">
              <div class="slide" v-for="(slide, index) in slides" :key="index">
                <div v-if="!isDark" class="demo-term-box">
                  <div class="em-2">构建智能未来</div>
                  <div class="em-3">
                    辉擎成都科技有限公司致力于提供创新的软件开发解决方案，帮助企业实现数字化转型提升竞争力。
                  </div>
                  <el-button class="an-1" type="primary" @click="yuanYuwoMen('lx-mk')"
                    >联系我们</el-button
                  >
                  <el-button class="an-2" @click="canPingFangan('bk')">了解服务</el-button>
                </div>
                <img :src="slide.image" alt="Slide Image" />
              </div>
            </div>
            <!-- <button class="prev" @click="prevSlide">&#10094;</button>
            <button class="next" @click="nextSlide">&#10095;</button> -->
          </div>
          <div class="bk" id="bk">
            <div class="em-4">我们的服务</div>
            <div class="em-5">
              辉擎科技提供全方位的软件开发服务，从需求分析到部署维护，我们用技术为您的业务赋能。
            </div>
            <div class="fw">
              <div class="fw-box">
                <img class="img-2" :src="imagePath.tb1" alt="tb1" />
                <div class="rgzn">人工智能平台</div>
                <div class="tgfw">
                  提供企业级AI能力，包括机器学习、深度学习、自然语言处理等核心技术支持
                </div>
              </div>
              <div class="fw-box">
                <img class="img-2" :src="imagePath.tb1" alt="tb1" />
                <div class="rgzn">人工智能平台</div>
                <div class="tgfw">
                  提供企业级AI能力，包括机器学习、深度学习、自然语言处理等核心技术支持
                </div>
              </div>
              <div class="fw-box">
                <img class="img-2" :src="imagePath.tb1" alt="tb1" />
                <div class="rgzn">人工智能平台</div>
                <div class="tgfw">
                  提供企业级AI能力，包括机器学习、深度学习、自然语言处理等核心技术支持
                </div>
              </div>
              <div class="fw-box">
                <img class="img-2" :src="imagePath.tb1" alt="tb1" />
                <div class="rgzn">人工智能平台</div>
                <div class="tgfw">
                  提供企业级AI能力，包括机器学习、深度学习、自然语言处理等核心技术支持
                </div>
              </div>
            </div>
          </div>
          <!--  -->
          <div class="bk-2" id="bk-2">
            <div>
              <div class="em-4">成功案例</div>
              <div class="em-5">服务超过1000家企业客户,助力企业数字化转型。</div>
            </div>
            <div class="an-li-box">
              <div class="an-ls-body">
                <div class="an-li">
                  <div class="top-box">
                    <img class="img-2" :src="imagePath.tb1" alt="tb1" />
                    <div class="sys">
                      <div class="sys-title">远洋集团</div>
                      <div class="fdc">房地产行业</div>
                    </div>
                  </div>
                  <div class="chenter-box">
                    通过部署智能分析平台,实现销售数据可视化分析,提升决策效率超过60%
                  </div>
                  <div class="bteen-box">
                    <div style="color: #646262 font-weight: 100;">部署时间:xxxx年</div>
                    <el-link :underline="false" style="color: #3d8dce">查看详情</el-link>
                  </div>
                </div>
                <div class="an-li">
                  <div class="top-box">
                    <img class="img-2" :src="imagePath.tb1" alt="tb1" />
                    <div class="sys">
                      <div class="sys-title">远洋集团</div>
                      <div class="fdc">房地产行业</div>
                    </div>
                  </div>
                  <div class="chenter-box">
                    通过部署智能分析平台,实现销售数据可视化分析,提升决策效率超过60%
                  </div>
                  <div class="bteen-box">
                    <div style="color: #646262 font-weight: 100;">部署时间:xxxx年</div>
                    <el-link :underline="false" style="color: #3d8dce">查看详情</el-link>
                  </div>
                </div>
                <div class="an-li">
                  <div class="top-box">
                    <img class="img-2" :src="imagePath.tb1" alt="tb1" />
                    <div class="sys">
                      <div class="sys-title">远洋集团</div>
                      <div class="fdc">房地产行业</div>
                    </div>
                  </div>
                  <div class="chenter-box">
                    通过部署智能分析平台,实现销售数据可视化分析,提升决策效率超过60%
                  </div>
                  <div class="bteen-box">
                    <div style="color: #646262 font-weight: 100;">部署时间:xxxx年</div>
                    <el-link :underline="false" style="color: #3d8dce">查看详情</el-link>
                  </div>
                </div>
              </div>
            </div>
            <div class="an-nu">
              <el-button class="an-nu-1">查看更多案例</el-button>
            </div>
          </div>
          <!--  -->
          <div class="dt-mk">
            <div>
              <div class="em-4">最新动态</div>
              <div class="em-5">了解公司最新资讯与行业洞察。</div>
            </div>
            <div class="dt-box">
              <div class="dt-bj">
                <div class="bt-nr">
                  <div class="img">
                    <img class="img-4" :src="imagePath.s1" alt="tb1" />
                  </div>
                  <div class="bt-nr-1">
                    <div class="shij">2024年3月15日</div>
                    <div class="fbt-1">2024数字化转型峰会圆满举行</div>
                    <div class="fbt-2">
                      本次峰会汇聚行业专家，深入探讨数字化转型趋势与实践经验，共同展望为了发展方向。
                    </div>
                    <div class="xq-1">
                      <el-link :underline="false" style="color: #2d3fdd"
                        >查看详情<el-icon><Right /></el-icon
                      ></el-link>
                    </div>
                  </div>
                </div>
              </div>
              <div class="dt-bj">
                <div class="bt-nr">
                  <div class="img">
                    <img class="img-4" :src="imagePath.s1" alt="tb1" />
                  </div>
                  <div class="bt-nr-1">
                    <div class="shij">2024年3月15日</div>
                    <div class="fbt-1">2024数字化转型峰会圆满举行</div>
                    <div class="fbt-2">
                      本次峰会汇聚行业专家，深入探讨数字化转型趋势与实践经验，共同展望为了发展方向。
                    </div>
                    <div class="xq-1">
                      <el-link :underline="false" style="color: #2d3fdd"
                        >查看详情<el-icon><Right /></el-icon
                      ></el-link>
                    </div>
                  </div>
                </div>
              </div>
              <div class="dt-bj">
                <div class="bt-nr">
                  <div class="img">
                    <img class="img-4" :src="imagePath.s1" alt="tb1" />
                  </div>
                  <div class="bt-nr-1">
                    <div class="shij">2024年3月15日</div>
                    <div class="fbt-1">2024数字化转型峰会圆满举行</div>
                    <div class="fbt-2">
                      本次峰会汇聚行业专家，深入探讨数字化转型趋势与实践经验，共同展望为了发展方向。
                    </div>
                    <div class="xq-1">
                      <el-link :underline="false" style="color: #2d3fdd"
                        >查看详情<el-icon><Right /></el-icon
                      ></el-link>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <!--  -->
          <div class="fan-mk" id="fan-mk">
            <div class="fan-bt">解决方案</div>
            <div class="fan-nr">
              <div class="fan-left">
                <div class="fan-wb1">金融解决方案</div>
                <div class="fan-wb2">
                  为金融机构提供智能风控、数据分析、客户画像等全方位解决方案，助力数字化转型
                </div>
                <div>
                  <div class="fan-wb3">
                    <el-icon class="tb"><CircleCheckFilled /></el-icon>智能风控系统
                  </div>
                  <div class="fan-wb3">
                    <el-icon class="tb"><CircleCheckFilled /></el-icon>数据分析平台
                  </div>
                  <div class="fan-wb3">
                    <el-icon class="tb"><CircleCheckFilled /></el-icon>客户画像系统
                  </div>
                </div>
              </div>
              <div class="fan-right"><img class="img-7" :src="imagePath.s1" alt="tb1" /></div>
            </div>
          </div>
          <!--  -->
          <div class="lx-mk" id="lx-mk">
            <div class="lx-left">
              <div class="lx-wb">联系我们</div>
              <form>
                <div>
                  <div class="lx-wb-1">姓名</div>
                  <input type="text" placeholder="请输⼊您的姓名" class="align-placeholder" />
                </div>
                <div>
                  <div class="lx-wb-1">邮箱</div>
                  <input type="text" placeholder="请输⼊您的邮箱" class="align-placeholder-1" />
                </div>
                <div>
                  <div class="lx-wb-1">需求描述</div>
                  <textarea
                    type="text"
                    placeholder="请详细描述您的需求"
                    class="align-placeholder"
                  ></textarea>
                </div>
                <button type="submit" class="tij" @click="tij">提交</button>
              </form>
            </div>
            <div class="lx-right">
              <div class="lx-right-haed">
                <div class="lx-wb-2">联系方式</div>
                <div class="lx-wb-3">
                  <el-icon class="lx-tb-1"><PhoneFilled /></el-icon>
                  <div>
                    <div>电话</div>
                    <div class="lx-dh">400-888-8888</div>
                  </div>
                </div>
                <div class="lx-wb-3">
                  <el-icon class="lx-tb-1"><Message /></el-icon>
                  <div>
                    <div>邮箱</div>
                    <div class="lx-dh">huiqing@huiqing-cd.com</div>
                  </div>
                </div>
                <div class="lx-wb-3">
                  <el-icon class="lx-tb-1"><LocationInformation /></el-icon>
                  <div>
                    <div>地址</div>
                    <div class="lx-dh">四川成都</div>
                  </div>
                </div>
              </div>
              <div class="lx-right-foot">
                <div class="fan-right"><img class="img-8" :src="imagePath.s1" alt="tb1" /></div>
              </div>
            </div>
          </div>
        </el-main>
        <FootView></FootView>
      </el-container>
    </div>
  </div>
</template>
<style scoped>
.tij {
  width: 605px;
  color: #fff;
  background-color: #2c4cdb;
  border: none;
  height: 40px;
  border-radius: 3px;
}
.align-placeholder-1::placeholder {
  padding-left: 10px;
}
.align-placeholder::placeholder {
  padding-left: 10px;
}
form textarea {
  width: 600px;
  height: 150px;
  line-height: 30px;
  border: none;
  outline: none;
  border-radius: 3px;
  margin-bottom: 20px;
}
form input {
  width: 600px;
  border: none;
  height: 25px;
  outline: none;
  border-radius: 3px;
  margin-bottom: 20px;
}
.dhl-x a {
  text-decoration: none;
  color: inherit;
}

.lx-right {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 700px;
  margin-left: 150px;
}
.img-8 {
  width: 600px;
  height: 300px;
  border-radius: 10px;
}
.lx-tb-1 {
  font-size: 25px;
  color: #2d3fdd;

  margin-right: 5px;
}
.lx-wb-3 {
  margin-left: 20px;
  display: flex;
}
.lx-dh {
  font-weight: bold;
}
.lx-wb-2 {
  font-size: 20px;
  font-weight: bold;
  margin-left: 20px;
}
.lx-right-haed {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 250px;

  background-color: #fff;
  width: 600px;

  border-radius: 15px;
}
.lx-wb-1 {
  margin-bottom: 10px;
}
.lx-left {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 500px;
  margin-top: 50px;
  margin-left: 100px;
}

.lx-wb {
  font-size: 25px;
  font-weight: bold;
}
.lx-mk {
  display: flex;
  justify-content: space-around;
  margin-top: 180px;
  height: 700px;
  background-color: #f7f6f6;
}
.tb {
  color: #2d3fdd;
  margin-right: 15px;
}
.fan-bt {
  text-align: center;
  font-weight: bold;
  font-size: 30px;
}
.img-7 {
  width: 600px;
  height: 400px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}
.fan-nr {
  display: flex;
  justify-content: space-around;
}
.fan-left {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 300px;
  margin-right: 300px;
}
.fan-wb1 {
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
}
.fan-wb2 {
  margin-top: 10px;
  font-weight: 100;
  line-height: 1.5;
  letter-spacing: 1px;
  width: 600px;
}
.fan-wb3 {
  margin-top: 10px;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 2px;
}
.fan-mk {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  margin-top: 80px;
  height: 500px;
}
.dt-box {
  display: flex;
  justify-content: space-around;
}
.fbt-2 {
  color: #272626;
}
.fbt-1 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
}
.shij {
  color: #a19f9f;
}
.xq-1 {
  display: flex;
}

.bt-nr-1 {
  display: flex;
  flex-direction: column;
  height: 200px;
  justify-content: space-around;
  margin-left: 35px;
  margin-right: 15px;
  line-height: 1.5;
  letter-spacing: 2px;
}
.img {
  display: flex;
  align-items: center;
  justify-content: center;
}
.bt-nr {
  display: flex;
  flex-direction: column;
}
.dt-bj {
  display: flex;
  width: 550px;
  height: 500px;
  border-radius: 10px;
  margin-top: 60px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.dt-mk {
  display: flex;
  flex-direction: column;
  height: 700px;
}
.img-4 {
  margin-top: 20px;
  width: 480px;
  height: 250px;
  border-radius: 10px;
}
.an-nu-1 {
  width: 200px;
  height: 50px;
}
.an-nu {
  display: flex;
  justify-content: center;
}
.an-ls-body {
  display: flex;
  justify-content: space-around;
  margin-right: 100px;
}
.an-li-box {
  margin-left: 100px;
}
.em-5 {
  text-align: center;
  margin-top: 20px;
  font-weight: 100;
}
.em-4 {
  text-align: center;
  font-weight: bold;
  font-size: 30px;
  margin-top: 50px;
}
.bk-2 {
  height: 700px;
  background-color: #f7f6f6;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.bteen-box {
  display: flex;
  justify-content: space-between;
  margin-left: 20px;
}
.chenter-box {
  margin-left: 20px;
  margin-right: 30px;
  line-height: 1.5;
  font-weight: 100;
  letter-spacing: 2px;
}
.sys {
  margin-left: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  letter-spacing: 1px;
}
.fdc {
  flex-wrap: wrap;
}
.top-box {
  display: flex;
  height: 55px;
  margin-top: 20px;
}
.an-li {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 450px;
  height: 250px;
  margin-top: 60px;
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  background-color: #fff;
}
.rgzn {
  margin-left: 20px;
  margin-top: 30px;
  font-size: 20px;
  font-weight: bold;
}
.tgfw {
  margin-left: 20px;
  margin-top: 25px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 2px;
  font-weight: 100;
}
.fw {
  display: flex;
  justify-content: space-around;
  height: 400px;
  margin-top: 60px;
}
.fw-box {
  width: 430px;
  height: 280px;
  align-content: space-around;
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: 2px;
}
.img-2 {
  width: 55px;
  height: 55px;
  margin-left: 20px;
}
.an-5 {
  margin-left: -20px;
  margin-top: 20px;
  width: 100px;
}
.sj-2 {
  margin-top: 15px;
}
.em-8 {
  margin-top: 30px;
  width: 390px;
  line-height: 1.5;
  font-size: 15px;
}
.bt-3 {
  margin-top: 15px;
  font-weight: bold;
}

.bk-3-1 {
  height: 470px;
  border-radius: 5px;
  margin-top: 80px;
  margin-left: 115px;
  box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.2);
}
.bk-3 {
  margin-top: 100px;
}
.sj-1 {
  margin-top: 20px;
  margin-left: 30px;
}
.img-3 {
  margin-top: 25px;
  margin-left: 30px;
}
.em-7 {
  margin-left: 30px;
  margin-top: 35px;
  font-size: 15px;
  line-height: 1.7;
  width: 350px;
}
.wb-1 {
  margin-left: 110px;
  margin-top: 8px;
}
.bk-2-2 {
  height: 230px;
  margin-top: 80px;
  margin-left: 115px;
  border-radius: 7px;
  padding: 20px;
  background-color: #f0f0f0;
}
.bt-2 {
  font-weight: bold;
  margin-top: -80px;
  margin-left: 110px;
}

.img-1 {
  width: 60px;
  height: 60px;
}
.bt-1 {
  margin-top: -70px;
  margin-left: 30px;
  font-size: 25px;
}
.em-6 {
  margin-top: 40px;
  margin-left: 30px;
  font-size: 14px;
  width: 260px;
  line-height: 1.5;
}
.bk-1-1 {
  background-color: #dad3d3;

  height: 300px;
  margin-top: 80px;
  margin-left: 62px;
  border-radius: 15px; /* 设置圆角 */
  padding: 20px;
  background-color: #f0f0f0;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
.bk-1 {
  background-color: #d1cfcf;

  height: 300px;
  margin-top: 70px;
  margin-left: 62px;
  border-radius: 15px; /* 设置圆角 */
  padding: 20px;
  background-color: #f0f0f0;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
.bk {
  position: relative;
  background-color: #fff;
  margin-top: 90px;
  height: 600px;
}

.an-1 {
  position: absolute;
  top: 300px;
  left: 145px;
}
.an-2 {
  position: absolute;
  top: 300px;
  left: 280px;
}
.an-4 {
  margin-top: 90px;
  margin-left: -440px;
  width: 150px;
}
.box {
  height: 100%;
}
.em-3 {
  position: absolute;
  top: 190px;
  left: 145px;
  width: 290px;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 2.5px;
}
.em-2 {
  position: absolute;
  width: 250px;
  font-weight: bold;
  margin: 120px 300px 300px 145px;
  font-size: 40px;
  color: #fff;
}
.em-1 {
  margin-left: 5px;
  position: absolute;
  top: 22px;
  left: 260px;
  font-size: 25px;
  font-weight: bold;
}
.dhl {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #fff;
  position: fixed;
  z-index: 1;
}
.el-link {
  margin-right: 25px;
  float: right;
  color: #000;
}
.dhl-x {
  display: flex;
  gap: 20px;
  margin-right: 100px;
}
.carousel {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
  position: relative;
}

.slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.left-box {
  display: flex;
  align-items: center;
  margin-left: 80px;
}

.sys-title {
  font-size: 30px;
  font-weight: 600;
}

.right-box {
  display: flex;
  align-items: center;
}
</style>