代码优化
This commit is contained in:
parent
c319692a07
commit
391c6fefcd
|
|
@ -32,7 +32,6 @@ declare module 'vue' {
|
||||||
ElOption: typeof import('element-plus/es')['ElOption']
|
ElOption: typeof import('element-plus/es')['ElOption']
|
||||||
ElPagination: typeof import('element-plus/es')['ElPagination']
|
ElPagination: typeof import('element-plus/es')['ElPagination']
|
||||||
ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm']
|
ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm']
|
||||||
ElPopover: typeof import('element-plus/es')['ElPopover']
|
|
||||||
ElProgress: typeof import('element-plus/es')['ElProgress']
|
ElProgress: typeof import('element-plus/es')['ElProgress']
|
||||||
ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
|
ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
|
||||||
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
|
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 2.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
|
|
@ -4,6 +4,7 @@ import { mainStore } from 'store/main'
|
||||||
import { useStore } from 'store/user'
|
import { useStore } from 'store/user'
|
||||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||||
import { getHotSearchListApi } from '../http/api/home/index'
|
import { getHotSearchListApi } from '../http/api/home/index'
|
||||||
|
import imgSrc from '@/assets/img/logo.png'
|
||||||
const store: any = mainStore()
|
const store: any = mainStore()
|
||||||
const userStore = useStore()
|
const userStore = useStore()
|
||||||
|
|
||||||
|
|
@ -204,11 +205,17 @@ const onCarts = () => {
|
||||||
<!-- 中间logo 部分 -->
|
<!-- 中间logo 部分 -->
|
||||||
|
|
||||||
<div class="logo-ipt-container wapper">
|
<div class="logo-ipt-container wapper">
|
||||||
<img
|
<!-- <img
|
||||||
src="@/assets/img/home//机械化装备平台.png"
|
src="@/assets/img/logo.png"
|
||||||
alt="首页"
|
alt="首页"
|
||||||
title="首页"
|
title="首页"
|
||||||
@click="$router.push('/home')"
|
@click="$router.push('/home')"
|
||||||
|
/> -->
|
||||||
|
|
||||||
|
<el-image
|
||||||
|
style="width: 190px; cursor: pointer; margin-left: 60px"
|
||||||
|
:src="imgSrc"
|
||||||
|
fit="contain"
|
||||||
/>
|
/>
|
||||||
<input
|
<input
|
||||||
:placeholder="placeholderText"
|
:placeholder="placeholderText"
|
||||||
|
|
@ -368,8 +375,9 @@ const onCarts = () => {
|
||||||
padding: 30px 0;
|
padding: 30px 0;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 210px;
|
margin-left: 38px;
|
||||||
height: 48px;
|
width: 160px;
|
||||||
|
height: 60px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,8 @@ const userInfo: any = computed(() => {
|
||||||
return mainStore().userInfo
|
return mainStore().userInfo
|
||||||
})
|
})
|
||||||
|
|
||||||
|
import imgSrc from '@/assets/img/logo.png'
|
||||||
|
|
||||||
// 求租按钮
|
// 求租按钮
|
||||||
// const seekingRentClick = () => {
|
// const seekingRentClick = () => {
|
||||||
// store.editcurrentMenuItem('baseInfo')
|
// store.editcurrentMenuItem('baseInfo')
|
||||||
|
|
@ -85,7 +87,13 @@ const activeMenuItem = computed(() => {
|
||||||
<Header />
|
<Header />
|
||||||
<div class="app-container" id="user-container">
|
<div class="app-container" id="user-container">
|
||||||
<div class="left-menu">
|
<div class="left-menu">
|
||||||
<div class="logo-title" @click="$router.push({ name: 'home' })">机械化装备平台</div>
|
<div class="logo-title" @click="$router.push({ name: 'home' })">
|
||||||
|
<el-image
|
||||||
|
style="width: 100%; height: 60px; cursor: pointer"
|
||||||
|
:src="imgSrc"
|
||||||
|
fit="contain"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
<!-- <div class="pic-box">
|
<!-- <div class="pic-box">
|
||||||
<img v-if="userInfo.logoUrl" :src="userInfo.logoUrl" alt="" />
|
<img v-if="userInfo.logoUrl" :src="userInfo.logoUrl" alt="" />
|
||||||
|
|
||||||
|
|
@ -137,7 +145,7 @@ const activeMenuItem = computed(() => {
|
||||||
// margin-right: 15px;
|
// margin-right: 15px;
|
||||||
|
|
||||||
.logo-title {
|
.logo-title {
|
||||||
background-color: #1ea193;
|
// background-color: #1ea193;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue