Selaa lähdekoodia

封装简化代码逻辑

ming 1 vuosi sitten
vanhempi
commit
b34b0bad74
5 muutettua tiedostoa jossa 94 lisäystä ja 595 poistoa
  1. 2 242
      about/index.html
  2. 85 211
      assets/js/commonVue.js
  3. 4 7
      news/read.html
  4. 3 3
      product/read.html
  5. 0 132
      solution/index.html

+ 2 - 242
about/index.html

@@ -155,153 +155,6 @@
             </section>
         </div>
 
-        <div style="display:none">
-            <!--====== ABOUT INTRODUCE START======-->
-            <section class="about-introduce-section pt-40 pb-60 about-sec" id="1">
-                
-                <div class="container">
-                    <ul  class="aboutTyes" >
-                        <li v-for="item in articalArray" :key="item.id"><a :href="`#${item.lmtitle}`">{{item.title}}</a></li>
-
-                    </ul>
-                    <div class="section-title text-center both-border pb-20">
-                        <span class="title-tag">企业简介</span>
-                    </div>
-                    <div class="about-intro-top">
-                        <p :class="ind != array.about_us.length-1 ? 'pb-40' : ''" v-for="(aboutUs,ind) in array.about_us">
-                            {{aboutUs.content}}</p>
-                    </div>
-                </div>
-            </section>
-            <!--====== ABOUT INTRODUCE END======-->
-
-            <!--====== HISTORY START======-->
-            <section class="history-section pt-60 pb-60 about-sec" id="2">
-                <!-- <div class="section-title text-center both-border pb-20">
-                    <span class="title-tag">企业优势</span>
-                </div> -->
-                <div class="container" >
-
-                    <div class="section-title text-center both-border pb-20" >
-                        <span class="title-tag">企业优势</span>
-                    </div>
-
-                    <div class="row historyContent" style="background-color: #ffff;">
-                        <div class="pb-50 col-md-6 historyConet" v-for="strength in array.strength">
-                            <div class="row">
-                                <div class="col-md-3 hisImg">
-                                    <img :src="strength.picture" alt="">
-                                </div>
-                                <div class="col-md-9 hisContent">
-                                    <div>{{strength.title}}</div>
-                                    <div>{{strength.content}}</div>
-                                </div>
-                            </div>
-                        </div>
-                    </div>
-                </div>
-            </section>
-            <!--====== HISTORY END======-->
-
-            <!--====== COURSE START======-->
-            <section class="course-section pt-60 pb-80 about-sec" id="3">
-                <div class="container">
-                    <div class="section-title text-center both-border pb-30">
-                        <span class="title-tag">发展历程</span>
-                    </div>
-                    <div class="row">
-                        <div class="col-md-12" v-for="history in array.history">
-                            <img :src="history.picture" alt="">
-                        </div>
-                    </div>
-                </div>
-            </section>
-            <!--====== COURSE END======-->
-
-            <!--====== credential START======-->
-            <section class="history-section pt-60 pb-60 about-sec" id="4">
-
-                <div class="container">
-                    <div class="section-title text-center both-border pb-20">
-                        <span class="title-tag">企业荣誉</span>
-                    </div>
-                    <div class="credentialContent" style="background-color: #ffff;">
-                        <div class="title mb-30">2005~2021年度高新技术企业</div>
-                        <div class="row">
-                            <div class="col-md-6 listAll">
-                                <div class="row">
-                                    <div class="col-md-6 list">
-                                        <ul>
-                                            <li v-for="honour_one in array.honour_one">
-                                                <span class="borderRadius1">
-                                                    <span class="borderRadius2"></span>
-                                                </span>
-                                                {{honour_one.title}}
-                                            </li>
-                                            <li>
-                                                <span class="borderRadius1">
-                                                    <span class="borderRadius2"></span>
-                                                </span>
-                                                ......
-                                            </li>
-                                        </ul>
-                                    </div>
-                                    <div class="col-md-6 list">
-                                        <ul>
-                                            <li v-for="honour_two in array.honour_two">
-                                                {{honour_two.title}}
-                                            </li>
-                                        </ul>
-                                    </div>
-                                </div>
-                            </div>
-                            <div class="col-md-6 listAll">
-                                <div class="row">
-                                    <div class="col-md-4 list1" v-for="certificate_one in array.certificate_one">
-                                        <img :src="certificate_one.picture" alt="">
-                                    </div>
-                                </div>
-                            </div>
-                        </div>
-                        <div class="mt-50" id="marquee_box">
-                            <div id="marquee_img">
-                                <div id="marquee_img1">
-                                    <img v-for="certificate_two in array.certificate_two" :src="certificate_two.picture" alt="">
-                                </div>
-                                <div id="marquee_img2">
-
-                                </div>
-                            </div>
-
-                        </div>
-                    </div>
-                </div>
-            </section>
-            <!--====== credential END======-->
-
-            <!--====== SUB COMPANY START======-->
-            <section class="about-sub-company-section pt-60 pb-60 about-sec" id="5">
-                <div class="container">
-                    <div class="section-title text-center both-border pb-40">
-                        <span class="title-tag">联系我们</span>
-                    </div>
-                    <div class="row bg-white about-shadow aboutContent">
-                        <div class="col-md-7 pr-40 aboutImg " id="allmap">
-                            <img src="../assets/img/about/baidu.jpg" alt="">
-                        </div>
-                        <div class="col-md-5 aboutcotn">
-                            <div class="border-buttom" v-for="company_news in array.company_news">
-                                <div class="title">{{company_news.name}}</div>
-                                <div class="content" v-if="company_news.address != null && company_news.address != ''">公司地址:{{company_news.address}}</div>
-                                <div class="content" v-if="company_news.phone != null && company_news.phone != ''">联系电话:{{company_news.phone}}</div>
-                                <div class="content" v-if="company_news.add != null && company_news.add != ''">Add:{{company_news.add}}</div>
-                            </div>
-                        </div>
-                    </div>
-                </div>
-            </section>
-            <!--====== SUB COMPANY END======-->
-        </div>
 
          <!--====== FOOTER PART START ======-->
         <footer>
@@ -363,101 +216,8 @@
     <script src="../assets/js/vue.min.js"></script>
     <script src="../assets/js/element/index.js"></script>
     <script src="../assets/js/commonVue.js"></script>
-    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=iXlsFGT8ySqgKzSZtjzSvLMpF0OxuCXS&servic
-es=true"></script>
-
-    <script language="javascript">
-        
-        setTimeout(() => {
-            // 走马灯
-            var speed = 10; //数字越大速度越慢
-            var tab = document.getElementById("marquee_box");
-            var tab1 = document.getElementById("marquee_img1");
-            var tab2 = document.getElementById("marquee_img2");
-            tab2.innerHTML = tab1.innerHTML;
-
-            function Marquee() {
-                if (tab2.offsetWidth - tab.scrollLeft <= 0)
-                    tab.scrollLeft -= tab1.offsetWidth
-                else {
-                    tab.scrollLeft++;
-                }
-            }
-            var MyMar = setInterval(Marquee, speed);
-            tab.onmouseover = function() {
-                clearInterval(MyMar)
-            };
-            tab.onmouseout = function() {
-                MyMar = setInterval(Marquee, speed)
-            };
-        }, 1000)
-    </script>
-
-
-<script type="text/javascript">
-    //百度地图api
-    $(function () {
-    // 百度地图API功能
-    var map = new BMap.Map("allmap", { enableMapClick: false });
-    var point = new BMap.Point("121.25186","31.179117");
-    var point2 = new BMap.Point("121.25186","31.179917");  //???
-    map.centerAndZoom(point2, 15);
-    var marker = new BMap.Marker(point);  // 创建标注
-    map.addOverlay(marker);               // 将标注添加到地图中
-    marker.setAnimation(BMAP_ANIMATION_BOUNCE); //跳动的动画
-
-    //map.enableScrollWheelZoom(true);     //开启鼠标滚轮缩放
-    map.disableScrollWheelZoom();     //禁止鼠标滚轮缩放
-
-    map.setZoom(20);
-
-    
-
-
-   
-
-
-
-  
-    
-    // 添加带有定位的导航控件
-    var navigationControl = new BMap.NavigationControl({
-    // 靠左上角位置
-    anchor: BMAP_ANCHOR_TOP_RIGHT,
-    // LARGE类型
-    type: BMAP_NAVIGATION_CONTROL_LARGE,
-    // 启用显示定位
-    enableGeolocation: true
-    
-    });
-    map.addControl(navigationControl);
-    // 添加定位控件
-    var geolocationControl = new BMap.GeolocationControl();
-    geolocationControl.addEventListener("locationSuccess", function (e) {
-    // 定位成功事件
-    var address = '';
-    address += e.addressComponent.province;
-    address += e.addressComponent.city;
-    address += e.addressComponent.district;
-    address += e.addressComponent.street;
-    address += e.addressComponent.streetNumber;
-    //alert("当前定位地址为:" + address);
-    });
-    geolocationControl.addEventListener("locationError", function (e) {
-    // 定位失败事件
-    alert(e.message);
-    });
-    map.addControl(geolocationControl);
-    
-    if ($(window).width() < 750) {
-    map.disableDragging();     //禁止拖拽
-    }
-    
-    
-    })
-    </script>
-
-  
+    <!-- <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=iXlsFGT8ySqgKzSZtjzSvLMpF0OxuCXS&servic
+es=true"></script> -->
 
 </body>
 

+ 85 - 211
assets/js/commonVue.js

@@ -1,44 +1,44 @@
-// 定义一个名为 button-counter 的新组件
-Vue.component('button-counter', {
-  props: ['title'],
-  data() {
-    return {
-      count: 0
-    }
-  },
-  methods: {
-    addCount() {
-      this.count++
-    }
-  },
-  template: '<button @click="addCount">{{ title }} : You clicked me {{ count }} times.</button>'
-})
-
-
 var app = new Vue({
   el: '#app',
   data: {
 
     //公共
     id: null,
-    columnList: [
-      {categoryName:'首页',sname:'/index.html',id:1},
-      {categoryName:'解决方案',sname:'/solution.html',id:2},
-      {categoryName:'产品服务',sname:'/product.html',id:3},
-      {categoryName:'新闻动态',sname:'/news.html',id:4},
-      {categoryName:'关于永天',sname:'/about.html',id:5},
+    columnList: [{
+        categoryName: '首页',
+        sname: '/index.html',
+        id: 1
+      },
+      {
+        categoryName: '解决方案',
+        sname: '/solution.html',
+        id: 2
+      },
+      {
+        categoryName: '产品服务',
+        sname: '/product.html',
+        id: 3
+      },
+      {
+        categoryName: '新闻动态',
+        sname: '/news.html',
+        id: 4
+      },
+      {
+        categoryName: '关于永天',
+        sname: '/about.html',
+        id: 5
+      },
     ],
     currentPath: '',
     articalArray: [], //详情数组
     articalArrayRelated: [], //相关新闻
     columnTypes: [], //栏目类型
-    columnImage:'',//栏目图片
-
-    
+    columnImage: '', //栏目图片
 
     // 公共弹框
     centerDialogVisible: false,
-    dialogDataArray:[],
+    dialogDataArray: [],
     ruleForm: {
       platName: '智慧安防',
       consultName: '',
@@ -49,11 +49,10 @@ var app = new Vue({
     },
     rules: {
       platName: [{
-          required: true,
-          message: '请选择类型',
-          trigger: 'change'
-        },
-      ],
+        required: true,
+        message: '请选择类型',
+        trigger: 'change'
+      }, ],
       consultName: [{
         required: true,
         message: '请输入姓名',
@@ -74,58 +73,29 @@ var app = new Vue({
     },
 
 
-
-
     //首页
     homeList: [],
     status: false,
+
     // 新闻
-    news: [],
     goPage: 1,
     totalPageNum: 1,
     totalPageSzie: 1,
     loading: true,
-    categoryid:0,
-    requestParams:{
+    categoryid: 0,
+    requestParams: {
       categoryid: this.id,
       pageNum: 1,
       pageSize: 9,
       title: ''
-
     },
-
-
-    //解决方案旧
-    array: [],
-    //新闻详情旧
-    articleInfo: {},
-    previousInfo: {},
-    nextInfo: {},
-    relativeArr: [],
-    // ariticle_id: 0,
   },
 
   computed: {
-
-    // 新闻详情旧
-    isNews: function () {
-      return (this.articleInfo.type == 1);
-    },
-    hasPrevious: function () {
-      return Object.keys(this.previousInfo).length > 0;
-    },
-    hasNext: function () {
-      return Object.keys(this.nextInfo).length > 0;
-    }
-
-
   },
   created: function () {
     this.requestParams.categoryid = this.getQuery('id') ? this.getQuery('id') : ''
-
-    // this.ariticle_id = this.getQuery('id')
     this.requestParams.title = this.getQuery('title') ? this.getQuery('title') : ''
-
   },
   mounted: function () {
     _this = this
@@ -145,15 +115,47 @@ var app = new Vue({
         _this.columnList = res.data;
         _this.currentPath = window.location.pathname
         for (let i = 0; i < res.data.length; i++) {
-          // console.log(res.data[i].sname)
-          // console.log(window.location.pathname)
 
-        
+          //栏目处理        
+          if (res.data[i].sname == window.location.pathname) { 
+
+            //进入当前栏目页
+            _this.columnTypes = res.data[i].children 
+            if (res.data[i].children.length > 0) {
+              _this.requestParams.categoryid = (_this.getQuery('isUrlId') == 1) ? _this.getQuery('id') : _this.columnTypes[0].id;
+            } else {
+              _this.requestParams.categoryid = _this.getQuery('id')
+            }
+            _this.getArticalData(_this.requestParams) 
+            _this.columnImage = res.data[i].imagePath; 
+            
+          } else { 
 
-          
+            // 进入详情页
+            if (res.data[i].sname == '/product/index.html' && window.location.pathname == '/product/read.html') {
+              getDetailCommon()
+            }
+            if (res.data[i].sname == '/solution/index.html' && window.location.pathname == '/solution/read.html') {
+              getDetailCommon()
+            }
+            if (res.data[i].sname == '/news/index.html' && window.location.pathname == '/news/read.html') {
+              getDetailCommon()
+            }
+            function getDetailCommon(){
+              //获取内容详情
+              _this.getArticalData(_this.requestParams)
+              //获取详情相关数据
+              setTimeout(() => {
+                _this.requestParams.title = ''
+                _this.getArticalData(_this.requestParams, 1)
+              }, 1)
+              _this.currentPath = res.data[i].sname //产品详情时栏目高亮
+              _this.columnImage = res.data[i].imagePath; //栏目图片获取
+            }
+          }
 
-          if (res.data[i].categoryName == '首页' && window.location.pathname == '/index.html') {
-            //首页旧
+          //首页旧
+          if (res.data[i].sname == '/index.html' && window.location.pathname == '/index.html') {
             jQuery.ajax({
               type: 'POST',
               dataType: 'json',
@@ -163,160 +165,38 @@ var app = new Vue({
               _this.status = true
             }).fail(function (err) {});
           }
-          if (res.data[i].categoryName == '产品服务' && window.location.pathname == '/product/read.html') {
-            _this.currentPath = '/product/index.html' //产品详情时栏目高亮
-            _this.columnImage=res.data[i].imagePath;  //栏目图片获取
-            setTimeout(()=>{
-              _this.requestParams.title=''
-              _this.getArticalData( _this.requestParams,1)
-            },1)
-            
-          }
-          if (res.data[i].categoryName == '解决方案' && window.location.pathname == '/solution/read.html') {
-            _this.currentPath = '/solution/index.html' //产品详情时栏目高亮
-            _this.columnImage=res.data[i].imagePath;  //栏目图片获取
-           
-            //获取相关新闻数据
-            setTimeout(()=>{
-              _this.requestParams.title=''
-              _this.getArticalData( _this.requestParams,1)
-            },1)
-            
-          }
-          if (res.data[i].categoryName == '解决方案') {
-            _this.dialogDataArray=(res.data[i].children)
-            _this.ruleForm.platName= _this.dialogDataArray[0].categoryName;
-            _this.columnImage=res.data[i].imagePath;  //栏目图片获取
-          }
-
-          if (res.data[i].categoryName == '新闻动态' && window.location.pathname == '/news/read.html') {
-            _this.currentPath = '/news/index.html' //新闻详情时栏目高亮
-            _this.columnImage=res.data[i].imagePath;  //栏目图片获取
 
-            //获取相关新闻数据
-            setTimeout(()=>{
-              _this.requestParams.title=''
-              _this.getArticalData( _this.requestParams,1)
-            },1)
-
-
-            //新闻详情旧
-            jQuery.ajax({
-              type: 'POST',
-              dataType: 'json',
-              url: window.FQDN + 'agw/journalism_details',
-              data: {
-                id: 154
-              }
-            }).done(function (res) {
-              if (!res.msg) {
-                return;
-              }
-              _this.loading = false;
-              _this.articleInfo = res;
-              _this.relativeArr = res.related;
-              console.log(_this.relativeArr)
-
-              if (res.previous != null) {
-                _this.previousInfo = res.previous;
-              }
-              if (res.next != null) {
-                _this.nextInfo = res.next;
-              }
-
-            }).fail(function (err) {});
-          }
-          if (res.data[i].categoryName == '关于永天' && window.location.pathname.indexOf('about') > -1) {
-            _this.columnTypes = res.data[i].children
-            _this.requestParams.categoryid=_this.getQuery('id') 
-            console.log(_this.requestParams)
-            _this.getArticalData(_this.requestParams)
-            _this.columnImage=res.data[i].imagePath;  //栏目图片获取
-
-            //关于永天旧
-            $.ajax({
-              type: 'POST',
-              dataType: 'json',
-              url: window.FQDN + 'Aboutus/index',
-            }).done(function (arr) {
-              // console.log(arr)
-              _this.array = arr;
-            }).fail(function (err) {});
-
-          }
-
-
-          if (res.data[i].children.length > 0) {
-            if (res.data[i].categoryName == '解决方案' && window.location.pathname.indexOf('solution') > -1) {
-              _this.columnTypes = res.data[i].children
-              _this.requestParams.categoryid = (_this.getQuery('isUrlId') == 1) ? _this.getQuery('id') : _this.columnTypes[0].id;
-              _this.getArticalData(_this.requestParams)
-
-              //解决方案旧
-              $.ajax({
-                type: 'POST',
-                dataType: 'json',
-                url: window.FQDN + 'Solution/index',
-                data: {
-                  id: '1'
-                }
-              }).done(function (arr) {
-                _this.array = arr;
-                console.log(_this.array)
-              }).fail(function (err) {});
-            }
-            if (res.data[i].categoryName == '新闻动态' && window.location.pathname.indexOf('news') > -1) {
-              _this.columnTypes = res.data[i].children
-              _this.requestParams.categoryid = (_this.getQuery('isUrlId') == 1) ? _this.getQuery('id') : _this.columnTypes[0].id;
-              _this.getArticalData(_this.requestParams)
-              _this.columnImage=res.data[i].imagePath;  //栏目图片获取
-
-
-            }
-            if (res.data[i].categoryName == '产品服务' && window.location.pathname.indexOf('product') > -1) {
-              _this.columnTypes = res.data[i].children
-              _this.requestParams.categoryid = (_this.getQuery('isUrlId') == 1) ? _this.getQuery('id') : _this.columnTypes[0].id;
-              _this.getArticalData(_this.requestParams)
-              _this.columnImage=res.data[i].imagePath;  //栏目图片获取
-            }
+          // 获取反馈弹框类型数据
+          if (res.data[i].sname == '/solution/index.html') {
+            _this.dialogDataArray = (res.data[i].children)
+            _this.ruleForm.platName = _this.dialogDataArray[0].categoryName;
           }
         }
       })
     },
 
     //获取内容
-    getArticalData(requestParams,type) {
+    getArticalData(requestParams, type) {
       $.ajax({
         type: 'GET',
         dataType: 'json',
         url: window.FQDN2 + 'siteArticle/siteArticleList',
         data: requestParams
       }).done(function (res) {
-       
-  
-        var aa
         var bb
-
-        if(type==1){
-         bb=res.data.records
-        }else{
-          aa= res.data.records;
-          // aa.sort(_this.compare("lmtitle"))
-          _this.articalArray = aa;
+        if (type == 1) {
+          bb = res.data.records
+        } else {
+          _this.articalArray = res.data.records;
         }
-
-        if(bb){
-          _this.articalArrayRelated =bb.filter(obj => obj.id !=  _this.articalArray[0].id);
+        if (bb) {
+          _this.articalArrayRelated = bb.filter(obj => obj.id != _this.articalArray[0].id);
           console.log(_this.articalArrayRelated)
         }
         _this.loading = false;
         _this.totalPageSzie = res.data.total
         _this.totalPageNum = Math.ceil(res.data.total / res.data.size);
-
-        
-
       }).fail(function (err) {});
-
     },
 
     //类型点击
@@ -324,15 +204,11 @@ var app = new Vue({
       this.requestParams.categoryid = item.id
       this.requestParams.pageNum = 1
       this.getArticalData(this.requestParams)
-      
     },
 
-
     //  分页
     oneInnerBox: function (param) {
-      window.location = "./read.html?id=" + param.categoryid + "&title=" + param.title+ "&isUrlId=1";
-      // window.location = "./read.html?id=154"
-
+      window.location = "./read.html?id=" + param.categoryid + "&title=" + param.title + "&isUrlId=1";
     },
     enterPage: function (res) {
       if (this.goPage >= 1 && this.goPage <= this.totalPageNum) {
@@ -357,11 +233,10 @@ var app = new Vue({
       });
     },
 
-     //公共弹框
+    //公共弹框
     submitForm(formName) {
       _this = this
       this.$refs[formName].validate((valid) => {
-
         if (valid) {
           console.log(_this.ruleForm)
           let param = JSON.stringify(_this.ruleForm)
@@ -393,7 +268,6 @@ var app = new Vue({
       this.centerDialogVisible = false
     },
 
-
     // 排序
     compare(property) {
       return function (a, b) {

+ 4 - 7
news/read.html

@@ -139,13 +139,11 @@
                         <div v-if="!loading" class="read_content">
 
                             <div class="section-title text-center both-border mb-80 d-flex justify-content-between">
-                                <span class="title-tag2">{{articalArray[0].title}}</span>
+                                <span class="title-tag2">新闻详情</span>
                                 <a href="./index.html"><img src="../assets/img/product/close.png" alt=""></a>
                             </div>
 
-                            <!-- <div class="section-title text-center both-border mb-20">
-                                
-                            </div> -->
+                            <div class="title-tag2 mb-40 text-center" style="font-size:20px">{{articalArray[0].title}}</div>
                             <div class="new-read-title2">
                                 <div class="row">
                                     <div class="col-md-4 col-sm-6 col-6 line-one">时间:{{timeFormatSeconds(articalArray[0].createdate)}}</div>
@@ -159,19 +157,18 @@
                         </div>
 
                         <!--  -->
-                        <div v-if="!loading" class="read-page d-flex justify-content-center">
+                        <!-- <div v-if="!loading" class="read-page d-flex justify-content-center"> -->
                             <!-- <a :class="[!hasPrevious ? 'disable' : '']" :href="[hasPrevious ? './read.html?id='+previousInfo.id : 'javascript: void();']" class="previous">上一篇{{previousInfo.title}}</a> -->
                             <!-- <a href="./index.html">返回新闻列表</a> -->
                             <!-- <a :class="[!hasNext ? 'disable' : '']" :href="[hasNext ? './read.html?id='+nextInfo.id : 'javascript: void();']" class="next">下一篇{{nextInfo.title}}</a> -->
                             <!-- <a :class="[!hasPrevious ? 'disable' : '']" :href="[hasPrevious ? './read.html?id='+previousInfo.id : 'javascript: void();']" class="min-previous">上一篇</a> -->
                             <!-- <a :class="[!hasNext ? 'disable' : '']" :href="[hasNext ? './read.html?id='+nextInfo.id : 'javascript: void();']" class="min-next">下一篇</a> -->
-                        </div>
+                        <!-- </div> -->
 
                         <!-- 相关新闻 start -->
                         <div>
                             <div class="title-tag2 pt-60">相关新闻</div>
                             <div class="relNewBox container ">
-
                                 <a class="ustify-content-between d-flex relNewsList" :href="'./read.html?id='+item.categoryid+'&title='+item.title+'&isUrlId=1'" v-for="item in articalArrayRelated" :key="item.id">
                                     <div><img width="18" height="18" src="../assets/img/news/arrowT.svg"> {{item.title}} </div>
                                     <div> {{timeFormatSeconds(item.modifydate?item.modifydate:'')}}</div>

+ 3 - 3
product/read.html

@@ -125,7 +125,7 @@
                                 <span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span>
                             </div>
                         </div>
-                        <div v-if="!loading" class="read_content pb-100">
+                        <div v-if="!loading" class="read_content">
                             <div class="section-title text-left both-border mb-80 d-flex justify-content-between">
                                 <span class="title-tag2" >产品详情</span>
                                 <a href="./index.html"><img src="../assets/img/product/close.png" alt=""></a>
@@ -146,10 +146,10 @@
                      
 
                         <!--  -->
-                        <div v-if="!loading" class="read-page d-flex justify-content-between">
+                        <!-- <div v-if="!loading" class="read-page d-flex justify-content-between">
                             
                            
-                        </div>
+                        </div> -->
 
                         <!-- 相关产品 start -->
                         <div v-if="articalArrayRelated.length>0">

+ 0 - 132
solution/index.html

@@ -154,138 +154,6 @@
                     </div>
                 </div>
             </div>
-
-
-     
-
-           
-            
-
-            <div class="container pt-40 pt-40" v-for="arr in articalArray"  style="display:none">
-                <div class="section-title both-border mb-20">
-                    <span class="title-tag2">{{arr.title}}</span>
-                </div>
-
-
-               
-                <div class="row align-items-center justify-content-center"  >
-                    <div class="col-md-12 " v-html="arr.content" v-if="arr.content">
-                    </div>
-                    <div class="pt-40 mb-40 col-md-12 solution-img" v-if="arr.image">
-                        <img :src="arr.image" alt="">
-                    </div>
-                </div>
-
-            </div>
-  
-
-            <div class="container pt-40" v-for="arr in array" style="display:none"  >
-                <div class="section-title both-border mb-20">
-                    <span class="title-tag2">{{arr.title}}</span>
-                </div>
-                <!-- ordinary普通样式  开始 -->
-                <div class="row align-items-center justify-content-center" v-if="arr.cssType === 'ordinary'"
-                    v-for="cont in arr.content">
-                    <div class="col-md-12 mb-20" v-if="cont.text_content != ''">
-                        {{cont.text_content}}
-                    </div>
-                    <div class="pt-40 mb-40 col-md-12 solution-img" v-if="cont.text_picture != ''">
-                        <img :src="cont.text_picture" alt="">
-                    </div>
-                </div>
-                <!-- ordinary普通样式 结束 -->
-
-                <!-- list列表样式 开始 -->
-                <div class="row align-items-center justify-content-center" v-if="arr.cssType === 'list'">
-                    <div class="col-md-12" v-for="cont in arr.content">
-                        <ul>
-                            <li v-if="cont.text_content != ''">
-                                <span class="borderRadius1">
-                                    <span class="borderRadius2"></span>
-                                </span>
-                                {{cont.text_content}}
-                            </li>
-                            <li v-if="cont.text_picture != ''">
-                                <img :src="cont.text_picture" alt="">
-                            </li>
-                        </ul>
-
-                    </div>
-                </div>
-                <!-- list列表样式 开始 -->
-
-                <!-- titleList带标题列表样式 开始 -->
-                <div class="row align-items-center justify-content-center" v-if="arr.cssType === 'titleList'"
-                    v-for="cont in arr.content">
-                    <div class="col-md-12" v-if="typeof cont.text_content == 'string' && cont.text_content != ''">
-                        <ul>
-                            <li>
-                                <span class="borderRadius1">
-                                    <span class="borderRadius2"></span>
-                                </span>
-                                <span class="pb-10 textSpan" v-if="cont.text_title != ''">{{cont.text_title}}</span>
-                                <div class="pb-30 textDiv" v-if="cont.text_content != ''">{{cont.text_content}}</div>
-                                <div class="pb-30 textDiv solution-img" v-if="cont.text_picture != ''">
-                                    <img :src="cont.text_picture" alt="">
-                                </div>
-                            </li>
-                        </ul>
-                    </div>
-                </div>
-                <!-- titleList带标题列表样式 结束 -->
-
-                <!-- doubleTabs双重tabs切换样式 开始 -->
-                <div class="row mb-60 align-items-center justify-content-center" v-if="arr.cssType === 'doubleTabs'">
-                    <div class="col-md-12 BoxShadow">
-                        <ul id="nav-tabs-ul" class="nav nav-tabs col-md-12" role="tabcontent">
-                            <li class="col-md-2 col-sm col" role="parrentation" v-for="(cont,i) in arr.content"
-                                :style="'max-width: calc(100% / '+arr.content.length+'); flex: 0 0 calc(100% /'+arr.content.length+');'">
-                                <a :class="i==0?'active':''" :href="'#'+cont.text_href" :aria-controls="cont.text_href"
-                                    role="tab" data-toggle="tab">{{cont.text_title}}</a>
-                            </li>
-                        </ul>
-
-                        <!-- Tab panes -->
-                        <div class="tab-content tab-content-one">
-                            <div v-for="(cont,i) in arr.content" role="tabpanel"
-                                :class="i==0 ? 'active tab-pane tab-pane-one' : 'tab-pane tab-pane-one'"
-                                :id="cont.text_href">
-                                <ul class="nav nav-tabs col-md-12 nav-tabs-li" role="tabcontent">
-                                    <li class="col-md-4 col-sm-4 col-4" role="parrentation"
-                                        v-for="(textcont,j) in cont.text_content"
-                                        :style="'max-width: calc(100% / '+cont.text_content.length+'); flex: 0 0 calc(100% /'+cont.text_content.length+');'">
-                                        <a :class="j==0? 'active':''" :href="'#'+textcont.href"
-                                            :aria-controls="textcont.href" role="tab"
-                                            data-toggle="tab">{{textcont.title}}</a>
-                                    </li>
-                                </ul>
-
-                                <div class="tab-content tab-content-two">
-                                    <div v-for="(textcont,j) in cont.text_content" role="tabpanel"
-                                        :class="j==0?'tab-pane tab-pane-tow active':'tab-pane tab-pane-tow'"
-                                        :id="textcont.href">
-                                        <div class="paneContent">
-                                            <img :src="textcont.picture" alt="">
-                                            <div>
-                                                <div class="paneConTitle">
-                                                    <div v-if="textcont.region != ''">区位:{{textcont.region}}</div>
-                                                    <div v-if="textcont.scale != ''">规模:{{textcont.scale}}</div>
-                                                </div>
-                                                <div>
-                                                    <div v-for="content in textcont.content">
-                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{content}}
-                                                    </div>
-                                                </div>
-                                            </div>
-                                        </div>
-                                    </div>
-                                </div>
-                            </div>
-                        </div>
-                    </div>
-                </div>
-                <!-- doubleTabs双重tabs切换样式 结束 -->
-            </div>
         </section>
         <!--====== SOLUTION SECTION END ======-->