index.vue 2.27 KB
Newer Older
fukai committed
1
<template>
2 3 4 5 6 7 8
  <section id="business_container">
    <transition name="fade-transform" mode="out-in">
      <keep-alive :include="cachedViews">
        <router-view :key="key" />
      </keep-alive>
    </transition>
  </section>
fukai committed
9 10 11 12
</template>

<script>
export default {
潘际乾 committed
13
  name: "Business",
潘际乾 committed
14 15 16 17 18 19 20 21 22
  watch: {
    $route() {
      if (this.$route.path.startsWith("/review")) {
        this.$store.commit("setMode", "display");
      } else {
        this.$store.commit("setMode", "normal");
      }
    },
  },
23 24 25 26 27 28 29 30 31 32 33 34
  created: () => {
    console.log("进入业务交易界面");
  },
  computed: {
    cachedViews() {
      return this.$store.state.TagsView.cachedViews;
    },
    key() {
      return this.$route.path;
    },
  },
};
fukai committed
35 36 37
</script>

<style>
38
#business_container {
潘际乾 committed
39
  flex: 1;
Wuyuqiu committed
40
  box-shadow: 0 1px 15px 0 rgb(0 0 0 / 12%), 0 0 3px 0 rgb(0 0 0 / 4%);
潘际乾 committed
41 42 43 44
}
#business_container .eContainer, #business_container .eContainer-search{
  box-sizing: border-box;
  height: 100%;
Wuyuqiu committed
45
  width: 85%;
潘际乾 committed
46 47
  margin: 0 auto;
  padding-top: 40px;
潘际乾 committed
48
}
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88



@media screen and (min-width: 2561px) {
    
#business_container .eContainer {
     width: 85%;
    }
}

@media screen and (min-width: 1921px) and (max-width: 2560px) {
   
    #business_container .eContainer {
     width: 90%;
    }
}

@media screen and (min-width: 1441px) and (max-width: 1920px) {
   
#business_container .eContainer {
     width: 93%;
    }
}

@media screen and (min-width: 1200px) and (max-width: 1440px) {
   
#business_container .eContainer {
     width: 95%;
    }
}

@media screen and (max-width: 1199px) {
   
#business_container .eContainer {
     width: 100%;
    }
}



潘际乾 committed
89
#business_container .eContainer {
潘际乾 committed
90
  background-color: #ffffff;
Wuyuqiu committed
91
  box-shadow: 0 1px 15px 0 rgb(0 0 0 / 12%), 0 0 3px 0 rgb(0 0 0 / 4%);
92
}
潘际乾 committed
93 94 95 96 97 98 99 100 101 102
#business_container .eContainer .eContainer, 
#business_container .eContainer .eContainer-search, 
#business_container .eContainer-search .eContainer, 
#business_container .eContainer-search .eContainer-search{
  width: 100%;
  margin: 0;
  padding-top: 0;
  background-color: unset;
  box-shadow: unset;
}
jianglong committed
103
/*
潘际乾 committed
104
#business_container .eibs-tab {
潘际乾 committed
105
  padding: 40px;
潘际乾 committed
106
}
jianglong committed
107
*/
潘际乾 committed
108
#business_container .eibs::before, #business_container .eibs-tab::before,
潘际乾 committed
109
#business_container .eibs::after, #business_container .eibs-tab::after {
潘际乾 committed
110 111 112 113
  content: "";
  display: block;
  clear: both;
}
fukai committed
114
</style>