From b0bc928022a8d5d2df389199c2a59a798aa8624c Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Sat, 09 Nov 2024 15:52:59 +0800
Subject: [PATCH] 优化

---
 src/views/companyInfo/components/centerContainer.vue |   37 +++++++++++++++++++++++++------------
 1 files changed, 25 insertions(+), 12 deletions(-)

diff --git a/src/views/companyInfo/components/centerContainer.vue b/src/views/companyInfo/components/centerContainer.vue
index 2f98ca5..b889c1d 100644
--- a/src/views/companyInfo/components/centerContainer.vue
+++ b/src/views/companyInfo/components/centerContainer.vue
@@ -9,6 +9,9 @@
  * Copyright (c) 2024 by shuishen, All Rights Reserved. 
 -->
 <script setup>
+import { getAssetsFile } from 'utils/utils'
+const loginOutBg = getAssetsFile('back.png', '/images')
+
 import { useRouter, useRoute } from 'vue-router'
 let router = useRouter()
 import { useRouterStore } from 'store/router'
@@ -39,13 +42,17 @@
 
 <template>
   <div class="title">{{ data.companyInfo.name }}</div>
-  <div class="menu-box">
+  <!-- <div class="menu-box">
     <div :class="{ on: buttonIndex == 1 }" class="sub-menu" @click="handleClick(1)"> 基本信息 </div>
     <div :class="{ on: buttonIndex == 2 }" class="sub-menu" @click="handleClick(2)"> 应急物质 </div>
     <div :class="{ on: buttonIndex == 3 }" class="sub-menu" @click="handleClick(3)"> 救援队伍 </div>
-  </div>
+  </div> -->
   <div class="back-hoem">
-    <div class="center-info cursor-p" @click="goHome()">返回首页 </div>
+    <!-- <div class="center-info cursor-p" @click="goHome()">返回</div> -->
+    <div class="center-info cursor-p" @click="goHome()">
+      <img :src="loginOutBg" class="img" />
+      <span>返回</span>
+    </div>
   </div>
 </template>
 
@@ -102,20 +109,26 @@
   right: 30px;
 
   .center-info {
-    width: 120px;
-    height: 40px;
-    line-height: 40px;
-    border: none;
-    border-radius: 20px;
+    display: flex;
+    align-items: center;
+    justify-content: center;
     color: #fff;
-    background-color: transparent;
-    font-size: 20px;
-    text-align: center;
-    background-image: url(/images/mode-tab.png);
+    font-size: 13px;
+  }
+
+  .center-info span {
+    margin-right: 10px;
+  }
+
+  .img {
+    width: 36px;
+    height: 36px;
+    // margin-right: 5px;
   }
 
   .center-info:hover {
     background-color: #3c5e8f;
+    border-radius: 20px;
   }
 }
 </style>

--
Gitblit v1.9.3