Showing
1 changed file
with
17 additions
and
2 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-19 14:11:06 | 2 | * @Date: 2022-09-19 14:11:06 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-07-17 10:42:22 | 4 | + * @LastEditTime: 2025-07-17 11:00:00 |
| 5 | * @FilePath: /jgdl/src/pages/myCar/index.vue | 5 | * @FilePath: /jgdl/src/pages/myCar/index.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -82,7 +82,15 @@ | ... | @@ -82,7 +82,15 @@ |
| 82 | :type="car.status === 5 ? 'success' : 'warning'" | 82 | :type="car.status === 5 ? 'success' : 'warning'" |
| 83 | @click="toggleOffline(car)" | 83 | @click="toggleOffline(car)" |
| 84 | > | 84 | > |
| 85 | - {{ car.status === 5 ? '上架' : '下架' }} | 85 | + {{ car.status === 5 && !car.is_sold ? '上架' : '下架' }} |
| 86 | + </nut-button> | ||
| 87 | + <nut-button | ||
| 88 | + v-if="car.review_status === 5" | ||
| 89 | + size="small" | ||
| 90 | + type="success" | ||
| 91 | + @click="toggleOnline(car)" | ||
| 92 | + > | ||
| 93 | + 上架 | ||
| 86 | </nut-button> | 94 | </nut-button> |
| 87 | <nut-button | 95 | <nut-button |
| 88 | v-if="car.verification_status === 1 || car.verification_status === 7" | 96 | v-if="car.verification_status === 1 || car.verification_status === 7" |
| ... | @@ -233,6 +241,13 @@ const toggleOffline = (car) => { | ... | @@ -233,6 +241,13 @@ const toggleOffline = (car) => { |
| 233 | offlineDialogVisible.value = true | 241 | offlineDialogVisible.value = true |
| 234 | } | 242 | } |
| 235 | 243 | ||
| 244 | +// 上架 | ||
| 245 | +const toggleOnline = (car) => { | ||
| 246 | + currentOfflineCar.value = car | ||
| 247 | + offlineDialogContent.value = '确认要上架此车源吗?' | ||
| 248 | + offlineDialogVisible.value = true | ||
| 249 | +} | ||
| 250 | + | ||
| 236 | /** | 251 | /** |
| 237 | * 确认上下架操作 | 252 | * 确认上下架操作 |
| 238 | */ | 253 | */ | ... | ... |
-
Please register or login to post a comment