index.vue 1.53 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;
潘际乾 committed
40 41 42 43
}
#business_container .eContainer, #business_container .eContainer-search{
  box-sizing: border-box;
  height: 100%;
Wuyuqiu committed
44
  width: 85%;
潘际乾 committed
45 46
  margin: 0 auto;
  padding-top: 40px;
潘际乾 committed
47 48
}
#business_container .eContainer {
潘际乾 committed
49 50
  background-color: #ffffff;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 12%), 0 0 3px 0 rgb(0 0 0 / 4%);
51
}
潘际乾 committed
52 53 54 55 56 57 58 59 60 61
#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;
}
潘际乾 committed
62
#business_container .eibs-tab {
潘际乾 committed
63
  padding: 40px;
潘际乾 committed
64
}
潘际乾 committed
65
#business_container .eibs::after, #business_container .eibs-tab::after {
潘际乾 committed
66 67 68 69
  content: "";
  display: block;
  clear: both;
}
fukai committed
70
</style>