<template>
  <div class="main_content">
    <img src="https://webapp-pub.ezijing.com/www/pc/practice/study/banner.png" class="banner" />
    <div class="content_part">
      <div class="part_title">数字化转型高级研修项目</div>
      <div class="part_desc">
        数字化转型研修项目是由清空紫荆联合国内外院校研发首创的企业家高级研修项目，结合商业管理管理创新与人工智能、大数据、云计算和科学设计，<br />整合国内外“政、产、学、研、用”各界专家力量，以系统性的全景视野解读新时期企业数字化转型之路。
      </div>
    </div>
    <div class="content_part1">
      <img src="https://webapp-pub.ezijing.com/www/pc/practice/study/study_advantage.png" class="part_img" />
      <div class="part_con">
        <div class="con_tit">项目优势</div>
        <ul class="con_list">
          <li>
            <p>
              利用数字化工具实现企业外部市场、资源与内部管理快速触达
            </p>
          </li>
          <li>
            <p>
              实现企业增收、提效、降本的转型升级目的
            </p>
          </li>
          <li>
            <p>
              实战经验和国外学位融为一体
            </p>
          </li>
          <li>
            <p>
              顶层设计、数字化业务与市场支撑、数字化管理与人才体系、数字化底层技术体系四位一体
            </p>
          </li>
          <li>
            <p>
              既洞察数字化转型整体布局，又能深入了解数字化转型核心模块与应用实践。
            </p>
          </li>
        </ul>
      </div>
    </div>
    <div class="content_part2">
      <div class="part_tit">
        数字化转型战略地图
      </div>
      <div class="part_con">
        <img src="https://webapp-pub.ezijing.com/www/pc/practice/study/map1.png" class="" />
        <img src="https://webapp-pub.ezijing.com/www/pc/practice/study/map2.png" class="" />
      </div>
    </div>
    <div class="content_part3"></div>
    <div class="content_part4">
      <div class="mask"></div>
      <div class="part_con">
        <div class="con_left">马上咨询 <br />数字化转型高级研修项目</div>
        <div class="con_right">
          <el-form :model="form" :rules="rules" ref="form">
            <!-- <el-form-item prop="name">
              <el-input type="text" v-model="form.name" placeholder="企业名称"></el-input>
            </el-form-item> -->
            <el-form-item prop="name">
              <el-input type="text" v-model="form.name" placeholder="您的姓名"></el-input>
            </el-form-item>
            <!-- <el-form-item prop="project_id">
              <el-input type="text" v-model="form.name" placeholder="您的职务（自行填写）"></el-input>

              
            </el-form-item> -->
            <el-form-item prop="phone">
              <el-input type="text" v-model="form.phone" placeholder="您的手机号"></el-input>
            </el-form-item>
            <el-button type="primary" @click="handleSubmit">立即提交</el-button>
          </el-form>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { postNes } from '@/api/index'

export default {
  data() {
    return {
      form: {
        name: '',
        phone: '',
        project_id: '5004',
        channel: this.$route.query.channel_num || 19962
      },
      rules: {
        name: [{ required: true, message: '请输入您的名字', trigger: 'blur' }],
        phone: [
          { required: true, message: '请输入您的手机号', trigger: 'blur' },
          { pattern: /^1[3-9]\d{9}$/, message: '请输入正确的手机号', trigger: 'blur' }
        ]
        // project_id: [{ required: true, message: '请选择项目', trigger: 'change' }]
      }
    }
  },
  methods: {
    handleSubmit() {
      this.$refs.form.validate().then(() => {
        const params = { ...this.form }
        // if (params.project_id === '9999') {
        //   params.project_id = '1016'
        // }
        postNes(params)
          .then(res => {
            // if (res && res.status === 200 && res.error === 0) {
            //   this.$message.success('报名提交成功')
            // } else {
            //   this.$message.error('报名提交失败')
            // }
            this.$message.warning('暂无开通')
          })
          .catch(() => {
            this.$message.error('报名提交失败')
          })
      })
    }
  }
}
</script>

<style lang="scss" scoped>
.main_content {
  background: #ffff;
  width: 100%;
  .banner {
    width: 100%;
    height: 580px;
  }
  .content_part {
    width: 100%;
    height: 316px;
    background: #f9f8f8;
    padding: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    .part_title {
      font-size: 30px;
      font-weight: bold;
      color: #333333;
    }
    .part_desc {
      margin-top: 36px;
      font-size: 18px;
      font-weight: 400;
      line-height: 34px;
      color: #666666;
      white-space: nowrap;
      text-align: center;
    }
  }
  .content_part1 {
    width: 1200px;
    margin: 120px auto;
    display: flex;
    .part_img {
      width: 500px;
      height: 345px;
      padding-top: 60px;
      margin-right: -66px;
      z-index: 100;
    }
    .part_con {
      width: 767px;
      background: rgba(249, 248, 248, 0.39);
      padding: 91px 0 121px 94px;
      .con_tit {
        width: 80px;
        height: 22px;
        font-size: 20px;
        font-weight: 400;
        color: #424242;
        padding-bottom: 7px;
        box-sizing: content-box;
        border-bottom: 2px solid #aa1941;
      }
      .con_list {
        margin: 11px 0 0 15px;
        li {
          font-size: 16px;
          font-weight: 400;
          line-height: 2;
          list-style-type: disc;
          color: #aa1941;
          p {
            color: #424242 !important;
          }
        }
      }
    }
  }
  .content_part2 {
    width: 100%;
    height: 835px;
    background: #f9f8f8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    .part_tit {
      font-size: 30px;
      font-weight: bold;
      color: #333333;
    }
    .part_con {
      display: flex;
      justify-content: center;
      img {
        width: 625px;
      }
    }
  }
  .content_part3 {
    width: 100%;
    height: 860px;
    background: url('https://webapp-pub.ezijing.com/www/pc/practice/study/part3_bg.png') no-repeat center;
    background-size: 100% 100%;
    margin-top: 0;
  }
  .content_part4 {
    width: 1200px;
    height: 540px;
    margin: 120px auto;
    margin-bottom: 120px;
    background: url('https://webapp-pub.ezijing.com/www/pc/practice/study/part4_bg.png') no-repeat center;
    background-size: 100% 100%;
    position: relative;
    .mask {
      position: absolute;
      background: rgba(255, 255, 255, 0.09);
      top: 0;
      right: 0;
      width: 100%;
      height: 100%;
      z-index: 100;
    }
    .part_con {
      display: flex;
      justify-content: space-between;
      .con_left {
        margin-top: 127px;
        padding-top: 47px;
        width: 592px;
        height: 223px;
        background: #aa1941;
        box-shadow: 0px 0px 122px rgba(0, 0, 0, 0.07);
        opacity: 0.63;
        z-index: 200;
        position: relative;
        font-size: 48px;
        font-weight: 500;
        color: #ffffff;
        text-align: center;
      }
      .con_right {
        margin: 110px 136px 104px 87px;
        padding: 63px 56px 56px 64px;
        width: 401px;
        background: #ffffff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 300;
        .el-input__inner {
          border: 1px solid #999999;
          border-radius: 2px;
        }
        .el-input {
          width: 280px;
          font-size: 14px;
          font-weight: 300;
          color: #999999;
        }
        .el-button {
          width: 281px;
          background: #aa1941;
          border-radius: 4px;
          text-align: center;
          font-size: 18px;
          font-weight: 400;
          color: #ffffff;
        }
      }
    }
  }
}
</style>
