feat: 预加载优化、nav-bar 箭头居中优化

This commit is contained in:
R524809
2026-05-26 11:20:36 +08:00
parent fbdad6e02b
commit 824e83c887
9 changed files with 75 additions and 14 deletions
@@ -63,6 +63,7 @@
font-size: 40rpx;
color: @color-nav-title;
line-height: 1;
margin-top: 4rpx;
}
.nav-bar__title {
@@ -85,4 +86,4 @@
.nav-bar__placeholder {
width: 100%;
flex-shrink: 0;
}
}
@@ -54,7 +54,8 @@ Component({
},
methods: {
onTap() {
this.triggerEvent('tap', {
// 使用 cardtap 避免与原生 tap 同名,防止安卓上父级 bindtap 重复触发 navigateTo
this.triggerEvent('cardtap', {
title: this.data.title,
path: this.data.path,
});
@@ -2,7 +2,7 @@
class="worksheet-card worksheet-card--{{variant}}"
hover-class="worksheet-card--active"
hover-stay-time="100"
bindtap="onTap">
catchtap="onTap">
<block wx:if="{{variant === 'track'}}">
<view class="worksheet-card__top">
<image