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 fba1d26a
authored
Mar 27, 2026
by
chenwq1
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:修复bug
1 parent
7be3fa33
Pipeline
#149
for
fba1d26a
failed
in 0 seconds
Changes
12
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
97 additions
and
48 deletions
apps/web/venus-usedcar-quality/src/assets/image/rating-selected-check.png
apps/web/venus-usedcar-quality/src/assets/image/searchIcon.png
apps/web/venus-usedcar-quality/src/components/PageTop.vue
apps/web/venus-usedcar-quality/src/components/WorkOrderStatusTags.vue
apps/web/venus-usedcar-quality/src/types/views/car-list.ts
apps/web/venus-usedcar-quality/src/views/car-detail/components/ScoreForm.vue
apps/web/venus-usedcar-quality/src/views/car-detail/composables/useInspectSubmit.ts
apps/web/venus-usedcar-quality/src/views/car-detail/index.vue
apps/web/venus-usedcar-quality/src/views/car-list/index.vue
apps/web/venus-usedcar-quality/src/views/home/index.vue
apps/web/venus-usedcar-quality/src/views/login/LoginMobile.vue
apps/web/venus-usedcar-quality/src/views/mine/index.vue
apps/web/venus-usedcar-quality/src/assets/image/rating-selected-check.png
View file @
fba1d26
1.48 KB
|
W:
|
H:
1.57 KB
|
W:
|
H:
2-up
Swipe
Onion skin
apps/web/venus-usedcar-quality/src/assets/image/searchIcon.png
0 → 100644
View file @
fba1d26
1.24 KB
apps/web/venus-usedcar-quality/src/components/PageTop.vue
View file @
fba1d26
...
@@ -10,14 +10,19 @@
...
@@ -10,14 +10,19 @@
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
PageTitle
from
"@/components/PageTitle.vue"
;
import
PageTitle
from
"@/components/PageTitle.vue"
;
defineProps
<
{
withDefaults
(
defineProps
<
{
title
:
string
;
title
:
string
;
}
>
();
/** 宿主小程序带 openType=miniApp 跳转时隐藏标题栏 */
hideTitle
?:
boolean
;
}
>
(),
{
hideTitle
:
false
},
);
</
script
>
</
script
>
<
template
>
<
template
>
<div
class=
"page-top"
>
<div
class=
"page-top"
>
<PageTitle
:title=
"title"
/>
<PageTitle
v-if=
"!hideTitle"
:title=
"title"
/>
<slot
/>
<slot
/>
</div>
</div>
</
template
>
</
template
>
...
...
apps/web/venus-usedcar-quality/src/components/WorkOrderStatusTags.vue
View file @
fba1d26
<!--
* @Author: cen
* @Date: 2026-03-26 10:52:58
* @Description:
* @FilePath: /venus-usedcar-h5/apps/web/venus-usedcar-quality/src/components/WorkOrderStatusTags.vue
* @LastEditTime: 2026-03-27 16:04:23
* @LastEditors: cenchengwei@foreverht.com
* 可以输入预定的版权声明、个性签名、空行等
-->
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
computed
}
from
"vue"
;
import
{
computed
}
from
"vue"
;
...
@@ -79,7 +88,7 @@ const auditTag = computed(() => {
...
@@ -79,7 +88,7 @@ const auditTag = computed(() => {
}
}
.wo-tag__icon
{
.wo-tag__icon
{
margin-right
:
4px
;
font-size
:
12px
;
font-size
:
12px
;
vertical-align
:
-1px
;
vertical-align
:
-1px
;
}
}
...
...
apps/web/venus-usedcar-quality/src/types/views/car-list.ts
View file @
fba1d26
...
@@ -2,8 +2,12 @@ export interface ReportItem {
...
@@ -2,8 +2,12 @@ export interface ReportItem {
address
:
string
;
address
:
string
;
carTitle
:
string
;
carTitle
:
string
;
coverImage
:
string
;
coverImage
:
string
;
/** 列表接口返回的报告 H5 链接 */
h5Url
?:
string
;
id
:
number
;
id
:
number
;
plateNo
:
string
;
plateNo
:
string
;
/** 检测记录 id,无 h5Url 时用于站内 InspectReport */
recordId
?:
number
;
reportNo
:
string
;
reportNo
:
string
;
updateTime
:
string
;
updateTime
:
string
;
vin
:
string
;
vin
:
string
;
...
...
apps/web/venus-usedcar-quality/src/views/car-detail/components/ScoreForm.vue
View file @
fba1d26
...
@@ -541,10 +541,10 @@ defineExpose({ validate, getCompleteInspectionPayload });
...
@@ -541,10 +541,10 @@ defineExpose({ validate, getCompleteInspectionPayload });
.rating-btn-check
{
.rating-btn-check
{
position
:
absolute
;
position
:
absolute
;
top
:
-
3
px
;
top
:
-
4
px
;
right
:
0
;
right
:
0
;
width
:
14
px
;
width
:
20
px
;
height
:
14
px
;
height
:
20
px
;
pointer-events
:
none
;
pointer-events
:
none
;
object-fit
:
contain
;
object-fit
:
contain
;
}
}
...
...
apps/web/venus-usedcar-quality/src/views/car-detail/composables/useInspectSubmit.ts
View file @
fba1d26
...
@@ -19,10 +19,12 @@ import { showToast } from "vant";
...
@@ -19,10 +19,12 @@ import { showToast } from "vant";
import
ScoreForm
from
"../components/ScoreForm.vue"
;
import
ScoreForm
from
"../components/ScoreForm.vue"
;
import
{
import
{
hasCompleteInspectionUncompletedHint
,
hasCompleteInspectionUncompletedHint
,
SCORE_BIG_KEY
,
SCORE_BIG_KEY
}
from
"./useInspectModules"
;
}
from
"./useInspectModules"
;
/** 底部操作区:仅当前点击的按钮显示 loading */
type
FooterLoadingKey
=
"idle"
|
"prev"
|
"next"
|
"score"
;
function
buildInspectionSavePayload
(
function
buildInspectionSavePayload
(
modules
:
InspectModulesReturn
,
modules
:
InspectModulesReturn
,
leafNodes
:
LeafNodeRecord
[],
leafNodes
:
LeafNodeRecord
[],
...
@@ -61,7 +63,11 @@ export function useInspectSubmit(
...
@@ -61,7 +63,11 @@ export function useInspectSubmit(
inspectionScoreFormRef
:
Ref
<
InstanceType
<
typeof
ScoreForm
>
|
null
>
inspectionScoreFormRef
:
Ref
<
InstanceType
<
typeof
ScoreForm
>
|
null
>
)
{
)
{
const
router
=
useRouter
();
const
router
=
useRouter
();
const
submitting
=
ref
(
false
);
const
footerLoading
=
ref
<
FooterLoadingKey
>
(
"idle"
);
function
isFooterBusy
()
{
return
footerLoading
.
value
!==
"idle"
;
}
async
function
saveCurrentLeafInspectionRecord
(
nextFlag
:
boolean
):
Promise
<
boolean
>
{
async
function
saveCurrentLeafInspectionRecord
(
nextFlag
:
boolean
):
Promise
<
boolean
>
{
const
saved
=
(
await
customizeFormRef
.
value
?.
saveData
?.())
as
CustomizeFormValidateResult
|
undefined
;
const
saved
=
(
await
customizeFormRef
.
value
?.
saveData
?.())
as
CustomizeFormValidateResult
|
undefined
;
...
@@ -103,9 +109,9 @@ export function useInspectSubmit(
...
@@ -103,9 +109,9 @@ export function useInspectSubmit(
}
}
async
function
onNext
()
{
async
function
onNext
()
{
if
(
submitting
.
value
)
return
;
if
(
isFooterBusy
()
)
return
;
try
{
try
{
submitting
.
value
=
true
;
footerLoading
.
value
=
"next"
;
const
res
=
(
await
customizeFormRef
.
value
?.
validate
?.())
as
CustomizeFormValidateResult
|
undefined
;
const
res
=
(
await
customizeFormRef
.
value
?.
validate
?.())
as
CustomizeFormValidateResult
|
undefined
;
if
(
!
res
?.
success
)
{
if
(
!
res
?.
success
)
{
showToast
(
res
?.
message
??
"校验失败"
);
showToast
(
res
?.
message
??
"校验失败"
);
...
@@ -125,12 +131,12 @@ export function useInspectSubmit(
...
@@ -125,12 +131,12 @@ export function useInspectSubmit(
showToast
(
"保存失败,请重试"
);
showToast
(
"保存失败,请重试"
);
}
}
}
finally
{
}
finally
{
submitting
.
value
=
false
;
footerLoading
.
value
=
"idle"
;
}
}
}
}
async
function
onBack
()
{
async
function
onBack
()
{
if
(
submitting
.
value
)
return
;
if
(
isFooterBusy
()
)
return
;
if
(
modules
.
activeBigKey
.
value
!==
SCORE_BIG_KEY
)
{
if
(
modules
.
activeBigKey
.
value
!==
SCORE_BIG_KEY
)
{
try
{
try
{
const
persisted
=
await
saveCurrentLeafInspectionRecord
(
false
);
const
persisted
=
await
saveCurrentLeafInspectionRecord
(
false
);
...
@@ -148,9 +154,9 @@ export function useInspectSubmit(
...
@@ -148,9 +154,9 @@ export function useInspectSubmit(
}
}
async
function
onPrev
()
{
async
function
onPrev
()
{
if
(
submitting
.
value
)
return
;
if
(
isFooterBusy
()
)
return
;
try
{
try
{
submitting
.
value
=
true
;
footerLoading
.
value
=
"prev"
;
if
(
modules
.
activeBigKey
.
value
===
SCORE_BIG_KEY
)
{
if
(
modules
.
activeBigKey
.
value
===
SCORE_BIG_KEY
)
{
const
mains
=
modules
.
mainInspectionBigModules
.
value
;
const
mains
=
modules
.
mainInspectionBigModules
.
value
;
...
@@ -194,15 +200,15 @@ export function useInspectSubmit(
...
@@ -194,15 +200,15 @@ export function useInspectSubmit(
showToast
(
"保存失败,请重试"
);
showToast
(
"保存失败,请重试"
);
}
}
}
finally
{
}
finally
{
submitting
.
value
=
false
;
footerLoading
.
value
=
"idle"
;
}
}
}
}
async
function
onSubmitScore
()
{
async
function
onSubmitScore
()
{
if
(
!
inspectionScoreFormRef
.
value
?.
validate
())
return
;
if
(
!
inspectionScoreFormRef
.
value
?.
validate
())
return
;
if
(
submitting
.
value
)
return
;
if
(
isFooterBusy
()
)
return
;
try
{
try
{
submitting
.
value
=
true
;
footerLoading
.
value
=
"score"
;
const
result
=
await
completeInspection
(
const
result
=
await
completeInspection
(
inspectionScoreFormRef
.
value
.
getCompleteInspectionPayload
(
modules
.
taskId
.
value
)
inspectionScoreFormRef
.
value
.
getCompleteInspectionPayload
(
modules
.
taskId
.
value
)
);
);
...
@@ -230,12 +236,12 @@ export function useInspectSubmit(
...
@@ -230,12 +236,12 @@ export function useInspectSubmit(
showToast
(
"提交失败,请重试"
);
showToast
(
"提交失败,请重试"
);
}
}
}
finally
{
}
finally
{
submitting
.
value
=
false
;
footerLoading
.
value
=
"idle"
;
}
}
}
}
return
{
return
{
submitt
ing
,
footerLoad
ing
,
onSelectBigModule
,
onSelectBigModule
,
onSelectSubTab
,
onSelectSubTab
,
onNext
,
onNext
,
...
...
apps/web/venus-usedcar-quality/src/views/car-detail/index.vue
View file @
fba1d26
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
<van-button
block
<van-button
block
class=
"btn-next"
class=
"btn-next"
color=
"#477ffe"
color=
"#477ffe"
:loading=
"
submitting
"
:loading=
"
footerLoading === 'score'
"
round
round
type=
"primary"
type=
"primary"
@
click=
"onSubmitScore"
>
@
click=
"onSubmitScore"
>
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
<
template
v-else
>
<
template
v-else
>
<van-button
v-if=
"showInspectionPrevButton"
<van-button
v-if=
"showInspectionPrevButton"
class=
"btn-save"
class=
"btn-save"
:loading=
"
submitting
"
:loading=
"
footerLoading === 'prev'
"
plain
plain
round
round
type=
"primary"
type=
"primary"
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
<van-button
block
<van-button
block
class=
"btn-next"
class=
"btn-next"
color=
"#477ffe"
color=
"#477ffe"
:loading=
"
submitting
"
:loading=
"
footerLoading === 'next'
"
round
round
type=
"primary"
type=
"primary"
@
click=
"onNext"
>
@
click=
"onNext"
>
...
@@ -189,7 +189,7 @@ const inspectionScoreFormRef = ref<InstanceType<typeof ScoreForm> | null>(null);
...
@@ -189,7 +189,7 @@ const inspectionScoreFormRef = ref<InstanceType<typeof ScoreForm> | null>(null);
const
modules
=
useInspectModules
(
route
);
const
modules
=
useInspectModules
(
route
);
const
templateDefaultData
=
modules
.
templateDefaultData
;
const
templateDefaultData
=
modules
.
templateDefaultData
;
const
{
const
{
submitt
ing
,
footerLoad
ing
,
onSelectBigModule
,
onSelectBigModule
,
onSelectSubTab
,
onSelectSubTab
,
onNext
,
onNext
,
...
@@ -388,7 +388,6 @@ onMounted(() => {
...
@@ -388,7 +388,6 @@ onMounted(() => {
overflow-x
:
auto
;
overflow-x
:
auto
;
background
:
#fff
linear-gradient
(
180deg
,
#e8efff
0%
,
#fff
100%
);
background
:
#fff
linear-gradient
(
180deg
,
#e8efff
0%
,
#fff
100%
);
border-radius
:
12px
12px
0
0
;
border-radius
:
12px
12px
0
0
;
box-shadow
:
0
1px
0
rgb
(
0
0
0
/
6%
);
&::-webkit-scrollbar
{
&::-webkit-scrollbar
{
display
:
none
;
display
:
none
;
...
...
apps/web/venus-usedcar-quality/src/views/car-list/index.vue
View file @
fba1d26
...
@@ -4,7 +4,6 @@ import type { ReportItem } from "@/types/views/car-list";
...
@@ -4,7 +4,6 @@ import type { ReportItem } from "@/types/views/car-list";
import
{
computed
,
onActivated
,
ref
,
watch
}
from
"vue"
;
import
{
computed
,
onActivated
,
ref
,
watch
}
from
"vue"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
getWorkOrderH5Url
}
from
"@/api/modules/work-order"
;
import
{
getInspectReportPage
}
from
"@/api/modules/inspect-report"
;
import
{
getInspectReportPage
}
from
"@/api/modules/inspect-report"
;
import
PageTop
from
"@/components/PageTop.vue"
;
import
PageTop
from
"@/components/PageTop.vue"
;
...
@@ -31,6 +30,8 @@ function resetList() {
...
@@ -31,6 +30,8 @@ function resetList() {
currentPage
.
value
=
1
;
currentPage
.
value
=
1
;
finished
.
value
=
false
;
finished
.
value
=
false
;
displayList
.
value
=
[];
displayList
.
value
=
[];
// 避免与 van-list 并发时 loading 仍为 true,导致 fillMore 直接 return
loading
.
value
=
false
;
}
}
function
mapReportItem
(
item
:
Record
<
string
,
unknown
>
):
ReportItem
{
function
mapReportItem
(
item
:
Record
<
string
,
unknown
>
):
ReportItem
{
...
@@ -45,9 +46,20 @@ function mapReportItem(item: Record<string, unknown>): ReportItem {
...
@@ -45,9 +46,20 @@ function mapReportItem(item: Record<string, unknown>): ReportItem {
(
venue
.
address
as
string
|
undefined
)
??
(
venue
.
address
as
string
|
undefined
)
??
`
${(
ownership
.
carProvinceName
as
string
|
undefined
)
??
""
}
$
{(
ownership
.
carCityName
as
string
|
undefined
)
??
""
}
`;
`
${(
ownership
.
carProvinceName
as
string
|
undefined
)
??
""
}
$
{(
ownership
.
carCityName
as
string
|
undefined
)
??
""
}
`;
const inspectionRecord = (item.inspectionRecord as Record<string, unknown> | undefined) ?? {};
const recordIdRaw = inspectionRecord.id;
const recordId =
typeof recordIdRaw === "number"
? recordIdRaw
: (typeof recordIdRaw === "string" && recordIdRaw !== ""
? Number(recordIdRaw)
: undefined);
return {
return {
id: Number(item.id ?? 0),
id: Number(item.id ?? 0),
reportNo: String(item.reportNo ?? ""),
reportNo: String(item.reportNo ?? ""),
h5Url: typeof item.h5Url === "string" ? item.h5Url : undefined,
recordId: Number.isFinite(recordId) ? recordId : undefined,
carTitle: [
carTitle: [
(baseInfo.carBrand as string | undefined) ?? "",
(baseInfo.carBrand as string | undefined) ?? "",
(baseInfo.carSeriesName as string | undefined) ?? "",
(baseInfo.carSeriesName as string | undefined) ?? "",
...
@@ -90,7 +102,7 @@ function onLoad() {
...
@@ -90,7 +102,7 @@ function onLoad() {
}
}
async function onRefresh() {
async function onRefresh() {
if (refreshing.value) return;
// 勿在开头判断 refreshing:PullRefresh 触发 @refresh 时 v-model 已为 true,会误 return 且无法执行 finally,下拉一直转圈
refreshing.value = true;
refreshing.value = true;
try {
try {
resetList();
resetList();
...
@@ -100,17 +112,16 @@ async function onRefresh() {
...
@@ -100,17 +112,16 @@ async function onRefresh() {
}
}
}
}
async function openReportByWorkOrderId(id: string) {
/** 检测报告列表:查看报告优先使用行内 h5Url,否则进站内报告页 */
const h5Url = (await getWorkOrderH5Url(id)).trim();
function onViewReport(item: ReportItem) {
if (h5Url) {
const url = item.h5Url?.trim();
window.location.href = h5Url;
if (url) {
window.location.href = url;
return;
return;
}
}
void router.push({ name: "InspectReport", query: { recordId: id } });
if (item.recordId != null) {
}
void router.push({ name: "InspectReport", query: { recordId: String(item.recordId) } });
}
function onViewReport(item: ReportItem) {
void openReportByWorkOrderId(String(item.id));
}
}
watch([keyword], () => {
watch([keyword], () => {
...
@@ -144,7 +155,7 @@ void onRefresh();
...
@@ -144,7 +155,7 @@ void onRefresh();
<van-list
v-else
<van-list
v-else
v-model:loading=
"loading"
v-model:loading=
"loading"
:finished=
"finished"
:finished=
"finished"
finished-text=
"到底了"
finished-text=
"到底了
~
"
:scroller=
"scroller"
:scroller=
"scroller"
@
load=
"onLoad"
>
@
load=
"onLoad"
>
<div
v-for=
"item in displayList"
<div
v-for=
"item in displayList"
...
...
apps/web/venus-usedcar-quality/src/views/home/index.vue
View file @
fba1d26
...
@@ -3,11 +3,12 @@ import type { CardAction, WorkOrderItem } from "@/types/views/home";
...
@@ -3,11 +3,12 @@ import type { CardAction, WorkOrderItem } from "@/types/views/home";
import
type
{
AuditStatus
,
WorkOrderStatus
}
from
"@/types/views/work-order-common"
;
import
type
{
AuditStatus
,
WorkOrderStatus
}
from
"@/types/views/work-order-common"
;
import
{
computed
,
ref
,
watch
}
from
"vue"
;
import
{
computed
,
ref
,
watch
}
from
"vue"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
useRoute
,
useRoute
r
}
from
"vue-router"
;
import
{
getWorkOrderCountByStatus
,
getWorkOrderH5Url
,
getWorkOrderPage
}
from
"@/api/modules/work-order"
;
import
{
getWorkOrderCountByStatus
,
getWorkOrderH5Url
,
getWorkOrderPage
}
from
"@/api/modules/work-order"
;
import
PageTop
from
"@/components/PageTop.vue"
;
import
PageTop
from
"@/components/PageTop.vue"
;
import
WorkOrderStatusTags
from
"@/components/WorkOrderStatusTags.vue"
;
import
WorkOrderStatusTags
from
"@/components/WorkOrderStatusTags.vue"
;
import
searchIcon
from
"@assets/image/searchIcon.png"
;
const
keyword
=
ref
(
""
);
const
keyword
=
ref
(
""
);
const
activeStatus
=
ref
<
WorkOrderStatus
>
(
1
);
const
activeStatus
=
ref
<
WorkOrderStatus
>
(
1
);
...
@@ -18,7 +19,14 @@ const pageSize = 20;
...
@@ -18,7 +19,14 @@ const pageSize = 20;
const
displayList
=
ref
<
WorkOrderItem
[]
>
([]);
const
displayList
=
ref
<
WorkOrderItem
[]
>
([]);
const
currentPage
=
ref
(
1
);
const
currentPage
=
ref
(
1
);
const
scroller
=
ref
<
Element
|
undefined
>
(
undefined
);
const
scroller
=
ref
<
Element
|
undefined
>
(
undefined
);
const
route
=
useRoute
();
const
router
=
useRouter
();
const
router
=
useRouter
();
/** 宿主小程序跳转带 openType=miniApp 时隐藏顶部标题 */
const
hidePageTitle
=
computed
(()
=>
{
const
v
=
route
.
query
.
openType
;
return
(
Array
.
isArray
(
v
)
?
v
[
0
]
:
v
)
===
"miniApp"
;
});
const
rejectReasonDialogVisible
=
ref
(
false
);
const
rejectReasonDialogVisible
=
ref
(
false
);
const
rejectReasonContent
=
ref
(
""
);
const
rejectReasonContent
=
ref
(
""
);
const
tabCounts
=
ref
({
const
tabCounts
=
ref
({
...
@@ -29,9 +37,9 @@ const tabCounts = ref({
...
@@ -29,9 +37,9 @@ const tabCounts = ref({
});
});
const
statusTabs
=
computed
(()
=>
[
const
statusTabs
=
computed
(()
=>
[
{
status
:
1
as
const
,
label
:
"待检测
·
"
,
count
:
tabCounts
.
value
.
dispatchedCount
},
{
status
:
1
as
const
,
label
:
"待检测"
,
count
:
tabCounts
.
value
.
dispatchedCount
},
{
status
:
2
as
const
,
label
:
"检测中
·
"
,
count
:
tabCounts
.
value
.
inProgressCount
},
{
status
:
2
as
const
,
label
:
"检测中"
,
count
:
tabCounts
.
value
.
inProgressCount
},
{
status
:
3
as
const
,
label
:
"检测完成
·
"
,
count
:
tabCounts
.
value
.
completedCount
},
{
status
:
3
as
const
,
label
:
"检测完成"
,
count
:
tabCounts
.
value
.
completedCount
},
]);
]);
/** 首屏/刷新结束后仍无数据 */
/** 首屏/刷新结束后仍无数据 */
...
@@ -268,21 +276,22 @@ void onRefresh();
...
@@ -268,21 +276,22 @@ void onRefresh();
<
template
>
<
template
>
<div
class=
"work-order-page"
>
<div
class=
"work-order-page"
>
<PageTop
title=
"检测工单"
>
<PageTop
title=
"检测工单"
:hide-title=
"hidePageTitle"
>
<!-- 顶部状态 Tab -->
<!-- 顶部状态 Tab -->
<div
class=
"status-tabs"
>
<div
class=
"status-tabs"
>
<div
v-for=
"t in statusTabs"
<div
v-for=
"t in statusTabs"
:key=
"t.status"
:key=
"t.status"
class=
"status-tab flex-1
text-center
"
class=
"status-tab flex-1"
:class=
"
{ active: activeStatus === t.status }"
:class=
"
{ active: activeStatus === t.status }"
@click="onStatusChange(t.status)">
@click="onStatusChange(t.status)">
<span
class=
"label"
>
{{
t
.
label
}}
</span>
<span
class=
"label"
>
{{
t
.
label
}}
</span>
<span
class=
"count"
>
{{
t
.
count
}}
</span>
<span
class=
"count"
>
·
{{
t
.
count
}}
</span>
</div>
</div>
</div>
</div>
<!-- 搜索框(同顶部背景容器) -->
<!-- 搜索框(同顶部背景容器) -->
<div
class=
"search-wrap"
>
<div
class=
"search-wrap"
>
<van-search
v-model=
"keyword"
<van-search
v-model=
"keyword"
:left-icon=
"searchIcon"
placeholder=
"搜索车牌号、VIN码、车型名称"
placeholder=
"搜索车牌号、VIN码、车型名称"
shape=
"round"
/>
shape=
"round"
/>
</div>
</div>
...
@@ -390,6 +399,9 @@ void onRefresh();
...
@@ -390,6 +399,9 @@ void onRefresh();
}
}
.status-tab
{
.status-tab
{
display
:
flex
;
align-items
:
flex-start
;
justify-content
:
center
;
position
:
relative
;
position
:
relative
;
padding
:
2px
0
10px
;
padding
:
2px
0
10px
;
font-size
:
$
font-size-base
;
font-size
:
$
font-size-base
;
...
@@ -404,7 +416,7 @@ void onRefresh();
...
@@ -404,7 +416,7 @@ void onRefresh();
.count
{
.count
{
margin-left
:
4px
;
margin-left
:
4px
;
color
:
$
color-text-secondary
;
color
:
12px
;
}
}
&
.active
{
&
.active
{
...
@@ -416,6 +428,7 @@ void onRefresh();
...
@@ -416,6 +428,7 @@ void onRefresh();
.count
{
.count
{
color
:
#333
;
color
:
#333
;
font-size
:
14px
;
}
}
&
::after
{
&
::after
{
...
@@ -554,7 +567,7 @@ void onRefresh();
...
@@ -554,7 +567,7 @@ void onRefresh();
:deep
(
.wo-tag
)
{
:deep
(
.wo-tag
)
{
display
:
inline-flex
;
display
:
inline-flex
;
gap
:
4
px
;
gap
:
2
px
;
align-items
:
center
;
align-items
:
center
;
font-size
:
11px
;
font-size
:
11px
;
line-height
:
1
;
line-height
:
1
;
...
...
apps/web/venus-usedcar-quality/src/views/login/LoginMobile.vue
View file @
fba1d26
...
@@ -106,6 +106,7 @@ const {
...
@@ -106,6 +106,7 @@ const {
font-size
:
14px
;
font-size
:
14px
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#333
;
color
:
#333
;
width
:
auto
;
}
}
&
:deep
(
.login-send-code-btn.van-button
)
{
&
:deep
(
.login-send-code-btn.van-button
)
{
...
...
apps/web/venus-usedcar-quality/src/views/mine/index.vue
View file @
fba1d26
...
@@ -230,7 +230,7 @@ watch(
...
@@ -230,7 +230,7 @@ watch(
.avg-value
{
.avg-value
{
font-size
:
24px
;
font-size
:
24px
;
font-weight
:
800
;
font-weight
:
800
;
color
:
var
(
--color-primary
)
;
color
:
#185efe
;
letter-spacing
:
0.5px
;
letter-spacing
:
0.5px
;
}
}
}
}
...
@@ -249,6 +249,7 @@ watch(
...
@@ -249,6 +249,7 @@ watch(
border-radius
:
8px
;
border-radius
:
8px
;
box-shadow
:
none
;
box-shadow
:
none
;
opacity
:
1
;
opacity
:
1
;
border
:
none
;
&:
active
::
before
{
&:
active
::
before
{
opacity
:
0
;
opacity
:
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