mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2026-11-13 12:28:50 +08:00
refactor: 优化购物车与订单页面逻辑
- 更新购物车页面,增强商品展示与交互体验。 - 调整订单页面的状态反馈与用户操作逻辑,确保信息清晰。 - 改进组件样式与布局,提升整体用户体验。 - 修复多个页面中的样式与功能问题,确保一致性与流畅性。
This commit is contained in:
@@ -417,7 +417,11 @@ function openOrder(order: any) {
|
||||
}
|
||||
|
||||
function changeTab(e: any) {
|
||||
tabCurrentIndex.value = e.target.current
|
||||
// H5 的 swiper change 把下标放在 detail.current。
|
||||
// 读 target.current 会得到 undefined,选中态被清掉,列表就停在「全部」。
|
||||
const current = Number(e?.detail?.current ?? e?.target?.current)
|
||||
if (!Number.isInteger(current) || current < 0 || current >= navList.length) return
|
||||
tabCurrentIndex.value = current
|
||||
}
|
||||
|
||||
function tabClick(index: number) {
|
||||
|
||||
Reference in New Issue
Block a user