|
@@ -1,5 +1,5 @@
|
|
|
-<view class="app_page-header-search">
|
|
|
- <view class="app_page-header-search-warp app_width-690 page-header-search">
|
|
|
+<view class="app_page-header-search page-header-search">
|
|
|
+ <view class="app_page-header-search-warp app_width-690">
|
|
|
<label for="header-search">
|
|
|
<image src=""></image>
|
|
|
</label>
|
|
@@ -9,14 +9,15 @@
|
|
|
<scroll-view
|
|
|
class="app_nav-wrap"
|
|
|
scroll-x="{{true}}"
|
|
|
- scroll-with-animation="{{true}}">
|
|
|
+ scroll-with-animation="{{true}}"
|
|
|
+ scroll-into-view="item-{{currentCategory * 1 < 4 ? 0 : currentCategory * 1 - 3}}">
|
|
|
<view
|
|
|
class="nav {{currentCategory === item.id ? 'active' : ''}}"
|
|
|
wx:for="{{category}}"
|
|
|
wx:key="id"
|
|
|
data-item="{{item}}"
|
|
|
bind:tap="handleNav">
|
|
|
- <view class="photo">
|
|
|
+ <view class="photo" id="item-{{index}}">
|
|
|
<image src=""></image>
|
|
|
</view>
|
|
|
<view class="name">{{item.name}}</view>
|