refactor: 更新样式类名和导航路径

This commit is contained in:
wangqiao
2025-08-30 12:57:05 +08:00
parent 9675261481
commit 469900d3ac
2 changed files with 17 additions and 17 deletions

View File

@ -1,20 +1,20 @@
<template>
<div>
<header class="h-106px">
<div class="mx-a ml--250px h-full flex items-center justify-center">
<header class="h-[106px]">
<div class="mx-a ml-[-250px] h-full flex items-center justify-center">
<!-- Logo区域 -->
<div class="h-100% flex cursor-pointer items-center" @click="navigateTo('/')">
<img src="~/assets/images/logo5.png" alt="图夕夕" class="h-51px w-182px" />
<div class="h-[100%] flex cursor-pointer items-center" @click="navigateTo('/')">
<img src="~/assets/images/logo5.png" alt="图夕夕" class="h-[51px] w-[182px]" />
</div>
<!-- 搜索区域 -->
<div class="relative ml-49px w-647px px4 p-r-0px!">
<div class="search-input relative w-100%">
<div class="relative ml-[49px] w-[647px] px-4 p-r-[0px]!">
<div class="search-input relative w-[100%]">
<el-input
v-model="searchQuery"
type="text"
placeholder="搜一搜"
:prefix-icon="Search"
class="no-right-border box-border h-40px w-100% rounded-bl-4px rounded-br-0px rounded-tl-4px rounded-tr-0px bg-[#F8F8F8] text-14px outline-#999"
class="no-right-border box-border h-[40px] w-[100%] rounded-bl-[4px] rounded-br-[0px] rounded-tl-[4px] rounded-tr-[0px] bg-[#F8F8F8] text-[14px] outline-[#999]"
@focus="handleHot(), (showHotList = true)"
@input="handleInput"
/>
@ -23,32 +23,32 @@
<div
v-if="showHotList"
v-loading="loading"
class="absolute z-100 w-625px border-width-1px border-color-#1A65FF rounded-bl-4px rounded-br-4px rounded-tl-0px rounded-tr-0px border-solid bg-[#fff] pa-10px"
class="absolute z-100 w-[625px] border-width-[1px] border-color-[#1A65FF] rounded-bl-[4px] rounded-br-[4px] rounded-tl-[0px] rounded-tr-[0px] border-solid bg-[#fff] pa-[10px]"
>
<!-- 这里放置热门列表的内容 -->
<ul class="flex flex-col gap-6px">
<ul class="flex flex-col gap-[6px]">
<li
v-for="(item, index) in hotItems"
:key="index"
class="flex flex-row cursor-pointer items-center justify-between text-13px"
class="flex flex-row cursor-pointer items-center justify-between text-[13px]"
@click="handleHotItem(item)"
>
<span class="color-#333333">{{ item.projectTypeName }}</span>
<span v-if="item.count" class="color-#999999">{{ item.count }}份图纸</span>
<span class="color-[#333333]">{{ item.projectTypeName }}</span>
<span v-if="item.count" class="color-[#999999]">{{ item.count }}份图纸</span>
</li>
</ul>
<div v-if="!hotItems.length" class="text-12px color-#999">无数据</div>
<div v-if="!hotItems.length" class="text-[12px] color-[#999]">无数据</div>
</div>
</div>
<!-- 按钮区域 -->
<div class="flex items-center">
<button
class="h-40px w-111px cursor-pointer border-width-1px border-color-#1A65FF rounded-bl-0px rounded-br-4px rounded-tl-0px rounded-tr-4px border-none border-solid text-center text-14px color-#fff bg-#1A65FF!"
class="h-[40px] w-[111px] cursor-pointer border-width-[1px] border-color-[#1A65FF] rounded-bl-[0px] rounded-br-[4px] rounded-tl-[0px] rounded-tr-[4px] border-none border-solid text-center text-[14px] color-[#fff] !bg-[#1A65FF]"
>
搜索
</button>
<button
class="m-l-16px h-40px w-111px cursor-pointer border-width-1px border-color-#E7B03B rounded-bl-6px rounded-br-6px rounded-tl-4px rounded-tr-6px border-none border-solid text-14px color-#fff bg-#E7B03B!"
class="m-l-[16px] h-[40px] w-[111px] cursor-pointer border-width-[1px] border-color-[#E7B03B] rounded-bl-[6px] rounded-br-[6px] rounded-tl-[4px] rounded-tr-[6px] border-none border-solid text-[14px] color-[#fff] !bg-[#E7B03B]"
@click="handleUpload"
>
上传图纸
@ -76,7 +76,7 @@
// 是否登录
if (!userStore.token) return ElMessage.error('请先登录')
// 新开窗口 用router跳转 新窗口打开
navigateTo('/upnew/drawe')
navigateTo('/upnew')
}
const loading = ref(false)

View File

@ -124,7 +124,7 @@
// 发布图纸
const handleDrawe = () => {
navigateTo('/upnew/drawe') // 修改为在新窗口打开
navigateTo('/upnew') // 修改为在新窗口打开
}
// 推出登录