|
@@ -1,8 +1,10 @@
|
|
|
-<view class="index">
|
|
|
- <!-- 搜索栏 -->
|
|
|
- <van-search value="{{ value }}" placeholder="请输入商家名称" use-action-slot bind:change="onChange" bind:search="onSearch">
|
|
|
- <view slot="action" bind:tap="onClick">搜索</view>
|
|
|
- </van-search>
|
|
|
+<!-- 搜索框 -->
|
|
|
+<view class="search_container">
|
|
|
+ <view class="inputContent">
|
|
|
+ <van-icon name="search" />
|
|
|
+ <input type="text" bindinput="onInput" bindconfirm="onInput" placeholder="搜索商品名称" />
|
|
|
+ <button bindtap="onSearch" bintap="onSearch">搜索</button>
|
|
|
+ </view>
|
|
|
|
|
|
<!-- 主页轮播图 -->
|
|
|
<swiper class="swiper" indicator-dots indicator-color="#CBCBCB" indicator-active-color="#F9872C" autoplay interval="2000" circular>
|
|
@@ -15,5 +17,6 @@
|
|
|
</swiper-item>
|
|
|
</swiper>
|
|
|
|
|
|
-<!-- 商品标签页 -->
|
|
|
+ <!-- 商品标签页 -->
|
|
|
+
|
|
|
</view>
|