Browse Source

我的页面bug修改

XMLWAN 4 years ago
parent
commit
2a03bc427e
2 changed files with 17 additions and 18 deletions
  1. 2 2
      config/prod.env.js
  2. 15 16
      src/pages/home/index.vue

+ 2 - 2
config/prod.env.js View File

@@ -1,8 +1,8 @@
1 1
 "use strict";
2 2
 module.exports = {
3 3
   NODE_ENV: '"production"',
4
-  //BASE_API: '"http://new_mobile.xt.api.sgjyun.com"'
5
-  BASE_API: '"https://api.xt.kuyicloud.com"'
4
+  BASE_API: '"http://new_mobile.xt.api.sgjyun.com"'
5
+  //BASE_API: '"https://api.xt.kuyicloud.com"'
6 6
   // BASE_API:'"http://localhost:9529"',
7 7
   // BASE_API: '"http://api.xt.test.sgjyun.com"'
8 8
   // http://api.xt.test.sgjyun.com

+ 15 - 16
src/pages/home/index.vue View File

@@ -82,13 +82,13 @@
82 82
             <div>首页</div>
83 83
           </van-tabbar-item>
84 84
         </router-link>
85
-        <!--<router-link to="/active">-->
86
-          <!--<van-tabbar-item>-->
87
-            <!--<i class="iconfont icon-jishiben iconOne"></i>-->
88
-            <!--<div>致敬医护</div>-->
89
-          <!--</van-tabbar-item>-->
90
-        <!--</router-link>-->
91
-        <!--<router-link to="/service">-->
85
+        <router-link to="/active">
86
+         <van-tabbar-item>
87
+             <i class="iconfont icon-jishiben iconOne"></i>
88
+             <div>致敬医护</div>
89
+           </van-tabbar-item>
90
+          </router-link>
91
+        <!-- <router-link to="/service">-->
92 92
           <!--<van-tabbar-item>-->
93 93
             <!--<i class="iconfont icon-fuwu2 iconOne"></i>-->
94 94
             <!--<div>服务</div>-->
@@ -141,16 +141,15 @@ export default {
141 141
     const id = this.$route.query.id;
142 142
     // this.getAllOrgName(id);
143 143
     setRem();
144
-
145 144
   },
146
-  mounted(){
147
-    let currenttabbar = window.location.hash.split("/")[1]
148
-     if (currenttabbar === 'homeIndex') {
149
-      this.active = 0
150
-    } else if (currenttabbar === 'newMy') {
151
-      this.active = 2
152
-    } else if (currenttabbar === 'active') {
153
-      this.active = 1
145
+  mounted() {
146
+    let currenttabbar = window.location.hash.split("/")[1];
147
+    if (currenttabbar === "homeIndex") {
148
+      this.active = 0;
149
+    } else if (currenttabbar === "newMy") {
150
+      this.active = 2;
151
+    } else if (currenttabbar === "active") {
152
+      this.active = 1;
154 153
     }
155 154
   }
156 155
 };