删除部分冗余代码

master
Yer 2023-04-28 11:21:50 +08:00
parent 39c82361b6
commit 0a07ebfe8b
2 changed files with 1 additions and 23 deletions

View File

@ -447,14 +447,7 @@ export default {
}
},
/**
* 跳转到商品详情
*/
navigateToGoodsDetail(val) {
uni.navigateTo({
url: `/pages/product/goods?id=${val.id}&goodsId=${val.goodsId}`,
});
},
/**
* 是否收藏

View File

@ -124,21 +124,6 @@
}
},
/**
* 跳转到商品详情
*/
navigateToGoodsDetail(item) {
if (
item.sold_num === item.quantity ||
this.timeLine[this.nav].distanceStartTime !== 0
) {
return;
} else {
uni.navigateTo({
url: `/pages/product/goods?id=${item.skuId}&goodsId=${item.goodsId}`,
});
}
},
/**
* 单击导航时间