mrr.sj.front/unpackage/dist/dev/mp-weixin/pages/search/search-result.wxml

1 line
2.8 KiB
Plaintext

<view class="search-page"><custom-navbar vue-id="1fbaf552-1" title="搜索" leftImg="https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/e8f7c37f-b446-41da-b578-59098a56bc4d.png" showUser="{{true}}" backgroundColor="linear-gradient( 134deg, #F52540 0%, #E8101E 100%)" titleColor="#fff" borderBottom="none" bind:__l="__l"></custom-navbar><view class="page-top"><search-box vue-id="1fbaf552-2" placeholder="请输入手艺人/服务/店铺等" value="{{listQuery.title}}" data-event-opts="{{[['^search',[['search']]],['^confirm',[['search']]],['^input',[['__set_model',['$0','title','$event',[]],['listQuery']]]]]}}" bind:search="__e" bind:confirm="__e" bind:input="__e" bind:__l="__l"></search-box><view class="tabList"><block wx:for="{{tabList}}" wx:for-item="tab" wx:for-index="__i0__" wx:key="value"><view data-event-opts="{{[['tap',[['changeType',['$0'],[[['tabList','value',tab.value,'value']]]]]]]}}" class="{{['tabItem',(tab.value==listQuery.type)?'tabItem_active':'']}}" bindtap="__e">{{''+tab.label+''}}</view></block></view><block wx:if="{{listQuery.type===3}}"><view class="filter-container"><filter-vue bind:filterChange="__e" bind:open="__e" bind:close="__e" vue-id="1fbaf552-3" data-event-opts="{{[['^filterChange',[['handleFilterChange']]],['^open',[['onFilterShowChange',[true]]]],['^close',[['onFilterShowChange',[false]]]]]}}" bind:__l="__l"></filter-vue></view></block></view><block wx:if="{{isLoading}}"><view class="simple-loading"><view class="loading-spinner"></view><text class="loading-text">搜索中...</text></view></block><view class="{{['list-container',(isLoading)?'loading-blur':'']}}"><common-list scoped-slots-compiler="augmented" class="vue-ref" vue-id="1fbaf552-4" background="transparent" apiUrl="/user/getSearchList" listQuery="{{listQuery}}" listScrollHeight="{{'calc(100vh - '+totalTopHeight+'rpx)'}}" data-ref="groupRef" bind:__l="__l" vue-slots="{{['listData','empty']}}"><view slot="listData" wx:if="{{$root.m0}}"><block wx:if="{{$root.m1}}"><view><block wx:for="{{$root.m2['list']}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="card-wrapper-service"><service-card-list class="service-card" vue-id="{{('1fbaf552-5-'+index)+','+('1fbaf552-4')}}" list="{{[item]}}" bind:__l="__l"></service-card-list></view></block></view></block><block wx:if="{{$root.m3}}"><view><syr-card-list vue-id="{{('1fbaf552-6')+','+('1fbaf552-4')}}" list="{{$root.m4['list']}}" bind:__l="__l"></syr-card-list></view></block><block wx:if="{{$root.m5}}"><view class="shop_box"><block wx:for="{{$root.m6['list']}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="card-wrapper"><shop-card vue-id="{{('1fbaf552-7-'+index)+','+('1fbaf552-4')}}" shop="{{item}}" bind:__l="__l"></shop-card></view></block></view></block></view><no-data vue-id="{{('1fbaf552-8')+','+('1fbaf552-4')}}" slot="empty" bind:__l="__l"></no-data></common-list></view></view>