chending1994 5 лет назад
Родитель
Сommit
dc7d729a66

BIN
assets/images/merchants/bg.png


BIN
assets/images/merchants/merchants_img_01.png


BIN
assets/images/merchants/merchants_img_02.png


BIN
assets/images/merchants/merchants_img_03.png


BIN
assets/images/merchants/merchants_img_04.png


+ 15 - 6
components/common/banner.vue

@@ -1,5 +1,8 @@
 <template>
-  <div class="common-banner"><img :src="img" alt="" srcset=""></div>
+  <div class="common-banner" :style="{'height': height + 'px'}">
+    <img class="bg-img" :src="img" :style="{'height': height + 'px', 'max-height': height + 'px'}" alt="" srcset="">
+    <slot></slot>
+  </div>
 </template>
 
 <script>
@@ -8,6 +11,10 @@ export default {
     img: {
       type: String,
       default: ''
+    },
+    height: {
+      type: Number,
+      default: 521
     }
   },
   data() {
@@ -21,10 +28,12 @@ export default {
 <style lang="scss">
 .common-banner {
   width: 100%;
-  height: 521px;
+  // height: 521px;
   position: relative;
-  font-size: 0;
-  img {
+  margin: 0 auto;
+  overflow: hidden;
+  text-align: center;
+  .bg-img {
     position: absolute;
     top: 0px;
     left: 50%;
@@ -34,8 +43,8 @@ export default {
     -webkit-transform: translateX(-50%);
     transform: translateX(-50%);
     max-width: 2560px;
-    max-height: 521px;
-    height: 521px;
+    // max-height: 521px;
+    // height: 521px;
     display: block;
   }
 }

+ 8 - 2
components/home/header.vue

@@ -40,9 +40,12 @@
               <a target="_blank" href="https://course.zaojiao.net/index" rel="noopener noreferrer">网校中心</a>
 							<!-- <nuxt-link to="/experice">网校中心</nuxt-link> -->
 						</li>
-						<li class="h-nav-li">
-							<nuxt-link to="/campus">全国校区</nuxt-link>
+            <li class="h-nav-li">
+							<nuxt-link to="/merchants">招商体验</nuxt-link>
 						</li>
+						<!-- <li class="h-nav-li">
+							<nuxt-link to="/campus">全国校区</nuxt-link>
+						</li> -->
 						<li class="h-nav-li">
 							<nuxt-link to="/cooperate">加盟合作</nuxt-link>
 						</li>
@@ -59,6 +62,9 @@
 								<li>
 									<nuxt-link to="/about/contact">联系我们</nuxt-link>
 								</li>
+                <li>
+									<nuxt-link to="/about/auth">查询真伪</nuxt-link>
+								</li>
 							</ul>
               <div class="expand">
                 <i class="el-icon-arrow-down"></i>

+ 19 - 0
pages/about/auth.vue

@@ -0,0 +1,19 @@
+<template>
+  <div class="auth">
+    查询真伪
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {
+
+    }
+  }
+}
+</script>
+
+<style lang="scss">
+
+</style>

+ 310 - 0
pages/merchants/index.vue

@@ -0,0 +1,310 @@
+<template>
+  <div class="merchants">
+    <common-banner :img="bgImg" :height="718">
+      <div class="content-wrap">
+        <div class="content w1200">
+          <div class="left title">招商加盟体系</div>
+          <div class="right form">
+            <div class="submit-area">
+              <div class="label">加盟申请</div>
+              <div class="phone-num">
+                <img
+                  src="http://res.training.luojigou.vip/FmUjRlN7yn8o8HkXV21yOAJt-2C0?imageView2/0/q/50|imageslim"
+                  alt=""
+                >
+                <div class="num">400-6807300</div>
+              </div>
+              <div class="form">
+                <el-form :model="form" :rules="rules" ref="ruleForm">
+                  <el-form-item prop="name">
+                    <el-input placeholder="姓名" v-model="form.name"></el-input>
+                  </el-form-item>
+                  <el-form-item prop="phone">
+                    <el-input placeholder="手机号" v-model="form.phone"></el-input>
+                  </el-form-item>
+                  <el-form-item prop="email">
+                    <el-input placeholder="邮箱地址" v-model="form.email"></el-input>
+                  </el-form-item>
+                  <el-form-item prop="city">
+                    <el-input placeholder="加盟城市" v-model="form.city"></el-input>
+                  </el-form-item>
+                  <el-form-item prop="project">
+                    <el-select placeholder="合作项目" v-model="form.project">
+                      <el-option
+                        v-for="(item, index) in projectList"
+                        :key="index"
+                        :label="item.title"
+                        :value="item.title">
+                      </el-option>
+                    </el-select>
+                  </el-form-item>
+                  <div class="submit" @click="handleSubmit('ruleForm')">提交申请</div>
+                </el-form>
+                <!-- <img class="cp" src="http://res.training.luojigou.vip/Fk2Fz3gN8jDHAHiQaOBJI3KZSyHx?imageView2/0/q/50|imageslim" alt=""> -->
+              </div>
+            </div>
+          </div>
+        </div>
+      </div>
+    </common-banner>
+    <!-- <div class="header">
+      <img :src="bgImg" alt="" srcset="">
+    </div> -->
+    <div class="list-wrap w1200">
+      <div class="item" v-for="(item, index) in merchantsList" :key="index">
+        <div class="item-left">
+          <img :src="item.imgUrl" alt="" srcset="">
+        </div>
+        <div class="item-right">
+          <div class="title">{{ item.title }}</div>
+          <div class="desc">{{ item.desc }}</div>
+        </div>
+      </div>
+    </div>
+    
+  </div>
+</template>
+
+<script>
+import axios from "axios";
+import CommonBanner from '@/components/common/banner';
+
+export default {
+  data() {
+    return {
+      form: {},
+      bgImg: require('@/assets/images/merchants/bg.png'),
+      projectList: [
+        {
+          id: 1,
+          title: '逻辑狗·探索小镇'
+        },
+        {
+          id: 2,
+          title: '逻辑狗专柜'
+        },
+        {
+          id: 3,
+          title: '逻辑狗思维体验Plus'
+        },
+        {
+          id: 4,
+          title: '逻辑狗思维体验Home'
+        },
+        {
+          id: 5,
+          title: '逻辑狗体验中心'
+        }
+      ],
+      merchantsList: [
+        {
+          imgUrl: require('@/assets/images/merchants/merchants_img_01.png'),
+          title: '逻辑狗专柜',
+          desc: '逻辑狗·探索小镇是襄阳市首家专注于儿童优质思维能力养成的游戏式体验中心。为2.5—8岁儿童提供具有国际品质的全球同频思维训练课程服务。通过多种思维游戏体验帮助孩子获得卓越的思维能力,养成优秀的思维习惯,成就未来幸福人生。'
+        },
+        {
+          imgUrl: require('@/assets/images/merchants/merchants_img_02.png'),
+          title: '逻辑狗思维体验Plus',
+          desc: '逻辑狗专柜是襄阳市首家专注于儿童优质思维能力养成的游戏式体验中心。为2.5—8岁儿童提供具有国际品质的全球同频思维训练课程服务。通过多种思维游戏体验帮助孩子获得卓越的思维能力,养成优秀的思维习惯,成就未来幸福人生。'
+        },
+        {
+          imgUrl: require('@/assets/images/merchants/merchants_img_03.png'),
+          title: '逻辑狗思维体验Home',
+          desc: '逻辑狗专柜是襄阳市首家专注于儿童优质思维能力养成的游戏式体验中心。为2.5—8岁儿童提供具有国际品质的全球同频思维训练课程服务。通过多种思维游戏体验帮助孩子获得卓越的思维能力,养成优秀的思维习惯,成就未来幸福人生。',
+        },
+        {
+          imgUrl: require('@/assets/images/merchants/merchants_img_04.png'),
+          title: '逻辑狗·探索小镇',
+          desc: '逻辑狗专柜是襄阳市首家专注于儿童优质思维能力养成的游戏式体验中心。为2.5—8岁儿童提供具有国际品质的全球同频思维训练课程服务。通过多种思维游戏体验帮助孩子获得卓越的思维能力,养成优秀的思维习惯,成就未来幸福人生。',
+        }
+      ],
+      rules: {
+        name: [{ required: true, message: "请输入姓名", trigger: "blur" }],
+        phone: [
+          { required: true, message: "请输入手机号", trigger: "blur" },
+          {
+            pattern: /^1[345789]\d{9}$/,
+            message: "请输入正确手机号",
+            trigger: "blur",
+          },
+        ],
+        email: [
+          { required: true, message: "请输入邮箱地址", trigger: "blur" },
+          {
+            type: "email",
+            message: "请输入正确的邮箱地址",
+            trigger: ["blur", "change"],
+          },
+        ],
+        city: [{ required: true, message: "请输入加盟城市", trigger: "blur" }],
+      },
+    }
+  },
+  components: {
+    CommonBanner
+  },
+  methods: {
+    async handleSubmit(formName) {
+      this.$refs[formName].validate(async (valid) => {
+        if (valid) {
+          const { data } = await axios.post(`${this.$store.state.wordpressAPI}/official-api/joinIn`,{
+            ...this.form
+          });
+          if(data.status == 200 ) {
+            this.$notify({
+              title: '成功',
+              message: '提交成功',
+              type: 'success'
+            });
+            this.$refs[formName].resetFields();
+          } else {
+              this.$notify({
+                title: '失败',
+                message: '提交失败',
+                type: 'info'
+              });
+          }
+          // this.$message.success('提交成功');
+        } else {
+          console.log('err');
+          return false;
+        }
+      });
+    },
+  }
+  
+}
+</script>
+
+<style lang="scss">
+.merchants {
+  .list-wrap {
+    margin-top: 100px;
+    .item {
+      display: flex;
+      margin-bottom: 60px;
+      &:hover {
+        background: #FFFFFF;
+        box-shadow: 20px 20px 25px 0px rgba(211, 229, 255, 0.33);
+      }
+      .item-left {
+        margin-right: 100px;
+        width: 511px;
+        height: 363px;
+        img {
+          height: 100%;
+          object-fit: cover;
+        }
+      }
+      .item-right {
+        margin-right: 38px;
+        .title {
+          font-size: 30px;
+          font-family: PingFangSC-Semibold, PingFang SC;
+          font-weight: 600;
+          color: #333333;
+          line-height: 42px;
+          margin-top: 34px;
+        }
+        .desc {
+          font-size: 14px;
+          font-family: PingFangSC-Regular, PingFang SC;
+          font-weight: 400;
+          color: #666666;
+          line-height: 28px;
+          margin-top: 47px;
+        }
+      }
+    }
+  }
+  .content-wrap {
+    margin-top: 94px;
+    width: 100%;
+    position: absolute;
+    z-index: 10;
+
+    // top: 50%;
+    // transform: translateY(-50%);
+    .content {
+      display: flex;
+      justify-content: space-between;
+      align-items: center;
+    }
+    .title {
+      width: 396px;
+      height: 92px;
+      font-size: 66px;
+      font-family: PingFangSC-Medium, PingFang SC;
+      font-weight: 500;
+      color: #FFFFFF;
+      line-height: 92px;
+    }
+    .submit-area {
+      background: #FFFFFF;
+      border-radius: 20px;
+      padding: 32px 38px 32px;
+      .label {
+        font-size: 14px;
+        font-family: PingFangSC-Regular, sans-serif;
+        font-weight: 400;
+        color: rgba(91, 95, 93, 1);
+        margin-bottom: 7px;
+      }
+      .phone-num {
+        display: flex;
+        align-items: center;
+        img {
+          width: 22px;
+          height: 22px;
+          display: block;
+          margin-right: 15px;
+        }
+        .num {
+          font-size: 26px;
+          font-family: PingFangSC-Medium, sans-serif;
+          font-weight: bold;
+          color: rgba(0, 0, 0, 1);
+        }
+      }
+      .form {
+        margin-top: 20px;
+        display: flex;
+        flex-direction: column;
+        justify-content: space-between;
+        align-items: center;
+        .el-input {
+          width: 250px;
+          height: 44px;
+        }
+        .el-form-item__error {
+          color: #cd2026;
+          // left: 124px;
+        }
+        .el-form-item {
+          &.is-error {
+            .el-input__inner {
+              border-color: #dcdfe6;
+            }
+          }
+        }
+        .submit {
+          margin: 0 auto;
+          text-align: center;
+          font-size: 14px;
+          color: #fff;
+          width: 148px;
+          height: 40px;
+          line-height: 40px;
+          background: linear-gradient(180deg, #4482FE 0%, #004DE7 100%);
+          box-shadow: 0px 7px 14px 0px rgba(136, 176, 254, 0.79);
+          border-radius: 32px;
+        }
+        img {
+          width: 176px;
+          height: 55px;
+        }
+      }
+    }
+  }
+}
+</style>

+ 6 - 2
pages/product/detail.vue

@@ -93,7 +93,11 @@ export default {
 
   methods: {
     handleClick(item) {
-      this.currentTab = item.id;
+      const id = item.id;
+      this.currentTab = id;
+      const data = cateData.find(item => item.id == id) || cateData[0];
+      this.currenCate = data;
+      console.log(this.cateData);
     }
   }
   
@@ -152,7 +156,7 @@ export default {
   }
 }
 .cate-main {
-  margin-top: 80px;
+  margin: 80px 0;
   .cate-title {
     font-size: 34px;
     font-family: PingFangSC-Medium, PingFang SC;

+ 8 - 1
static/common/common.css

@@ -5,7 +5,8 @@
 html {
   width: 100%;
   height: 100%;
-  /* font-size: 62.5%!important; */
+  /* font-size: 19.2px; */
+  font-size: 62.5%!important;
   /* color: #474747; */
 }
 body {
@@ -62,3 +63,9 @@ a:hover {
   text-overflow:ellipsis;
   white-space: nowrap;
 }
+
+@media only screen and (max-width: 1366px) {
+  html{
+     font-size:13.66px;
+  }
+}