Browse Source

适配修改

hjianglong 3 days ago
parent
commit
2996ea0240

+ 1 - 1
public/index.html

@@ -5,7 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
     <meta name="viewport" content="width=device-width,initial-scale=1.0" />
     <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
-    <title><%= htmlWebpackPlugin.options.title %></title>
+    <title>福建水利监管工作平台</title>
   </head>
 
   <body>

BIN
src/assets/images/tishi.png


+ 3 - 3
src/layout/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div :style="{ '--current-color': theme }" class="app-wrapper">
-    <van-nav-bar :left-arrow="showBackButton" :title="route.meta.title || '福建水利监管工作平台'" @click-left="back"/>
+    <!-- <van-nav-bar :left-arrow="showBackButton" :title="route.meta.title || '福建水利监管工作平台'" @click-left="back"/> -->
     <!-- 展示页 -->
     <app-main/>
     <!-- 底部 -->
@@ -30,10 +30,10 @@ function back() {
 
   .app-main {
     position: absolute;
-    top: 46px;
+    top: 0px;
     left: 0;
     width: 100%;
-    height: calc(100% - 102.8px);
+    height:100%;
     background-color: #ebecf0;
   }
 

+ 17 - 2
src/views/HomeView.vue

@@ -1,6 +1,9 @@
 <template>
-  <iframe :src="`https://27.156.118.74:19901/statistics/index.html?type=${appStore.ownApp}`"
-          class="home-wrapper"></iframe>
+  <!-- <iframe :src="`https://27.156.118.74:19901/statistics/index.html?type=${appStore.ownApp}`"
+          class="home-wrapper"></iframe> -->
+          <div class="zhuye-wrapper">
+            
+          </div>
 </template>
 <script setup>
 import {useAppStore} from "@/stores/app";
@@ -8,6 +11,18 @@ import {useAppStore} from "@/stores/app";
 const appStore = useAppStore();
 </script>
 <style lang="scss" scoped>
+.zhuye-wrapper {
+  width: 100%;
+  height: 100%;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  background-image: url("@/assets/images/tishi.png");
+  background-repeat: no-repeat;
+  background-position: center center;
+  background-size: cover; // 或使用 contain,根据需求选择
+}
+
 .home-wrapper {
   width: 100%;
   height: 100%;

+ 1 - 1
src/views/Problem/questionstatistics.vue

@@ -1,5 +1,5 @@
 <template>
     <div class="content-wrapper">
-        问题统计
+        
     </div>
 </template>

+ 1 - 1
vue.config.js

@@ -24,7 +24,7 @@ module.exports = defineConfig({
         },
         proxy: {
             '/pdcApi': {
-                target: 'https://27.156.118.74:19901', // 你的后端服务器地址
+                target: 'https://app.slt.fujian.gov.cn:18185', // 你的后端服务器地址
                 changeOrigin: true, // 需要虚拟托管站点
                 // pathRewrite: {
                 //     '^/pdcApi': '' // 移除路径中的/api前缀