瀏覽代碼

修改高知版本的底部

plg 1 天之前
父節點
當前提交
63b1647ba7
共有 2 個文件被更改,包括 22 次插入4 次删除
  1. 19 3
      src/components/CpmdFooter.vue
  2. 3 1
      src/utils/http.ts

+ 19 - 3
src/components/CpmdFooter.vue

@@ -2,7 +2,7 @@
 import { onMounted, ref } from 'vue'
 import { useRouter } from 'vue-router'
 const router = useRouter()
-
+import { base_url } from '@/utils/http'
 import { menuStatusStore } from '@/stores';
 // import url from '../assets/home/trademark.png';
 //选中的索引
@@ -11,10 +11,19 @@ const menuStatus = menuStatusStore()
 
 const activeIndex = ref<string>()
 
+const ipc = ref<any>()
+const path = ref<any>()
+
 onMounted(() => {
     activeIndex.value = menuStatus.activeIndex
     console.log('foot')
     console.log(activeIndex.value)
+    path.value = base_url
+    if (path.value == 'http://123.57.18.29:8090') {
+        ipc.value = '粤ICP备2025386772号-2'
+    } else if (path.value == 'http://129.211.221.44:8090') {
+        ipc.value = '粤ICP备2025386772号-1'
+    }
 })
 
 </script>
@@ -91,14 +100,20 @@ onMounted(() => {
 
         </div>
         <!-- <div style="width:1200px;height:10px;background-color: #ffffff;">
-        </div>
+        </div> -->
         <div class="home_footer_fo">
             <div class="home_footer_fo_des">隐私</div>
             <div class="home_footer_fo_des">使用条款</div>
-        </div> -->
+            <a class="home_footer_fo_des a_ba" href="https://beian.miit.gov.cn/#/Integrated/index">{{ ipc }}</a>
+        </div>
     </div>
 </template>
 <style lang="scss">
+.a_ba {
+    color: #ffffff;
+    text-decoration: none;
+}
+
 .home_footer_inner {
     // scroll-snap-align: start;
     // padding: 30px 0px;
@@ -129,6 +144,7 @@ onMounted(() => {
         justify-content: center;
         display: flex;
         color: #ffffff;
+        margin-bottom: 20px;
 
         // margin: auto;
         .home_footer_fo_des {

+ 3 - 1
src/utils/http.ts

@@ -35,7 +35,9 @@ const menuStatus = menuStatusStore()
 //新服务器
 // const base_url = 'http://123.57.18.29:8089'
 //第二个版本
-const base_url = 'http://123.57.18.29:8090'
+export const base_url = 'http://123.57.18.29:8090'
+//第二个版本
+// export const base_url = 'http://129.211.221.44:8090'
 
 
 //设置axios 默认访问路径