Commit 28ace58b by yancanhua

fix: 测试问题优化

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