Skip to content

Commit

Permalink
fix: 修复真机卡片点击无反应
Browse files Browse the repository at this point in the history
  • Loading branch information
Honye committed Aug 11, 2024
1 parent 3e8f042 commit 7aa3ed7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions miniprogram/packages/movie/pages/cards/card.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
bindchange='onChange'>
<block wx:for='{{cards}}' wx:key='date'>
<swiper-item>
<navigator class='card {{current === index && "current"}}'
<navigator class='card {{current === index && "current"}} {{!item.movie_id && "disabled"}}'
hover-class='none'
url='/packages/movie/pages/details/details?id={{item.movie_id}}'
aria-disabled='{{!item.movie_id}}'
>
<view class='card-body'>
<image class='card-img'
Expand Down
6 changes: 3 additions & 3 deletions miniprogram/packages/movie/pages/cards/card.wxss
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ swiper-item {
transition: all 0.2s ease-in 0s;
position: relative;
}
.card[aria-disabled] {
pointer-events: none;
}
.card.current {
transform: none;
opacity: 1;
}
.card.disabled {
pointer-events: none;
}
.card .card-body {
height: 100%;
}
Expand Down

0 comments on commit 7aa3ed7

Please sign in to comment.