Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
jgdl
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-08-18 16:34:49 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4ee5ce667f4511417586107ec2d576dc49523189
4ee5ce66
1 parent
725e0897
fix(myCar): 修复车辆信息显示条件渲染问题
添加条件渲染判断,防止车辆信息字段为空时显示undefined
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/pages/myCar/index.vue
src/pages/myCar/index.vue
View file @
4ee5ce6
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-08-1
3 17:21:54
* @LastEditTime: 2025-08-1
8 16:34:15
* @FilePath: /jgdl/src/pages/myCar/index.vue
* @Description: 文件描述
-->
...
...
@@ -42,7 +42,7 @@
/>
</view>
<view class="flex-1 ml-4">
<text class="font-medium text-base block">
{{ car.manufacture_year }}款 {{ car.brand }} {{ car.model }}
</text>
<text class="font-medium text-base block">
<text v-if="car.manufacture_year">{{ car.manufacture_year }}款</text> <text v-if="car.brand">{{ car.brand }}</text> <text v-if="car.model">{{ car.model }}</text>
</text>
<!-- 状态标识 -->
<view class="status-badges">
<!-- <view v-if="car.verification_status" class="status-badge" :class="getVerificationStatusClass(car.verification_status)">
...
...
@@ -56,7 +56,7 @@
<text>{{ reviewStatus[car.review_status] }}</text>
</view>
</view>
<text class="text-sm text-gray-500 mt-1 block">
续航{{ car.range_km }}km | 最高时速{{ car.max_speed_kmh }}km/h
</text>
<text class="text-sm text-gray-500 mt-1 block">
<text v-if="car.range_km">续航{{ car.range_km }}km</text> <text v-if="car.max_speed_kmh">最高时速{{ car.max_speed_kmh }}km/h</text>
</text>
<!-- 审核原因 -->
<view v-if="car.review_reason" class="verification-reason mt-1">
<nut-config-provider :theme-vars="themeVars">
...
...
Please
register
or
login
to post a comment