Pārlūkot izejas kodu

全局更改index.html的代码简化

ming 1 gadu atpakaļ
vecāks
revīzija
d63003a7f1
4 mainītis faili ar 6 papildinājumiem un 6 dzēšanām
  1. 3 3
      assets/js/commonVue.js
  2. 1 1
      news/read.html
  3. 1 1
      product/read.html
  4. 1 1
      solution/read.html

+ 3 - 3
assets/js/commonVue.js

@@ -104,7 +104,7 @@ var app = new Vue({
     //获取栏目数据
     getColumnData() {
       var _this = this;
-      if (!localStorage.getItem('storeColumnList') || window.location.pathname == '/index.html' || window.location.pathname == '/') {
+      if (!localStorage.getItem('storeColumnList') || window.location.pathname == '/') {
         $.ajax({
           type: 'get',
           dataType: 'json',
@@ -237,7 +237,7 @@ var app = new Vue({
 
 
         // 获取反馈弹框类型数据
-        if (_this.columnList[i].sname == '/solution/index.html') {
+        if (_this.columnList[i].sname == '/solution/') {
           _this.dialogDataArray = (_this.columnList[i].children)
           _this.ruleForm.platName = _this.dialogDataArray[0].categoryName;
         }
@@ -247,7 +247,7 @@ var app = new Vue({
     //获取内容
     getArticalData(requestParams, type) {
       var _this = this
-      if (window.location.pathname == '/news/index.html') {
+      if (window.location.pathname == '/news/') {
         _this.requestParams.order = ''
       }
 

+ 1 - 1
news/read.html

@@ -79,7 +79,7 @@
                                             <span >点击量:{{articalArray[0].hits}}</span>
                                     </div>
                                 </div>
-                                <a href="./index.html"><img src="../assets/img/product/close.png" alt=""></a>
+                                <a href="./"><img src="../assets/img/product/close.png" alt=""></a>
                             </div>                            
                             <div v-html="articalArray[0].content" class="new-read-body">
                             </div>

+ 1 - 1
product/read.html

@@ -73,7 +73,7 @@
                         <div v-if="!loading" class="read_content mb-60">
                             <div class="section-title text-left both-border mb-60 d-flex justify-content-between">
                                 <span class="title-tag2" >{{articalArray[0].title}}</span>
-                                <a href="./index.html"><img src="../assets/img/product/close.png" alt=""></a>
+                                <a href="./"><img src="../assets/img/product/close.png" alt=""></a>
                             </div>
                             <div class="row">
                                  <div class="col-lg-5 col-md-6 ">

+ 1 - 1
solution/read.html

@@ -73,7 +73,7 @@
                         <div v-if="!loading" class="read_content mb-60">
                             <div class="section-title text-center both-border mb-60 d-flex justify-content-between">
                                 <span class="title-tag2" >{{articalArray[0].title}}</span>
-                                <a href="./index.html"><img src="../assets/img/product/close.png" alt=""></a>
+                                <a href="./"><img src="../assets/img/product/close.png" alt=""></a>
                             </div>
                             <div class="row">
                                  <div class=" col-lg-12 col-md-12  " >