You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
2.7 KiB
77 lines
2.7 KiB
<view class="search-discussion">
|
|
|
|
<view class="search-header">
|
|
<view class="content">
|
|
<image class="search-img" src="../../images/search.png" />
|
|
<input
|
|
focus
|
|
placeholder-class="search-placeholder"
|
|
class="search-input"
|
|
type="text"
|
|
bindconfirm="search"
|
|
confirm-type="search"
|
|
placeholder="输入关键字进行搜索"
|
|
value="{{searchInputValue}}"
|
|
bindinput="bindSearchInput"/>
|
|
<view class="search-btn" bindtap="debounceSearch">搜索</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="search-content">
|
|
<pulldown-refresh id="pulldown-refresh" bind:pullDownRefresh="searchPullDownRefresh">
|
|
|
|
<view class="issue-list" slot="content" wx:if="{{type == 'issue'}}">
|
|
<block wx:if="{{issueList.length === 0 && preloadVisible}}">
|
|
<preload-issueItem
|
|
wx:for="{{[1,2]}}"
|
|
wx:for-index="index"
|
|
wx:for-item="item"
|
|
wx:key="{{index}}">
|
|
</preload-issueItem>
|
|
</block>
|
|
<block wx:if="{{issueList.length > 0}}">
|
|
<issue-item
|
|
bind:navigateToIssueDetail="navigateToIssueDetail"
|
|
wx:for="{{issueList}}"
|
|
wx:for-index="index"
|
|
wx:for-item="item"
|
|
issueObj="{{item}}"
|
|
wx:key="{{item.id}}">
|
|
</issue-item>
|
|
</block>
|
|
<view class="no-data" wx:if="{{issueList.length === 0 && !preloadVisible}}">
|
|
<image class="no-data-image" src="../../images/icon_queshengye@2x.png" />
|
|
<view class="no-data-tip">暂无搜索结果</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="project-list" slot="content" wx:if="{{type == 'project'}}">
|
|
<block wx:if="{{projectList.length === 0 && preloadVisible}}">
|
|
<preload-projectItem
|
|
wx:for="{{[1,2]}}"
|
|
wx:for-index="index"
|
|
wx:for-item="item"
|
|
wx:key="{{index}}">
|
|
</preload-projectItem>
|
|
</block>
|
|
<block wx:if="{{projectList.length > 0}}">
|
|
<project-item
|
|
bind:navigateToProjectDetail="navigateToProjectDetail"
|
|
wx:for="{{projectList}}"
|
|
wx:for-index="index"
|
|
wx:for-item="item"
|
|
projectObj="{{item}}"
|
|
wx:key="{{item.id}}">
|
|
</project-item>
|
|
</block>
|
|
<view class="no-data" wx:if="{{projectList.length === 0 && !preloadVisible}}">
|
|
<image class="no-data-image" src="../../images/icon_queshengye@2x.png" />
|
|
<view class="no-data-tip">暂无搜索结果</view>
|
|
</view>
|
|
</view>
|
|
|
|
</pulldown-refresh>
|
|
<load-more loadMoreVisible="{{loadMoreVisible}}" loadMoreType="{{loadMoreType}}"></load-more>
|
|
</view>
|
|
|
|
</view>
|