Explorar el Código

产品体验样式修改

tanxue hace 2 años
padre
commit
3d65becb8e

+ 5 - 33
assets/scss/cus-client/cus-client-common.scss

@@ -326,7 +326,7 @@ h1,h2,h3,h4,h5,h6,p{font-weight:normal;margin: 0;}
 /**************** 网站内容 ****************/
 /* 网站标题 */
 .client-title{
-  @include setFontStyle(10);color: rgba(0,0,0,0.85);letter-spacing: 0;padding-top: 80px;text-align: center;
+  @include setFontStyle(10);color: #333;letter-spacing: 0;padding-top: 80px;text-align: center;
   // head移动端响应式
   @media (max-width: 768px){@include setFontStyle(-4);padding-top: 20px;font-weight: 700;color: rgb(16, 16, 16);}
 }
@@ -336,6 +336,10 @@ h1,h2,h3,h4,h5,h6,p{font-weight:normal;margin: 0;}
   width: 650px;@include setFontStyle(-4);color: rgba(0,0,0,0.65);line-height: 30px;margin:0 auto;margin-top: 16px;text-align: center;
   @media (max-width: 768px){width: 100%;text-align: justify;@include setFontStyle(-6);line-height: 24px;}
 }
+// 一行副标题
+.client-subtitle-one-row{
+  @include setFontStyle(-2);color: #565656;margin: 40px 0 ;text-align: center;
+}
 .client-subtitle-title-big{
   width: 1000px;padding:0 100px;@include setFontStyle(-4);color: rgba(0,0,0,0.65);line-height: 30px;margin:0 auto;margin-top: 48px;text-align: center;
   @media (max-width: 768px){width: 100%;text-align: justify;margin-top: 24px;padding: 0;@include setFontStyle(-6);line-height: 24px;}
@@ -843,38 +847,6 @@ h1,h2,h3,h4,h5,h6,p{font-weight:normal;margin: 0;}
 
 /********************************* 麦塔移动端组件**********************************/
 @media (max-width: 768px) {
-  //  swiper
-  .experience-swiper-box {
-    position: relative;
-    // swiper--div
-    .swiper-slide {width: 100%;}
-
-    .swiper-pagination-style {
-      width: 80px;position: absolute;bottom: 66px;left: 50%;margin-left: -30px;z-index: 99;
-
-      // 小圆点
-      .my-bullet-swiper {width: 10px;height: 10px;border-radius: 5px;display: inline-block;background: rgba(0, 102, 204, 0.2);margin-right: 14px;}
-
-      // 分页active
-      .my-bullet-active-swiper {background: rgb(0, 102, 204)}
-    }
-
-    // swiper 内容区
-    .experience-content-box {
-      height: 243px;display: flex;flex-direction: column;align-items: center;justify-content: center;
-      margin: 5px 4% 40px;box-shadow: rgba(0, 0, 0, 0.4) 0 0 6px -1px;text-align: center;padding: 20px 0;
-
-      i {width: 64px;height: 64px;background-repeat: no-repeat;background-size: contain;margin-bottom: 24px;display: inline-block;flex-shrink: 0;}
-      h5 {font-weight: 700;font-size: 16px;color: rgb(16, 16, 16);margin-bottom: 30px;}
-      p {font-weight: 400;font-size: 14px;color: rgb(16, 16, 16);margin: 6px 0;}
-      a {width: 122px;height: 35px;line-height: 35px;background-color: rgb(0, 102, 204);color: rgb(255, 255, 255);border-radius: 5px;font-size: 14px;
-        padding: 0;text-align: center;display: inline-block;margin-top: 16px;
-      }
-    }
-
-    // swiper 提示
-    .experience-swiper-tip {font-weight: 400;font-size: 14px;color: rgb(96, 96, 96);text-align: center;margin: 0 0 42px;}
-  }
   // 移动端点击a标签背景变色bug修复
   a{-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
     -webkit-user-select: none;

+ 1 - 58
assets/scss/cus-client/cus-client-page.scss

@@ -405,33 +405,6 @@
         .free-trial-default-btn{position: absolute;top:260px;left: 50%;margin-left: -119px;}
       }
 
-      /* 产品体验*/
-      .platform-products-experience{
-        >p{font-size: 20px;line-height: 20px;text-align: center;margin: 30px 0 42px;}
-        .experience-ul-box{
-          margin: 0 -16px;text-align: center;
-          li{
-            width:25%;display: inline-block;text-align: center;font-size: 16px;
-            >div{
-              margin: 0 16px;padding:32px 18px;box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 6px 0px;border-radius: 10px;position: relative;
-              div{font-size:20px;color:#fff;position: absolute;right: 0;left: 0;top: 0;bottom: 305px;box-sizing: border-box;transition: 0.5s;overflow: hidden;border-radius: 10px;line-height: 305px;background: rgba(0,0,0,.6);cursor: default;}
-            }
-            i{display: inline-block;width: 46px;height: 46px;background-repeat: no-repeat;background-size: contain;margin-bottom: 24px;}
-            h5{font-size: 22px;color: rgb(16, 16, 16);margin-bottom: 24px;}
-            p{font-size: 16px;padding: 0;margin: 0;color: #101010;line-height: 26px;}
-            a{width: 180px;height: 40px;line-height: 40px;display: inline-block;margin-top: 24px;text-align: center;background-color: #3e7ce7;
-              border-color: rgba(255, 0, 0, 0);border-width: 1px;border-style: solid;color: rgb(255, 255, 255);border-radius:4px;font-weight: normal;cursor: pointer}
-            span{display: block;transition: 0.5s;position: absolute;top: 0;bottom: 305px;left: 0;right: 0;overflow: hidden;}
-            em{width:180px;height:180px;display: block;margin: 24px auto;background-image:url("~static/images/client/exam/exam-code-img.png")}
-            em.px-img-box{background-image:url("~static/images/client/train/train-code-img.png")}
-          }
-          li:nth-child(1) i{background-image:url("~static/images/client/exam/exam-tel-icon.png")}
-          li:nth-child(2) i{background-image:url("~static/images/client/exam/exam-pc-icon.png")}
-          li:nth-child(3) i{background-image:url("~static/images/client/exam/exam-sz-icon.png")}
-          li:nth-child(4) i{background-image:url("~static/images/client/exam/exam-sx-icon.svg")}
-        }
-      }
-
       /* 产品优势 */
       .platform-products-services{
           li:not(:last-child){border-bottom:1px solid #eee; }
@@ -503,11 +476,7 @@
 
       // 产品体验
       .platform-products-experience{
-        .sjxyd-icon {background-image: url("~static/images/client/exam/exam-tel-icon.png")}
-        .dnxyd-icon {background-image: url("~static/images/client/exam/exam-pc-icon.png")}
-        .dngld-icon {background-image: url("~static/images/client/exam/exam-sz-icon.png")}
-        .skrz-icon {background-image: url("~static/images/client/exam/exam-sx-icon.svg")}
-        >p{font-weight: 400;font-size: 14px;color: rgba(85, 85, 85, 1);margin: 24px 0 16px;}
+
       }
 
       // 产品优势
@@ -516,25 +485,6 @@
         .products-services-content div{text-align: center;margin-bottom: 40px;}
       }
 
-      // 产品功能
-      .platform-product-function{
-        padding-bottom: 16px;
-        // swiper
-        .experience-swiper-box{
-          // swiper 内容区域
-          .experience-content-box{
-            height:328px;margin: 16px 4% 20px;padding: 16px 16px 46px;box-sizing: border-box;box-shadow: rgb(170, 209, 249) 0 0 6px -1px;background-color: #fff;
-            i{width: 150px;height: 122px;}
-            h5{width: 100%;text-align: left;margin-bottom: 12px;}
-            p{text-align: justify;line-height: 24px;margin: 0;@include multi-line-ellipsis(4);}
-          }
-          // 分页
-          .swiper-pagination-style {width: 200px;margin-left: -90px;bottom: 50px;}
-          // 左右滑动
-          .experience-swiper-tip{margin: 0}
-        }
-      }
-
       // 应用场景
       .platform-application-scenarios{
         padding-bottom: 16px;
@@ -572,13 +522,6 @@
   /********  describe: 培训平台--图片(和考试默认图片不同) author: TX  date:2020-08-14  ********/
   .client-train-page{
 
-    /* 产品体验*/
-    .platform-products-experience{
-      .experience-ul-box li{
-          em{background-image:url("~static/images/client/train/train-code-img.png")}
-      }
-    }
-
     /* 网站banner */
     .client-platform-banner{
       background-color:#1F2772;

+ 78 - 19
components/common/chanPinTiYan.vue

@@ -2,26 +2,26 @@
   <div>
     <ul class="experience-ul-box mta-hidden-xs">
       <li>
-        <div @mouseenter="enterCode" @mouseleave="leaveCode">
+        <div>
           <h5>手机学员端</h5>
-          <img src="#">
+          <i></i>
           <p>用手机扫描二维码,考生30秒体验答卷</p>
           <a style="cursor: default">扫码试用</a>
           <span ref="codeBtn" v-if="youkeFlag"><em></em></span>
           <div ref="codeBtn" v-if="!youkeFlag">系统升级中...</div>
         </div>
       </li>
-      <li><div><h5>电脑管理端</h5><img src="#"><p>欢迎体验青谷系统后台,三步轻松组织一场考试</p><a @click="KsTyBtn('https://youkeksc.mtavip.com/c/youke')">立即体验</a></div></li>
-      <li><div><h5>电脑学员端</h5><img src="#"><p>支持市面各种主流浏览器,支持十万量级的考试并发</p><a @click="KsTyBtn('https://youkeksa.mtavip.com/a/youke')">免费体验</a></div></li>
+      <li><div><h5>电脑管理端</h5><i></i><p>欢迎体验青谷系统后台,三步轻松组织一场考试</p><a @click="KsTyBtn('https://youkeksc.mtavip.com/c/youke')">立即体验</a></div></li>
+      <li><div><h5>电脑学员端</h5><i></i><p>支持市面各种主流浏览器,支持十万量级的考试并发</p><a @click="KsTyBtn('https://youkeksa.mtavip.com/a/youke')">免费体验</a></div></li>
     </ul>
     <!-- 手机轮播 -->
-    <div class="experience-swiper-box mta-hidden-sm">
+    <div class="experience-phone-box mta-hidden-sm">
       <div v-swiper:mySwiper="swiperOption" class="swiper-container">
         <div class="swiper-wrapper">
           <div class="swiper-slide">
             <div class="experience-content-box">
               <h5>手机学员端</h5>
-              <img src="#">
+              <i class="sjxyd-icon"></i>
               <p>用手机扫描二维码,考生30秒体验答卷</p>
               <a style="cursor: default" @click="ykFreeTrial">立即体验</a>
             </div>
@@ -29,14 +29,14 @@
           <div class="swiper-slide">
             <div class="experience-content-box">
               <h5>电脑管理端</h5>
-              <img src="#">
+              <i class="dnxyd-icon"></i>
               <p>欢迎体验青谷系统后台,三步轻松组织一场考试</p>
               <a @click="KsTyBtn('https://youkeksc.mtavip.com/c/youke')">立即体验</a>
             </div>
           </div>
           <div class="swiper-slide">
             <div class="experience-content-box">
-              <img src="#">
+              <i class="dngld-icon"></i>
               <h5>电脑学员端</h5>
               <p>支持市面各种主流浏览器,支持十万量级的考试并发</p>
               <a @click="KsTyBtn('https://youkeksa.mtavip.com/a/youke')">后台体验</a></div>
@@ -78,16 +78,6 @@ export default {
     }
   },
   methods: {
-    enterCode() {
-      if(this.youkeFlag){
-        this.$refs.codeBtn.style.bottom ='90px';
-      }else{
-        this.$refs.codeBtn.style.bottom ='0';
-      }
-    },
-    leaveCode() {
-      this.$refs.codeBtn.style.bottom ='305px';
-    },
     ykFreeTrial() {
       if(this.youkeFlag){
         // 没升级
@@ -136,6 +126,75 @@ export default {
 }
 </script>
 
-<style scoped>
+<style lang="scss">
+  .experience-ul-box{
+    margin: 0 -60px;text-align: center;
+    li{
+      width:33.33%;display: inline-block;text-align: center;font-size: 16px;
+      >div{
+        height: 476px;margin: 0 60px;padding:46px 36px;border: 1px solid #eaeaea;
+        border-radius: 10px;position: relative;overflow: hidden;box-sizing: border-box;
+        div{font-size:20px;color:#fff;position: absolute;right: 0;left: 0;top: 0;bottom: 0;box-sizing: border-box;transition: 0.5s;overflow: hidden;border-radius: 10px;line-height: 476px;background: rgba(0,0,0,.6);cursor: default;}
+        i{display: inline-block;width: 200px;height: 180px;background-repeat: no-repeat;background-size: contain;margin-bottom: 24px;background-position: center;}
+        h5{font-size: 20px;color: #565656;margin-bottom: 24px;}
+        p{min-height: 52px;font-size: 14px;padding: 0;margin: 0;color: #565656;line-height: 24px;}
+        a{width: 180px;height: 45px;line-height: 45px;display: inline-block;margin-top: 24px;text-align: center;background-color: #00B96B;
+          border-color: rgba(255, 0, 0, 0);border-width: 1px;border-style: solid;color: rgb(255, 255, 255);border-radius:4px;font-weight: normal;cursor: pointer}
+        span{display: none;transition: 0.5s;position: absolute;top: 0;bottom: 0;left: 0;right: 0;overflow: hidden;}
+        em{width:200px;height:200px;display: block;margin: 90px auto;background-image:url("~static/images/client/exam/exam-code-img.png");background-size: cover;}
+        em.px-img-box{background-image:url("~static/images/client/train/train-code-img.png")}
+      }
+      >div:after{
+        content: "";width: 100%;height: 4px;position: absolute;bottom: 0;background: #00b96b;left: 0;
+      }
+      >div:hover{
+        padding:0;box-shadow: 0 0 13px 0 rgba(223,223,223,0.60);
+        h5{background: #00b96b;color: #fff;padding: 27px 0 17px;}
+        p{padding: 0 36px;}
+        span{display: block;}
+      }
+
+    }
+    li:nth-child(1) i{background-image:url("~static/images/client/exam/exam-tel-icon.png")}
+    li:nth-child(2) i{background-image:url("~static/images/client/exam/exam-pc-icon.png")}
+    li:nth-child(3) i{background-image:url("~static/images/client/exam/exam-xy-icon.png")}
+  }
+  /**************** 手机样式 ****************/
+  .experience-phone-box {
+    position: relative;
+    // swiper--div
+    .swiper-slide {width: 100%;}
+
+    .swiper-pagination-style {
+      width: 80px;position: absolute;bottom: 66px;left: 50%;margin-left: -30px;z-index: 99;
+
+      // 小圆点
+      .my-bullet-swiper {width: 10px;height: 10px;border-radius: 5px;display: inline-block;background: rgba(17,221,71, 0.2);margin-right: 14px;}
+
+      // 分页active
+      .my-bullet-active-swiper {background: #00B96B;}
+    }
+
+    // swiper 内容区
+    .experience-content-box {
+      height: 243px;display: flex;flex-direction: column;align-items: center;justify-content: center;
+      margin: 5px 4% 40px;box-shadow: rgba(0, 0, 0, 0.4) 0 0 6px -1px;text-align: center;padding: 20px 0;
+
+      i {width: 120px;height: 70px;background-repeat: no-repeat;background-size: contain;margin-bottom: 24px;display: inline-block;flex-shrink: 0;}
+      h5 {font-weight: 700;font-size: 16px;color: rgb(16, 16, 16);margin-bottom: 30px;}
+      p {font-weight: 400;font-size: 14px;color: rgb(16, 16, 16);margin: 0 48px;line-height: 24px;}
+      a {width: 122px;height: 35px;line-height: 35px;background-color: #00B96B;color: rgb(255, 255, 255);border-radius: 5px;font-size: 14px;
+        padding: 0;text-align: center;display: inline-block;margin-top: 16px;
+      }
+    }
+
+    // swiper 提示
+    .experience-swiper-tip {font-weight: 400;font-size: 14px;color: rgb(96, 96, 96);text-align: center;margin: 0 0 42px;}
+    // 图片
+    .sjxyd-icon {background-image:url("~static/images/client/exam/exam-tel-icon.png")}
+    .dnxyd-icon {background-image:url("~static/images/client/exam/exam-pc-icon.png")}
+    .dngld-icon {background-image:url("~static/images/client/exam/exam-xy-icon.png")}
+  }
+
 
 </style>

+ 3 - 16
pages/product/exam.vue

@@ -13,7 +13,7 @@
     <!--  产品体验  -->
     <div class="platform-products-experience client-container">
       <h4 class="client-title">产品体验</h4>
-      <p>无序注册,即可免费体验青谷在线考试系统</p>
+      <p class="client-subtitle-one-row">无序注册,即可免费体验青谷在线考试系统</p>
       <!--   多端体验   -->
       <chanPinTiYan></chanPinTiYan>
     </div>
@@ -290,27 +290,14 @@ export default {
 </script>
 
 <style lang="scss" scoped>
-.client-exam-page {
-  margin-top: 70px;
-}
-
 .client-banner-box {
-  height: 200px;
+  height: 600px;
   background: green;
   text-align: center;
   color: #fff;
 }
 
-.platform-products-services {
-  .client-title {
-    font-size: 30px;
-    font-weight: 800;
-    text-align: center;
-    color: #333;
-    margin-top: 80px;
-    margin-bottom: 70px;
-  }
-
+.platform-products-experience {
   .btn-groups {
     margin-top: 48px;
     .btn-item {

+ 1 - 9
pages/product/peixun.vue

@@ -15,7 +15,7 @@
     <!--  产品体验  -->
     <div class="platform-products-experience client-container">
       <h4 class="client-title">产品体验</h4>
-      <p>无序注册,即可免费体验青谷在线考试系统</p>
+      <p class="client-subtitle-one-row">无序注册,即可免费体验青谷在线考试系统</p>
       <!--   多端体验   -->
       <chanPinTiYan></chanPinTiYan>
     </div>
@@ -215,14 +215,6 @@ export default {
   height: auto;
 }
 .platform-products-services {
-  .client-title {
-    font-size: 30px;
-    font-weight: 800;
-    text-align: center;
-    color: #333;
-    margin-top: 80px;
-    margin-bottom: 70px;
-  }
 
   .btn-groups {
     margin-top: 48px;

BIN
static/images/client/exam/exam-pc-icon.png


BIN
static/images/client/exam/exam-sz-icon.png


BIN
static/images/client/exam/exam-tel-icon.png


BIN
static/images/client/exam/exam-xy-icon.png