dedsudiyu 1 ヶ月 前
コミット
4166e0b784
共有4 個のファイルを変更した64 個の追加12 個の削除を含む
  1. 10 10
      .env.production
  2. 4 2
      src/App.vue
  3. 5 0
      src/router/index.js
  4. 45 0
      src/views/demo.vue

+ 10 - 10
.env.production

@@ -17,31 +17,31 @@ VUE_APP_RENEWAL_ENCODING = ''
 # ####################外网接口配置####################
 
 # 项目内网地址
-# VUE_APP_BASE_API = 'labcontrol.nwafu.edu.cn/api'
-VUE_APP_BASE_API = '192.168.1.8/api'
+VUE_APP_BASE_API = 'labcontrol.nwafu.edu.cn/api'
+# VUE_APP_BASE_API = '192.168.1.8/api'
 
 # ####################内网接口配置####################
 
 # 项目外网地址
-# VUE_APP_BASE_LOCAL_API = '172.16.0.65/api'
-VUE_APP_BASE_LOCAL_API = '192.168.1.8/api'
+VUE_APP_BASE_LOCAL_API = '172.16.0.65/api'
+# VUE_APP_BASE_LOCAL_API = '192.168.1.8/api'
 
 # ####################外网接口配置-YiLi####################
 
 # YiLi外网地址
-# VUE_APP_BASE_API_YILI = 'labcontrol.nwafu.edu.cn/reserve'
-VUE_APP_BASE_API_YILI = '192.168.1.8:8128'
+VUE_APP_BASE_API_YILI = 'labcontrol.nwafu.edu.cn/reserve'
+# VUE_APP_BASE_API_YILI = '192.168.1.8:8128'
 
 # ####################内网接口配置-YiLi####################
 
 # YiLi内网地址
-# VUE_APP_BASE_LOCAL_API_YILI = '172.16.0.65/reserve'
-VUE_APP_BASE_LOCAL_API_YILI = '192.168.1.8:8128'
+VUE_APP_BASE_LOCAL_API_YILI = '172.16.0.65/reserve'
+# VUE_APP_BASE_LOCAL_API_YILI = '192.168.1.8:8128'
 
 # ####################楼层ID####################
 
-# VUE_APP_FLOOR_ID_1 = '1962342024040361985'
-VUE_APP_FLOOR_ID_1 = '1961317181757542401'
+VUE_APP_FLOOR_ID_1 = '1962342024040361985'
+# VUE_APP_FLOOR_ID_1 = '1961317181757542401'
 VUE_APP_FLOOR_ID_2 = '1962342051181703169'
 VUE_APP_FLOOR_ID_3 = '1962342090926927873'
 VUE_APP_FLOOR_ID_4 = '1962342148367921153'

+ 4 - 2
src/App.vue

@@ -34,8 +34,10 @@
 </script>
 <style>
   #app{
-    width: 3072px;
-    height: 1660px;
+    /*width: 3072px;*/
+    /*height: 1660px;*/
+    width: 3840px;
+    height: 2160px;
     display: flex;
     flex:1;
     overflow: hidden;

+ 5 - 0
src/router/index.js

@@ -13,6 +13,11 @@ export const constantRoutes = [
     component: (resolve) => require(['@/views/home'], resolve),
     hidden: true
   },
+  {
+    path: '/demo',
+    component: (resolve) => require(['@/views/demo'], resolve),
+    hidden: true
+  },
 ]
 
 export default new Router({

+ 45 - 0
src/views/demo.vue

@@ -0,0 +1,45 @@
+<template>
+  <div class="demo">
+    <div class="for-box" v-for="index in 9999" :key="index">{{index}}</div>
+  </div>
+</template>
+<script>
+  export default {
+    name: 'demo',
+    data () {
+      return {
+
+      }
+    },
+    created(){
+
+    },
+    mounted(){
+
+    },
+    methods:{
+
+    },
+  }
+</script>
+<style scoped lang="scss">
+  .demo{
+    font-size:0;
+    .for-box{
+      width:256px;
+      height:256px;
+      display: inline-block;
+      overflow: hidden;
+      line-height: 256px;
+      text-align: center;
+      color:#fff;
+      font-size:28px;
+    }
+    .for-box:nth-child(odd){
+      background-color: #8a6d3b;
+    }
+    .for-box:nth-child(even){
+      background-color: #13ce66;
+    }
+  }
+</style>