|
@@ -1,53 +1,65 @@
|
|
|
<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>
|
|
|
+ <image src="../../image/common/search@2x.png"></image>
|
|
|
</label>
|
|
|
- <input placeholder-class="app_header-search-placeholder" value="" placeholder="搜索信息"></input>
|
|
|
+ <input
|
|
|
+ placeholder-class="app_header-search-placeholder"
|
|
|
+ value="{{searchForm.key_words}}"
|
|
|
+ placeholder="搜索信息"
|
|
|
+ data-formkey="key_words"
|
|
|
+ bind:input="handleKeyWords"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<scroll-view
|
|
|
class="app_nav-wrap"
|
|
|
scroll-x="{{true}}"
|
|
|
scroll-with-animation="{{true}}"
|
|
|
- scroll-into-view="item-{{currentCategory * 1 < 4 ? navScrollLeft : currentCategory * 1 - 3}}">
|
|
|
+ scroll-into-view="item-{{searchForm.category_id * 1 < 4 ? navScrollLeft : searchForm.category_id * 1 - 3}}">
|
|
|
<view
|
|
|
- class="nav {{currentCategory === item.id ? 'active' : ''}}"
|
|
|
- wx:for="{{category}}"
|
|
|
+ class="nav {{searchForm.category_id === item.id ? 'active' : ''}}"
|
|
|
+ wx:for="{{categoryList}}"
|
|
|
wx:key="id"
|
|
|
data-item="{{item}}"
|
|
|
bind:tap="handleNav">
|
|
|
<view class="photo" id="item-{{index}}">
|
|
|
- <image src=""></image>
|
|
|
+ <image src="{{item.category_img_url}}"></image>
|
|
|
</view>
|
|
|
- <view class="name">{{item.name}}</view>
|
|
|
+ <view class="name">{{item.category_name}}</view>
|
|
|
</view>
|
|
|
</scroll-view>
|
|
|
-<view class="list" wx:for="{{list}}" wx:key="index" data-item="{{item}}" bindtap="jumpBusinessDetail">
|
|
|
+<view
|
|
|
+ class="list"
|
|
|
+ wx:for="{{listData}}"
|
|
|
+ wx:key="index"
|
|
|
+ data-item="{{item}}"
|
|
|
+ bindtap="jumpBusinessDetail">
|
|
|
<view class="item-info">
|
|
|
<view class="top">
|
|
|
<view class="logo">
|
|
|
- <image class="" src=""></image>
|
|
|
+ <image src="{{item.shop_img_url}}"></image>
|
|
|
</view>
|
|
|
<view class="info">
|
|
|
- <view class="name">名字名字名字名字名字名字名字名字</view>
|
|
|
- <view class="goods-count">99999商品 9999999999人关注</view>
|
|
|
+ <view class="name">{{item.shop_name}}</view>
|
|
|
+ <view class="goods-count">{{item.shop_product_count}}商品 {{item.shop_follow_num}}人关注</view>
|
|
|
</view>
|
|
|
- <button class="contact" type="default">点击联系</button>
|
|
|
+ <button
|
|
|
+ class="contact"
|
|
|
+ type="default"
|
|
|
+ data-item="{{item}}"
|
|
|
+ catch:tap="handleContact">点击联系
|
|
|
+ </button>
|
|
|
</view>
|
|
|
<view class="bottom">
|
|
|
- <button type="default">电话:12345678901</button>
|
|
|
- <button type="default">微信:wxid_drq1i2lrkao22wxid_drq1i2lrkao22wxid_drq1i2lrkao22</button>
|
|
|
+ <button type="default">电话:{{item.shop_phone}}</button>
|
|
|
+ <button type="default">微信:{{item.user_wechat_code}}</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <!-- 无数据 -->
|
|
|
-<view class="list-bitmap" wx:if="{{finished && list.length < 1}}">
|
|
|
- <image src="system"></image>
|
|
|
- <text>暂无数据</text>
|
|
|
-</view>
|
|
|
- <!-- 上拉加载 -->
|
|
|
<view class="pullup-wrapper" wx:if="{{!isRefresh}}">
|
|
|
- <van-loading wx:if="{{!finished}}" size="24px" type="spinner">加载中...
|
|
|
+ <van-loading
|
|
|
+ wx:if="{{!finished}}"
|
|
|
+ size="24px"
|
|
|
+ type="spinner">加载中...
|
|
|
</van-loading>
|
|
|
</view>
|