修复:收口小程序键盘遮挡适配
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<view class="home-page-root">
|
||||
<navigation-bar title="Yumi Nail" back="{{false}}" color="#2d2430" background="#fff7f8"></navigation-bar>
|
||||
<navigation-bar title="{{navTitle}}" back="{{false}}" color="#2d2430" background="#fff7f8"></navigation-bar>
|
||||
|
||||
<scroll-view class="home-scroll" scroll-y enable-flex enhanced show-scrollbar="false">
|
||||
<view class="page-shell home-page">
|
||||
<scroll-view class="home-scroll" scroll-y enable-flex enhanced show-scrollbar="false" scroll-with-animation="{{true}}" scroll-into-view="{{keyboardAnchorId}}">
|
||||
<view class="page-shell home-page {{keyboardVisible ? 'keyboard-active' : ''}}">
|
||||
<view class="page-content">
|
||||
<view class="page-hero home-hero">
|
||||
<text class="hero-kicker">{{isLoggedIn ? greeting : 'YUMI NAIL 小程序'}}</text>
|
||||
@@ -14,7 +14,7 @@
|
||||
<view class="hero-action secondary" bindtap="handleSeeAllPopular">看看热门作品</view>
|
||||
</view>
|
||||
|
||||
<view class="search-box">
|
||||
<view id="home-search-anchor" class="search-box">
|
||||
<input
|
||||
class="search-input"
|
||||
placeholder="搜索作品、风格或门店"
|
||||
@@ -22,6 +22,11 @@
|
||||
value="{{searchKeyword}}"
|
||||
bindinput="handleSearchInput"
|
||||
bindconfirm="handleSearchConfirm"
|
||||
bindfocus="handleSearchFocus"
|
||||
bindblur="handleSearchBlur"
|
||||
data-keyboard-anchor="home-search-anchor"
|
||||
adjust-position="false"
|
||||
cursor-spacing="{{keyboardCursorSpacing}}"
|
||||
confirm-type="search"
|
||||
/>
|
||||
<view class="search-btn" bindtap="handleSearchConfirm">搜索</view>
|
||||
@@ -135,6 +140,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view wx:if="{{keyboardVisible}}" class="keyboard-light-spacer" style="height: {{keyboardInsetRpx}}rpx;"></view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user