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-25 10:56:00 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
064844e23f836a54c8236da8bfd45755c4bf1fa9
064844e2
1 parent
dc823188
fix: 修正跳转商品详情页时传递的参数
将跳转商品详情页的方法参数从订单ID改为整个订单对象,以便获取车辆ID
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
src/pages/myOrders/index.vue
src/pages/myOrders/index.vue
View file @
064844e
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-07-2
4 10:01:18
* @LastEditTime: 2025-07-2
5 10:55:07
* @FilePath: /jgdl/src/pages/myOrders/index.vue
* @Description: 订单管理页面
-->
...
...
@@ -60,7 +60,7 @@
</view>
<!-- 车辆信息 -->
<nut-row :gutter="12" class="vehicle-info" @click="goToProductDetail(order
.id
)">
<nut-row :gutter="12" class="vehicle-info" @click="goToProductDetail(order)">
<nut-col :span="6">
<image :src="order.details.vehicle.front_photo || DEFAULT_COVER_IMG" :alt="order.details.vehicle.brand + ' ' + order.details.vehicle.model" class="vehicle-image"
mode="aspectFill" />
...
...
@@ -331,9 +331,9 @@ const scrollStyle = ref({
* 跳转到商品详情页
* @param {string} orderId - 订单ID
*/
const goToProductDetail = (
orderId
) => {
const goToProductDetail = (
{ details }
) => {
Taro.navigateTo({
url: `/pages/productDetail/index?id=${
orderI
d}`
url: `/pages/productDetail/index?id=${
details.vehicle.i
d}`
})
}
...
...
Please
register
or
login
to post a comment