fix: 修复车辆详情跳转链接并调整模拟数据范围
修复认证车源页面中车辆点击跳转至错误详情页的问题,将链接更正为productDetail页面 调整myCar页面中模拟数据的价格和里程范围,使其更符合实际场景 优化SearchPopup组件中收藏按钮的样式和布局
Showing
3 changed files
with
8 additions
and
9 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2025-01-20 00:00:00 | 2 | * @Date: 2025-01-20 00:00:00 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-07-04 16:10:26 | 4 | + * @LastEditTime: 2025-07-06 18:08:56 |
| 5 | * @FilePath: /jgdl/src/components/SearchPopup.vue | 5 | * @FilePath: /jgdl/src/components/SearchPopup.vue |
| 6 | * @Description: 搜索弹窗组件 | 6 | * @Description: 搜索弹窗组件 |
| 7 | --> | 7 | --> |
| ... | @@ -65,7 +65,7 @@ | ... | @@ -65,7 +65,7 @@ |
| 65 | <view class="relative p-2"> | 65 | <view class="relative p-2"> |
| 66 | <image :src="scooter.imageUrl" :alt="scooter.name" mode="aspectFill" | 66 | <image :src="scooter.imageUrl" :alt="scooter.name" mode="aspectFill" |
| 67 | class="w-full h-36 object-cover rounded-lg" /> | 67 | class="w-full h-36 object-cover rounded-lg" /> |
| 68 | - <view class="absolute top-4 right-3 w-7 h-7 rounded-full bg-white bg-opacity-90" @tap.stop="() => toggleFavorite(scooter.id)" style="padding-top: 12rpx; padding-left: 10rpx;"> | 68 | + <view class="absolute top-4 right-3 w-7 h-7 rounded-full bg-white bg-opacity-80 flex items-center justify-center" @tap.stop="() => toggleFavorite(scooter.id)"> |
| 69 | <Heart1 v-if="!favoriteIds.includes(scooter.id)" size="22" :color="'#9ca3af'" /> | 69 | <Heart1 v-if="!favoriteIds.includes(scooter.id)" size="22" :color="'#9ca3af'" /> |
| 70 | <HeartFill v-else size="22" :color="'#ef4444'" /> | 70 | <HeartFill v-else size="22" :color="'#ef4444'" /> |
| 71 | </view> | 71 | </view> | ... | ... |
| 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-04 11:38:24 | 4 | + * @LastEditTime: 2025-07-06 18:13:43 |
| 5 | * @FilePath: /jgdl/src/pages/authCar/index.vue | 5 | * @FilePath: /jgdl/src/pages/authCar/index.vue |
| 6 | * @Description: 认证车源 | 6 | * @Description: 认证车源 |
| 7 | --> | 7 | --> |
| ... | @@ -198,9 +198,8 @@ const handleAuth = () => { | ... | @@ -198,9 +198,8 @@ const handleAuth = () => { |
| 198 | * 处理车辆点击 | 198 | * 处理车辆点击 |
| 199 | */ | 199 | */ |
| 200 | const onCarClick = (car) => { | 200 | const onCarClick = (car) => { |
| 201 | - // TODO: 跳转到车辆详情页 | 201 | + // 跳转到车辆详情页 |
| 202 | - // Taro.navigateTo({ url: `/pages/carDetail/index?id=${car.id}` }) | 202 | + Taro.navigateTo({ url: `/pages/productDetail/index?id=${car.id}` }) |
| 203 | - showToast(`查看${car.name}详情`, 'success') | ||
| 204 | } | 203 | } |
| 205 | 204 | ||
| 206 | /** | 205 | /** | ... | ... |
| 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-04 14:49:37 | 4 | + * @LastEditTime: 2025-07-06 18:11:44 |
| 5 | * @FilePath: /jgdl/src/pages/myCar/index.vue | 5 | * @FilePath: /jgdl/src/pages/myCar/index.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -285,10 +285,10 @@ const generateMockCarData = (page = 1, size = 10) => { | ... | @@ -285,10 +285,10 @@ const generateMockCarData = (page = 1, size = 10) => { |
| 285 | const model = models[Math.floor(Math.random() * models.length)] | 285 | const model = models[Math.floor(Math.random() * models.length)] |
| 286 | const condition = conditions[Math.floor(Math.random() * conditions.length)] | 286 | const condition = conditions[Math.floor(Math.random() * conditions.length)] |
| 287 | const image = images[Math.floor(Math.random() * images.length)] | 287 | const image = images[Math.floor(Math.random() * images.length)] |
| 288 | - const price = Math.floor(Math.random() * 200000) + 50000 | 288 | + const price = Math.floor(Math.random() * 20000) + 500 |
| 289 | const marketPrice = Math.floor(price * 1.2) | 289 | const marketPrice = Math.floor(price * 1.2) |
| 290 | const year = 2018 + Math.floor(Math.random() * 6) | 290 | const year = 2018 + Math.floor(Math.random() * 6) |
| 291 | - const mileage = Math.floor(Math.random() * 100000) + 10000 | 291 | + const mileage = Math.floor(Math.random() * 1000) + 100 |
| 292 | 292 | ||
| 293 | list.push({ | 293 | list.push({ |
| 294 | id: `car_${index + 1}`, | 294 | id: `car_${index + 1}`, | ... | ... |
-
Please register or login to post a comment