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 a34346a4
authored
Apr 07, 2026
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(venus-usedcar-quality): 联调修改
1 parent
5b18db1b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
89 additions
and
5 deletions
apps/web/venus-usedcar-quality/src/views/report/ai-purchase/index.vue
apps/web/venus-usedcar-quality/src/views/report/vehicle-brief/index.vue
apps/web/venus-usedcar-quality/src/views/report/ai-purchase/index.vue
View file @
a34346a
...
@@ -262,7 +262,8 @@ function getDetail() {
...
@@ -262,7 +262,8 @@ function getDetail() {
showToast
(
msg
);
showToast
(
msg
);
return
;
return
;
}
}
data
.
reportDate
=
formatDate
(
new
Date
(
data
.
reportInfo
?.
aiResultGeneratedTime
),
"YYYY/MM/DD"
);
const
safeDateStr
=
data
.
reportInfo
?.
aiResultGeneratedTime
?.
replace
(
/-/g
,
"/"
);
data
.
reportDate
=
formatDate
(
new
Date
(
safeDateStr
),
"YYYY/MM/DD"
);
detailInfo
.
value
=
data
||
{};
detailInfo
.
value
=
data
||
{};
});
});
}
}
...
@@ -403,7 +404,7 @@ async function generateBrief() {
...
@@ -403,7 +404,7 @@ async function generateBrief() {
return showToast(msg || "生成车况简报失败");
return showToast(msg || "生成车况简报失败");
}
}
// 跳转进入车况简报
// 跳转进入车况简报
router.replace({ path: "/vehicle-brief", query: { carConditionCode: res.data } });
router.replace({ path: "/vehicle-brief", query: { carConditionCode: res.data
, source: route.query.source
} });
}
}
</
script
>
</
script
>
...
...
apps/web/venus-usedcar-quality/src/views/report/vehicle-brief/index.vue
View file @
a34346a
...
@@ -124,6 +124,25 @@
...
@@ -124,6 +124,25 @@
<img
alt=
""
src=
"https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/share.png"
>
转发
<img
alt=
""
src=
"https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/share.png"
>
转发
</van-button>
</van-button>
</div>
</div>
<van-popup
v-model:show=
"shareGuideVisible"
class=
"share-popup"
position=
"center"
round
>
<div
class=
"sp-modal"
>
<div
class=
"sp-title"
>
发送给朋友
</div>
<div
class=
"sp-content"
>
<p>
1. 点击右上角“···”
</p>
<p>
2. 选择“发送给朋友”
</p>
</div>
<div
class=
"sp-actions"
>
<button
class=
"sp-btn sp-confirm"
@
click=
"shareGuideVisible = false"
>
知道了
</button>
</div>
</div>
</van-popup>
</div>
</div>
</
template
>
</
template
>
...
@@ -154,6 +173,7 @@ const route = useRoute();
...
@@ -154,6 +173,7 @@ const route = useRoute();
const
isMini
=
computed
(()
=>
{
const
isMini
=
computed
(()
=>
{
return
window
.
matchMedia
(
"(max-width: 768px)"
).
matches
;
return
window
.
matchMedia
(
"(max-width: 768px)"
).
matches
;
});
});
const
shareGuideVisible
=
ref
(
false
);
const
trendChartRef
=
ref
<
HTMLDivElement
|
null
>
(
null
);
const
trendChartRef
=
ref
<
HTMLDivElement
|
null
>
(
null
);
let
trendChart
:
null
|
ReturnType
<
typeof
echarts
.
init
>
=
null
;
let
trendChart
:
null
|
ReturnType
<
typeof
echarts
.
init
>
=
null
;
...
@@ -319,7 +339,7 @@ const handleTrendResize = () => {
...
@@ -319,7 +339,7 @@ const handleTrendResize = () => {
function setData(data: any) {
function setData(data: any) {
const trends = (data as any)?.priceTrends || [];
const trends = (data as any)?.priceTrends || [];
const xAxisData = Array.isArray(trends) ? trends.map((i: any) =>
String(i?.month ?? "")
) : [];
const xAxisData = Array.isArray(trends) ? trends.map((i: any) =>
`
$
{
i
?.
month
??
""
}
月
`
) : [];
const seriesData = Array.isArray(trends) ? trends.map((i: any) => Number(i?.priceWan ?? 0)) : [];
const seriesData = Array.isArray(trends) ? trends.map((i: any) => Number(i?.priceWan ?? 0)) : [];
const numeric = seriesData.filter((n) => Number.isFinite(n));
const numeric = seriesData.filter((n) => Number.isFinite(n));
hasTrendData.value = numeric.length > 0;
hasTrendData.value = numeric.length > 0;
...
@@ -367,7 +387,8 @@ function setData(data: any) {
...
@@ -367,7 +387,8 @@ function setData(data: any) {
}
}
]
]
});
});
data.reportDate = formatDate(new Date(data.reportInfo?.aiResultGeneratedTime), "YYYY/MM/DD");
const safeDateStr = data.reportInfo?.aiResultGeneratedTime?.replace(/-/g, "/");
data.reportDate = formatDate(new Date(safeDateStr), "YYYY/MM/DD");
detailInfo.value = data || {};
detailInfo.value = data || {};
}
}
...
@@ -411,10 +432,21 @@ async function copyToClipboard(text: string) {
...
@@ -411,10 +432,21 @@ async function copyToClipboard(text: string) {
function share() {
function share() {
setReportTrackData(0, "shareVehicleBrief");
setReportTrackData(0, "shareVehicleBrief");
const url = window.location.href;
const url = window.location.href;
setReportTrackData(0, "shareVehicle");
console.log(route.query);
if (!route.query.source) {
copyToClipboard(url).then((ok) => {
copyToClipboard(url).then((ok) => {
if (ok) showToast("链接已复制,可直接粘贴分享
");
if (ok) showToast("链接已复制,可直接粘贴转发
");
else showToast("复制失败,请手动复制地址栏链接");
else showToast("复制失败,请手动复制地址栏链接");
});
});
return;
}
shareGuideVisible.value = true;
// const url = window.location.href;
// copyToClipboard(url).then((ok) => {
// if (ok) showToast("链接已复制,可直接粘贴分享");
// else showToast("复制失败,请手动复制地址栏链接");
// });
}
}
</
script
>
</
script
>
...
@@ -678,4 +710,55 @@ function share() {
...
@@ -678,4 +710,55 @@ function share() {
.report-page--mini
.right-column
{
.report-page--mini
.right-column
{
width
:
100%
;
width
:
100%
;
}
}
.share-popup
{
width
:
300px
;
overflow
:
hidden
;
border-radius
:
12px
;
}
.sp-modal
{
display
:
flex
;
flex-direction
:
column
;
background
:
#fff
;
}
.sp-title
{
padding
:
18px
16px
8px
;
font-size
:
17px
;
font-weight
:
600
;
color
:
#1b233d
;
text-align
:
center
;
}
.sp-content
{
padding
:
0
20px
16px
;
font-size
:
14px
;
line-height
:
22px
;
color
:
#646566
;
text-align
:
center
;
}
.sp-content
p
{
margin
:
6px
0
;
}
.sp-actions
{
display
:
flex
;
height
:
44px
;
border-top
:
1px
solid
#f2f3f5
;
}
.sp-btn
{
flex
:
1
;
height
:
44px
;
font-size
:
16px
;
background
:
transparent
;
border
:
none
;
}
.sp-cancel
{
color
:
#646566
;
border-right
:
1px
solid
#f2f3f5
;
}
.sp-confirm
{
color
:
#576B95
;
}
</
style
>
</
style
>
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