miaofuhao 1 anno fa
parent
commit
175a11c279

+ 1 - 1
.env.development

@@ -1,4 +1,4 @@
1 1
 # 请注意,所有的环境变量前需要加上VUE_APP_前缀,这是Vue CLI项目的要求
2 2
 
3 3
 # 设置API地址
4
-VUE_APP_BASE_API_URL=http://192.168.1.15:8100/
4
+VUE_APP_BASE_API_URL=http://39.164.159.226:8100/

+ 1 - 1
.env.production

@@ -1,2 +1,2 @@
1 1
 # 设置API地址
2
-VUE_APP_BASE_API_URL=http://192.168.1.15:8100/
2
+VUE_APP_BASE_API_URL=http://39.164.159.226:8100/

BIN
src/assets/logo.png


+ 1 - 1
src/components/home/home-meun copy.vue

@@ -30,7 +30,7 @@ import routers from "../../router";
30 30
 import { useRouter } from "vue-router";
31 31
 import { ArrowDown } from '@element-plus/icons-vue'
32 32
 
33
-const apiUrl = ref('http://39.164.159.226:8100/')
33
+const apiUrl = process.env.VUE_APP_BASE_API_URL
34 34
 const productData = ref([])
35 35
 const menus = routers.options.routes.find((o) => { return o.name === 'home'; }).children;
36 36
 const router = useRouter();

+ 2 - 2
src/components/home/home-meun.vue

@@ -28,7 +28,7 @@ import routers from "../../router";
28 28
 import { useRouter } from "vue-router";
29 29
 import { ArrowDown } from '@element-plus/icons-vue'
30 30
 
31
-const apiUrl = ref('http://39.164.159.226:8100/')
31
+const apiUrl = process.env.VUE_APP_BASE_API_URL 
32 32
 const productData = ref([])
33 33
 const menus = routers.options.routes.find((o) => { return o.name === 'home'; }).children;
34 34
 const router = useRouter();
@@ -85,6 +85,6 @@ function trunHandle(id) {
85 85
     color: inherit;
86 86
   }
87 87
   .flex-grow {
88
-    flex-grow: 0.8;
88
+    flex-grow:0.9;
89 89
   }
90 90
 </style>

+ 4 - 4
src/components/home/home.vue

@@ -2,7 +2,7 @@
2 2
   <div class="wrap">
3 3
     <div class="page">
4 4
       <div class="logo">
5
-        <img style="width: 300px; height: 35px" src="@/assets/logo.png" />
5
+        <img style="width: 500px;" src="@/assets/logo.png" />
6 6
       </div>
7 7
       <div class="page-main">
8 8
         <home-meun/>
@@ -80,7 +80,7 @@
80 80
   const homeLonghairRef = ref(null)
81 81
   const homeActivityRef = ref(null)
82 82
   const chatFlag = ref(false)
83
-  const apiUrl = ref('http://39.164.159.226:8100/')
83
+  const apiUrl = process.env.VUE_APP_BASE_API_URL
84 84
   const qrCodeUrl = ref('')
85 85
   const companyData = ref({})
86 86
   onMounted(()=>{
@@ -177,8 +177,8 @@
177 177
       position: relative;
178 178
       .logo{
179 179
         position: absolute;
180
-        left: 0px;
181
-        top: 36px;
180
+        left: -120px;
181
+        top: -20px;
182 182
         z-index: 1;
183 183
       }
184 184
       .page-main{

+ 1 - 1
src/views/home/home-main.vue

@@ -4,7 +4,7 @@
4 4
             <el-col :span="8" v-for="(item, index) in mainData" :key="index" style="position: relative; margin-bottom: 15px;">
5 5
                 <el-card style="background-color: #000; border: 1px solid #5e5b57;">
6 6
                     <el-image 
7
-                     style="width: 100%;" 
7
+                     style="width: 100%; height: 260px;" 
8 8
                      :src="apiUrl+ Object.values(item.contentFileInfo)[0]" 
9 9
                      fit="fill" />
10 10
                     <div class="posText">

+ 1 - 1
src/views/home/home-product.vue

@@ -38,7 +38,7 @@
38 38
     import { useRoute,onBeforeRouteUpdate } from 'vue-router'
39 39
     import request from '../../utils/request'
40 40
     const route = useRoute()
41
-    const apiUrl = ref('http://39.164.159.226:8100/')
41
+    const apiUrl = process.env.VUE_APP_BASE_API_URL
42 42
     const productData = ref([])
43 43
     const productId = ref('')
44 44
     onBeforeRouteUpdate((res) => {