Commit 2064a2fb by yancanhua

fix: 小程序分享调整

1 parent 9d19d180
......@@ -28,19 +28,19 @@ export default class InspectionPreview extends Vue {
that.getReportVehicleData(option.vehicleId);
that.getVehicleDetail(option.aucvehId);
setTimeout(() => {
that.toLoginPage();
that.toLoginPage(option);
}, 1600);
});
}
toLoginPage() {
toLoginPage(option: any) {
const authService: AuthService = this.$auth;
if (!authService.isLogin()) {
uni.showToast({
title: '请先登录', icon: 'none', duration: 2000, complete: function () {
setTimeout(() => {
uni.navigateTo({ url: '/pages/LoginPage?vehicleId=' + this.vehicleId + '&aucvehId=' + this.aucvehId });
}, 2200);
uni.navigateTo({ url: '/pages/LoginPage?vehicleId=' + option.vehicleId + '&aucvehId=' + option.aucvehId });
}, 1200);
}
});
}
......
......@@ -46,13 +46,18 @@
{{ reportData.interiorLevel || '-' }}
</text>
</view>
<view class="accident">
<text v-if="reportData.accident != 1">无事故</text>
<text v-if="reportData.burn != 1" class="accidentSeparator">|</text>
<text v-if="reportData.burn != 1">无火烧</text>
<text v-if="reportData.wade != 1" class="accidentSeparator">|</text>
<text v-if="reportData.wade != 1">无水泡</text>
<text :class="reportData.accident == 1 ? 'color_F5AE18' : ''">
{{ reportData.accident != 1 ? '无' : '' }}事故
</text>
<text class="accidentSeparator">|</text>
<text :class="reportData.burn == 1 ? 'color_F5AE18' : ''">
{{ reportData.burn != 1 ? '无' : '' }}火烧
</text>
<text class="accidentSeparator">|</text>
<text :class="reportData.wade == 1 ? 'color_F5AE18' : ''">
{{ reportData.wade != 1 ? '无' : '' }}水泡
</text>
</view>
<view class="reportBtn" @click="handleTapp">查看完整检测报告</view>
</view>
......@@ -148,9 +153,10 @@ export default class InspectionReport extends Vue {
height: 26px;
float: left;
margin-top: 16px;
color: #333333;
font-size: 18px;
line-height: 26px;
font-size: 18px;
font-weight: 500;
color: #333;
}
.averageHand {
......@@ -201,6 +207,10 @@ export default class InspectionReport extends Vue {
color: #F5AE18;
}
.color_F5AE18 {
color: #F5AE18;
}
.averageBox_bg3 {
background: #27cd5a1a;
color: #EE3140;
......
......@@ -109,7 +109,7 @@ export default class LoginPage extends Vue {
authService.updateToken(accountInfo.token);
authService.saveAuthentication(accountInfo);
if (this.optionData?.vehicleId && this.optionData?.aucvehId) {
uni.navigateTo({ url: '/module/auction/InspectionPreview?vehicleId=' + this.optionData.vehicleId + '&aucvehId=' + this.optionData.aucvehId });
uni.navigateTo({ url: '/module/auction/InspectionPreview?vehicleId=' + this.optionData.vehicleId + '&aucvehId=' + this.optionData.aucvehId });
} else {
uni.switchTab({url: '/pages/tabbar/HomePage'});
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!