Commit 28ace58b by yancanhua

fix: 测试问题优化

1 parent ebdc34c2
......@@ -30,15 +30,15 @@
<a-tag v-else-if="pageData.auditStatus == 2" color="#E7F2FE" :style="{ color: '#288BFA' }"
:bordered="false">审核中</a-tag>
<a-tag v-else-if="pageData.auditStatus == 3" color="#E8F8F2" :style="{ color: '#00AD74' }"
:bordered="false">审批通过</a-tag>
:bordered="false">已通过</a-tag>
<a-tag v-else-if="pageData.auditStatus == 4" color="#FFEDED" :style="{ color: '#EB2F2F' }"
:bordered="false">审批驳回</a-tag>
:bordered="false">已驳回</a-tag>
</a-descriptions-item>
<a-descriptions-item label="创建时间">{{ pageData.createTime || '-' }}</a-descriptions-item>
<a-descriptions-item label="完成检测时间">{{ pageData.inspectionCompletedTime || '-'
}}</a-descriptions-item>
</a-descriptions>
<a-descriptions :column="2" size="small" layout="vertical">
<template #title>
<title-tip-icon></title-tip-icon>
......
......@@ -14,12 +14,14 @@ import { AuctionController } from "@/api/AuctionController";
export default class InspectionPreview extends Vue {
h5Url: string = '';
vehicleId: string = '';
aucvehId: string = '';
imageUrl: string = '';
vehicleData: any = {};
created(): void {
onLoad((option) => {
this.vehicleId = option.vehicleId;
this.aucvehId = option.aucvehId;
this.getReportVehicleData(option.vehicleId);
this.getVehicleDetail(option.aucvehId);
});
......@@ -29,6 +31,7 @@ export default class InspectionPreview extends Vue {
AuctionController.getAuctionVehicleDetailById(this.axios, aucvehId).then(res => {
const data = res.data || {};
this.imageUrl = data?.vehicle?.cover?.url || '';
this.vehicleData = data?.vehicle || {};
});
}
......@@ -42,22 +45,26 @@ export default class InspectionPreview extends Vue {
@Hook('onShareAppMessage')
onShareAppMessage(res: any) {
// res.from 可判断分享触发来源:'button'(按钮触发)、'menu'(右上角菜单)
console.debug('分享来源:', res.from);
const name = this.vehicleData?.baseInfo?.carSeriesName + this.vehicleData?.baseInfo?.carTypeName;
let title = '优加二手车:专业检测报告[' + name + ']';
return {
title: '拍卖车检报告',
path: '/module/auction/InspectionPreview?vehicleId=' + this.vehicleId,
title: title,
path: '/module/auction/InspectionPreview?vehicleId=' + this.vehicleId + '&aucvehId=' + this.aucvehId,
imageUrl: this.imageUrl || '', // 分享图片(建议尺寸 5:4,默认使用页面截图)
};
}
@Hook('onShareTimeline')
onShareTimeline() {
const name = this.vehicleData?.baseInfo?.carSeriesName + this.vehicleData?.baseInfo?.carTypeName;
let title = '优加二手车:专业检测报告[' + name + ']';
return {
title: '拍卖车检报告',
query: `id=${this.vehicleId}`, // 分享参数
title: title,
query: 'vehicleId=' + this.vehicleId + '&aucvehId=' + this.aucvehId, // 分享参数
imageUrl: this.imageUrl || '',
};
}
}
</script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!