1
PC-20250623MANY\Administrator
2025-08-21 25c1d10f03df05104e323494fefd5af1e94c98f7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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
89
90
91
92
93
94
95
96
97
98
99
100
101
<template>
  <div id="app">
    <myHead></myHead>
 
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
 
    <router-view v-if="!$route.meta.keepAlive"></router-view>
 
    <div class="kf" @click="aRouter1">
      <img src="@/assets/images/kf.png" alt="" />
    </div>
  </div>
</template>
 
<script>
import myHead from "@/components/myHead.vue";
import * as api from "@/axios/api.js";
export default {
  name: "App",
  components: {
    myHead,
  },
  data() {
    return {
      onlineService: "",
    };
  },
  created() {
    // this.getInfoSite();
  },
  methods: {
    // 跳转客服页面
    aRouter1() {
      // window.open(this.onlineService);
      this.$message({
        message: this.$t("kf1"),
        type: "warning",
      });
    },
    // 获取客服地址
    async getInfoSite() {
      let data = await api.getInfoSite();
      if (data.status === 0) {
        this.onlineService = data.data.onlineService;
      }
      // else {
      //   this.$store.commit("elAlertShow", {
      //     elAlertShow: true,
      //     elAlertText: data.msg
      //   });
      // }
    },
  },
};
</script>
 
<style lang="scss">
@import "./assets/style/reset.scss";
/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
  width: 8px; /*滚动条宽度*/
  height: 8px; /*滚动条高度*/
}
 
/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
  // -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 10px; /*滚动条的背景区域的圆角*/
  background-color: rgba($color: #fff, $alpha: 0); /*滚动条的背景颜色*/
}
 
/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
  border-radius: 10px; /*滚动条的圆角*/
  // -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: rgba($color: #ccc, $alpha: 0.5); /*滚动条的背景颜色*/
}
 
#app {
  display: flex;
  flex-direction: column;
  height: 100%;
}
 
.kf {
  width: 48px;
  height: 48px;
  position: fixed;
  bottom: 16px;
  right: 16px;
  cursor: pointer;
 
  img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
  }
}
</style>