Skip to content

Commit

Permalink
fix: 卡片未加载完成时不应可点击
Browse files Browse the repository at this point in the history
  • Loading branch information
Honye committed Aug 10, 2024
1 parent 4f232dc commit f8d7c9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion miniprogram/packages/movie/pages/cards/card.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
<swiper-item>
<navigator class='card {{current === index && "current"}}'
hover-class='none'
url='/packages/movie/pages/details/details?id={{cards[current].movie_id}}'>
url='/packages/movie/pages/details/details?id={{item.movie_id}}'
aria-disabled='{{!item.movie_id}}'
>
<view class='card-body'>
<image class='card-img'
src='{{item.image}}'
Expand Down
3 changes: 3 additions & 0 deletions miniprogram/packages/movie/pages/cards/card.wxss
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ swiper-item {
transition: all 0.2s ease-in 0s;
position: relative;
}
.card[aria-disabled] {
pointer-events: none;
}
.card.current {
transform: none;
opacity: 1;
Expand Down

0 comments on commit f8d7c9e

Please sign in to comment.