Commit 2064a2fb by yancanhua

fix: 小程序分享调整

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