Commit 43a425ad by yancanhua

fix: 自测问题修改

1 parent 30208e68
...@@ -6,17 +6,22 @@ ...@@ -6,17 +6,22 @@
<script lang="ts"> <script lang="ts">
import { Component, Vue } from "vue-facing-decorator"; import { Component, Vue } from "vue-facing-decorator";
import { onLoad} from "@dcloudio/uni-app"; import { onLoad } from "@dcloudio/uni-app";
import { AuctionController } from "@/api/AuctionController";
@Component({ components: {} }) @Component({ components: {} })
export default class InspectionPreview extends Vue { export default class InspectionPreview extends Vue {
h5Url: string = ''; h5Url: string = '';
created(): void { created(): void {
onLoad((option) => { onLoad((option) => {
this.h5Url = option.h5Url || ''; this.getReportVehicleData(option.vehicleId);
});
}
getReportVehicleData(vehicleId: string): void {
AuctionController.reportVehicleData(this.axios, vehicleId).then(res => {
this.h5Url = res.data.data?.h5Url || '';
}); });
} }
} }
......
...@@ -104,8 +104,7 @@ export default class InspectionReport extends Vue { ...@@ -104,8 +104,7 @@ export default class InspectionReport extends Vue {
}); });
return console.log('请先登录'); return console.log('请先登录');
} }
const h5Url = this.reportData.h5Url || ''; uni.navigateTo({ url: '/module/auction/InspectionPreview?vehicleId=' + this.auctionVehicle.vehicle.vehicleId });
uni.navigateTo({ url: '/module/auction/InspectionPreview?h5Url=' + h5Url });
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!