see999 пре 3 година
родитељ
комит
5fcd154eba
3 измењених фајлова са 149 додато и 4 уклоњено
  1. 0 1
      src/App.vue
  2. 8 0
      src/api/login.js
  3. 141 3
      src/views/layout/components/Navbar.vue

+ 0 - 1
src/App.vue Прегледај датотеку

@@ -43,7 +43,6 @@ export default {
43 43
         this.isRouterAlive = true
44 44
       })
45 45
     },
46
-
47 46
   },
48 47
   watch:{
49 48
   $route(to,from){

+ 8 - 0
src/api/login.js Прегледај датотеку

@@ -27,3 +27,11 @@ export function getUserInfo(token) {
27 27
   })
28 28
 }
29 29
 
30
+export function getConnect(token) {
31
+  return request({
32
+    url: '/api/patients/banner',
33
+    method: 'get',
34
+    params: { token }
35
+  })
36
+}
37
+

+ 141 - 3
src/views/layout/components/Navbar.vue Прегледај датотеку

@@ -123,8 +123,35 @@
123 123
         ></modify-org-info-dialog>
124 124
       </div>
125 125
       <div>
126
-        <i class="el-icon-question"></i>
127
-        <a href="https://sso.kuyicloud.com/help" target="_blank">帮助中心</a>
126
+        <!-- <i class="el-icon-question"></i>
127
+        <a href="https://sso.kuyicloud.com/help" target="_blank">帮助中心</a> -->
128
+        <div class="fixedBox">
129
+          <div class="fixed-item" @mouseover="mouseOver" @mouseleave="leave">
130
+            <i class="el-icon-chat-line-round"></i>
131
+            <div class="fixed-text">联系客户经理</div>
132
+            <div class="fixed-wrap" v-show="wrap1">
133
+              <div class="fixed-inner">
134
+                <div class="fixed-inner-item">您的专属客户经理:{{ information.name }}</div>
135
+                <div class="fixed-inner-item">电话:{{ information.phone }}</div>
136
+                <div class="fixed-inner-item">微信:{{ information.wechat }}</div>
137
+                <div class="fixed-inner-item">QQ:{{ information.qqchat }}</div>
138
+                <div class="fixed-inner-item">邮箱:{{ information.email }}</div>
139
+                <div class="fixed-inner-triangle"></div>
140
+              </div>
141
+            </div>
142
+          </div>
143
+          <div class="fixed-item" @mouseover="mouseOver1" @mouseleave="leave1">
144
+            <i class="el-icon-full-screen"></i>
145
+            <div class="fixed-text">微信联系</div>
146
+            <div class="fixed-wrap" v-show="wrap2">
147
+              <div class="fixed-inner">
148
+                <img :src="information.wechat_link" alt="">
149
+                <div>扫码加微信</div>
150
+                <div class="fixed-inner-triangle"></div>
151
+              </div>
152
+            </div>
153
+          </div>
154
+        </div>
128 155
       </div>
129 156
     </div>
130 157
   </div>
@@ -145,6 +172,7 @@ import {
145 172
   removeAdminUserInfoCache
146 173
 } from "@/utils/admin_info_cache";
147 174
 import { getOrgs, changeOrg } from "@/api/config";
175
+import { getConnect } from "@/api/login";
148 176
 export default {
149 177
   inject: ["reload"],
150 178
   data() {
@@ -152,7 +180,10 @@ export default {
152 180
       orgs: [],
153 181
       org_id: this.$store.getters.xt_user.org.id,
154 182
       org_name: this.$store.getters.xt_user.org.org_name,
155
-      is_super_admin: 0
183
+      is_super_admin: 0,
184
+      wrap1:false,
185
+      wrap2:false,
186
+      information:{}
156 187
       // scrm_role_exist: $store.getters.xt_user.scrm_role_exist
157 188
     };
158 189
   },
@@ -324,10 +355,29 @@ export default {
324 355
       }).catch(error => {
325 356
           // window.location.href = error.response.data.redirect;
326 357
         });
358
+    },
359
+    mouseOver() {
360
+      this.wrap1 = true;
361
+    },
362
+    leave() {
363
+      this.wrap1 = false;
364
+    },
365
+    mouseOver1() {
366
+      this.wrap2 = true;
367
+    },
368
+    leave1() {
369
+      this.wrap2 = false;
370
+    },
371
+    getConnect(){
372
+      getConnect().then(res => {
373
+        console.log(res)
374
+        this.information = res.data.data.information
375
+      })
327 376
     }
328 377
   },
329 378
   
330 379
   created() {
380
+    this.getConnect()
331 381
     getOrgs().then(response => {
332 382
       if (response.data.state === 1) {
333 383
         this.orgs = response.data.data.orgs;
@@ -571,6 +621,7 @@ export default {
571 621
 .v-modal {
572 622
   z-index: 9999 !important;
573 623
 }
624
+
574 625
 </style>
575 626
 
576 627
 <style lang="scss">
@@ -589,4 +640,91 @@ export default {
589 640
     color: #000;
590 641
   }
591 642
 }
643
+
644
+</style>
645
+<style>
646
+.fixedBox{
647
+   /* position: fixed;
648
+   right: 10px;
649
+   top: 60%;
650
+   -webkit-box-shadow: 0 5px 10px 0 rgb(0 0 0 / 10%);
651
+   -moz-box-shadow: 0 5px 10px 0 rgba(0,0,0,.1);
652
+   box-shadow: 0 5px 10px 0 rgb(0 0 0 / 10%);
653
+   background-color: #fff;
654
+   color: #000;
655
+   z-index: 998; */
656
+   display: flex;
657
+}
658
+.fixed-item{
659
+  width: 100%;
660
+  padding: 20px 10px;
661
+  -webkit-box-sizing: border-box;
662
+  -moz-box-sizing: border-box;
663
+  box-sizing: border-box;
664
+  position: relative;
665
+  cursor: pointer;
666
+  text-align: center;
667
+  display: flex;
668
+  align-items: center;
669
+}
670
+.fixed-text{
671
+  display: block;
672
+  width: 90px;
673
+  left: 0;
674
+  top: 0;
675
+  margin: auto;
676
+  color: #000;
677
+  line-height: 16px;
678
+  font-size: 13px;
679
+  -webkit-box-sizing: content-box;
680
+  -moz-box-sizing: content-box;
681
+  box-sizing: content-box;
682
+  text-align: center;
683
+}
684
+.fixed-wrap{
685
+  position: absolute;
686
+  right: 0;
687
+  top: 160px;
688
+  -webkit-transform: translateY(-50%);
689
+  -moz-transform: translateY(-50%);
690
+  -ms-transform: translateY(-50%);
691
+  transform: translateY(-50%);
692
+  background-color: #409EFF;
693
+  color: #FFF;
694
+  z-index: 9999999;
695
+  border-radius: 4px;
696
+}
697
+.fixed-inner{
698
+  width: 308px;
699
+  padding: 9px 0;
700
+  box-shadow: 0 5px 10px 0 rgb(0 0 0 / 10%);
701
+}
702
+.fixed-inner-item{
703
+  padding: 15px;
704
+  text-align: left;
705
+}
706
+.fixed-inner-triangle{
707
+  position: absolute;
708
+  right: 15%;
709
+  top: -10px;
710
+  -webkit-transform: rotate(-45deg) translateY(-50%);
711
+  -moz-transform: rotate(-45deg) translateY(-50%);
712
+  -ms-transform: rotate(-45deg) translateY(-50%);
713
+  transform: rotate(-135deg) translateY(-50%);
714
+  width: 12px;
715
+  height: 12px;
716
+  border-color: transparent #409EFF #409EFF transparent;
717
+  border-style: solid;
718
+  border-width: 6px;
719
+  background: transparent;
720
+  -webkit-box-shadow: 5px 5px 10px 0 rgb(0 0 0 / 10%);
721
+  -moz-box-shadow: 5px 5px 10px 0 rgba(0,0,0,.1);
722
+  box-shadow: 5px 5px 10px 0 rgb(0 0 0 / 10%);
723
+  -webkit-box-sizing: border-box;
724
+  -moz-box-sizing: border-box;
725
+  box-sizing: border-box;
726
+}
727
+.fixed-inner img{
728
+  height: 160px;
729
+}
592 730
 </style>