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-07-16 15:45:02 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
260ddbfa993bf9667f00cca6d9a6e028fb8e9de6
260ddbfa
1 parent
3819053f
fix: 修复车辆认证状态显示和上架逻辑
修复车辆列表中认证状态按钮的显示条件 修正上架/下架车辆的状态描述 更新我要卖车点击事件处理逻辑
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
src/api/car.js
src/pages/myAuthCar/index.vue
src/pages/myCar/index.vue
src/api/car.js
View file @
260ddbf
/*
* @Date: 2025-07-09 14:58:51
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-07-1
5 11:55:4
3
* @LastEditTime: 2025-07-1
6 15:37:5
3
* @FilePath: /jgdl/src/api/car.js
* @Description: 车辆相关API接口
*/
...
...
@@ -111,7 +111,7 @@ export const getVehicleDetailAPI = (params) => fn(fetch.get(Api.DETAIL_VEHICLE,
/**
* @description: 下架/上架车辆
* @param id 车辆ID
* @param status 状态(3=
待审核, 7=上架, 9
=下架)
* @param status 状态(3=
上架, 5
=下架)
* @returns data[{ id, seller_id, school_id, school_name, title, brand, model, manufacture_year, new_level, range_km, total_mileage_km, max_speed_kmh, battery_capacity_ah, brake_wear_level, tire_wear_level, price, market_price, verification_status, rejection_reason, note, photos, is_favorite }]
*/
...
...
src/pages/myAuthCar/index.vue
View file @
260ddbf
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-07-16 1
4:43:34
* @LastEditTime: 2025-07-16 1
5:44:20
* @FilePath: /jgdl/src/pages/myAuthCar/index.vue
* @Description: 我的认证车页面
-->
...
...
@@ -57,7 +57,8 @@
</text>
</view>
<nut-button
@click.stop="handleSellClick(item.id)"
v-if="item.review_status === 7"
@click.stop="handleSellClick(item)"
size="small"
type="primary"
color="orange"
...
...
@@ -231,11 +232,13 @@ const onItemClick = (item) => {
/**
* 处理我要卖车点击事件
* @param {
string} carId - 车辆ID
* @param {
Object} item - 车辆信息
*/
const handleSellClick = (carId) => {
const handleSellClick = (item) => {
// 翻车的状态为待审核
item.review_status = 1;
Taro.navigateTo({
url: `/pages/sell/index?id=${
carI
d}&mode=edit&type=auth`
url: `/pages/sell/index?id=${
item.i
d}&mode=edit&type=auth`
})
}
...
...
src/pages/myCar/index.vue
View file @
260ddbf
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-07-16 15:
11:40
* @LastEditTime: 2025-07-16 15:
43:55
* @FilePath: /jgdl/src/pages/myCar/index.vue
* @Description: 文件描述
-->
...
...
@@ -82,6 +82,7 @@
{{ car.status === 5 ? '上架' : '下架' }}
</nut-button>
<nut-button
v-if="car.verification_status === 1"
size="small"
type="primary"
@click="authCar(car.id)"
...
...
Please
register
or
login
to post a comment