Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c7a457ef
authored
Mar 09, 2026
by
Lin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 二手车质检平台
1 parent
3bbfa079
Pipeline
#61
for
c7a457ef
failed
in 0 seconds
Changes
41
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
41 changed files
with
2973 additions
and
107 deletions
.npmrc
apps/web/venus-usedcar/venus-usedcar-h5/.env
apps/web/venus-usedcar/venus-usedcar-h5/.env.development
apps/web/venus-usedcar/venus-usedcar-h5/.env.production
apps/web/venus-usedcar/venus-usedcar-h5/env.d.ts
apps/web/venus-usedcar/venus-usedcar-h5/index.html
apps/web/venus-usedcar/venus-usedcar-h5/index.vue
apps/web/venus-usedcar/venus-usedcar-h5/package.json
apps/web/venus-usedcar/venus-usedcar-h5/src/App.vue
apps/web/venus-usedcar/venus-usedcar-h5/src/api/index.ts
apps/web/venus-usedcar/venus-usedcar-h5/src/api/modules/car.ts
apps/web/venus-usedcar/venus-usedcar-h5/src/api/modules/user.ts
apps/web/venus-usedcar/venus-usedcar-h5/src/assets/styles/index.scss
apps/web/venus-usedcar/venus-usedcar-h5/src/assets/styles/reset.scss
apps/web/venus-usedcar/venus-usedcar-h5/src/assets/styles/variables.scss
apps/web/venus-usedcar/venus-usedcar-h5/src/auto-imports.d.ts
apps/web/venus-usedcar/venus-usedcar-h5/src/components.d.ts
apps/web/venus-usedcar/venus-usedcar-h5/src/composables/useRequest.ts
apps/web/venus-usedcar/venus-usedcar-h5/src/config/center.ts
apps/web/venus-usedcar/venus-usedcar-h5/src/config/constants.ts
apps/web/venus-usedcar/venus-usedcar-h5/src/config/index.ts
apps/web/venus-usedcar/venus-usedcar-h5/src/layouts/index.vue
apps/web/venus-usedcar/venus-usedcar-h5/src/main.ts
apps/web/venus-usedcar/venus-usedcar-h5/src/router/index.ts
apps/web/venus-usedcar/venus-usedcar-h5/src/router/routes.ts
apps/web/venus-usedcar/venus-usedcar-h5/src/stores/index.ts
apps/web/venus-usedcar/venus-usedcar-h5/src/stores/modules/app.ts
apps/web/venus-usedcar/venus-usedcar-h5/src/stores/modules/user.ts
apps/web/venus-usedcar/venus-usedcar-h5/src/types/api.ts
apps/web/venus-usedcar/venus-usedcar-h5/src/types/global.d.ts
apps/web/venus-usedcar/venus-usedcar-h5/src/utils/index.ts
apps/web/venus-usedcar/venus-usedcar-h5/src/utils/request.ts
apps/web/venus-usedcar/venus-usedcar-h5/src/views/404/index.vue
apps/web/venus-usedcar/venus-usedcar-h5/src/views/car-detail/index.vue
apps/web/venus-usedcar/venus-usedcar-h5/src/views/car-list/index.vue
apps/web/venus-usedcar/venus-usedcar-h5/src/views/home/index.vue
apps/web/venus-usedcar/venus-usedcar-h5/src/views/mine/index.vue
apps/web/venus-usedcar/venus-usedcar-h5/tsconfig.json
apps/web/venus-usedcar/venus-usedcar-h5/tsconfig.node.json
apps/web/venus-usedcar/venus-usedcar-h5/vite.config.ts
pnpm-lock.yaml
.npmrc
View file @
c7a457e
...
@@ -13,6 +13,6 @@ auto-install-peers=true
...
@@ -13,6 +13,6 @@ auto-install-peers=true
dedupe-peer-dependents=true
dedupe-peer-dependents=true
# Windows 符号链接支持配置
# Windows 符号链接支持配置
#
使用 isolated 模式,确保 workspace 包正确链接
#
hoisted 模式避免 EPERM 符号链接错误(可改为 isolated 并开启开发者模式以恢复)
node-linker=
isola
ted
node-linker=
hois
ted
enable-pre-post-scripts=true
enable-pre-post-scripts=true
apps/web/venus-usedcar/venus-usedcar-h5/.env
0 → 100644
View file @
c7a457e
VITE_APP_TITLE=二手车
VITE_APP_ENV=development
VITE_API_BASE_URL=http://localhost:3000
apps/web/venus-usedcar/venus-usedcar-h5/.env.development
0 → 100644
View file @
c7a457e
VITE_APP_TITLE=二手车(开发)
VITE_APP_ENV=development
VITE_API_BASE_URL=http://dev-api.example.com
apps/web/venus-usedcar/venus-usedcar-h5/.env.production
0 → 100644
View file @
c7a457e
VITE_APP_TITLE=二手车
VITE_APP_ENV=production
VITE_API_BASE_URL=https://api.example.com
apps/web/venus-usedcar/venus-usedcar-h5/env.d.ts
0 → 100644
View file @
c7a457e
/// <reference types="vite/client" />
interface
ImportMetaEnv
{
readonly
VITE_APP_TITLE
:
string
;
readonly
VITE_API_BASE_URL
:
string
;
readonly
VITE_APP_ENV
:
"development"
|
"staging"
|
"production"
;
}
interface
ImportMeta
{
readonly
env
:
ImportMetaEnv
;
}
apps/web/venus-usedcar/venus-usedcar-h5/index.html
0 → 100644
View file @
c7a457e
<!doctype html>
<html
lang=
"zh-CN"
>
<head>
<meta
charset=
"UTF-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover"
/>
<meta
name=
"theme-color"
content=
"#ee0a24"
/>
<meta
name=
"format-detection"
content=
"telephone=no"
/>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
/>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"default"
/>
<link
rel=
"icon"
type=
"image/svg+xml"
href=
"/favicon.svg"
/>
<title>
二手车
</title>
</head>
<body>
<div
id=
"app"
></div>
<script
type=
"module"
src=
"/src/main.ts"
></script>
</body>
</html>
apps/web/venus-usedcar/venus-usedcar-h5/index.vue
View file @
c7a457e
<!-- 此文件为项目占位文件,项目入口为 index.html + src/main.ts -->
apps/web/venus-usedcar/venus-usedcar-h5/package.json
0 → 100644
View file @
c7a457e
{
"name"
:
"@venus/venus-usedcar-h5"
,
"version"
:
"1.0.0"
,
"description"
:
"二手车H5移动端应用"
,
"private"
:
true
,
"type"
:
"module"
,
"scripts"
:
{
"dev"
:
"vite --host --port 8082"
,
"build"
:
"vue-tsc && vite build"
,
"preview"
:
"vite preview --port 8082"
,
"type-check"
:
"vue-tsc --noEmit"
},
"dependencies"
:
{
"vant"
:
"^4.9.0"
,
"axios"
:
"catalog:"
,
"pinia"
:
"catalog:"
,
"pinia-plugin-persistedstate"
:
"catalog:"
,
"glsk-toolkit"
:
"catalog:"
,
"vue"
:
"catalog:"
,
"vue-router"
:
"catalog:"
,
"@vueuse/core"
:
"catalog:"
,
"dayjs"
:
"catalog:"
},
"devDependencies"
:
{
"@vitejs/plugin-vue"
:
"catalog:"
,
"@types/node"
:
"catalog:"
,
"autoprefixer"
:
"catalog:"
,
"postcss"
:
"catalog:"
,
"postcss-px-to-viewport-8-plugin"
:
"^1.2.5"
,
"sass"
:
"catalog:"
,
"typescript"
:
"catalog:"
,
"unplugin-auto-import"
:
"catalog:"
,
"unplugin-vue-components"
:
"catalog:"
,
"vite"
:
"catalog:"
,
"vue-tsc"
:
"catalog:"
}
}
apps/web/venus-usedcar/venus-usedcar-h5/src/App.vue
0 → 100644
View file @
c7a457e
<
script
setup
lang=
"ts"
>
import
{
RouterView
}
from
"vue-router"
;
</
script
>
<
template
>
<RouterView
/>
</
template
>
<
style
lang=
"scss"
>
#app
{
width
:
100%
;
min-height
:
100vh
;
background-color
:
var
(
--color-bg-page
);
font-family
:
-apple-system
,
BlinkMacSystemFont
,
"Helvetica Neue"
,
Helvetica
,
Segoe
UI
,
Arial
,
Roboto
,
"PingFang SC"
,
"miui"
,
"Hiragino Sans GB"
,
"Microsoft Yahei"
,
sans-serif
;
}
</
style
>
apps/web/venus-usedcar/venus-usedcar-h5/src/api/index.ts
0 → 100644
View file @
c7a457e
export
*
from
"./modules/car"
;
export
*
from
"./modules/user"
;
apps/web/venus-usedcar/venus-usedcar-h5/src/api/modules/car.ts
0 → 100644
View file @
c7a457e
import
type
{
PageData
}
from
"@/utils/request"
;
import
{
get
,
post
}
from
"@/utils/request"
;
export
interface
CarItem
{
id
:
number
;
title
:
string
;
brand
:
string
;
model
:
string
;
year
:
number
;
mileage
:
number
;
price
:
number
;
city
:
string
;
coverImage
:
string
;
images
:
string
[];
transmission
:
string
;
displacement
:
string
;
color
:
string
;
createdAt
:
string
;
tags
:
string
[];
}
export
interface
CarListParams
{
page
?:
number
;
pageSize
?:
number
;
brand
?:
string
;
minPrice
?:
number
;
maxPrice
?:
number
;
city
?:
string
;
keyword
?:
string
;
sortBy
?:
"price_asc"
|
"price_desc"
|
"mileage_asc"
|
"newest"
;
}
export
interface
CarFilter
{
brands
:
Array
<
{
label
:
string
;
value
:
string
}
>
;
cities
:
Array
<
{
label
:
string
;
value
:
string
}
>
;
priceRanges
:
Array
<
{
label
:
string
;
min
:
number
;
max
:
number
}
>
;
}
export
function
getCarList
(
params
?:
CarListParams
)
{
return
get
<
PageData
<
CarItem
>>
(
"/api/cars"
,
params
as
Record
<
string
,
unknown
>
);
}
export
function
getCarDetail
(
id
:
number
|
string
)
{
return
get
<
CarItem
>
(
`/api/cars/
${
id
}
`
);
}
export
function
getCarFilters
()
{
return
get
<
CarFilter
>
(
"/api/cars/filters"
);
}
export
function
getRecommendedCars
(
limit
=
10
)
{
return
get
<
CarItem
[]
>
(
"/api/cars/recommended"
,
{
limit
});
}
export
function
collectCar
(
carId
:
number
)
{
return
post
<
void
>
(
`/api/cars/
${
carId
}
/collect`
);
}
export
function
uncollectCar
(
carId
:
number
)
{
return
post
<
void
>
(
`/api/cars/
${
carId
}
/uncollect`
);
}
apps/web/venus-usedcar/venus-usedcar-h5/src/api/modules/user.ts
0 → 100644
View file @
c7a457e
import
type
{
UserInfo
}
from
"@/stores/modules/user"
;
import
{
get
,
post
}
from
"@/utils/request"
;
export
interface
LoginParams
{
phone
:
string
;
code
:
string
;
}
export
interface
LoginResult
{
token
:
string
;
userInfo
:
UserInfo
;
}
export
function
sendSmsCode
(
phone
:
string
)
{
return
post
<
void
>
(
"/api/user/sms-code"
,
{
phone
});
}
export
function
login
(
params
:
LoginParams
)
{
return
post
<
LoginResult
>
(
"/api/user/login"
,
params
);
}
export
function
logout
()
{
return
post
<
void
>
(
"/api/user/logout"
);
}
export
function
getUserInfo
()
{
return
get
<
UserInfo
>
(
"/api/user/info"
);
}
export
function
updateUserInfo
(
data
:
Partial
<
Pick
<
UserInfo
,
"nickname"
|
"avatar"
>>
)
{
return
post
<
UserInfo
>
(
"/api/user/update"
,
data
);
}
export
function
getCollectedCars
()
{
return
get
<
number
[]
>
(
"/api/user/collected-cars"
);
}
apps/web/venus-usedcar/venus-usedcar-h5/src/assets/styles/index.scss
0 → 100644
View file @
c7a457e
@use
"./variables"
as
*
;
// ===== Vant 主题定制(通过 CSS 变量覆盖)=====
:root
{
// 主色
--van-primary-color
:
#{
$color-primary
}
;
--van-success-color
:
#{
$color-success
}
;
--van-warning-color
:
#{
$color-warning
}
;
--van-danger-color
:
#{
$color-danger
}
;
// 文字
--van-text-color
:
#{
$color-text-primary
}
;
--van-text-color-2
:
#{
$color-text-secondary
}
;
--van-text-color-3
:
#{
$color-text-disabled
}
;
// 背景
--van-background
:
#{
$color-bg-page
}
;
--van-background-2
:
#{
$color-bg-card
}
;
// 边框
--van-border-color
:
#{
$color-border
}
;
// 业务 CSS 变量
--color-primary
:
#{
$color-primary
}
;
--color-primary-light
:
#{
$color-primary-light
}
;
--color-bg-page
:
#{
$color-bg-page
}
;
--color-bg-card
:
#{
$color-bg-card
}
;
--color-text-primary
:
#{
$color-text-primary
}
;
--color-text-secondary
:
#{
$color-text-secondary
}
;
--color-border
:
#{
$color-border
}
;
--tabbar-height
:
#{
$tabbar-height
}
;
--navbar-height
:
#{
$navbar-height
}
;
--safe-area-bottom
:
#{
$safe-area-bottom
}
;
}
// ===== 滚动条隐藏(移动端) =====
*
{
scrollbar-width
:
none
;
-ms-overflow-style
:
none
;
&
:
:-
webkit-scrollbar
{
display
:
none
;
}
}
// ===== 页面容器 =====
.page-container
{
width
:
100%
;
min-height
:
100vh
;
background-color
:
var
(
--
color-bg-page
);
}
.page-content
{
padding
:
12px
;
}
// ===== 卡片 =====
.card
{
overflow
:
hidden
;
background-color
:
var
(
--
color-bg-card
);
border-radius
:
8px
;
box-shadow
:
0
1px
4px
rgb
(
0
0
0
/
6%
);
}
// ===== 分割线 =====
.divider
{
height
:
1px
;
margin
:
0
;
background-color
:
var
(
--
color-border
);
&
--vertical
{
width
:
1px
;
height
:
100%
;
margin
:
0
;
}
}
// ===== 空状态 =====
.empty-state
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
padding
:
48px
16px
;
font-size
:
$font-size-sm
;
color
:
$color-text-disabled
;
.empty-icon
{
margin-bottom
:
12px
;
font-size
:
48px
;
}
}
// ===== 带底部安全区的内容 =====
.safe-bottom
{
padding-bottom
:
calc
(
#{
$tabbar-height
}
+
env
(
safe-area-inset-bottom
));
}
// ===== 价格标签 =====
.price-tag
{
font-weight
:
700
;
color
:
$color-primary
;
.unit
{
font-size
:
$font-size-sm
;
font-weight
:
400
;
}
.amount
{
font-size
:
$font-size-xl
;
}
}
apps/web/venus-usedcar/venus-usedcar-h5/src/assets/styles/reset.scss
0 → 100644
View file @
c7a457e
*,
*
:
:
before
,
*::
after
{
box-sizing
:
border-box
;
padding
:
0
;
margin
:
0
;
-webkit-tap-highlight-color
:
transparent
;
}
html
{
font-size
:
16px
;
text-size-adjust
:
100%
;
scroll-behavior
:
smooth
;
}
body
{
padding
:
0
;
margin
:
0
;
overscroll-behavior
:
none
;
line-height
:
1
.5
;
color
:
#323233
;
background-color
:
#f7f8fa
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
}
a
{
color
:
inherit
;
text-decoration
:
none
;
-webkit-tap-highlight-color
:
transparent
;
}
img
{
display
:
block
;
max-width
:
100%
;
border
:
none
;
}
input
,
textarea
,
button
,
select
{
font-family
:
inherit
;
font-size
:
inherit
;
outline
:
none
;
background
:
none
;
border
:
none
;
}
ul
,
ol
{
list-style
:
none
;
}
// 禁用用户选择(移动端常用)
.no-select
{
user-select
:
none
;
}
// 单行省略
.ellipsis
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
// 多行省略
.ellipsis-2
{
display
:
-
webkit-box
;
overflow
:
hidden
;
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
}
.ellipsis-3
{
display
:
-
webkit-box
;
overflow
:
hidden
;
-webkit-line-clamp
:
3
;
-webkit-box-orient
:
vertical
;
}
// 全屏容器
.full-screen
{
width
:
100%
;
min-height
:
100vh
;
}
// flex 常用工具
.flex
{
display
:
flex
;
}
.flex-center
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.flex-between
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
}
.flex-col
{
display
:
flex
;
flex-direction
:
column
;
}
apps/web/venus-usedcar/venus-usedcar-h5/src/assets/styles/variables.scss
0 → 100644
View file @
c7a457e
// ===== 品牌色 =====
$color-primary
:
#1989fa
;
$color-primary-light
:
#1989fa
;
$color-primary-dark
:
#1989fa
;
// ===== 功能色 =====
$color-success
:
#07c160
;
$color-warning
:
#ff976a
;
$color-danger
:
#1989fa
;
$color-info
:
#1989fa
;
// ===== 文字色 =====
$color-text-primary
:
#323233
;
$color-text-secondary
:
#646566
;
$color-text-disabled
:
#c8c9cc
;
$color-text-placeholder
:
#969799
;
$color-text-inverse
:
#fff
;
// ===== 背景色 =====
$color-bg-page
:
#f7f8fa
;
$color-bg-card
:
#fff
;
$color-bg-overlay
:
rgb
(
0
0
0
/
50%
);
// ===== 边框色 =====
$color-border
:
#ebedf0
;
$color-border-light
:
#f2f3f5
;
// ===== 间距 =====
$spacing-xs
:
4px
;
$spacing-sm
:
8px
;
$spacing-md
:
12px
;
$spacing-base
:
16px
;
$spacing-lg
:
20px
;
$spacing-xl
:
24px
;
$spacing-xxl
:
32px
;
// ===== 字体大小 =====
$font-size-xs
:
10px
;
$font-size-sm
:
12px
;
$font-size-base
:
14px
;
$font-size-md
:
16px
;
$font-size-lg
:
18px
;
$font-size-xl
:
20px
;
$font-size-xxl
:
24px
;
// ===== 圆角 =====
$radius-sm
:
4px
;
$radius-base
:
8px
;
$radius-md
:
12px
;
$radius-lg
:
16px
;
$radius-full
:
9999px
;
// ===== 阴影 =====
$shadow-sm
:
0
1px
4px
rgb
(
0
0
0
/
8%
);
$shadow-base
:
0
2px
12px
rgb
(
0
0
0
/
10%
);
$shadow-lg
:
0
4px
20px
rgb
(
0
0
0
/
15%
);
// ===== 过渡 =====
$transition-base
:
all
0
.3s
ease
;
$transition-fast
:
all
0
.15s
ease
;
// ===== 底部安全区 =====
$safe-area-bottom
:
env
(
safe-area-inset-bottom
);
// ===== TabBar 高度 =====
$tabbar-height
:
50px
;
$navbar-height
:
46px
;
apps/web/venus-usedcar/venus-usedcar-h5/src/auto-imports.d.ts
0 → 100644
View file @
c7a457e
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// noinspection JSUnusedGlobalSymbols
// Generated by unplugin-auto-import
export
{}
declare
global
{
const
EffectScope
:
typeof
import
(
'vue'
)[
'EffectScope'
]
const
acceptHMRUpdate
:
typeof
import
(
'pinia'
)[
'acceptHMRUpdate'
]
const
asyncComputed
:
typeof
import
(
'@vueuse/core'
)[
'asyncComputed'
]
const
autoResetRef
:
typeof
import
(
'@vueuse/core'
)[
'autoResetRef'
]
const
computed
:
typeof
import
(
'vue'
)[
'computed'
]
const
computedAsync
:
typeof
import
(
'@vueuse/core'
)[
'computedAsync'
]
const
computedEager
:
typeof
import
(
'@vueuse/core'
)[
'computedEager'
]
const
computedInject
:
typeof
import
(
'@vueuse/core'
)[
'computedInject'
]
const
computedWithControl
:
typeof
import
(
'@vueuse/core'
)[
'computedWithControl'
]
const
controlledComputed
:
typeof
import
(
'@vueuse/core'
)[
'controlledComputed'
]
const
controlledRef
:
typeof
import
(
'@vueuse/core'
)[
'controlledRef'
]
const
createApp
:
typeof
import
(
'vue'
)[
'createApp'
]
const
createEventHook
:
typeof
import
(
'@vueuse/core'
)[
'createEventHook'
]
const
createGlobalState
:
typeof
import
(
'@vueuse/core'
)[
'createGlobalState'
]
const
createInjectionState
:
typeof
import
(
'@vueuse/core'
)[
'createInjectionState'
]
const
createPinia
:
typeof
import
(
'pinia'
)[
'createPinia'
]
const
createReactiveFn
:
typeof
import
(
'@vueuse/core'
)[
'createReactiveFn'
]
const
createRef
:
typeof
import
(
'@vueuse/core'
)[
'createRef'
]
const
createReusableTemplate
:
typeof
import
(
'@vueuse/core'
)[
'createReusableTemplate'
]
const
createSharedComposable
:
typeof
import
(
'@vueuse/core'
)[
'createSharedComposable'
]
const
createTemplatePromise
:
typeof
import
(
'@vueuse/core'
)[
'createTemplatePromise'
]
const
createUnrefFn
:
typeof
import
(
'@vueuse/core'
)[
'createUnrefFn'
]
const
customRef
:
typeof
import
(
'vue'
)[
'customRef'
]
const
debouncedRef
:
typeof
import
(
'@vueuse/core'
)[
'debouncedRef'
]
const
debouncedWatch
:
typeof
import
(
'@vueuse/core'
)[
'debouncedWatch'
]
const
defineAsyncComponent
:
typeof
import
(
'vue'
)[
'defineAsyncComponent'
]
const
defineComponent
:
typeof
import
(
'vue'
)[
'defineComponent'
]
const
defineStore
:
typeof
import
(
'pinia'
)[
'defineStore'
]
const
eagerComputed
:
typeof
import
(
'@vueuse/core'
)[
'eagerComputed'
]
const
effectScope
:
typeof
import
(
'vue'
)[
'effectScope'
]
const
extendRef
:
typeof
import
(
'@vueuse/core'
)[
'extendRef'
]
const
getActivePinia
:
typeof
import
(
'pinia'
)[
'getActivePinia'
]
const
getCurrentInstance
:
typeof
import
(
'vue'
)[
'getCurrentInstance'
]
const
getCurrentScope
:
typeof
import
(
'vue'
)[
'getCurrentScope'
]
const
h
:
typeof
import
(
'vue'
)[
'h'
]
const
ignorableWatch
:
typeof
import
(
'@vueuse/core'
)[
'ignorableWatch'
]
const
inject
:
typeof
import
(
'vue'
)[
'inject'
]
const
injectLocal
:
typeof
import
(
'@vueuse/core'
)[
'injectLocal'
]
const
isDefined
:
typeof
import
(
'@vueuse/core'
)[
'isDefined'
]
const
isProxy
:
typeof
import
(
'vue'
)[
'isProxy'
]
const
isReactive
:
typeof
import
(
'vue'
)[
'isReactive'
]
const
isReadonly
:
typeof
import
(
'vue'
)[
'isReadonly'
]
const
isRef
:
typeof
import
(
'vue'
)[
'isRef'
]
const
makeDestructurable
:
typeof
import
(
'@vueuse/core'
)[
'makeDestructurable'
]
const
mapActions
:
typeof
import
(
'pinia'
)[
'mapActions'
]
const
mapGetters
:
typeof
import
(
'pinia'
)[
'mapGetters'
]
const
mapState
:
typeof
import
(
'pinia'
)[
'mapState'
]
const
mapStores
:
typeof
import
(
'pinia'
)[
'mapStores'
]
const
mapWritableState
:
typeof
import
(
'pinia'
)[
'mapWritableState'
]
const
markRaw
:
typeof
import
(
'vue'
)[
'markRaw'
]
const
nextTick
:
typeof
import
(
'vue'
)[
'nextTick'
]
const
onActivated
:
typeof
import
(
'vue'
)[
'onActivated'
]
const
onBeforeMount
:
typeof
import
(
'vue'
)[
'onBeforeMount'
]
const
onBeforeRouteLeave
:
typeof
import
(
'vue-router'
)[
'onBeforeRouteLeave'
]
const
onBeforeRouteUpdate
:
typeof
import
(
'vue-router'
)[
'onBeforeRouteUpdate'
]
const
onBeforeUnmount
:
typeof
import
(
'vue'
)[
'onBeforeUnmount'
]
const
onBeforeUpdate
:
typeof
import
(
'vue'
)[
'onBeforeUpdate'
]
const
onClickOutside
:
typeof
import
(
'@vueuse/core'
)[
'onClickOutside'
]
const
onDeactivated
:
typeof
import
(
'vue'
)[
'onDeactivated'
]
const
onElementRemoval
:
typeof
import
(
'@vueuse/core'
)[
'onElementRemoval'
]
const
onErrorCaptured
:
typeof
import
(
'vue'
)[
'onErrorCaptured'
]
const
onKeyStroke
:
typeof
import
(
'@vueuse/core'
)[
'onKeyStroke'
]
const
onLongPress
:
typeof
import
(
'@vueuse/core'
)[
'onLongPress'
]
const
onMounted
:
typeof
import
(
'vue'
)[
'onMounted'
]
const
onRenderTracked
:
typeof
import
(
'vue'
)[
'onRenderTracked'
]
const
onRenderTriggered
:
typeof
import
(
'vue'
)[
'onRenderTriggered'
]
const
onScopeDispose
:
typeof
import
(
'vue'
)[
'onScopeDispose'
]
const
onServerPrefetch
:
typeof
import
(
'vue'
)[
'onServerPrefetch'
]
const
onStartTyping
:
typeof
import
(
'@vueuse/core'
)[
'onStartTyping'
]
const
onUnmounted
:
typeof
import
(
'vue'
)[
'onUnmounted'
]
const
onUpdated
:
typeof
import
(
'vue'
)[
'onUpdated'
]
const
onWatcherCleanup
:
typeof
import
(
'vue'
)[
'onWatcherCleanup'
]
const
pausableWatch
:
typeof
import
(
'@vueuse/core'
)[
'pausableWatch'
]
const
provide
:
typeof
import
(
'vue'
)[
'provide'
]
const
provideLocal
:
typeof
import
(
'@vueuse/core'
)[
'provideLocal'
]
const
reactify
:
typeof
import
(
'@vueuse/core'
)[
'reactify'
]
const
reactifyObject
:
typeof
import
(
'@vueuse/core'
)[
'reactifyObject'
]
const
reactive
:
typeof
import
(
'vue'
)[
'reactive'
]
const
reactiveComputed
:
typeof
import
(
'@vueuse/core'
)[
'reactiveComputed'
]
const
reactiveOmit
:
typeof
import
(
'@vueuse/core'
)[
'reactiveOmit'
]
const
reactivePick
:
typeof
import
(
'@vueuse/core'
)[
'reactivePick'
]
const
readonly
:
typeof
import
(
'vue'
)[
'readonly'
]
const
ref
:
typeof
import
(
'vue'
)[
'ref'
]
const
refAutoReset
:
typeof
import
(
'@vueuse/core'
)[
'refAutoReset'
]
const
refDebounced
:
typeof
import
(
'@vueuse/core'
)[
'refDebounced'
]
const
refDefault
:
typeof
import
(
'@vueuse/core'
)[
'refDefault'
]
const
refThrottled
:
typeof
import
(
'@vueuse/core'
)[
'refThrottled'
]
const
refWithControl
:
typeof
import
(
'@vueuse/core'
)[
'refWithControl'
]
const
resolveComponent
:
typeof
import
(
'vue'
)[
'resolveComponent'
]
const
resolveRef
:
typeof
import
(
'@vueuse/core'
)[
'resolveRef'
]
const
resolveUnref
:
typeof
import
(
'@vueuse/core'
)[
'resolveUnref'
]
const
setActivePinia
:
typeof
import
(
'pinia'
)[
'setActivePinia'
]
const
setMapStoreSuffix
:
typeof
import
(
'pinia'
)[
'setMapStoreSuffix'
]
const
shallowReactive
:
typeof
import
(
'vue'
)[
'shallowReactive'
]
const
shallowReadonly
:
typeof
import
(
'vue'
)[
'shallowReadonly'
]
const
shallowRef
:
typeof
import
(
'vue'
)[
'shallowRef'
]
const
storeToRefs
:
typeof
import
(
'pinia'
)[
'storeToRefs'
]
const
syncRef
:
typeof
import
(
'@vueuse/core'
)[
'syncRef'
]
const
syncRefs
:
typeof
import
(
'@vueuse/core'
)[
'syncRefs'
]
const
templateRef
:
typeof
import
(
'@vueuse/core'
)[
'templateRef'
]
const
throttledRef
:
typeof
import
(
'@vueuse/core'
)[
'throttledRef'
]
const
throttledWatch
:
typeof
import
(
'@vueuse/core'
)[
'throttledWatch'
]
const
toRaw
:
typeof
import
(
'vue'
)[
'toRaw'
]
const
toReactive
:
typeof
import
(
'@vueuse/core'
)[
'toReactive'
]
const
toRef
:
typeof
import
(
'vue'
)[
'toRef'
]
const
toRefs
:
typeof
import
(
'vue'
)[
'toRefs'
]
const
toValue
:
typeof
import
(
'vue'
)[
'toValue'
]
const
triggerRef
:
typeof
import
(
'vue'
)[
'triggerRef'
]
const
tryOnBeforeMount
:
typeof
import
(
'@vueuse/core'
)[
'tryOnBeforeMount'
]
const
tryOnBeforeUnmount
:
typeof
import
(
'@vueuse/core'
)[
'tryOnBeforeUnmount'
]
const
tryOnMounted
:
typeof
import
(
'@vueuse/core'
)[
'tryOnMounted'
]
const
tryOnScopeDispose
:
typeof
import
(
'@vueuse/core'
)[
'tryOnScopeDispose'
]
const
tryOnUnmounted
:
typeof
import
(
'@vueuse/core'
)[
'tryOnUnmounted'
]
const
unref
:
typeof
import
(
'vue'
)[
'unref'
]
const
unrefElement
:
typeof
import
(
'@vueuse/core'
)[
'unrefElement'
]
const
until
:
typeof
import
(
'@vueuse/core'
)[
'until'
]
const
useActiveElement
:
typeof
import
(
'@vueuse/core'
)[
'useActiveElement'
]
const
useAnimate
:
typeof
import
(
'@vueuse/core'
)[
'useAnimate'
]
const
useArrayDifference
:
typeof
import
(
'@vueuse/core'
)[
'useArrayDifference'
]
const
useArrayEvery
:
typeof
import
(
'@vueuse/core'
)[
'useArrayEvery'
]
const
useArrayFilter
:
typeof
import
(
'@vueuse/core'
)[
'useArrayFilter'
]
const
useArrayFind
:
typeof
import
(
'@vueuse/core'
)[
'useArrayFind'
]
const
useArrayFindIndex
:
typeof
import
(
'@vueuse/core'
)[
'useArrayFindIndex'
]
const
useArrayFindLast
:
typeof
import
(
'@vueuse/core'
)[
'useArrayFindLast'
]
const
useArrayIncludes
:
typeof
import
(
'@vueuse/core'
)[
'useArrayIncludes'
]
const
useArrayJoin
:
typeof
import
(
'@vueuse/core'
)[
'useArrayJoin'
]
const
useArrayMap
:
typeof
import
(
'@vueuse/core'
)[
'useArrayMap'
]
const
useArrayReduce
:
typeof
import
(
'@vueuse/core'
)[
'useArrayReduce'
]
const
useArraySome
:
typeof
import
(
'@vueuse/core'
)[
'useArraySome'
]
const
useArrayUnique
:
typeof
import
(
'@vueuse/core'
)[
'useArrayUnique'
]
const
useAsyncQueue
:
typeof
import
(
'@vueuse/core'
)[
'useAsyncQueue'
]
const
useAsyncState
:
typeof
import
(
'@vueuse/core'
)[
'useAsyncState'
]
const
useAttrs
:
typeof
import
(
'vue'
)[
'useAttrs'
]
const
useBase64
:
typeof
import
(
'@vueuse/core'
)[
'useBase64'
]
const
useBattery
:
typeof
import
(
'@vueuse/core'
)[
'useBattery'
]
const
useBluetooth
:
typeof
import
(
'@vueuse/core'
)[
'useBluetooth'
]
const
useBreakpoints
:
typeof
import
(
'@vueuse/core'
)[
'useBreakpoints'
]
const
useBroadcastChannel
:
typeof
import
(
'@vueuse/core'
)[
'useBroadcastChannel'
]
const
useBrowserLocation
:
typeof
import
(
'@vueuse/core'
)[
'useBrowserLocation'
]
const
useCached
:
typeof
import
(
'@vueuse/core'
)[
'useCached'
]
const
useClipboard
:
typeof
import
(
'@vueuse/core'
)[
'useClipboard'
]
const
useClipboardItems
:
typeof
import
(
'@vueuse/core'
)[
'useClipboardItems'
]
const
useCloned
:
typeof
import
(
'@vueuse/core'
)[
'useCloned'
]
const
useColorMode
:
typeof
import
(
'@vueuse/core'
)[
'useColorMode'
]
const
useConfirmDialog
:
typeof
import
(
'@vueuse/core'
)[
'useConfirmDialog'
]
const
useCountdown
:
typeof
import
(
'@vueuse/core'
)[
'useCountdown'
]
const
useCounter
:
typeof
import
(
'@vueuse/core'
)[
'useCounter'
]
const
useCssModule
:
typeof
import
(
'vue'
)[
'useCssModule'
]
const
useCssVar
:
typeof
import
(
'@vueuse/core'
)[
'useCssVar'
]
const
useCssVars
:
typeof
import
(
'vue'
)[
'useCssVars'
]
const
useCurrentElement
:
typeof
import
(
'@vueuse/core'
)[
'useCurrentElement'
]
const
useCycleList
:
typeof
import
(
'@vueuse/core'
)[
'useCycleList'
]
const
useDark
:
typeof
import
(
'@vueuse/core'
)[
'useDark'
]
const
useDateFormat
:
typeof
import
(
'@vueuse/core'
)[
'useDateFormat'
]
const
useDebounce
:
typeof
import
(
'@vueuse/core'
)[
'useDebounce'
]
const
useDebounceFn
:
typeof
import
(
'@vueuse/core'
)[
'useDebounceFn'
]
const
useDebouncedRefHistory
:
typeof
import
(
'@vueuse/core'
)[
'useDebouncedRefHistory'
]
const
useDeviceMotion
:
typeof
import
(
'@vueuse/core'
)[
'useDeviceMotion'
]
const
useDeviceOrientation
:
typeof
import
(
'@vueuse/core'
)[
'useDeviceOrientation'
]
const
useDevicePixelRatio
:
typeof
import
(
'@vueuse/core'
)[
'useDevicePixelRatio'
]
const
useDevicesList
:
typeof
import
(
'@vueuse/core'
)[
'useDevicesList'
]
const
useDisplayMedia
:
typeof
import
(
'@vueuse/core'
)[
'useDisplayMedia'
]
const
useDocumentVisibility
:
typeof
import
(
'@vueuse/core'
)[
'useDocumentVisibility'
]
const
useDraggable
:
typeof
import
(
'@vueuse/core'
)[
'useDraggable'
]
const
useDropZone
:
typeof
import
(
'@vueuse/core'
)[
'useDropZone'
]
const
useElementBounding
:
typeof
import
(
'@vueuse/core'
)[
'useElementBounding'
]
const
useElementByPoint
:
typeof
import
(
'@vueuse/core'
)[
'useElementByPoint'
]
const
useElementHover
:
typeof
import
(
'@vueuse/core'
)[
'useElementHover'
]
const
useElementSize
:
typeof
import
(
'@vueuse/core'
)[
'useElementSize'
]
const
useElementVisibility
:
typeof
import
(
'@vueuse/core'
)[
'useElementVisibility'
]
const
useEventBus
:
typeof
import
(
'@vueuse/core'
)[
'useEventBus'
]
const
useEventListener
:
typeof
import
(
'@vueuse/core'
)[
'useEventListener'
]
const
useEventSource
:
typeof
import
(
'@vueuse/core'
)[
'useEventSource'
]
const
useEyeDropper
:
typeof
import
(
'@vueuse/core'
)[
'useEyeDropper'
]
const
useFavicon
:
typeof
import
(
'@vueuse/core'
)[
'useFavicon'
]
const
useFetch
:
typeof
import
(
'@vueuse/core'
)[
'useFetch'
]
const
useFileDialog
:
typeof
import
(
'@vueuse/core'
)[
'useFileDialog'
]
const
useFileSystemAccess
:
typeof
import
(
'@vueuse/core'
)[
'useFileSystemAccess'
]
const
useFocus
:
typeof
import
(
'@vueuse/core'
)[
'useFocus'
]
const
useFocusWithin
:
typeof
import
(
'@vueuse/core'
)[
'useFocusWithin'
]
const
useFps
:
typeof
import
(
'@vueuse/core'
)[
'useFps'
]
const
useFullscreen
:
typeof
import
(
'@vueuse/core'
)[
'useFullscreen'
]
const
useGamepad
:
typeof
import
(
'@vueuse/core'
)[
'useGamepad'
]
const
useGeolocation
:
typeof
import
(
'@vueuse/core'
)[
'useGeolocation'
]
const
useId
:
typeof
import
(
'vue'
)[
'useId'
]
const
useIdle
:
typeof
import
(
'@vueuse/core'
)[
'useIdle'
]
const
useImage
:
typeof
import
(
'@vueuse/core'
)[
'useImage'
]
const
useInfiniteScroll
:
typeof
import
(
'@vueuse/core'
)[
'useInfiniteScroll'
]
const
useIntersectionObserver
:
typeof
import
(
'@vueuse/core'
)[
'useIntersectionObserver'
]
const
useInterval
:
typeof
import
(
'@vueuse/core'
)[
'useInterval'
]
const
useIntervalFn
:
typeof
import
(
'@vueuse/core'
)[
'useIntervalFn'
]
const
useKeyModifier
:
typeof
import
(
'@vueuse/core'
)[
'useKeyModifier'
]
const
useLastChanged
:
typeof
import
(
'@vueuse/core'
)[
'useLastChanged'
]
const
useLink
:
typeof
import
(
'vue-router'
)[
'useLink'
]
const
useLocalStorage
:
typeof
import
(
'@vueuse/core'
)[
'useLocalStorage'
]
const
useMagicKeys
:
typeof
import
(
'@vueuse/core'
)[
'useMagicKeys'
]
const
useManualRefHistory
:
typeof
import
(
'@vueuse/core'
)[
'useManualRefHistory'
]
const
useMediaControls
:
typeof
import
(
'@vueuse/core'
)[
'useMediaControls'
]
const
useMediaQuery
:
typeof
import
(
'@vueuse/core'
)[
'useMediaQuery'
]
const
useMemoize
:
typeof
import
(
'@vueuse/core'
)[
'useMemoize'
]
const
useMemory
:
typeof
import
(
'@vueuse/core'
)[
'useMemory'
]
const
useModel
:
typeof
import
(
'vue'
)[
'useModel'
]
const
useMounted
:
typeof
import
(
'@vueuse/core'
)[
'useMounted'
]
const
useMouse
:
typeof
import
(
'@vueuse/core'
)[
'useMouse'
]
const
useMouseInElement
:
typeof
import
(
'@vueuse/core'
)[
'useMouseInElement'
]
const
useMousePressed
:
typeof
import
(
'@vueuse/core'
)[
'useMousePressed'
]
const
useMutationObserver
:
typeof
import
(
'@vueuse/core'
)[
'useMutationObserver'
]
const
useNavigatorLanguage
:
typeof
import
(
'@vueuse/core'
)[
'useNavigatorLanguage'
]
const
useNetwork
:
typeof
import
(
'@vueuse/core'
)[
'useNetwork'
]
const
useNow
:
typeof
import
(
'@vueuse/core'
)[
'useNow'
]
const
useObjectUrl
:
typeof
import
(
'@vueuse/core'
)[
'useObjectUrl'
]
const
useOffsetPagination
:
typeof
import
(
'@vueuse/core'
)[
'useOffsetPagination'
]
const
useOnline
:
typeof
import
(
'@vueuse/core'
)[
'useOnline'
]
const
usePageLeave
:
typeof
import
(
'@vueuse/core'
)[
'usePageLeave'
]
const
useParallax
:
typeof
import
(
'@vueuse/core'
)[
'useParallax'
]
const
useParentElement
:
typeof
import
(
'@vueuse/core'
)[
'useParentElement'
]
const
usePerformanceObserver
:
typeof
import
(
'@vueuse/core'
)[
'usePerformanceObserver'
]
const
usePermission
:
typeof
import
(
'@vueuse/core'
)[
'usePermission'
]
const
usePointer
:
typeof
import
(
'@vueuse/core'
)[
'usePointer'
]
const
usePointerLock
:
typeof
import
(
'@vueuse/core'
)[
'usePointerLock'
]
const
usePointerSwipe
:
typeof
import
(
'@vueuse/core'
)[
'usePointerSwipe'
]
const
usePreferredColorScheme
:
typeof
import
(
'@vueuse/core'
)[
'usePreferredColorScheme'
]
const
usePreferredContrast
:
typeof
import
(
'@vueuse/core'
)[
'usePreferredContrast'
]
const
usePreferredDark
:
typeof
import
(
'@vueuse/core'
)[
'usePreferredDark'
]
const
usePreferredLanguages
:
typeof
import
(
'@vueuse/core'
)[
'usePreferredLanguages'
]
const
usePreferredReducedMotion
:
typeof
import
(
'@vueuse/core'
)[
'usePreferredReducedMotion'
]
const
usePreferredReducedTransparency
:
typeof
import
(
'@vueuse/core'
)[
'usePreferredReducedTransparency'
]
const
usePrevious
:
typeof
import
(
'@vueuse/core'
)[
'usePrevious'
]
const
useRafFn
:
typeof
import
(
'@vueuse/core'
)[
'useRafFn'
]
const
useRefHistory
:
typeof
import
(
'@vueuse/core'
)[
'useRefHistory'
]
const
useResizeObserver
:
typeof
import
(
'@vueuse/core'
)[
'useResizeObserver'
]
const
useRoute
:
typeof
import
(
'vue-router'
)[
'useRoute'
]
const
useRouter
:
typeof
import
(
'vue-router'
)[
'useRouter'
]
const
useSSRWidth
:
typeof
import
(
'@vueuse/core'
)[
'useSSRWidth'
]
const
useScreenOrientation
:
typeof
import
(
'@vueuse/core'
)[
'useScreenOrientation'
]
const
useScreenSafeArea
:
typeof
import
(
'@vueuse/core'
)[
'useScreenSafeArea'
]
const
useScriptTag
:
typeof
import
(
'@vueuse/core'
)[
'useScriptTag'
]
const
useScroll
:
typeof
import
(
'@vueuse/core'
)[
'useScroll'
]
const
useScrollLock
:
typeof
import
(
'@vueuse/core'
)[
'useScrollLock'
]
const
useSessionStorage
:
typeof
import
(
'@vueuse/core'
)[
'useSessionStorage'
]
const
useShare
:
typeof
import
(
'@vueuse/core'
)[
'useShare'
]
const
useSlots
:
typeof
import
(
'vue'
)[
'useSlots'
]
const
useSorted
:
typeof
import
(
'@vueuse/core'
)[
'useSorted'
]
const
useSpeechRecognition
:
typeof
import
(
'@vueuse/core'
)[
'useSpeechRecognition'
]
const
useSpeechSynthesis
:
typeof
import
(
'@vueuse/core'
)[
'useSpeechSynthesis'
]
const
useStepper
:
typeof
import
(
'@vueuse/core'
)[
'useStepper'
]
const
useStorage
:
typeof
import
(
'@vueuse/core'
)[
'useStorage'
]
const
useStorageAsync
:
typeof
import
(
'@vueuse/core'
)[
'useStorageAsync'
]
const
useStyleTag
:
typeof
import
(
'@vueuse/core'
)[
'useStyleTag'
]
const
useSupported
:
typeof
import
(
'@vueuse/core'
)[
'useSupported'
]
const
useSwipe
:
typeof
import
(
'@vueuse/core'
)[
'useSwipe'
]
const
useTemplateRef
:
typeof
import
(
'vue'
)[
'useTemplateRef'
]
const
useTemplateRefsList
:
typeof
import
(
'@vueuse/core'
)[
'useTemplateRefsList'
]
const
useTextDirection
:
typeof
import
(
'@vueuse/core'
)[
'useTextDirection'
]
const
useTextSelection
:
typeof
import
(
'@vueuse/core'
)[
'useTextSelection'
]
const
useTextareaAutosize
:
typeof
import
(
'@vueuse/core'
)[
'useTextareaAutosize'
]
const
useThrottle
:
typeof
import
(
'@vueuse/core'
)[
'useThrottle'
]
const
useThrottleFn
:
typeof
import
(
'@vueuse/core'
)[
'useThrottleFn'
]
const
useThrottledRefHistory
:
typeof
import
(
'@vueuse/core'
)[
'useThrottledRefHistory'
]
const
useTimeAgo
:
typeof
import
(
'@vueuse/core'
)[
'useTimeAgo'
]
const
useTimeAgoIntl
:
typeof
import
(
'@vueuse/core'
)[
'useTimeAgoIntl'
]
const
useTimeout
:
typeof
import
(
'@vueuse/core'
)[
'useTimeout'
]
const
useTimeoutFn
:
typeof
import
(
'@vueuse/core'
)[
'useTimeoutFn'
]
const
useTimeoutPoll
:
typeof
import
(
'@vueuse/core'
)[
'useTimeoutPoll'
]
const
useTimestamp
:
typeof
import
(
'@vueuse/core'
)[
'useTimestamp'
]
const
useTitle
:
typeof
import
(
'@vueuse/core'
)[
'useTitle'
]
const
useToNumber
:
typeof
import
(
'@vueuse/core'
)[
'useToNumber'
]
const
useToString
:
typeof
import
(
'@vueuse/core'
)[
'useToString'
]
const
useToggle
:
typeof
import
(
'@vueuse/core'
)[
'useToggle'
]
const
useTransition
:
typeof
import
(
'@vueuse/core'
)[
'useTransition'
]
const
useUrlSearchParams
:
typeof
import
(
'@vueuse/core'
)[
'useUrlSearchParams'
]
const
useUserMedia
:
typeof
import
(
'@vueuse/core'
)[
'useUserMedia'
]
const
useVModel
:
typeof
import
(
'@vueuse/core'
)[
'useVModel'
]
const
useVModels
:
typeof
import
(
'@vueuse/core'
)[
'useVModels'
]
const
useVibrate
:
typeof
import
(
'@vueuse/core'
)[
'useVibrate'
]
const
useVirtualList
:
typeof
import
(
'@vueuse/core'
)[
'useVirtualList'
]
const
useWakeLock
:
typeof
import
(
'@vueuse/core'
)[
'useWakeLock'
]
const
useWebNotification
:
typeof
import
(
'@vueuse/core'
)[
'useWebNotification'
]
const
useWebSocket
:
typeof
import
(
'@vueuse/core'
)[
'useWebSocket'
]
const
useWebWorker
:
typeof
import
(
'@vueuse/core'
)[
'useWebWorker'
]
const
useWebWorkerFn
:
typeof
import
(
'@vueuse/core'
)[
'useWebWorkerFn'
]
const
useWindowFocus
:
typeof
import
(
'@vueuse/core'
)[
'useWindowFocus'
]
const
useWindowScroll
:
typeof
import
(
'@vueuse/core'
)[
'useWindowScroll'
]
const
useWindowSize
:
typeof
import
(
'@vueuse/core'
)[
'useWindowSize'
]
const
watch
:
typeof
import
(
'vue'
)[
'watch'
]
const
watchArray
:
typeof
import
(
'@vueuse/core'
)[
'watchArray'
]
const
watchAtMost
:
typeof
import
(
'@vueuse/core'
)[
'watchAtMost'
]
const
watchDebounced
:
typeof
import
(
'@vueuse/core'
)[
'watchDebounced'
]
const
watchDeep
:
typeof
import
(
'@vueuse/core'
)[
'watchDeep'
]
const
watchEffect
:
typeof
import
(
'vue'
)[
'watchEffect'
]
const
watchIgnorable
:
typeof
import
(
'@vueuse/core'
)[
'watchIgnorable'
]
const
watchImmediate
:
typeof
import
(
'@vueuse/core'
)[
'watchImmediate'
]
const
watchOnce
:
typeof
import
(
'@vueuse/core'
)[
'watchOnce'
]
const
watchPausable
:
typeof
import
(
'@vueuse/core'
)[
'watchPausable'
]
const
watchPostEffect
:
typeof
import
(
'vue'
)[
'watchPostEffect'
]
const
watchSyncEffect
:
typeof
import
(
'vue'
)[
'watchSyncEffect'
]
const
watchThrottled
:
typeof
import
(
'@vueuse/core'
)[
'watchThrottled'
]
const
watchTriggerable
:
typeof
import
(
'@vueuse/core'
)[
'watchTriggerable'
]
const
watchWithFilter
:
typeof
import
(
'@vueuse/core'
)[
'watchWithFilter'
]
const
whenever
:
typeof
import
(
'@vueuse/core'
)[
'whenever'
]
}
// for type re-export
declare
global
{
// @ts-ignore
export
type
{
Component
,
ComponentPublicInstance
,
ComputedRef
,
DirectiveBinding
,
ExtractDefaultPropTypes
,
ExtractPropTypes
,
ExtractPublicPropTypes
,
InjectionKey
,
PropType
,
Ref
,
MaybeRef
,
MaybeRefOrGetter
,
VNode
,
WritableComputedRef
}
from
'vue'
import
(
'vue'
)
}
apps/web/venus-usedcar/venus-usedcar-h5/src/components.d.ts
0 → 100644
View file @
c7a457e
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
export
{}
declare
module
'vue'
{
export
interface
GlobalComponents
{
Layout
:
typeof
import
(
'./layouts/index.vue'
)[
'default'
]
Layouts
:
typeof
import
(
'./layouts/index.vue'
)[
'default'
]
RouterLink
:
typeof
import
(
'vue-router'
)[
'RouterLink'
]
RouterView
:
typeof
import
(
'vue-router'
)[
'RouterView'
]
VanButton
:
typeof
import
(
'vant/es'
)[
'Button'
]
VanCell
:
typeof
import
(
'vant/es'
)[
'Cell'
]
VanCellGroup
:
typeof
import
(
'vant/es'
)[
'CellGroup'
]
VanGrid
:
typeof
import
(
'vant/es'
)[
'Grid'
]
VanGridItem
:
typeof
import
(
'vant/es'
)[
'GridItem'
]
VanIcon
:
typeof
import
(
'vant/es'
)[
'Icon'
]
VanImage
:
typeof
import
(
'vant/es'
)[
'Image'
]
VanList
:
typeof
import
(
'vant/es'
)[
'List'
]
VanLoading
:
typeof
import
(
'vant/es'
)[
'Loading'
]
VanPullRefresh
:
typeof
import
(
'vant/es'
)[
'PullRefresh'
]
VanSearch
:
typeof
import
(
'vant/es'
)[
'Search'
]
VanSticky
:
typeof
import
(
'vant/es'
)[
'Sticky'
]
VanSwipe
:
typeof
import
(
'vant/es'
)[
'Swipe'
]
VanSwipeItem
:
typeof
import
(
'vant/es'
)[
'SwipeItem'
]
VanTab
:
typeof
import
(
'vant/es'
)[
'Tab'
]
VanTabbar
:
typeof
import
(
'vant/es'
)[
'Tabbar'
]
VanTabbarItem
:
typeof
import
(
'vant/es'
)[
'TabbarItem'
]
VanTabs
:
typeof
import
(
'vant/es'
)[
'Tabs'
]
VanTag
:
typeof
import
(
'vant/es'
)[
'Tag'
]
}
}
apps/web/venus-usedcar/venus-usedcar-h5/src/composables/useRequest.ts
0 → 100644
View file @
c7a457e
import
{
ref
}
from
"vue"
;
import
{
showToast
}
from
"vant"
;
interface
UseRequestOptions
<
T
>
{
immediate
?:
boolean
;
initialData
?:
T
;
onSuccess
?:
(
data
:
T
)
=>
void
;
onError
?:
(
error
:
unknown
)
=>
void
;
}
export
function
useRequest
<
T
>
(
requestFn
:
()
=>
Promise
<
T
>
,
options
:
UseRequestOptions
<
T
>
=
{},
)
{
const
{
immediate
=
false
,
initialData
,
onSuccess
,
onError
}
=
options
;
const
data
=
ref
<
T
|
undefined
>
(
initialData
as
T
);
const
loading
=
ref
(
false
);
const
error
=
ref
<
unknown
>
(
null
);
async
function
execute
()
{
loading
.
value
=
true
;
error
.
value
=
null
;
try
{
const
result
=
await
requestFn
();
data
.
value
=
result
;
onSuccess
?.(
result
);
return
result
;
}
catch
(
err
)
{
error
.
value
=
err
;
onError
?.(
err
);
throw
err
;
}
finally
{
loading
.
value
=
false
;
}
}
if
(
immediate
)
{
execute
();
}
return
{
data
,
loading
,
error
,
execute
};
}
interface
UsePaginationOptions
<
T
>
{
pageSize
?:
number
;
onSuccess
?:
(
list
:
T
[],
total
:
number
)
=>
void
;
}
export
function
usePagination
<
T
>
(
requestFn
:
(
page
:
number
,
pageSize
:
number
)
=>
Promise
<
{
list
:
T
[];
total
:
number
}
>
,
options
:
UsePaginationOptions
<
T
>
=
{},
)
{
const
{
pageSize
=
10
,
onSuccess
}
=
options
;
const
list
=
ref
<
T
[]
>
([])
as
import
(
"vue"
).
Ref
<
T
[]
>
;
const
total
=
ref
(
0
);
const
page
=
ref
(
1
);
const
loading
=
ref
(
false
);
const
finished
=
ref
(
false
);
const
refreshing
=
ref
(
false
);
async
function
loadMore
()
{
if
(
loading
.
value
||
finished
.
value
)
return
;
loading
.
value
=
true
;
try
{
const
res
=
await
requestFn
(
page
.
value
,
pageSize
);
list
.
value
.
push
(...
res
.
list
);
total
.
value
=
res
.
total
;
if
(
list
.
value
.
length
>=
res
.
total
||
res
.
list
.
length
<
pageSize
)
{
finished
.
value
=
true
;
}
else
{
page
.
value
+=
1
;
}
onSuccess
?.(
res
.
list
,
res
.
total
);
}
catch
(
err
)
{
showToast
(
"加载失败,请重试"
);
throw
err
;
}
finally
{
loading
.
value
=
false
;
refreshing
.
value
=
false
;
}
}
async
function
refresh
()
{
page
.
value
=
1
;
list
.
value
=
[];
finished
.
value
=
false
;
refreshing
.
value
=
true
;
await
loadMore
();
}
return
{
list
,
total
,
page
,
loading
,
finished
,
refreshing
,
loadMore
,
refresh
,
};
}
apps/web/venus-usedcar/venus-usedcar-h5/src/config/center.ts
0 → 100644
View file @
c7a457e
/**
* 配置中心 - 远程获取配置,使用 fetch 避免 axios 提前实例化导致 baseURL 无法动态获取
*/
import
{
CONFIG_CACHE_KEY
,
CONFIG_CENTER_URL
}
from
"./constants"
;
let
config
:
Record
<
string
,
unknown
>
=
{};
function
getCached
<
T
>
(
key
:
string
):
T
|
null
{
try
{
const
item
=
localStorage
.
getItem
(
key
);
return
item
?
(
JSON
.
parse
(
item
)
as
T
)
:
null
;
}
catch
{
return
null
;
}
}
function
setCache
(
key
:
string
,
value
:
unknown
):
void
{
try
{
localStorage
.
setItem
(
key
,
JSON
.
stringify
(
value
));
}
catch
{
/* ignore */
}
}
/**
* 获取远程配置(优先缓存)
*/
export
async
function
fetchConfig
():
Promise
<
Record
<
string
,
unknown
>>
{
const
cached
=
getCached
<
Record
<
string
,
unknown
>>
(
CONFIG_CACHE_KEY
);
if
(
cached
)
{
config
=
cached
;
return
config
;
}
try
{
const
res
=
await
fetch
(
CONFIG_CENTER_URL
);
const
data
=
(
await
res
.
json
())
as
Record
<
string
,
unknown
>
;
if
(
data
)
{
config
=
data
?.
data
??
data
;
setCache
(
CONFIG_CACHE_KEY
,
config
);
}
}
catch
(
e
)
{
console
.
warn
(
"[配置中心] 获取失败,使用默认配置:"
,
e
);
}
return
config
;
}
/** 获取当前配置 */
export
function
getConfig
():
Record
<
string
,
unknown
>
{
return
config
;
}
/** 清空配置缓存 */
export
function
clearConfigCache
():
void
{
localStorage
.
removeItem
(
CONFIG_CACHE_KEY
);
config
=
{};
}
apps/web/venus-usedcar/venus-usedcar-h5/src/config/constants.ts
0 → 100644
View file @
c7a457e
/**
* 配置中心常量
*/
/** 二手车 H5 配置请求 URL */
export
const
CONFIG_CENTER_URL
=
"https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=venus-usedcar-config"
;
/** 配置缓存 key */
export
const
CONFIG_CACHE_KEY
=
"venus_usedcar_config"
;
apps/web/venus-usedcar/venus-usedcar-h5/src/config/index.ts
0 → 100644
View file @
c7a457e
export
{
CONFIG_CENTER_URL
,
CONFIG_CACHE_KEY
}
from
"./constants"
;
export
{
fetchConfig
,
getConfig
,
clearConfigCache
}
from
"./center"
;
apps/web/venus-usedcar/venus-usedcar-h5/src/layouts/index.vue
0 → 100644
View file @
c7a457e
<
script
setup
lang=
"ts"
>
import
{
computed
}
from
"vue"
;
import
{
RouterView
,
useRoute
,
useRouter
}
from
"vue-router"
;
const
route
=
useRoute
();
const
router
=
useRouter
();
const
showTabBar
=
computed
(()
=>
route
.
meta
.
showTabBar
!==
false
);
const
tabList
=
[
{
name
:
"home"
,
title
:
"首页"
,
icon
:
"home-o"
,
activeIcon
:
"home"
},
{
name
:
"car-list"
,
title
:
"找车"
,
icon
:
"search"
,
activeIcon
:
"search"
},
{
name
:
"mine"
,
title
:
"我的"
,
icon
:
"contact-o"
,
activeIcon
:
"contact"
},
];
const
activeTab
=
computed
(()
=>
{
const
name
=
route
.
name
as
string
;
return
tabList
.
findIndex
((
tab
)
=>
tab
.
name
===
name
.
toLowerCase
());
});
function
onTabChange
(
index
:
number
)
{
const
tab
=
tabList
[
index
];
if
(
tab
)
{
router
.
push
({
name
:
tab
.
name
.
charAt
(
0
).
toUpperCase
()
+
tab
.
name
.
slice
(
1
)
});
}
}
</
script
>
<
template
>
<div
class=
"layout-default"
>
<RouterView
v-slot=
"
{ Component, route: currentRoute }">
<Transition
mode=
"out-in"
name=
"fade"
>
<KeepAlive>
<component
:is=
"Component"
v-if=
"currentRoute.meta.keepAlive"
:key=
"currentRoute.fullPath"
/>
</KeepAlive>
</Transition>
<Transition
mode=
"out-in"
name=
"fade"
>
<component
:is=
"Component"
v-if=
"!currentRoute.meta.keepAlive"
:key=
"currentRoute.fullPath"
/>
</Transition>
</RouterView>
<van-tabbar
v-if=
"showTabBar"
active-color=
"#ee0a24"
fixed
inactive-color=
"#7d7e80"
:model-value=
"activeTab"
placeholder
safe-area-inset-bottom
@
change=
"onTabChange"
>
<van-tabbar-item
v-for=
"tab in tabList"
:key=
"tab.name"
:icon=
"activeTab === tabList.indexOf(tab) ? tab.activeIcon : tab.icon"
>
{{
tab
.
title
}}
</van-tabbar-item>
</van-tabbar>
</div>
</
template
>
<
style
lang=
"scss"
scoped
>
.layout-default
{
width
:
100%
;
min-height
:
100vh
;
background-color
:
var
(
--color-bg-page
);
}
.fade-enter-active
,
.fade-leave-active
{
transition
:
opacity
0.2s
ease
;
}
.fade-enter-from
,
.fade-leave-to
{
opacity
:
0
;
}
</
style
>
apps/web/venus-usedcar/venus-usedcar-h5/src/main.ts
0 → 100644
View file @
c7a457e
import
{
createApp
}
from
"vue"
;
import
{
createPinia
}
from
"pinia"
;
import
piniaPluginPersistedstate
from
"pinia-plugin-persistedstate"
;
import
App
from
"./App.vue"
;
import
router
from
"./router"
;
import
{
fetchConfig
}
from
"./config/center"
;
import
"./assets/styles/reset.scss"
;
import
"./assets/styles/index.scss"
;
async
function
bootstrap
()
{
await
fetchConfig
();
const
app
=
createApp
(
App
);
const
pinia
=
createPinia
();
pinia
.
use
(
piniaPluginPersistedstate
);
app
.
use
(
pinia
);
app
.
use
(
router
);
app
.
mount
(
"#app"
);
}
bootstrap
();
apps/web/venus-usedcar/venus-usedcar-h5/src/router/index.ts
0 → 100644
View file @
c7a457e
import
{
createRouter
,
createWebHistory
}
from
"vue-router"
;
import
{
showLoadingToast
,
closeToast
}
from
"vant"
;
import
routes
from
"./routes"
;
const
router
=
createRouter
({
history
:
createWebHistory
(
import
.
meta
.
env
.
BASE_URL
),
routes
,
scrollBehavior
(
_
,
_from
,
savedPosition
)
{
if
(
savedPosition
)
{
return
savedPosition
;
}
return
{
top
:
0
};
},
});
router
.
beforeEach
((
to
,
_from
,
next
)
=>
{
showLoadingToast
({
message
:
"加载中..."
,
forbidClick
:
true
,
duration
:
0
,
loadingType
:
"spinner"
,
});
if
(
to
.
meta
.
title
)
{
document
.
title
=
`
${
to
.
meta
.
title
}
-
${
import
.
meta
.
env
.
VITE_APP_TITLE
}
`
;
}
next
();
});
router
.
afterEach
(()
=>
{
closeToast
();
});
export
default
router
;
apps/web/venus-usedcar/venus-usedcar-h5/src/router/routes.ts
0 → 100644
View file @
c7a457e
import
type
{
RouteRecordRaw
}
from
"vue-router"
;
const
routes
:
RouteRecordRaw
[]
=
[
{
path
:
"/"
,
component
:
()
=>
import
(
"@/layouts/index.vue"
),
children
:
[
{
path
:
""
,
redirect
:
"/home"
,
},
{
path
:
"home"
,
name
:
"Home"
,
component
:
()
=>
import
(
"@/views/home/index.vue"
),
meta
:
{
title
:
"首页"
,
keepAlive
:
true
,
showTabBar
:
true
,
},
},
{
path
:
"car-list"
,
name
:
"CarList"
,
component
:
()
=>
import
(
"@/views/car-list/index.vue"
),
meta
:
{
title
:
"找车"
,
keepAlive
:
true
,
showTabBar
:
true
,
},
},
{
path
:
"mine"
,
name
:
"Mine"
,
component
:
()
=>
import
(
"@/views/mine/index.vue"
),
meta
:
{
title
:
"我的"
,
keepAlive
:
false
,
showTabBar
:
true
,
},
},
],
},
{
path
:
"/car-detail/:id"
,
name
:
"CarDetail"
,
component
:
()
=>
import
(
"@/views/car-detail/index.vue"
),
meta
:
{
title
:
"车辆详情"
,
showTabBar
:
false
,
},
},
{
path
:
"/:pathMatch(.*)*"
,
name
:
"NotFound"
,
component
:
()
=>
import
(
"@/views/404/index.vue"
),
meta
:
{
title
:
"页面不存在"
,
},
},
];
export
default
routes
;
apps/web/venus-usedcar/venus-usedcar-h5/src/stores/index.ts
0 → 100644
View file @
c7a457e
export
{
useAppStore
}
from
"./modules/app"
;
export
{
useUserStore
}
from
"./modules/user"
;
export
type
{
UserInfo
}
from
"./modules/user"
;
apps/web/venus-usedcar/venus-usedcar-h5/src/stores/modules/app.ts
0 → 100644
View file @
c7a457e
import
{
defineStore
}
from
"pinia"
;
import
{
ref
}
from
"vue"
;
export
const
useAppStore
=
defineStore
(
"app"
,
()
=>
{
const
loading
=
ref
(
false
);
const
theme
=
ref
<
"light"
|
"dark"
>
(
"light"
);
function
setLoading
(
val
:
boolean
)
{
loading
.
value
=
val
;
}
function
toggleTheme
()
{
theme
.
value
=
theme
.
value
===
"light"
?
"dark"
:
"light"
;
}
return
{
loading
,
theme
,
setLoading
,
toggleTheme
,
};
},
{
persist
:
{
pick
:
[
"theme"
],
},
},
);
apps/web/venus-usedcar/venus-usedcar-h5/src/stores/modules/user.ts
0 → 100644
View file @
c7a457e
import
{
defineStore
}
from
"pinia"
;
import
{
ref
,
computed
}
from
"vue"
;
export
interface
UserInfo
{
id
:
number
;
nickname
:
string
;
avatar
:
string
;
phone
:
string
;
}
export
const
useUserStore
=
defineStore
(
"user"
,
()
=>
{
const
token
=
ref
<
string
>
(
""
);
const
userInfo
=
ref
<
UserInfo
|
null
>
(
null
);
const
isLoggedIn
=
computed
(()
=>
!!
token
.
value
);
const
username
=
computed
(()
=>
userInfo
.
value
?.
nickname
??
""
);
function
setToken
(
val
:
string
)
{
token
.
value
=
val
;
}
function
setUserInfo
(
info
:
UserInfo
)
{
userInfo
.
value
=
info
;
}
function
logout
()
{
token
.
value
=
""
;
userInfo
.
value
=
null
;
}
return
{
token
,
userInfo
,
isLoggedIn
,
username
,
setToken
,
setUserInfo
,
logout
,
};
},
{
persist
:
{
pick
:
[
"token"
,
"userInfo"
],
},
},
);
apps/web/venus-usedcar/venus-usedcar-h5/src/types/api.ts
0 → 100644
View file @
c7a457e
export
interface
ApiResponse
<
T
=
unknown
>
{
code
:
number
;
message
:
string
;
data
:
T
;
}
export
interface
PageParams
{
page
:
number
;
pageSize
:
number
;
}
export
interface
PageData
<
T
=
unknown
>
{
list
:
T
[];
total
:
number
;
page
:
number
;
pageSize
:
number
;
hasMore
:
boolean
;
}
export
interface
SelectOption
{
label
:
string
;
value
:
string
|
number
;
disabled
?:
boolean
;
}
apps/web/venus-usedcar/venus-usedcar-h5/src/types/global.d.ts
0 → 100644
View file @
c7a457e
import
type
{
RouteMeta
}
from
"vue-router"
;
declare
module
"vue-router"
{
interface
RouteMeta
{
title
?:
string
;
keepAlive
?:
boolean
;
showTabBar
?:
boolean
;
requiresAuth
?:
boolean
;
}
}
declare
global
{
interface
Window
{
__APP_INFO__
:
{
version
:
string
;
buildTime
:
string
;
};
}
}
export
{};
apps/web/venus-usedcar/venus-usedcar-h5/src/utils/index.ts
0 → 100644
View file @
c7a457e
import
dayjs
from
"dayjs"
;
/**
* 格式化价格,单位:万元
*/
export
function
formatPrice
(
price
:
number
):
string
{
if
(
price
>=
10000
)
{
return
`
${(
price
/
10000
).
toFixed
(
1
)}
万`
;
}
return
`
${
price
}
`
;
}
/**
* 格式化里程,单位:公里
*/
export
function
formatMileage
(
mileage
:
number
):
string
{
if
(
mileage
>=
10000
)
{
return
`
${(
mileage
/
10000
).
toFixed
(
1
)}
万公里`
;
}
return
`
${
mileage
}
公里`
;
}
/**
* 格式化时间
*/
export
function
formatDate
(
date
:
string
|
number
|
Date
,
format
=
"YYYY-MM-DD"
):
string
{
return
dayjs
(
date
).
format
(
format
);
}
/**
* 格式化相对时间
*/
export
function
formatRelativeTime
(
date
:
string
|
number
|
Date
):
string
{
const
now
=
dayjs
();
const
target
=
dayjs
(
date
);
const
diffMinutes
=
now
.
diff
(
target
,
"minute"
);
if
(
diffMinutes
<
1
)
return
"刚刚"
;
if
(
diffMinutes
<
60
)
return
`
${
diffMinutes
}
分钟前`
;
const
diffHours
=
now
.
diff
(
target
,
"hour"
);
if
(
diffHours
<
24
)
return
`
${
diffHours
}
小时前`
;
const
diffDays
=
now
.
diff
(
target
,
"day"
);
if
(
diffDays
<
30
)
return
`
${
diffDays
}
天前`
;
return
target
.
format
(
"YYYY-MM-DD"
);
}
/**
* 防抖
*/
export
function
debounce
<
T
extends
(...
args
:
unknown
[])
=>
unknown
>
(
fn
:
T
,
delay
=
300
,
):
(...
args
:
Parameters
<
T
>
)
=>
void
{
let
timer
:
ReturnType
<
typeof
setTimeout
>
|
null
=
null
;
return
function
(...
args
:
Parameters
<
T
>
)
{
if
(
timer
)
clearTimeout
(
timer
);
timer
=
setTimeout
(()
=>
fn
(...
args
),
delay
);
};
}
/**
* 节流
*/
export
function
throttle
<
T
extends
(...
args
:
unknown
[])
=>
unknown
>
(
fn
:
T
,
limit
=
300
,
):
(...
args
:
Parameters
<
T
>
)
=>
void
{
let
lastTime
=
0
;
return
function
(...
args
:
Parameters
<
T
>
)
{
const
now
=
Date
.
now
();
if
(
now
-
lastTime
>=
limit
)
{
lastTime
=
now
;
fn
(...
args
);
}
};
}
apps/web/venus-usedcar/venus-usedcar-h5/src/utils/request.ts
0 → 100644
View file @
c7a457e
import
type
{
AxiosInstance
,
AxiosRequestConfig
,
AxiosResponse
,
InternalAxiosRequestConfig
,
}
from
"axios"
;
import
axios
from
"axios"
;
import
{
showToast
}
from
"vant"
;
import
{
getConfig
}
from
"@/config/center"
;
export
interface
ApiResponse
<
T
=
unknown
>
{
code
:
number
;
message
:
string
;
data
:
T
;
}
export
interface
PageData
<
T
=
unknown
>
{
list
:
T
[];
total
:
number
;
page
:
number
;
pageSize
:
number
;
}
const
TOKEN_KEY
=
"venus_usedcar_token"
;
const
defaultBaseURL
=
import
.
meta
.
env
.
VITE_API_BASE_URL
;
const
instance
:
AxiosInstance
=
axios
.
create
({
baseURL
:
defaultBaseURL
,
timeout
:
15
_000
,
headers
:
{
"Content-Type"
:
"application/json"
,
},
});
instance
.
interceptors
.
request
.
use
(
(
config
:
InternalAxiosRequestConfig
)
=>
{
const
cfg
=
getConfig
();
const
apiBaseUrl
=
(
cfg
.
apiBaseUrl
??
(
cfg
.
gsc
as
{
baseUrl
?:
string
})?.
baseUrl
)
as
string
|
undefined
;
if
(
apiBaseUrl
)
config
.
baseURL
=
apiBaseUrl
;
const
token
=
localStorage
.
getItem
(
TOKEN_KEY
);
if
(
token
)
{
config
.
headers
.
Authorization
=
`Bearer
${
token
}
`
;
}
return
config
;
},
(
error
)
=>
Promise
.
reject
(
error
),
);
instance
.
interceptors
.
response
.
use
(
(
response
:
AxiosResponse
<
ApiResponse
>
)
=>
{
const
{
data
}
=
response
;
if
(
data
.
code
===
200
||
data
.
code
===
0
)
{
return
data
.
data
as
never
;
}
showToast
(
data
.
message
||
"请求失败"
);
return
Promise
.
reject
(
new
Error
(
data
.
message
||
"请求失败"
));
},
(
error
:
{
response
?:
{
status
:
number
};
message
?:
string
})
=>
{
const
status
=
error
.
response
?.
status
;
if
(
status
===
401
)
{
showToast
(
"登录已过期,请重新登录"
);
localStorage
.
removeItem
(
TOKEN_KEY
);
window
.
location
.
href
=
"/login"
;
}
else
if
(
status
===
403
)
{
showToast
(
"暂无权限"
);
}
else
if
(
status
===
500
)
{
showToast
(
"服务器异常,请稍后重试"
);
}
else
{
showToast
(
error
.
message
||
"网络错误,请检查网络连接"
);
}
return
Promise
.
reject
(
error
);
},
);
function
get
<
T
=
unknown
>
(
url
:
string
,
params
?:
Record
<
string
,
unknown
>
,
config
?:
AxiosRequestConfig
)
{
return
instance
.
get
<
T
,
T
>
(
url
,
{
params
,
...
config
});
}
function
post
<
T
=
unknown
>
(
url
:
string
,
data
?:
unknown
,
config
?:
AxiosRequestConfig
)
{
return
instance
.
post
<
T
,
T
>
(
url
,
data
,
config
);
}
function
put
<
T
=
unknown
>
(
url
:
string
,
data
?:
unknown
,
config
?:
AxiosRequestConfig
)
{
return
instance
.
put
<
T
,
T
>
(
url
,
data
,
config
);
}
function
del
<
T
=
unknown
>
(
url
:
string
,
config
?:
AxiosRequestConfig
)
{
return
instance
.
delete
<
T
,
T
>
(
url
,
config
);
}
export
{
get
,
post
,
put
,
del
};
export
default
instance
;
apps/web/venus-usedcar/venus-usedcar-h5/src/views/404/index.vue
0 → 100644
View file @
c7a457e
<
script
setup
lang=
"ts"
>
import
{
useRouter
}
from
"vue-router"
;
const
router
=
useRouter
();
function
goHome
()
{
router
.
replace
({
name
:
"Home"
});
}
</
script
>
<
template
>
<div
class=
"not-found-page"
>
<van-empty
description=
"页面不存在"
image=
"error"
>
<template
#
description
>
<p
class=
"empty-title"
>
页面不存在
</p>
<p
class=
"empty-desc"
>
您访问的页面已移动或不存在
</p>
</
template
>
<van-button
round
type=
"primary"
color=
"#ee0a24"
class=
"back-btn"
@
click=
"goHome"
>
返回首页
</van-button>
</van-empty>
</div>
</template>
<
style
lang=
"scss"
scoped
>
@use
"@/assets/styles/variables"
as
*
;
.not-found-page
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
min-height
:
100vh
;
background-color
:
var
(
--color-bg-page
);
}
.empty-title
{
font-size
:
$
font-size-lg
;
font-weight
:
700
;
color
:
$
color-text-primary
;
margin-bottom
:
6px
;
}
.empty-desc
{
font-size
:
$
font-size-sm
;
color
:
$
color-text-secondary
;
}
.back-btn
{
margin-top
:
24px
;
width
:
160px
;
}
</
style
>
apps/web/venus-usedcar/venus-usedcar-h5/src/views/car-detail/index.vue
0 → 100644
View file @
c7a457e
<
script
setup
lang=
"ts"
>
import
{
ref
,
onMounted
}
from
"vue"
;
import
{
useRoute
,
useRouter
}
from
"vue-router"
;
import
{
showToast
,
showConfirmDialog
}
from
"vant"
;
import
type
{
CarItem
}
from
"@/api/modules/car"
;
import
{
getCarDetail
,
collectCar
,
uncollectCar
}
from
"@/api/modules/car"
;
import
{
formatDate
,
formatMileage
}
from
"@/utils"
;
const
route
=
useRoute
();
const
router
=
useRouter
();
const
carId
=
Number
(
route
.
params
.
id
);
const
car
=
ref
<
CarItem
|
null
>
(
null
);
const
loading
=
ref
(
false
);
const
collected
=
ref
(
false
);
const
showImagePreview
=
ref
(
false
);
const
previewIndex
=
ref
(
0
);
const
specs
=
ref
<
Array
<
{
label
:
string
;
value
:
string
}
>>
([]);
async
function
loadDetail
()
{
loading
.
value
=
true
;
try
{
const
data
=
await
getCarDetail
(
carId
);
car
.
value
=
data
;
buildSpecs
(
data
);
}
catch
{
// mock 数据
car
.
value
=
{
id
:
carId
,
title
:
"2021款 宝马3系 330i M运动套装"
,
brand
:
"宝马"
,
model
:
"3系"
,
year
:
2021
,
mileage
:
28000
,
price
:
268000
,
city
:
"上海"
,
coverImage
:
"https://fastly.jsdelivr.net/npm/@vant/assets/apple-1.jpeg"
,
images
:
[
"https://fastly.jsdelivr.net/npm/@vant/assets/apple-1.jpeg"
,
"https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg"
,
"https://fastly.jsdelivr.net/npm/@vant/assets/apple-3.jpeg"
,
],
transmission
:
"自动(7速双离合)"
,
displacement
:
"2.0T"
,
color
:
"矿石白"
,
createdAt
:
new
Date
().
toISOString
(),
tags
:
[
"精品车源"
,
"全程质保"
,
"一口价"
],
};
buildSpecs
(
car
.
value
);
}
finally
{
loading
.
value
=
false
;
}
}
function
buildSpecs
(
data
:
CarItem
)
{
specs
.
value
=
[
{
label
:
"品牌"
,
value
:
data
.
brand
},
{
label
:
"车型"
,
value
:
data
.
model
},
{
label
:
"年份"
,
value
:
`
${
data
.
year
}
年`
},
{
label
:
"里程"
,
value
:
formatMileage
(
data
.
mileage
)
},
{
label
:
"变速箱"
,
value
:
data
.
transmission
},
{
label
:
"排量"
,
value
:
data
.
displacement
},
{
label
:
"颜色"
,
value
:
data
.
color
},
{
label
:
"城市"
,
value
:
data
.
city
},
{
label
:
"上架时间"
,
value
:
formatDate
(
data
.
createdAt
)
},
];
}
function
onImageClick
(
index
:
number
)
{
previewIndex
.
value
=
index
;
showImagePreview
.
value
=
true
;
}
async
function
onToggleCollect
()
{
if
(
!
car
.
value
)
return
;
try
{
if
(
collected
.
value
)
{
await
uncollectCar
(
car
.
value
.
id
);
collected
.
value
=
false
;
showToast
(
"已取消收藏"
);
}
else
{
await
collectCar
(
car
.
value
.
id
);
collected
.
value
=
true
;
showToast
(
"收藏成功"
);
}
}
catch
{
showToast
(
"操作失败,请稍后重试"
);
}
}
async
function
onContact
()
{
await
showConfirmDialog
({
title
:
"联系卖家"
,
message
:
"是否拨打卖家电话?"
,
confirmButtonText
:
"拨打"
,
cancelButtonText
:
"取消"
,
});
window
.
location
.
href
=
"tel:400-000-0000"
;
}
function
onBack
()
{
router
.
back
();
}
onMounted
(()
=>
{
loadDetail
();
});
</
script
>
<
template
>
<div
class=
"car-detail-page"
>
<!-- 导航栏 -->
<van-nav-bar
:title=
"car?.brand ?? '车辆详情'"
left-arrow
fixed
placeholder
safe-area-inset-top
@
click-left=
"onBack"
>
<template
#
right
>
<van-icon
:name=
"collected ? 'star' : 'star-o'"
:color=
"collected ? '#ee0a24' : '#323233'"
size=
"20"
@
click=
"onToggleCollect"
/>
</
template
>
</van-nav-bar>
<van-skeleton
:loading=
"loading"
:row=
"8"
animated
>
<
template
v-if=
"car"
>
<!-- 图片轮播 -->
<van-swipe
class=
"detail-swipe"
:autoplay=
"false"
indicator-color=
"#ee0a24"
>
<van-swipe-item
v-for=
"(img, index) in car.images"
:key=
"index"
@
click=
"onImageClick(index)"
>
<van-image
:src=
"img"
width=
"100%"
height=
"220"
fit=
"cover"
/>
</van-swipe-item>
<van-swipe-item
v-if=
"!car.images.length"
@
click=
"onImageClick(0)"
>
<van-image
:src=
"car.coverImage"
width=
"100%"
height=
"220"
fit=
"cover"
/>
</van-swipe-item>
<template
#
indicator=
"
{ active, total }">
<div
class=
"swipe-indicator"
>
{{
active
+
1
}}
/
{{
total
}}
</div>
</
template
>
</van-swipe>
<!-- 价格 & 标题 -->
<div
class=
"detail-header card"
>
<div
class=
"price-section"
>
<div
class=
"price-tag"
>
<span
class=
"unit"
>
¥
</span>
<span
class=
"amount"
>
{{ (car.price / 10000).toFixed(1) }}
</span>
<span
class=
"unit"
>
万
</span>
</div>
<div
class=
"tags"
>
<van-tag
v-for=
"tag in car.tags"
:key=
"tag"
type=
"primary"
plain
>
{{ tag }}
</van-tag>
</div>
</div>
<h2
class=
"car-title"
>
{{ car.title }}
</h2>
<p
class=
"car-summary"
>
<van-icon
name=
"location-o"
size=
"13"
/>
{{ car.city }} · {{ car.year }}年 · {{ formatMileage(car.mileage) }}
</p>
</div>
<!-- 车辆配置 -->
<div
class=
"detail-section card"
>
<div
class=
"section-title"
>
车辆信息
</div>
<van-cell-group
:border=
"false"
>
<van-cell
v-for=
"spec in specs"
:key=
"spec.label"
:title=
"spec.label"
:value=
"spec.value"
/>
</van-cell-group>
</div>
<!-- 图片预览 -->
<van-image-preview
v-model:show=
"showImagePreview"
:images=
"car.images.length ? car.images : [car.coverImage]"
:start-position=
"previewIndex"
/>
</template>
</van-skeleton>
<!-- 底部操作栏 -->
<div
class=
"detail-footer"
>
<van-button
plain
:icon=
"collected ? 'star' : 'star-o'"
:color=
"collected ? '#ee0a24' : '#646566'"
size=
"small"
@
click=
"onToggleCollect"
>
{{ collected ? "已收藏" : "收藏" }}
</van-button>
<van-button
type=
"primary"
block
round
size=
"normal"
color=
"#ee0a24"
icon=
"phone-o"
@
click=
"onContact"
>
联系卖家
</van-button>
</div>
</div>
</template>
<
style
lang=
"scss"
scoped
>
@use
"@/assets/styles/variables"
as
*
;
.car-detail-page
{
background-color
:
var
(
--color-bg-page
);
min-height
:
100vh
;
padding-bottom
:
calc
(
64px
+
env
(
safe-area-inset-bottom
));
}
.detail-swipe
{
.swipe-indicator
{
position
:
absolute
;
right
:
12px
;
bottom
:
8px
;
padding
:
2px
8px
;
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
color
:
#fff
;
font-size
:
$
font-size-xs
;
border-radius
:
$
radius-full
;
}
}
.detail-header
{
margin
:
10px
12px
;
padding
:
14px
;
border-radius
:
$
radius-base
;
.price-section
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-bottom
:
8px
;
}
.price-tag
{
color
:
$
color-primary
;
font-weight
:
700
;
.unit
{
font-size
:
$
font-size-sm
;
}
.amount
{
font-size
:
28px
;
}
}
.tags
{
display
:
flex
;
gap
:
4px
;
flex-wrap
:
wrap
;
}
.car-title
{
font-size
:
$
font-size-md
;
font-weight
:
700
;
color
:
$
color-text-primary
;
margin-bottom
:
6px
;
line-height
:
1.4
;
}
.car-summary
{
font-size
:
$
font-size-sm
;
color
:
$
color-text-secondary
;
display
:
flex
;
align-items
:
center
;
gap
:
3px
;
}
}
.detail-section
{
margin
:
0
12px
10px
;
border-radius
:
$
radius-base
;
overflow
:
hidden
;
.section-title
{
font-size
:
$
font-size-base
;
font-weight
:
700
;
color
:
$
color-text-primary
;
padding
:
12px
16px
6px
;
}
}
.detail-footer
{
position
:
fixed
;
bottom
:
0
;
left
:
0
;
right
:
0
;
display
:
flex
;
align-items
:
center
;
gap
:
12px
;
padding
:
10px
16px
calc
(
10px
+
env
(
safe-area-inset-bottom
));
background-color
:
$
color-bg-card
;
box-shadow
:
0
-2px
10px
rgba
(
0
,
0
,
0
,
0.08
);
.
van-button
:
first-child
{
flex-shrink
:
0
;
width
:
80px
;
}
.van-button
:last-child
{
flex
:
1
;
}
}
</
style
>
apps/web/venus-usedcar/venus-usedcar-h5/src/views/car-list/index.vue
0 → 100644
View file @
c7a457e
<
script
setup
lang=
"ts"
>
import
{
ref
,
onMounted
}
from
"vue"
;
import
{
useRouter
,
useRoute
}
from
"vue-router"
;
import
type
{
CarItem
,
CarListParams
}
from
"@/api/modules/car"
;
import
{
getCarList
}
from
"@/api/modules/car"
;
import
{
formatMileage
,
formatPrice
}
from
"@/utils"
;
const
router
=
useRouter
();
const
route
=
useRoute
();
const
carList
=
ref
<
CarItem
[]
>
([]);
const
loading
=
ref
(
false
);
const
finished
=
ref
(
false
);
const
refreshing
=
ref
(
false
);
const
params
=
ref
<
CarListParams
>
({
page
:
1
,
pageSize
:
10
,
keyword
:
(
route
.
query
.
keyword
as
string
)
||
""
,
sortBy
:
"newest"
,
});
const
searchValue
=
ref
(
params
.
value
.
keyword
??
""
);
const
sortOptions
=
[
{
label
:
"最新"
,
value
:
"newest"
},
{
label
:
"价格升序"
,
value
:
"price_asc"
},
{
label
:
"价格降序"
,
value
:
"price_desc"
},
{
label
:
"里程升序"
,
value
:
"mileage_asc"
},
];
async
function
loadData
(
reset
=
false
)
{
if
(
reset
)
{
params
.
value
.
page
=
1
;
finished
.
value
=
false
;
}
loading
.
value
=
true
;
try
{
const
res
=
await
getCarList
(
params
.
value
);
const
newList
=
res
.
list
;
if
(
reset
)
{
carList
.
value
=
newList
;
}
else
{
carList
.
value
.
push
(...
newList
);
}
if
(
carList
.
value
.
length
>=
res
.
total
||
newList
.
length
<
(
params
.
value
.
pageSize
??
10
))
{
finished
.
value
=
true
;
}
else
{
params
.
value
.
page
=
(
params
.
value
.
page
??
1
)
+
1
;
}
}
catch
{
// 展示 mock 数据
if
(
reset
)
{
carList
.
value
=
Array
.
from
({
length
:
8
},
(
_
,
i
)
=>
({
id
:
i
+
1
,
title
:
`2021款
${[
"宝马3系"
,
"奥迪A4L"
,
"奔驰C级"
,
"大众帕萨特"
][
i
%
4
]}
330i 豪华型`
,
brand
:
[
"宝马"
,
"奥迪"
,
"奔驰"
,
"大众"
][
i
%
4
],
model
:
[
"3系"
,
"A4L"
,
"C级"
,
"帕萨特"
][
i
%
4
],
year
:
2019
+
(
i
%
4
),
mileage
:
20000
+
i
*
8000
,
price
:
180000
+
i
*
30000
,
city
:
[
"上海"
,
"北京"
,
"广州"
,
"深圳"
][
i
%
4
],
coverImage
:
`https://fastly.jsdelivr.net/npm/@vant/assets/apple-
${(
i
%
3
)
+
1
}
.jpeg`
,
images
:
[],
transmission
:
"自动"
,
displacement
:
"2.0T"
,
color
:
[
"白色"
,
"黑色"
,
"银色"
,
"蓝色"
][
i
%
4
],
createdAt
:
new
Date
().
toISOString
(),
tags
:
i
%
2
===
0
?
[
"精品车源"
]
:
[
"全程质保"
,
"一口价"
],
}));
finished
.
value
=
true
;
}
}
finally
{
loading
.
value
=
false
;
refreshing
.
value
=
false
;
}
}
function
onLoad
()
{
loadData
();
}
function
onRefresh
()
{
loadData
(
true
);
}
function
onSearch
()
{
params
.
value
.
keyword
=
searchValue
.
value
;
loadData
(
true
);
}
function
onSortChange
(
val
:
string
)
{
params
.
value
.
sortBy
=
val
as
CarListParams
[
"sortBy"
];
loadData
(
true
);
}
function
onCarClick
(
id
:
number
)
{
router
.
push
({
name
:
"CarDetail"
,
params
:
{
id
}
});
}
onMounted
(()
=>
{
loadData
(
true
);
});
</
script
>
<
template
>
<div
class=
"car-list-page"
>
<!-- 搜索栏 -->
<van-sticky>
<van-search
v-model=
"searchValue"
placeholder=
"搜索品牌、车型..."
shape=
"round"
@
search=
"onSearch"
/>
</van-sticky>
<!-- 排序筛选 -->
<div
class=
"sort-bar"
>
<van-tabs
:model-value=
"params.sortBy"
shrink
@
change=
"onSortChange"
>
<van-tab
v-for=
"opt in sortOptions"
:key=
"opt.value"
:title=
"opt.label"
:name=
"opt.value"
/>
</van-tabs>
</div>
<!-- 列表 -->
<van-pull-refresh
v-model=
"refreshing"
@
refresh=
"onRefresh"
>
<van-list
v-model:loading=
"loading"
:finished=
"finished"
finished-text=
"没有更多了"
@
load=
"onLoad"
>
<div
v-for=
"car in carList"
:key=
"car.id"
class=
"car-list-item card"
@
click=
"onCarClick(car.id)"
>
<van-image
:src=
"car.coverImage"
width=
"120"
height=
"90"
fit=
"cover"
lazy-load
radius=
"4"
/>
<div
class=
"car-list-info"
>
<p
class=
"car-title ellipsis-2"
>
{{
car
.
title
}}
</p>
<div
class=
"car-tags"
>
<van-tag
v-for=
"tag in car.tags.slice(0, 2)"
:key=
"tag"
type=
"primary"
plain
size=
"small"
>
{{
tag
}}
</van-tag>
</div>
<p
class=
"car-specs ellipsis"
>
{{
car
.
year
}}
年 ·
{{
formatMileage
(
car
.
mileage
)
}}
·
{{
car
.
city
}}
</p>
<div
class=
"car-bottom flex-between"
>
<div
class=
"car-price price-tag"
>
<span
class=
"amount"
>
{{
formatPrice
(
car
.
price
)
}}
</span>
<span
class=
"unit"
>
元
</span>
</div>
<van-icon
name=
"arrow"
color=
"#c8c9cc"
/>
</div>
</div>
</div>
</van-list>
</van-pull-refresh>
</div>
</
template
>
<
style
lang=
"scss"
scoped
>
@use
"@/assets/styles/variables"
as
*
;
.car-list-page
{
background-color
:
var
(
--color-bg-page
);
min-height
:
100vh
;
padding-bottom
:
calc
(
#{$
tabbar-height
}
+
env
(
safe-area-inset-bottom
)
+
12px
);
}
.sort-bar
{
background-color
:
$
color-bg-card
;
margin-bottom
:
8px
;
}
.car-list-item
{
display
:
flex
;
gap
:
12px
;
margin
:
0
12px
10px
;
padding
:
12px
;
border-radius
:
$
radius-base
;
.car-list-info
{
flex
:
1
;
min-width
:
0
;
display
:
flex
;
flex-direction
:
column
;
gap
:
5px
;
}
.car-title
{
font-size
:
$
font-size-base
;
font-weight
:
600
;
color
:
$
color-text-primary
;
line-height
:
1.4
;
}
.car-tags
{
display
:
flex
;
gap
:
4px
;
flex-wrap
:
wrap
;
}
.car-specs
{
font-size
:
$
font-size-xs
;
color
:
$
color-text-secondary
;
}
.car-bottom
{
margin-top
:
auto
;
}
.car-price
{
.amount
{
font-size
:
$
font-size-lg
;
}
.unit
{
font-size
:
$
font-size-xs
;
}
}
}
</
style
>
apps/web/venus-usedcar/venus-usedcar-h5/src/views/home/index.vue
0 → 100644
View file @
c7a457e
<
script
setup
lang=
"ts"
>
import
{
ref
,
onMounted
}
from
"vue"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
showToast
}
from
"vant"
;
import
type
{
CarItem
}
from
"@/api/modules/car"
;
import
{
getRecommendedCars
}
from
"@/api/modules/car"
;
const
router
=
useRouter
();
const
bannerList
=
ref
([
{
id
:
1
,
image
:
"https://fastly.jsdelivr.net/npm/@vant/assets/apple-1.jpeg"
,
link
:
""
},
{
id
:
2
,
image
:
"https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg"
,
link
:
""
},
{
id
:
3
,
image
:
"https://fastly.jsdelivr.net/npm/@vant/assets/apple-3.jpeg"
,
link
:
""
},
]);
const
carList
=
ref
<
CarItem
[]
>
([]);
const
loading
=
ref
(
false
);
const
categoryList
=
[
{
icon
:
"car-o"
,
label
:
"轿车"
,
value
:
"sedan"
},
{
icon
:
"logistics"
,
label
:
"SUV"
,
value
:
"suv"
},
{
icon
:
"gem-o"
,
label
:
"豪华车"
,
value
:
"luxury"
},
{
icon
:
"coupon-o"
,
label
:
"特价车"
,
value
:
"special"
},
{
icon
:
"award-o"
,
label
:
"精品车"
,
value
:
"premium"
},
{
icon
:
"chart-trending-o"
,
label
:
"新上架"
,
value
:
"new"
},
{
icon
:
"shield-o"
,
label
:
"认证车"
,
value
:
"certified"
},
{
icon
:
"apps-o"
,
label
:
"全部"
,
value
:
"all"
},
];
async
function
loadRecommended
()
{
loading
.
value
=
true
;
try
{
const
data
=
await
getRecommendedCars
(
6
);
carList
.
value
=
data
;
}
catch
{
// 加载失败时使用 mock 数据展示
carList
.
value
=
Array
.
from
({
length
:
4
},
(
_
,
i
)
=>
({
id
:
i
+
1
,
title
:
`2021款 大众帕萨特 330TSI 豪华版`
,
brand
:
"大众"
,
model
:
"帕萨特"
,
year
:
2021
,
mileage
:
35000
+
i
*
5000
,
price
:
180000
+
i
*
10000
,
city
:
"上海"
,
coverImage
:
`https://fastly.jsdelivr.net/npm/@vant/assets/apple-
${(
i
%
3
)
+
1
}
.jpeg`
,
images
:
[],
transmission
:
"自动"
,
displacement
:
"2.0T"
,
color
:
"白色"
,
createdAt
:
new
Date
().
toISOString
(),
tags
:
[
"精品车源"
,
"全程质保"
],
}));
}
finally
{
loading
.
value
=
false
;
}
}
function
onCategoryClick
(
value
:
string
)
{
router
.
push
({
name
:
"CarList"
,
query
:
{
category
:
value
}
});
}
function
onCarClick
(
id
:
number
)
{
router
.
push
({
name
:
"CarDetail"
,
params
:
{
id
}
});
}
function
onSearch
()
{
router
.
push
({
name
:
"CarList"
});
}
onMounted
(()
=>
{
loadRecommended
();
});
</
script
>
<
template
>
<div
class=
"home-page safe-bottom"
>
<!-- 搜索栏 -->
<div
class=
"home-search"
@
click=
"onSearch"
>
<van-search
placeholder=
"搜索品牌、车型..."
readonly
shape=
"round"
background=
"#ee0a24"
/>
</div>
<!-- 轮播图 -->
<van-swipe
class=
"home-banner"
:autoplay=
"3000"
indicator-color=
"#ee0a24"
>
<van-swipe-item
v-for=
"item in bannerList"
:key=
"item.id"
>
<img
:src=
"item.image"
class=
"banner-img"
alt=
"banner"
/>
</van-swipe-item>
</van-swipe>
<!-- 分类导航 -->
<div
class=
"home-category card"
>
<van-grid
:column-num=
"4"
:border=
"false"
>
<van-grid-item
v-for=
"cat in categoryList"
:key=
"cat.value"
:icon=
"cat.icon"
:text=
"cat.label"
icon-color=
"#ee0a24"
@
click=
"onCategoryClick(cat.value)"
/>
</van-grid>
</div>
<!-- 推荐车源 -->
<div
class=
"home-section"
>
<div
class=
"section-header flex-between"
>
<span
class=
"section-title"
>
精品推荐
</span>
<span
class=
"section-more"
@
click=
"onCategoryClick('all')"
>
更多
<van-icon
name=
"arrow"
/>
</span>
</div>
<van-loading
v-if=
"loading"
class=
"loading-center"
/>
<div
v-else
class=
"car-grid"
>
<div
v-for=
"car in carList"
:key=
"car.id"
class=
"car-card card"
@
click=
"onCarClick(car.id)"
>
<van-image
:src=
"car.coverImage"
width=
"100%"
height=
"140"
fit=
"cover"
lazy-load
/>
<div
class=
"car-info"
>
<p
class=
"car-title ellipsis"
>
{{
car
.
title
}}
</p>
<div
class=
"car-tags"
>
<van-tag
v-for=
"tag in car.tags.slice(0, 2)"
:key=
"tag"
type=
"primary"
plain
size=
"small"
>
{{
tag
}}
</van-tag>
</div>
<div
class=
"car-meta flex-between"
>
<div
class=
"car-specs ellipsis"
>
{{
car
.
year
}}
年 ·
{{
(
car
.
mileage
/
10000
).
toFixed
(
1
)
}}
万公里
</div>
<div
class=
"car-price price-tag"
>
<span
class=
"amount"
>
{{
(
car
.
price
/
10000
).
toFixed
(
1
)
}}
</span>
<span
class=
"unit"
>
万
</span>
</div>
</div>
<div
class=
"car-city"
>
<van-icon
name=
"location-o"
size=
"12"
/>
<span>
{{
car
.
city
}}
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</
template
>
<
style
lang=
"scss"
scoped
>
@use
"@/assets/styles/variables"
as
*
;
.home-page
{
background-color
:
var
(
--color-bg-page
);
}
.home-search
{
background-color
:
$
color-primary
;
}
.home-banner
{
.banner-img
{
width
:
100%
;
height
:
160px
;
object-fit
:
cover
;
}
}
.home-category
{
margin
:
12px
;
border-radius
:
$
radius-base
;
}
.home-section
{
padding
:
0
12px
12px
;
}
.section-header
{
padding
:
12px
0
8px
;
.section-title
{
font-size
:
$
font-size-md
;
font-weight
:
700
;
color
:
$
color-text-primary
;
}
.section-more
{
font-size
:
$
font-size-sm
;
color
:
$
color-text-secondary
;
display
:
flex
;
align-items
:
center
;
gap
:
2px
;
}
}
.loading-center
{
display
:
flex
;
justify-content
:
center
;
padding
:
32px
0
;
}
.car-grid
{
display
:
grid
;
grid-template-columns
:
1
fr
1
fr
;
gap
:
10px
;
}
.car-card
{
overflow
:
hidden
;
border-radius
:
$
radius-base
;
.car-info
{
padding
:
8px
;
}
.car-title
{
font-size
:
$
font-size-base
;
font-weight
:
600
;
color
:
$
color-text-primary
;
margin-bottom
:
6px
;
}
.car-tags
{
display
:
flex
;
gap
:
4px
;
margin-bottom
:
6px
;
flex-wrap
:
wrap
;
}
.car-meta
{
margin-bottom
:
4px
;
}
.car-specs
{
font-size
:
$
font-size-xs
;
color
:
$
color-text-secondary
;
flex
:
1
;
margin-right
:
4px
;
}
.car-price
{
white-space
:
nowrap
;
.amount
{
font-size
:
$
font-size-md
;
}
.unit
{
font-size
:
$
font-size-xs
;
}
}
.car-city
{
display
:
flex
;
align-items
:
center
;
gap
:
2px
;
font-size
:
$
font-size-xs
;
color
:
$
color-text-secondary
;
}
}
</
style
>
apps/web/venus-usedcar/venus-usedcar-h5/src/views/mine/index.vue
0 → 100644
View file @
c7a457e
<
script
setup
lang=
"ts"
>
import
{
ref
}
from
"vue"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
showToast
}
from
"vant"
;
import
{
useUserStore
}
from
"@/stores"
;
const
router
=
useRouter
();
const
userStore
=
useUserStore
();
const
menuList
=
[
{
title
:
"我的收藏"
,
icon
:
"star-o"
,
iconColor
:
"#ee0a24"
,
action
:
()
=>
showToast
(
"功能开发中"
),
},
{
title
:
"浏览历史"
,
icon
:
"clock-o"
,
iconColor
:
"#1989fa"
,
action
:
()
=>
showToast
(
"功能开发中"
),
},
{
title
:
"我的订单"
,
icon
:
"orders-o"
,
iconColor
:
"#07c160"
,
action
:
()
=>
showToast
(
"功能开发中"
),
},
{
title
:
"消息通知"
,
icon
:
"bell"
,
iconColor
:
"#ff976a"
,
action
:
()
=>
showToast
(
"功能开发中"
),
},
];
const
settingList
=
[
{
title
:
"关于我们"
,
icon
:
"info-o"
,
action
:
()
=>
showToast
(
"功能开发中"
),
},
{
title
:
"意见反馈"
,
icon
:
"comment-o"
,
action
:
()
=>
showToast
(
"功能开发中"
),
},
{
title
:
"隐私政策"
,
icon
:
"shield-o"
,
action
:
()
=>
showToast
(
"功能开发中"
),
},
];
function
onLogin
()
{
showToast
(
"登录功能开发中"
);
}
async
function
onLogout
()
{
userStore
.
logout
();
showToast
(
"已退出登录"
);
}
</
script
>
<
template
>
<div
class=
"mine-page safe-bottom"
>
<!-- 用户信息 -->
<div
class=
"mine-header"
>
<div
class=
"header-bg"
/>
<div
class=
"user-info"
>
<van-image
:src=
"userStore.userInfo?.avatar || ''"
width=
"64"
height=
"64"
round
fit=
"cover"
class=
"avatar"
>
<template
#
error
>
<van-icon
name=
"contact"
size=
"36"
color=
"#fff"
/>
</
template
>
</van-image>
<div
v-if=
"userStore.isLoggedIn"
class=
"user-detail"
>
<p
class=
"username"
>
{{ userStore.username }}
</p>
<p
class=
"phone"
>
{{ userStore.userInfo?.phone }}
</p>
</div>
<div
v-else
class=
"user-login"
@
click=
"onLogin"
>
<p
class=
"login-text"
>
点击登录
</p>
<p
class=
"login-tip"
>
登录后享受更多服务
</p>
</div>
</div>
</div>
<!-- 数据统计 -->
<div
class=
"mine-stats card"
>
<div
class=
"stat-item"
@
click=
"showToast('功能开发中')"
>
<div
class=
"stat-value"
>
0
</div>
<div
class=
"stat-label"
>
收藏
</div>
</div>
<div
class=
"stat-divider"
/>
<div
class=
"stat-item"
@
click=
"showToast('功能开发中')"
>
<div
class=
"stat-value"
>
0
</div>
<div
class=
"stat-label"
>
浏览
</div>
</div>
<div
class=
"stat-divider"
/>
<div
class=
"stat-item"
@
click=
"showToast('功能开发中')"
>
<div
class=
"stat-value"
>
0
</div>
<div
class=
"stat-label"
>
询价
</div>
</div>
</div>
<!-- 功能菜单 -->
<van-cell-group
class=
"mine-menu"
inset
>
<van-cell
v-for=
"item in menuList"
:key=
"item.title"
:title=
"item.title"
is-link
center
@
click=
"item.action"
>
<
template
#
icon
>
<van-icon
:name=
"item.icon"
:color=
"item.iconColor"
size=
"20"
class=
"menu-icon"
/>
</
template
>
</van-cell>
</van-cell-group>
<!-- 设置项 -->
<van-cell-group
class=
"mine-settings"
inset
>
<van-cell
v-for=
"item in settingList"
:key=
"item.title"
:title=
"item.title"
is-link
center
@
click=
"item.action"
>
<
template
#
icon
>
<van-icon
:name=
"item.icon"
color=
"#969799"
size=
"20"
class=
"menu-icon"
/>
</
template
>
</van-cell>
</van-cell-group>
<!-- 退出登录 -->
<div
v-if=
"userStore.isLoggedIn"
class=
"logout-btn"
>
<van-button
block
round
plain
color=
"#ee0a24"
@
click=
"onLogout"
>
退出登录
</van-button>
</div>
<!-- 版本号 -->
<div
class=
"app-version"
>
当前版本 v{{ __APP_VERSION__ ?? '1.0.0' }}
</div>
</div>
</template>
<
script
lang=
"ts"
>
const
__APP_VERSION__
=
"1.0.0"
;
</
script
>
<
style
lang=
"scss"
scoped
>
@use
"@/assets/styles/variables"
as
*
;
.mine-page
{
background-color
:
var
(
--color-bg-page
);
min-height
:
100vh
;
}
.mine-header
{
position
:
relative
;
padding-bottom
:
16px
;
.header-bg
{
position
:
absolute
;
top
:
0
;
left
:
0
;
right
:
0
;
height
:
120px
;
background
:
linear-gradient
(
135deg
,
#ee0a24
0%
,
#ff5a5a
100%
);
border-radius
:
0
0
24px
24px
;
}
.user-info
{
position
:
relative
;
display
:
flex
;
align-items
:
center
;
gap
:
14px
;
padding
:
40px
20px
20px
;
z-index
:
1
;
}
.avatar
{
flex-shrink
:
0
;
border
:
3px
solid
rgba
(
255
,
255
,
255
,
0.6
);
border-radius
:
50%
;
background-color
:
rgba
(
255
,
255
,
255
,
0.2
);
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.user-detail
{
.username
{
font-size
:
$
font-size-lg
;
font-weight
:
700
;
color
:
#fff
;
margin-bottom
:
4px
;
}
.phone
{
font-size
:
$
font-size-sm
;
color
:
rgba
(
255
,
255
,
255
,
0.8
);
}
}
.user-login
{
cursor
:
pointer
;
.login-text
{
font-size
:
$
font-size-lg
;
font-weight
:
700
;
color
:
#fff
;
margin-bottom
:
4px
;
}
.login-tip
{
font-size
:
$
font-size-sm
;
color
:
rgba
(
255
,
255
,
255
,
0.8
);
}
}
}
.mine-stats
{
display
:
flex
;
align-items
:
center
;
margin
:
0
12px
12px
;
padding
:
16px
0
;
border-radius
:
$
radius-base
;
.stat-item
{
flex
:
1
;
text-align
:
center
;
cursor
:
pointer
;
.stat-value
{
font-size
:
$
font-size-xl
;
font-weight
:
700
;
color
:
$
color-text-primary
;
margin-bottom
:
4px
;
}
.stat-label
{
font-size
:
$
font-size-xs
;
color
:
$
color-text-secondary
;
}
}
.stat-divider
{
width
:
1px
;
height
:
32px
;
background-color
:
$
color-border
;
}
}
.mine-menu
,
.mine-settings
{
margin-bottom
:
12px
;
.menu-icon
{
margin-right
:
10px
;
}
}
.logout-btn
{
padding
:
0
12px
;
margin-bottom
:
16px
;
}
.app-version
{
text-align
:
center
;
font-size
:
$
font-size-xs
;
color
:
$
color-text-disabled
;
padding-bottom
:
8px
;
}
</
style
>
apps/web/venus-usedcar/venus-usedcar-h5/tsconfig.json
0 → 100644
View file @
c7a457e
{
"compilerOptions"
:
{
"target"
:
"ES2020"
,
"jsx"
:
"preserve"
,
"jsxImportSource"
:
"vue"
,
"lib"
:
[
"ES2020"
,
"DOM"
,
"DOM.Iterable"
],
"useDefineForClassFields"
:
true
,
"baseUrl"
:
"."
,
"module"
:
"ESNext"
,
"moduleResolution"
:
"bundler"
,
"paths"
:
{
"@/*"
:
[
"src/*"
],
"@assets/*"
:
[
"src/assets/*"
],
"@views/*"
:
[
"src/views/*"
],
"@components/*"
:
[
"src/components/*"
],
"@stores/*"
:
[
"src/stores/*"
],
"@utils/*"
:
[
"src/utils/*"
],
"@api/*"
:
[
"src/api/*"
],
"@composables/*"
:
[
"src/composables/*"
]
},
"resolveJsonModule"
:
true
,
"allowImportingTsExtensions"
:
true
,
"allowJs"
:
true
,
"strict"
:
true
,
"noFallthroughCasesInSwitch"
:
true
,
"noUnusedLocals"
:
true
,
"noUnusedParameters"
:
true
,
"noEmit"
:
true
,
"isolatedModules"
:
true
,
"skipLibCheck"
:
true
,
"types"
:
[
"vite/client"
]
},
"references"
:
[{
"path"
:
"./tsconfig.node.json"
}],
"include"
:
[
"env.d.ts"
,
"src/**/*.ts"
,
"src/**/*.tsx"
,
"src/**/*.vue"
]
}
apps/web/venus-usedcar/venus-usedcar-h5/tsconfig.node.json
0 → 100644
View file @
c7a457e
{
"compilerOptions"
:
{
"composite"
:
true
,
"module"
:
"ESNext"
,
"moduleResolution"
:
"bundler"
,
"allowSyntheticDefaultImports"
:
true
,
"skipLibCheck"
:
true
,
"strict"
:
true
},
"include"
:
[
"vite.config.ts"
]
}
apps/web/venus-usedcar/venus-usedcar-h5/vite.config.ts
0 → 100644
View file @
c7a457e
import
{
dirname
,
resolve
}
from
"node:path"
;
import
{
fileURLToPath
}
from
"node:url"
;
import
vue
from
"@vitejs/plugin-vue"
;
import
autoprefixer
from
"autoprefixer"
;
import
AutoImport
from
"unplugin-auto-import/vite"
;
import
Components
from
"unplugin-vue-components/vite"
;
import
{
VantResolver
}
from
"unplugin-vue-components/resolvers"
;
import
{
defineConfig
,
loadEnv
}
from
"vite"
;
// @ts-expect-error - no types provided
import
pxToViewport
from
"postcss-px-to-viewport-8-plugin"
;
const
__filename
=
fileURLToPath
(
import
.
meta
.
url
);
const
__dirname
=
dirname
(
__filename
);
const
PORT
=
8082
;
export
default
defineConfig
(({
mode
})
=>
{
const
env
=
loadEnv
(
mode
,
process
.
cwd
(),
"VITE_"
);
return
{
plugins
:
[
vue
(),
AutoImport
({
imports
:
[
"vue"
,
"vue-router"
,
"pinia"
,
"@vueuse/core"
],
dts
:
"src/auto-imports.d.ts"
,
eslintrc
:
{
enabled
:
false
},
}),
Components
({
dts
:
"src/components.d.ts"
,
resolvers
:
[
VantResolver
()],
dirs
:
[
"src/components"
,
"src/layouts"
],
}),
],
resolve
:
{
alias
:
{
"@"
:
resolve
(
__dirname
,
"src"
),
"@assets"
:
resolve
(
__dirname
,
"src/assets"
),
"@views"
:
resolve
(
__dirname
,
"src/views"
),
"@components"
:
resolve
(
__dirname
,
"src/components"
),
"@stores"
:
resolve
(
__dirname
,
"src/stores"
),
"@utils"
:
resolve
(
__dirname
,
"src/utils"
),
"@api"
:
resolve
(
__dirname
,
"src/api"
),
"@composables"
:
resolve
(
__dirname
,
"src/composables"
),
},
},
css
:
{
preprocessorOptions
:
{
scss
:
{
api
:
"modern-compiler"
,
},
},
postcss
:
{
plugins
:
[
autoprefixer
({
overrideBrowserslist
:
[
"Android >= 4"
,
"iOS >= 7"
,
"Chrome >= 31"
],
}),
pxToViewport
({
viewportWidth
:
375
,
unitPrecision
:
5
,
viewportUnit
:
"vw"
,
fontViewportUnit
:
"vw"
,
selectorBlackList
:
[
".ignore"
,
".hairlines"
,
"html"
],
minPixelValue
:
1
,
mediaQuery
:
false
,
}),
],
},
},
server
:
{
port
:
PORT
,
host
:
true
,
proxy
:
{
"/api"
:
{
target
:
env
.
VITE_API_BASE_URL
||
"http://localhost:3000"
,
changeOrigin
:
true
,
rewrite
:
(
path
)
=>
path
.
replace
(
/^
\/
api/
,
""
),
},
},
},
build
:
{
target
:
"es2015"
,
outDir
:
"dist"
,
cssCodeSplit
:
true
,
rollupOptions
:
{
output
:
{
chunkFileNames
:
"assets/js/[name]-[hash].js"
,
entryFileNames
:
"assets/js/[name]-[hash].js"
,
assetFileNames
:
({
name
=
""
})
=>
{
if
(
/
\.(
png|jpe
?
g|gif|svg|webp|ico
)
$/
.
test
(
name
))
{
return
"assets/images/[name]-[hash].[ext]"
;
}
if
(
/
\.
css$/
.
test
(
name
))
{
return
"assets/css/[name]-[hash].[ext]"
;
}
return
"assets/[ext]/[name]-[hash].[ext]"
;
},
manualChunks
:
{
"vue-core"
:
[
"vue"
,
"vue-router"
,
"pinia"
],
vant
:
[
"vant"
],
},
},
},
},
optimizeDeps
:
{
include
:
[
"vue"
,
"vue-router"
,
"pinia"
,
"@vueuse/core"
,
"axios"
,
"dayjs"
],
},
};
});
pnpm-lock.yaml
View file @
c7a457e
...
@@ -600,42 +600,6 @@ importers:
...
@@ -600,42 +600,6 @@ importers:
specifier
:
^7.1.2
specifier
:
^7.1.2
version
:
7.3.1(@types/node@24.10.4)(jiti@2.6.1)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2)
version
:
7.3.1(@types/node@24.10.4)(jiti@2.6.1)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2)
apps/uniappX/uniapp-x-shop/uni_modules/cool-unix
:
{}
apps/uniappX/uniapp-x-shop/uni_modules/cool-unix/配置文件
:
dependencies
:
vue
:
specifier
:
^3.5.17
version
:
3.5.26(typescript@5.9.3)
devDependencies
:
'
@cool-vue/vite-plugin'
:
specifier
:
8.2.12
version
:
8.2.12
'
@dcloudio/types'
:
specifier
:
^3.4.16
version
:
3.4.29
'
@types/node'
:
specifier
:
^24.9.2
version
:
24.10.4
'
@vue/tsconfig'
:
specifier
:
^0.7.0
version
:
0.7.0(typescript@5.9.3)(vue@3.5.26(typescript@5.9.3))
autoprefixer
:
specifier
:
^10.4.21
version
:
10.4.23(postcss@8.5.6)
postcss
:
specifier
:
^8.5.3
version
:
8.5.6
prettier
:
specifier
:
^3.5.3
version
:
3.7.4
tailwindcss
:
specifier
:
3.4.17
version
:
3.4.17
vite
:
specifier
:
^7.1.2
version
:
7.3.1(@types/node@24.10.4)(jiti@2.6.1)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2)
apps/uniappX/uniapp-x-tape
:
apps/uniappX/uniapp-x-tape
:
dependencies
:
dependencies
:
'
@types/echarts'
:
'
@types/echarts'
:
...
@@ -706,35 +670,6 @@ importers:
...
@@ -706,35 +670,6 @@ importers:
specifier
:
^4.7.5
specifier
:
^4.7.5
version
:
4.10.2(magicast@0.5.1)(tailwindcss@3.4.17)
version
:
4.10.2(magicast@0.5.1)(tailwindcss@3.4.17)
apps/uniappX/uniapp-x-tape/uni_modules/e-chart
:
{}
apps/uniappX/uniapp-x-tape/uni_modules/lime-echart
:
dependencies
:
echarts
:
specifier
:
^5.4.1
version
:
5.6.0
zrender
:
specifier
:
^5.4.3
version
:
5.6.1
apps/uniappX/uniapp-x-tape/uni_modules/lime-sqlite
:
dependencies
:
sql.js
:
specifier
:
^1.13.0
version
:
1.14.0
apps/uniappX/uniapp-x-tape/uni_modules/permission-handler-plus
:
{}
apps/uniappX/uniapp-x-tape/uni_modules/plus-migration
:
{}
apps/uniappX/uniapp-x-tape/uni_modules/uni-getbatteryinfo
:
{}
apps/uniappX/uniapp-x-tape/uni_modules/uts-openSchema
:
{}
apps/uniappX/uniapp-x-tape/uni_modules/uts-recorder
:
{}
apps/uniappX/uniapp-x-tape/uni_modules/z-paging-x
:
{}
apps/web/venus-agentic/venus-agentic-assisant
:
apps/web/venus-agentic/venus-agentic-assisant
:
dependencies
:
dependencies
:
'
@element-plus/icons-vue'
:
'
@element-plus/icons-vue'
:
...
@@ -893,6 +828,70 @@ importers:
...
@@ -893,6 +828,70 @@ importers:
specifier
:
'
catalog:'
specifier
:
'
catalog:'
version
:
2.2.10(typescript@5.9.3)
version
:
2.2.10(typescript@5.9.3)
apps/web/venus-usedcar/venus-usedcar-h5
:
dependencies
:
'
@vueuse/core'
:
specifier
:
'
catalog:'
version
:
13.9.0(vue@3.5.26(typescript@5.9.3))
axios
:
specifier
:
'
catalog:'
version
:
1.7.9
dayjs
:
specifier
:
'
catalog:'
version
:
1.11.19
glsk-toolkit
:
specifier
:
'
catalog:'
version
:
1.0.5
pinia
:
specifier
:
^3.0.3
version
:
3.0.4(typescript@5.9.3)(vue@3.5.26(typescript@5.9.3))
pinia-plugin-persistedstate
:
specifier
:
'
catalog:'
version
:
4.7.1(pinia@3.0.4(typescript@5.9.3)(vue@3.5.26(typescript@5.9.3)))
vant
:
specifier
:
^4.9.0
version
:
4.9.22(vue@3.5.26(typescript@5.9.3))
vue
:
specifier
:
^3.5.17
version
:
3.5.26(typescript@5.9.3)
vue-router
:
specifier
:
'
catalog:'
version
:
4.6.4(vue@3.5.26(typescript@5.9.3))
devDependencies
:
'
@types/node'
:
specifier
:
^24.9.2
version
:
24.10.4
'
@vitejs/plugin-vue'
:
specifier
:
'
catalog:'
version
:
6.0.3(vite@7.3.1(@types/node@24.10.4)(jiti@2.6.1)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2))(vue@3.5.26(typescript@5.9.3))
autoprefixer
:
specifier
:
'
catalog:'
version
:
10.4.23(postcss@8.5.6)
postcss
:
specifier
:
'
catalog:'
version
:
8.5.6
postcss-px-to-viewport-8-plugin
:
specifier
:
^1.2.5
version
:
1.2.5
sass
:
specifier
:
'
catalog:'
version
:
1.97.2
typescript
:
specifier
:
'
catalog:'
version
:
5.9.3
unplugin-auto-import
:
specifier
:
'
catalog:'
version
:
0.17.8(@vueuse/core@13.9.0(vue@3.5.26(typescript@5.9.3)))(rollup@4.55.1)
unplugin-vue-components
:
specifier
:
'
catalog:'
version
:
0.26.0(@babel/parser@7.29.0)(rollup@4.55.1)(vue@3.5.26(typescript@5.9.3))
vite
:
specifier
:
^7.1.2
version
:
7.3.1(@types/node@24.10.4)(jiti@2.6.1)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2)
vue-tsc
:
specifier
:
'
catalog:'
version
:
2.2.10(typescript@5.9.3)
docs
:
docs
:
dependencies
:
dependencies
:
vue
:
vue
:
...
@@ -2350,9 +2349,6 @@ packages:
...
@@ -2350,9 +2349,6 @@ packages:
resolution
:
{
integrity
:
sha512-/yCrWGCoA1SVKOks25EGadP9Pnj0oAIHGpl2wH2M2Y46dPM2ueb8wyCVOD7O3WCTkaJ0IkKvzhl1JY7+uCT2Dw==
}
resolution
:
{
integrity
:
sha512-/yCrWGCoA1SVKOks25EGadP9Pnj0oAIHGpl2wH2M2Y46dPM2ueb8wyCVOD7O3WCTkaJ0IkKvzhl1JY7+uCT2Dw==
}
engines
:
{
node
:
'
>=v18'
}
engines
:
{
node
:
'
>=v18'
}
'
@cool-vue/vite-plugin@8.2.12'
:
resolution
:
{
integrity
:
sha512-2aQfKuHhH8DoEaT/a1eu4JP6TFKEg/ZqpbqHLZ8PqXmNmHS/a35aHxvh817TDzMafZhlsE+V9INUun/ewCAIxA==
}
'
@cool-vue/vite-plugin@8.2.18'
:
'
@cool-vue/vite-plugin@8.2.18'
:
resolution
:
{
integrity
:
sha512-CEeYaPxV/5dPjSxf4pMaS9WAJF0+YhCjqnP9IGCxjaTxRRyWlf+2QpMpgG1JnVBcs6pkZXoyP0Os3ULf1O96Bw==
}
resolution
:
{
integrity
:
sha512-CEeYaPxV/5dPjSxf4pMaS9WAJF0+YhCjqnP9IGCxjaTxRRyWlf+2QpMpgG1JnVBcs6pkZXoyP0Os3ULf1O96Bw==
}
...
@@ -4237,6 +4233,14 @@ packages:
...
@@ -4237,6 +4233,14 @@ packages:
cpu
:
[
x64
]
cpu
:
[
x64
]
os
:
[
win32
]
os
:
[
win32
]
'
@vant/popperjs@1.3.0'
:
resolution
:
{
integrity
:
sha512-hB+czUG+aHtjhaEmCJDuXOep0YTZjdlRR+4MSmIFnkCQIxJaXLQdSsR90XWvAI2yvKUI7TCGqR8pQg2RtvkMHw==
}
'
@vant/use@1.6.0'
:
resolution
:
{
integrity
:
sha512-PHHxeAASgiOpSmMjceweIrv2AxDZIkWXyaczksMoWvKV2YAYEhoizRuk/xFnKF+emUIi46TsQ+rvlm/t2BBCfA==
}
peerDependencies
:
vue
:
^3.5.17
'
@vercel/nft@0.30.4'
:
'
@vercel/nft@0.30.4'
:
resolution
:
{
integrity
:
sha512-wE6eAGSXScra60N2l6jWvNtVK0m+sh873CpfZW4KI2v8EHuUQp+mSEi4T+IcdPCSEDgCdAS/7bizbhQlkjzrSA==
}
resolution
:
{
integrity
:
sha512-wE6eAGSXScra60N2l6jWvNtVK0m+sh873CpfZW4KI2v8EHuUQp+mSEi4T+IcdPCSEDgCdAS/7bizbhQlkjzrSA==
}
engines
:
{
node
:
'
>=18'
}
engines
:
{
node
:
'
>=18'
}
...
@@ -5768,9 +5772,6 @@ packages:
...
@@ -5768,9 +5772,6 @@ packages:
eastasianwidth@0.2.0
:
eastasianwidth@0.2.0
:
resolution
:
{
integrity
:
sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==
}
resolution
:
{
integrity
:
sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==
}
echarts@5.6.0
:
resolution
:
{
integrity
:
sha512-oTbVTsXfKuEhxftHqL5xprgLoc0k7uScAwtryCgWF6hPYFLRwOUHiFmHGCBKP5NPFNkDVopOieyUqYGH8Fa3kA==
}
echarts@6.0.0
:
echarts@6.0.0
:
resolution
:
{
integrity
:
sha512-Tte/grDQRiETQP4xz3iZWSvoHrkCQtwqd6hs+mifXcjrCuo2iKWbajFObuLJVBlDIJlOzgQPd1hsaKt/3+OMkQ==
}
resolution
:
{
integrity
:
sha512-Tte/grDQRiETQP4xz3iZWSvoHrkCQtwqd6hs+mifXcjrCuo2iKWbajFObuLJVBlDIJlOzgQPd1hsaKt/3+OMkQ==
}
...
@@ -8781,6 +8782,9 @@ packages:
...
@@ -8781,6 +8782,9 @@ packages:
peerDependencies
:
peerDependencies
:
postcss
:
^8.4
postcss
:
^8.4
postcss-px-to-viewport-8-plugin@1.2.5
:
resolution
:
{
integrity
:
sha512-+yc69+q/euV7iKh5fGXY6C/lpepmVx2DGFHeYj5BpzIFyBBpdACDjZyrZ8AV0kCg+J0bplBv4ZA1QTzgaK0rGg==
}
postcss-pxtrans@1.0.1
:
postcss-pxtrans@1.0.1
:
resolution
:
{
integrity
:
sha512-oNxhcSbbhkfhgJP/E0JJHIuQs8asqAuD1FqFT4VFF7xhkBmKKTIM08T7WIRHo9rjod8E4PR/CuOxtcWjftufcg==
}
resolution
:
{
integrity
:
sha512-oNxhcSbbhkfhgJP/E0JJHIuQs8asqAuD1FqFT4VFF7xhkBmKKTIM08T7WIRHo9rjod8E4PR/CuOxtcWjftufcg==
}
peerDependencies
:
peerDependencies
:
...
@@ -10383,6 +10387,11 @@ packages:
...
@@ -10383,6 +10387,11 @@ packages:
resolution
:
{
integrity
:
sha512-PYxZDA+6QtvRvm//++aGdmKG/cI07jNwbROz0Ql+VzFV1+Z0Dy55NI4zZ7RHc9KKpBePNFwoErqIuqQv/cjiTA==
}
resolution
:
{
integrity
:
sha512-PYxZDA+6QtvRvm//++aGdmKG/cI07jNwbROz0Ql+VzFV1+Z0Dy55NI4zZ7RHc9KKpBePNFwoErqIuqQv/cjiTA==
}
engines
:
{
node
:
'
>=
0.12.0'
}
engines
:
{
node
:
'
>=
0.12.0'
}
vant@4.9.22
:
resolution
:
{
integrity
:
sha512-P2PDSj3oB6l3W1OpVlQpapeLmI6bXMSvPqPdrw5rutslC0Y6tSkrVB/iSD57weD7K92GsjGkvgDK0eZlOsXGqw==
}
peerDependencies
:
vue
:
^3.5.17
vfile-message@4.0.3
:
vfile-message@4.0.3
:
resolution
:
{
integrity
:
sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==
}
resolution
:
{
integrity
:
sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==
}
...
@@ -10574,7 +10583,6 @@ packages:
...
@@ -10574,7 +10583,6 @@ packages:
vue-i18n@9.14.5
:
vue-i18n@9.14.5
:
resolution
:
{
integrity
:
sha512-0jQ9Em3ymWngyiIkj0+c/k7WgaPO+TNzjKSNq9BvBQaKJECqn9cd9fL4tkDhB5G1QBskGl9YxxbDAhgbFtpe2g==
}
resolution
:
{
integrity
:
sha512-0jQ9Em3ymWngyiIkj0+c/k7WgaPO+TNzjKSNq9BvBQaKJECqn9cd9fL4tkDhB5G1QBskGl9YxxbDAhgbFtpe2g==
}
engines
:
{
node
:
'
>=
16'
}
engines
:
{
node
:
'
>=
16'
}
deprecated
:
v9 and v10 no longer supported. please migrate to v11. about maintenance status, see https://vue-i18n.intlify.dev/guide/maintenance.html
peerDependencies
:
peerDependencies
:
vue
:
^3.5.17
vue
:
^3.5.17
...
@@ -10890,9 +10898,6 @@ packages:
...
@@ -10890,9 +10898,6 @@ packages:
resolution
:
{
integrity
:
sha512-zK7YHHz4ZXpW89AHXUPbQVGKI7uvkd3hzusTdotCg1UxyaVtg0zFJSTfW/Dq5f7OBBVnq6cZIaC8Ti4hb6dtCA==
}
resolution
:
{
integrity
:
sha512-zK7YHHz4ZXpW89AHXUPbQVGKI7uvkd3hzusTdotCg1UxyaVtg0zFJSTfW/Dq5f7OBBVnq6cZIaC8Ti4hb6dtCA==
}
engines
:
{
node
:
'
>=
14'
}
engines
:
{
node
:
'
>=
14'
}
zrender@5.6.1
:
resolution
:
{
integrity
:
sha512-OFXkDJKcrlx5su2XbzJvj/34Q3m6PvyCZkVPHGYpcCJ52ek4U/ymZyfuV1nKE23AyBJ51E/6Yr0mhZ7xGTO4ag==
}
zrender@6.0.0
:
zrender@6.0.0
:
resolution
:
{
integrity
:
sha512-41dFXEEXuJpNecuUQq6JlbybmnHaqqpGlbH1yxnA5V9MMP4SbohSVZsJIwz+zdjQXSSlR1Vc34EgH1zxyTDvhg==
}
resolution
:
{
integrity
:
sha512-41dFXEEXuJpNecuUQq6JlbybmnHaqqpGlbH1yxnA5V9MMP4SbohSVZsJIwz+zdjQXSSlR1Vc34EgH1zxyTDvhg==
}
...
@@ -12116,18 +12121,6 @@ snapshots:
...
@@ -12116,18 +12121,6 @@ snapshots:
'
@types/conventional-commits-parser'
:
5.0.2
'
@types/conventional-commits-parser'
:
5.0.2
chalk
:
5.6.2
chalk
:
5.6.2
'
@cool-vue/vite-plugin@8.2.12'
:
dependencies
:
'
@vue/compiler-sfc'
:
3.5.26
axios
:
1.13.2
glob
:
10.5.0
lodash
:
4.17.21
magic-string
:
0.30.21
prettier
:
3.7.4
svgo
:
3.3.2
transitivePeerDependencies
:
-
debug
'
@cool-vue/vite-plugin@8.2.18'
:
'
@cool-vue/vite-plugin@8.2.18'
:
dependencies
:
dependencies
:
'
@vue/compiler-sfc'
:
3.5.26
'
@vue/compiler-sfc'
:
3.5.26
...
@@ -14028,6 +14021,12 @@ snapshots:
...
@@ -14028,6 +14021,12 @@ snapshots:
'
@unrs/resolver-binding-win32-x64-msvc@1.11.1'
:
'
@unrs/resolver-binding-win32-x64-msvc@1.11.1'
:
optional
:
true
optional
:
true
'
@vant/popperjs@1.3.0'
:
{}
'
@vant/use@1.6.0(vue@3.5.26(typescript@5.9.3))'
:
dependencies
:
vue
:
3.5.26(typescript@5.9.3)
'
@vercel/nft@0.30.4(rollup@4.55.1)'
:
'
@vercel/nft@0.30.4(rollup@4.55.1)'
:
dependencies
:
dependencies
:
'
@mapbox/node-pre-gyp'
:
2.0.3
'
@mapbox/node-pre-gyp'
:
2.0.3
...
@@ -14176,7 +14175,7 @@ snapshots:
...
@@ -14176,7 +14175,7 @@ snapshots:
'
@babel/types'
:
7.29.0
'
@babel/types'
:
7.29.0
'
@vue/babel-helper-vue-transform-on'
:
1.5.0
'
@vue/babel-helper-vue-transform-on'
:
1.5.0
'
@vue/babel-plugin-resolve-type'
:
1.5.0(@babel/core@7.28.5)
'
@vue/babel-plugin-resolve-type'
:
1.5.0(@babel/core@7.28.5)
'
@vue/shared'
:
3.5.2
6
'
@vue/shared'
:
3.5.2
9
optionalDependencies
:
optionalDependencies
:
'
@babel/core'
:
7.28.5
'
@babel/core'
:
7.28.5
transitivePeerDependencies
:
transitivePeerDependencies
:
...
@@ -14192,7 +14191,7 @@ snapshots:
...
@@ -14192,7 +14191,7 @@ snapshots:
'
@babel/types'
:
7.29.0
'
@babel/types'
:
7.29.0
'
@vue/babel-helper-vue-transform-on'
:
2.0.1
'
@vue/babel-helper-vue-transform-on'
:
2.0.1
'
@vue/babel-plugin-resolve-type'
:
2.0.1(@babel/core@7.28.5)
'
@vue/babel-plugin-resolve-type'
:
2.0.1(@babel/core@7.28.5)
'
@vue/shared'
:
3.5.2
6
'
@vue/shared'
:
3.5.2
9
optionalDependencies
:
optionalDependencies
:
'
@babel/core'
:
7.28.5
'
@babel/core'
:
7.28.5
transitivePeerDependencies
:
transitivePeerDependencies
:
...
@@ -14205,7 +14204,7 @@ snapshots:
...
@@ -14205,7 +14204,7 @@ snapshots:
'
@babel/helper-module-imports'
:
7.27.1
'
@babel/helper-module-imports'
:
7.27.1
'
@babel/helper-plugin-utils'
:
7.27.1
'
@babel/helper-plugin-utils'
:
7.27.1
'
@babel/parser'
:
7.29.0
'
@babel/parser'
:
7.29.0
'
@vue/compiler-sfc'
:
3.5.2
6
'
@vue/compiler-sfc'
:
3.5.2
9
transitivePeerDependencies
:
transitivePeerDependencies
:
-
supports-color
-
supports-color
...
@@ -14216,7 +14215,7 @@ snapshots:
...
@@ -14216,7 +14215,7 @@ snapshots:
'
@babel/helper-module-imports'
:
7.27.1
'
@babel/helper-module-imports'
:
7.27.1
'
@babel/helper-plugin-utils'
:
7.27.1
'
@babel/helper-plugin-utils'
:
7.27.1
'
@babel/parser'
:
7.29.0
'
@babel/parser'
:
7.29.0
'
@vue/compiler-sfc'
:
3.5.2
6
'
@vue/compiler-sfc'
:
3.5.2
9
transitivePeerDependencies
:
transitivePeerDependencies
:
-
supports-color
-
supports-color
...
@@ -14334,9 +14333,9 @@ snapshots:
...
@@ -14334,9 +14333,9 @@ snapshots:
'
@vue/language-core@2.2.0(typescript@5.9.3)'
:
'
@vue/language-core@2.2.0(typescript@5.9.3)'
:
dependencies
:
dependencies
:
'
@volar/language-core'
:
2.4.27
'
@volar/language-core'
:
2.4.27
'
@vue/compiler-dom'
:
3.5.2
6
'
@vue/compiler-dom'
:
3.5.2
9
'
@vue/compiler-vue2'
:
2.7.16
'
@vue/compiler-vue2'
:
2.7.16
'
@vue/shared'
:
3.5.2
6
'
@vue/shared'
:
3.5.2
9
alien-signals
:
0.4.14
alien-signals
:
0.4.14
minimatch
:
9.0.5
minimatch
:
9.0.5
muggle-string
:
0.4.1
muggle-string
:
0.4.1
...
@@ -14347,9 +14346,9 @@ snapshots:
...
@@ -14347,9 +14346,9 @@ snapshots:
'
@vue/language-core@2.2.10(typescript@5.9.3)'
:
'
@vue/language-core@2.2.10(typescript@5.9.3)'
:
dependencies
:
dependencies
:
'
@volar/language-core'
:
2.4.27
'
@volar/language-core'
:
2.4.27
'
@vue/compiler-dom'
:
3.5.2
6
'
@vue/compiler-dom'
:
3.5.2
9
'
@vue/compiler-vue2'
:
2.7.16
'
@vue/compiler-vue2'
:
2.7.16
'
@vue/shared'
:
3.5.2
6
'
@vue/shared'
:
3.5.2
9
alien-signals
:
1.0.13
alien-signals
:
1.0.13
minimatch
:
9.0.5
minimatch
:
9.0.5
muggle-string
:
0.4.1
muggle-string
:
0.4.1
...
@@ -15802,11 +15801,6 @@ snapshots:
...
@@ -15802,11 +15801,6 @@ snapshots:
eastasianwidth@0.2.0
:
{}
eastasianwidth@0.2.0
:
{}
echarts@5.6.0
:
dependencies
:
tslib
:
2.3.0
zrender
:
5.6.1
echarts@6.0.0
:
echarts@6.0.0
:
dependencies
:
dependencies
:
tslib
:
2.3.0
tslib
:
2.3.0
...
@@ -19084,6 +19078,10 @@ snapshots:
...
@@ -19084,6 +19078,10 @@ snapshots:
postcss
:
8.5.6
postcss
:
8.5.6
postcss-selector-parser
:
7.1.1
postcss-selector-parser
:
7.1.1
postcss-px-to-viewport-8-plugin@1.2.5
:
dependencies
:
object-assign
:
4.1.1
postcss-pxtrans@1.0.1(postcss@8.5.6)
:
postcss-pxtrans@1.0.1(postcss@8.5.6)
:
dependencies
:
dependencies
:
postcss
:
8.5.6
postcss
:
8.5.6
...
@@ -20876,6 +20874,13 @@ snapshots:
...
@@ -20876,6 +20874,13 @@ snapshots:
mz
:
2.7.0
mz
:
2.7.0
unescape
:
1.0.1
unescape
:
1.0.1
vant@4.9.22(vue@3.5.26(typescript@5.9.3))
:
dependencies
:
'
@vant/popperjs'
:
1.3.0
'
@vant/use'
:
1.6.0(vue@3.5.26(typescript@5.9.3))
'
@vue/shared'
:
3.5.29
vue
:
3.5.26(typescript@5.9.3)
vfile-message@4.0.3
:
vfile-message@4.0.3
:
dependencies
:
dependencies
:
'
@types/unist'
:
3.0.3
'
@types/unist'
:
3.0.3
...
@@ -21028,7 +21033,7 @@ snapshots:
...
@@ -21028,7 +21033,7 @@ snapshots:
'
@babel/plugin-syntax-import-meta'
:
7.10.4(@babel/core@7.28.5)
'
@babel/plugin-syntax-import-meta'
:
7.10.4(@babel/core@7.28.5)
'
@babel/plugin-transform-typescript'
:
7.28.5(@babel/core@7.28.5)
'
@babel/plugin-transform-typescript'
:
7.28.5(@babel/core@7.28.5)
'
@vue/babel-plugin-jsx'
:
1.5.0(@babel/core@7.28.5)
'
@vue/babel-plugin-jsx'
:
1.5.0(@babel/core@7.28.5)
'
@vue/compiler-dom'
:
3.5.2
6
'
@vue/compiler-dom'
:
3.5.2
9
kolorist
:
1.8.0
kolorist
:
1.8.0
magic-string
:
0.30.21
magic-string
:
0.30.21
vite
:
7.3.1(@types/node@24.10.4)(jiti@2.6.1)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2)
vite
:
7.3.1(@types/node@24.10.4)(jiti@2.6.1)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2)
...
@@ -21606,10 +21611,6 @@ snapshots:
...
@@ -21606,10 +21611,6 @@ snapshots:
compress-commons
:
6.0.2
compress-commons
:
6.0.2
readable-stream
:
4.7.0
readable-stream
:
4.7.0
zrender@5.6.1
:
dependencies
:
tslib
:
2.3.0
zrender@6.0.0
:
zrender@6.0.0
:
dependencies
:
dependencies
:
tslib
:
2.3.0
tslib
:
2.3.0
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment