|
@@ -0,0 +1,266 @@
|
|
|
+<template>
|
|
|
+ <div class="home" :style="{ 'background-image': `url(${require('@/assets/images/bg.jpg')})` }">
|
|
|
+ <div class="title">
|
|
|
+ <img :src="require('@/assets/images/title-bg.png')" alt="" />
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div
|
|
|
+ class="content"
|
|
|
+ :style="{
|
|
|
+ 'background-image': `url(${require('@/assets/images/con_bg.png')})`,
|
|
|
+ }"
|
|
|
+ >
|
|
|
+ <p class="intro">实景三维拍摄,千万级流量曝光<br />打造永不闭幕的云展馆</p>
|
|
|
+ <p class="desc">请按要求完善以下信息并提交,谢谢!</p>
|
|
|
+ <ul>
|
|
|
+ <li v-for="(item, i) in arr" :key="i">
|
|
|
+ <p>{{ item.require ? "* " : "" }}{{ item.name }}</p>
|
|
|
+ <input type="text" v-model="form[item.id]" :placeholder="item.placeholder" />
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <p class="tech">实景三维拍摄服务由四维时代独家技术提供</p>
|
|
|
+ <img class="btn" @click="save" :src="require('@/assets/images/btn.png')" alt="" />
|
|
|
+
|
|
|
+ <div class="contract">
|
|
|
+ <p>相关咨询可联系:</p>
|
|
|
+ <div>
|
|
|
+ <span>商务联系:</span>
|
|
|
+ <div>
|
|
|
+ <p>沈小姐 <a href="tel:13798998979">13798998979</a></p>
|
|
|
+ <p>刘小姐 <a href="tel:15733737800">15733737800</a></p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <p>添加微信:sales4dage</p>
|
|
|
+ <p>邮箱联系:liuliqian@4dage.com</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="bottom">
|
|
|
+ <img :src="require('@/assets/images/logo.png')" alt="" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+export default {
|
|
|
+ name: "Home",
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ arr: [
|
|
|
+ {
|
|
|
+ name: "姓名",
|
|
|
+ id: "name",
|
|
|
+ placeholder: "请输入您的名字",
|
|
|
+ require: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "电话号码",
|
|
|
+ id: "phone",
|
|
|
+ placeholder: "请输入您的电话号码",
|
|
|
+ require: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "单位名称",
|
|
|
+ id: "unit",
|
|
|
+ placeholder: "请输入您的单位名称",
|
|
|
+ require: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "职务",
|
|
|
+ id: "job",
|
|
|
+ placeholder: "请输入您的职务",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "展位号",
|
|
|
+ id: "boothNum",
|
|
|
+ placeholder: "请输入您的展位号",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ form: {
|
|
|
+ name: "",
|
|
|
+ phone: "",
|
|
|
+ unit: "",
|
|
|
+ job: "",
|
|
|
+ boothNum: "",
|
|
|
+ },
|
|
|
+ };
|
|
|
+ },
|
|
|
+
|
|
|
+ methods: {
|
|
|
+ reset() {
|
|
|
+ this.form = {
|
|
|
+ name: "",
|
|
|
+ phone: "",
|
|
|
+ unit: "",
|
|
|
+ job: "",
|
|
|
+ boothNum: "",
|
|
|
+ };
|
|
|
+ },
|
|
|
+ checkPhone(value) {
|
|
|
+ let reg = /^1[345789]\d{9}$/;
|
|
|
+ return reg.test(value);
|
|
|
+ },
|
|
|
+ async save() {
|
|
|
+ if (!this.form.name) {
|
|
|
+ this.$message("提示", "请填写姓名");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (!this.form.phone) {
|
|
|
+ this.$message("提示", "请填写电话号码");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (!this.checkPhone(this.form.phone)) {
|
|
|
+ this.$message("提示", "电话号码格式不正确");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (!this.form.unit) {
|
|
|
+ this.$message("提示", "请填写单位名称");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ let data = this.form;
|
|
|
+ let result = await this.$http({
|
|
|
+ method: "post",
|
|
|
+ data: data,
|
|
|
+ url: `/api/saveVisit`,
|
|
|
+ });
|
|
|
+ if (result && result["code"] === 0) {
|
|
|
+ this.reset();
|
|
|
+ this.$message("提示", "提交成功!感谢,将会有专人联系您,请关闭本页面");
|
|
|
+ } else {
|
|
|
+ this.$message("提示", result["msg"]);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ // this.$message("提示", "请填写姓名");
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="less" scoped>
|
|
|
+.home {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ padding-bottom: 40px;
|
|
|
+ overflow-y: auto;
|
|
|
+ position: relative;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-position: center 0;
|
|
|
+ .title {
|
|
|
+ width: 68%;
|
|
|
+ margin: 0 auto;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ > img {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .content {
|
|
|
+ width: 100%;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ text-align: center;
|
|
|
+ padding: 30px 0 40px;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ .intro {
|
|
|
+ font-size: 18px;
|
|
|
+ font-weight: bold;
|
|
|
+ line-height: 24px;
|
|
|
+ color: #333333;
|
|
|
+ text-shadow: 0px 2px 6px #ffffff;
|
|
|
+ }
|
|
|
+ .desc,
|
|
|
+ .tech {
|
|
|
+ font-size: 12px;
|
|
|
+ font-weight: bold;
|
|
|
+ line-height: 14px;
|
|
|
+ color: #8ec31f;
|
|
|
+ margin-top: 10px;
|
|
|
+ transform: scale(0.9);
|
|
|
+ }
|
|
|
+ .tech {
|
|
|
+ color: rgba(51, 51, 51, 0.5);
|
|
|
+ margin: 6px auto 10px;
|
|
|
+ }
|
|
|
+ .btn {
|
|
|
+ margin: 16px auto 10px;
|
|
|
+ width: 80%;
|
|
|
+ }
|
|
|
+ .contract {
|
|
|
+ color: #8ec31f;
|
|
|
+ width: 100%;
|
|
|
+ text-align: center;
|
|
|
+ margin: auto auto;
|
|
|
+ font-weight: bold;
|
|
|
+ >p,>div {
|
|
|
+ font-size: 12px;
|
|
|
+ font-weight: normal;
|
|
|
+ line-height: 1.5;
|
|
|
+ &:first-of-type {
|
|
|
+ font-size: 12px;
|
|
|
+ margin-bottom: 4px;
|
|
|
+ font-weight: normal;
|
|
|
+ }
|
|
|
+ a {
|
|
|
+ color: #8ec31f;
|
|
|
+ text-decoration: underline;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ >div{
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ *{
|
|
|
+ font-size: 12px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ > ul {
|
|
|
+ width: 80%;
|
|
|
+ margin: 0 auto;
|
|
|
+ text-align: left;
|
|
|
+ > li {
|
|
|
+ > p {
|
|
|
+ font-size: 12px;
|
|
|
+ line-height: 14px;
|
|
|
+ margin: 8px 0 6px 8px;
|
|
|
+ color: #333333;
|
|
|
+ }
|
|
|
+ > input {
|
|
|
+ line-height: 40px;
|
|
|
+ background: #fff;
|
|
|
+ height: 40px;
|
|
|
+ border: #8ec31f 1px solid;
|
|
|
+ border-radius: 0;
|
|
|
+ width: 100%;
|
|
|
+ padding-left: 20px;
|
|
|
+ font-size: 14px;
|
|
|
+ &::placeholder {
|
|
|
+ color: rgba(51, 51, 51, 0.35);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .bottom {
|
|
|
+ position: fixed;
|
|
|
+ bottom: 0;
|
|
|
+ min-height: 40px;
|
|
|
+ background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 1) 84%, rgba(227, 227, 227, 1) 100%);
|
|
|
+ width: 100%;
|
|
|
+ max-width: 600px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ > img {
|
|
|
+ width: 350px;
|
|
|
+ max-width: 90%;
|
|
|
+ margin: 12px 0 10px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|