48 lines
2.0 KiB
Plaintext
48 lines
2.0 KiB
Plaintext
<view class="container">
|
|
<view class="page-header">
|
|
<view class="page-title">全局搜索</view>
|
|
<view class="page-subtitle">按条件查询数据</view>
|
|
</view>
|
|
<view class="card">
|
|
<view class="card-title">全局搜索</view>
|
|
<view class="section-title">关键词</view>
|
|
<input class="input" data-key="q" value="{{q}}" bindinput="onInput" />
|
|
<view class="section-title">类型</view>
|
|
<input class="input" data-key="type" value="{{type}}" bindinput="onInput" />
|
|
<view class="section-title">开始/结束日期</view>
|
|
<view class="row">
|
|
<input class="input" data-key="start" value="{{start}}" bindinput="onInput" />
|
|
<input class="input" data-key="end" value="{{end}}" bindinput="onInput" />
|
|
</view>
|
|
<view class="section-title">页码/每页</view>
|
|
<view class="row">
|
|
<input class="input" type="number" data-key="page" value="{{page}}" bindinput="onInput" />
|
|
<input class="input" type="number" data-key="pageSize" value="{{pageSize}}" bindinput="onInput" />
|
|
</view>
|
|
<view class="row pagination">
|
|
<view class="badge">页码 {{page || 1}}</view>
|
|
<view class="badge">每页 {{pageSize || 10}}</view>
|
|
</view>
|
|
<view class="section-hint">修改上方页码/每页后点击搜索</view>
|
|
<view class="row action-row">
|
|
<button class="btn" bindtap="search">搜索</button>
|
|
</view>
|
|
</view>
|
|
<view class="card result-card" wx:if="{{result}}">
|
|
<view class="result-header">
|
|
<view class="result-title">结果</view>
|
|
<view class="badge">原始数据</view>
|
|
</view>
|
|
<view class="result-hint">已为你保留完整响应</view>
|
|
<view wx:if="{{resultCards.length}}" class="list">
|
|
<view wx:for="{{resultCards}}" wx:key="label" class="card card--inner list-item">
|
|
<view class="row" style="justify-content: space-between;">
|
|
<view class="module-title">{{item.label}}</view>
|
|
<view class="badge">{{item.value}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="result">{{result}}</view>
|
|
</view>
|
|
</view>
|