Browse Source

首页排版+功能添加

ming 1 year ago
parent
commit
b4f72e4e3b
4 changed files with 211 additions and 32 deletions
  1. 2 2
      assets/css/home.css
  2. 51 4
      assets/css/style.css
  3. 1 1
      headerNav.html
  4. 157 25
      index.html

+ 2 - 2
assets/css/home.css

@@ -316,7 +316,7 @@
     overflow: hidden;
     width: 100%;
     height: 100vh;
-    background:pink;
+    background:black;
     position: relative;
     .video-des{
         color:#fff;
@@ -386,7 +386,7 @@
         overflow: hidden;
         width: 100%;
         height: 100vh;
-        background:pink;
+        background:black;
         position: relative;
         .video-des{
             color:#fff;

+ 51 - 4
assets/css/style.css

@@ -217,11 +217,11 @@
                 height: 50px;
                 border: 2px solid #ededed;
                 font-size: 14px;
-                font-weight: 600;
-                font-family: "Oswald", sans-serif;
+                /* font-weight: 600; */
+                /* font-family: "Oswald", sans-serif; */
                 color: #041d38;
                 text-transform: uppercase;
-                padding: 0 30px;
+                /* padding: 0 30px; */
             }
             
             textarea {
@@ -6263,7 +6263,14 @@
                     margin-top:20px;
                     cursor:pointer;
                 }
+                .contactOne:hover{
+                    .contactInner{
+                        display:block
+                    }
+
+                }
                 .contactInner{
+                    display:none;
                     position:absolute;
                     right:50px;
                     top:-30px;
@@ -6288,8 +6295,48 @@
                   
 
                     }
+                    
+
 
 
+                }
+            }
+            .feedBackDialog{
+               
+                .el-dialog{
+                    display: flex;
+                    flex-direction: column;
+                    margin: 0 !important;
+                    position: absolute;
+                    top: 50%;
+                    left: 50%;
+                    transform: translate(-50%, -50%);
 
                 }
-            }
+                .el-dialog__title{
+                    font-weight:400
+                }
+                .el-radio-button__inner{
+                    width:76px;
+                    height:36px;
+                    line-height:36px;
+                    padding:0;
+                 
+                    /* border:1px solid #DCDFE6; */
+                    /* border-radius:4px; */
+                }
+                /* .el-radio-button__inner:last-child{
+                    margin-right:0px;
+    
+                } */
+                .el-input__inner{
+                    height:36px;
+                    line-height:36px;
+                }
+                label{
+                    margin-bottom:0
+                }
+
+            }
+
+            

+ 1 - 1
headerNav.html

@@ -3,7 +3,7 @@
         <div class="d-flex align-items-center justify-content-between">
             <nav class="main-menu">
                 <div class="logo">
-                    <a href="./index.html"><img src="../assets/img/logo-white.png" alt="uskylogo"></a>
+                    <a href="/index.html"><img src="../assets/img/logo-white.png" alt="uskylogo"></a>
                 </div>
                 <div class="menu-items" >
                     <ul>

+ 157 - 25
index.html

@@ -15,6 +15,8 @@
     <link rel="stylesheet" href="assets/summernote/plugin/jquery-blinds-player/css/shutter.css">
     <!--====== Mean Menu ======-->
     <link rel="stylesheet" href="assets/css/meanmenu.min.css" />
+    <!--====== element css ====== -->
+    <link rel="stylesheet" href="../assets/css/element.css">
     <!--====== Default css ======-->
     <link rel="stylesheet" href="assets/css/default.css" />
     <!--====== Style css ======-->
@@ -60,8 +62,9 @@
         </header>
         <!--====== HEADER END ======-->
 
-        <div class="video-section" >
-            <video autoplay loop muted style="width:100%;height:100%;object-fit:fill;" poster="assets/img/banner/111.png">
+        <div class="video-section">
+            <video autoplay loop muted style="width:100%;height:100%;object-fit:fill;"
+                poster="assets/img/banner/111.png">
                 <source src="assets/video/home-video4.mp4" type="video/mp4">
             </video>
             <div class="video-des">
@@ -71,7 +74,7 @@
                 <div class="des2 desCom" style="top:43%; left:0;width:100%;text-align:center">
                     <p>核心价值观</p>
                     <span>一起梦想,一起成长,一起分享</span>
-                    
+
                 </div>
                 <div class="des3 desCom" style="top:65%; left:20%;">
                     <p>企业使命</p>
@@ -89,7 +92,7 @@
         <section v-for="(list,ind) in homeList">
 
 
-            
+
             <!-- 首页轮播 -->
             <!--====== BANNER SECTION START ======-->
             <!-- <div class="banner-section">
@@ -149,7 +152,8 @@
                             {{one.content}}
                         </div>
                     </div>
-                    <div class="row align-items-center justify-content-center about-background" v-for="con in list.content">
+                    <div class="row align-items-center justify-content-center about-background"
+                        v-for="con in list.content">
                         <div class="imgCenter col-md-6 about-img-box" v-if="con.picture != null && con.picture != ''">
                             <img :src="con.picture" alt=" ">
                         </div>
@@ -252,31 +256,81 @@
 
 
         <div class="feedBackBox">
-            <div>
+            <div class="contactOne">
                 <img src="assets/img/home/f_phone.png" alt="">
                 <ul class="contactInner">
                     <li>
                         <span>服务热线:</span>
                         <span>400-633-8668</span>
                     </li>
-                    <li> 
+                    <li>
                         <span> 电话:</span>
-                        <span>021-65376655  <br> 021-62985186</span>
+                        <span>021-65376655 <br> 021-62985186</span>
                     <li>
                         <span> 传真:</span>
                         <span>021-65376655-8588</span>
-                       
-                        
+
+
                     </li>
                 </ul>
             </div>
-            <div>
+            <div @click="centerDialogVisible=true">
                 <img src="assets/img/home/f_feed.png" alt="">
             </div>
-            <div>
+            <div @click="scrollToTop">
                 <img src="assets/img/home/f_top.png" alt="">
             </div>
         </div>
+
+        <el-dialog title="咨询反馈" :visible.sync="centerDialogVisible" width="700px" center class="feedBackDialog" :lock-scroll="false">
+
+
+
+            <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="80px" class="demo-ruleForm">
+                <el-form-item label="类型选择" prop="radio1">
+                    <el-radio-group v-model="ruleForm.radio1">
+                        <el-radio-button label="智慧安防"></el-radio-button>
+                        <el-radio-button label="智慧消防"></el-radio-button>
+                        <el-radio-button label="智慧楼宇"></el-radio-button>
+                        <el-radio-button label="智慧商区"></el-radio-button>
+                        <el-radio-button label="智慧园区"></el-radio-button>
+                        <el-radio-button label="其他"></el-radio-button>
+                    </el-radio-group>
+                </el-form-item>
+                <el-row :gutter="20">
+                    <el-col :span="12">
+                        <el-form-item label="姓名" prop="name">
+                            <el-input v-model="ruleForm.name"></el-input>
+                        </el-form-item>
+                    </el-col>
+                    <el-col :span="12">
+                        <el-form-item label="联系电话" prop="phone">
+                            <el-input v-model="ruleForm.phone"></el-input>
+                        </el-form-item>
+                    </el-col>
+                    <el-col :span="12">
+                        <el-form-item label="邮箱" prop="email">
+                            <el-input v-model="ruleForm.email"></el-input>
+                        </el-form-item>
+                    </el-col>
+                    <el-col :span="12">
+                        <el-form-item label="公司名称" prop="company">
+                            <el-input v-model="ruleForm.company"></el-input>
+                        </el-form-item>
+                    </el-col>
+                </el-row>
+                <el-form-item label="需求描述" prop="desc">
+                    <el-input type="textarea" v-model="ruleForm.desc"></el-input>
+                </el-form-item>
+            </el-form>
+
+            <!-- <span>需要注意的是内容是默认不居中的</span> -->
+            <span slot="footer" class="dialog-footer">
+                <el-button @click="resetForm('ruleForm')">取 消</el-button>
+                <el-button type="primary" @click="submitForm('ruleForm')">提 交</el-button>
+            </span>
+        </el-dialog>
+
     </div>
 
 
@@ -301,16 +355,19 @@
 
     <script src="assets/summernote/plugin/jquery-blinds-player/js/velocity.js"></script>
     <script src="assets/summernote/plugin/jquery-blinds-player/js/shutter.js"></script>
+    <script src="../assets/js/element/index.js"></script>
 
     <script>
-        $(function() {
-                $('#headerNav').load("./headerNav.html");
-         
-            
-
-            var $wh=$(window).height();
-            $('.go_down').click(function(e) {
-                $('html,body').animate({scrollTop:$wh},700);
+        $(function () {
+            $('#headerNav').load("./headerNav.html");
+
+
+
+            var $wh = $(window).height();
+            $('.go_down').click(function (e) {
+                $('html,body').animate({
+                    scrollTop: $wh
+                }, 700);
             });
 
             // setTimeout(() => {
@@ -323,7 +380,7 @@
             //             fullPage: false // 是否全屏展示
             //         })
             //     }, 1000)
-                $('#footer').load("./footer.html");
+            $('#footer').load("./footer.html");
         })
 
         var app = new Vue({
@@ -331,12 +388,67 @@
             data: {
                 screenWidth: 0,
                 homeList: [],
-                status: false
+                status: false,
+                centerDialogVisible: false,
+
+
+                ruleForm: {
+                    name: '',
+                    region: '',
+                    date1: '',
+                    date2: '',
+                    delivery: false,
+                    type: [],
+                    resource: '',
+                    desc: '',
+                    radio1: '智慧安防',
+                },
+                rules: {
+                    radio1: [{
+                            required: true,
+                            message: '请选择类型',
+                            trigger: 'change'
+                        },
+
+                    ],
+                    name: [{
+                            required: true,
+                            message: '请输入姓名',
+                            trigger: 'blur'
+                        },
+                        // {
+                        //     min: 2,
+                        //     max: 10,
+                        //     message: '长度在 2 到 10 个字符',
+                        //     trigger: 'blur'
+                        // }
+                    ],
+                    phone: [{
+                        required: true,
+                        message: '请输入正确的电话号码',
+                        pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
+                        trigger: 'change'
+                    }],
+                    email: [{
+                        required: false,
+                        type: "email",
+                        message: "请输入正确的邮箱地址",
+                        trigger: 'blur'
+                    }],
+                    company: [
+                        // { required: true, message: '请选择活动区域', trigger: 'change' }
+                    ],
+
+                    desc: [
+                        // { required: true, message: '请填写需求描述', trigger: 'blur' }
+                    ]
+                }
+
             },
             computed: {
 
             },
-            mounted: function() {
+            mounted: function () {
 
                 this.screenWidth = document.body.clientWidth
                 window.onresize = () => {
@@ -350,14 +462,34 @@
                     type: 'POST',
                     dataType: 'json',
                     url: window.FQDN + 'Index/index',
-                }).done(function(res) {
+                }).done(function (res) {
                     _this.homeList = res
                     _this.status = true
 
 
-                }).fail(function(err) {});
+                }).fail(function (err) {});
             },
             methods: {
+                submitForm(formName) {
+                    this.$refs[formName].validate((valid) => {
+                        if (valid) {
+                            alert('submit!');
+                        } else {
+                            console.log('error submit!!');
+                            return false;
+                        }
+                    });
+                },
+                resetForm(formName) {
+                    this.$refs[formName].resetFields();
+                    this.centerDialogVisible = false
+                },
+                 scrollToTop() {
+  window.scrollTo({
+    top: 0,
+    behavior: "smooth"
+  });
+}
 
             },
             // watch: {