From c819024e241b9f7c54cc3786373ad0d2998f2190 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期五, 05 五月 2023 08:55:46 +0800
Subject: [PATCH] 修改

---
 src/views/layout/components/Navbar.vue |   38 ++++++++++++++++++++------------------
 1 files changed, 20 insertions(+), 18 deletions(-)

diff --git a/src/views/layout/components/Navbar.vue b/src/views/layout/components/Navbar.vue
index 870bb71..fd58447 100644
--- a/src/views/layout/components/Navbar.vue
+++ b/src/views/layout/components/Navbar.vue
@@ -7,7 +7,7 @@
       <template v-if="device!=='mobile'">
         <screenfull class="right-menu-item hover-effect" />
       </template>
-      <span v-if="appShow" style="color: white" @click="downApp">APP下载</span>
+<!--      <span v-if="appShow" style="color: white" @click="downApp">APP下载</span>-->
 <!--      <el-popover-->
 <!--        placement="right"-->
 <!--        trigger="hover">-->
@@ -34,12 +34,12 @@
       </el-dropdown>
     </div>
 
-    <el-dialog :visible.sync="appDialogVisible"
-               :modal-append-to-body="false" :close-on-click-modal="false"
-               width="320px"
-    title="监管APP安卓版浏览器扫码下载">
-        <div id="appcode" style="height: 200px;width: 200px"/>
-    </el-dialog>
+<!--    <el-dialog :visible.sync="appDialogVisible"-->
+<!--               :modal-append-to-body="false" :close-on-click-modal="false"-->
+<!--               width="320px"-->
+<!--    title="APP安卓版浏览器扫码下载">-->
+<!--        <div id="appcode" style="height: 200px;width: 200px"/>-->
+<!--    </el-dialog>-->
   </div>
 </template>
 
@@ -79,6 +79,7 @@
   },
   data() {
     return {
+      prefixUrl:process.env.IMG_API,
       warnBJList: [],
       warnBJVisible: false,
       pageSize: 10,
@@ -124,20 +125,20 @@
   methods: {
      getAppCode(){
          const roles = this.roles
-         for (let role in roles){
-             if(roles[role].name == '生产企业' ||
-                 roles[role].name == '销售企业'){
-                 this.appShow = false;
-             }
-         }
+         // for (let role in roles){
+         //     if(roles[role].name == '生产企业' ||
+         //         roles[role].name == '销售企业'){
+         //         this.appShow = false;
+         //     }
+         // }
          const _this = this
          const params = {}
-         params['filetype'] = "监管"
+         params['filetype'] = "众泰APP"
          newAppFile(params).then(response => {
              const res = response.data;
              if (res.code == 200) {
                  const result = res.result;
-                 _this.appCode = result.fileurl
+                 _this.appCode = this.prefixUrl + result.fileurl
              }
          }).catch(error => {
          })
@@ -175,12 +176,14 @@
 </script>
 <style rel="stylesheet/scss" lang="scss" scoped>
 .navbar {
-  height: 60px;
+  height: 80px;
   position: fixed;
   z-index: 1000;
   width: 100%;
   background-color: rgba(3,78,162,1);;
   overflow: hidden;
+    box-shadow: 0 3px 8px rgba(3,78,162,.6);
+
   .hamburger-container {
     line-height: 46px;
     height: 100%;
@@ -205,7 +208,7 @@
   .right-menu {
     float: right;
     height: 100%;
-    line-height: 50px;
+    line-height: 80px;
 
     &:focus {
       outline: none;
@@ -233,7 +236,6 @@
       margin-right: 30px;
 
       .avatar-wrapper {
-        margin-top: 5px;
         position: relative;
 
         .user-avatar {

--
Gitblit v1.9.2