소스 검색

修改底部ipc

plg 1 주 전
부모
커밋
48e894f7df
2개의 변경된 파일22개의 추가작업 그리고 4개의 파일을 삭제
  1. 20 2
      src/components/CpmdFooter.vue
  2. 2 2
      src/utils/http.ts

+ 20 - 2
src/components/CpmdFooter.vue

@@ -1,8 +1,12 @@
 <script lang="ts" setup>
 import { onMounted, ref } from 'vue'
 import { useRouter } from 'vue-router'
+import { base_url } from '@/utils/http'
 const router = useRouter()
 
+const ipc = ref<any>()
+const path = ref<any>()
+
 import { menuStatusStore } from '@/stores';
 // import url from '../assets/home/trademark.png';
 //选中的索引
@@ -15,6 +19,13 @@ onMounted(() => {
     activeIndex.value = menuStatus.activeIndex
     console.log('foot')
     console.log(activeIndex.value)
+    path.value = base_url
+    if (path.value == 'http://123.57.18.29:8089') {
+        ipc.value = '粤ICP备2025386772号-2'
+    } else if (path.value == 'http://129.211.221.44:8091') {
+        ipc.value = '粤ICP备2025386772号-1'
+    }
+
 })
 
 </script>
@@ -91,14 +102,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 +146,7 @@ onMounted(() => {
         justify-content: center;
         display: flex;
         color: #ffffff;
+        margin-bottom: 20px;
 
         // margin: auto;
         .home_footer_fo_des {

+ 2 - 2
src/utils/http.ts

@@ -28,12 +28,12 @@ const menuStatus = menuStatusStore()
 //30
 // const base_url = 'http://43.143.198.30:8089/'
 //红朵
-const base_url = 'http://129.211.221.44:8091'
+// export const base_url = 'http://129.211.221.44:8091'  
 
 //锦泓服务器
 // const base_url = 'http://146.56.226.174:8089'
 //新服务器
-// const base_url = 'http://123.57.18.29:8089'
+export const base_url = 'http://123.57.18.29:8089'
 //第二个版本
 // const base_url = 'http://123.57.18.29:8090'