- miniprogram/config.js: BASE_URL 指向 http://192.227.237.8:3001 - 动作标题中文化(nameZh),搜索匹配 name/nameZh/nameEn - 新增计划/收藏/我的 等页面与组件 - 后端 Docker 化(Dockerfile/.dockerignore)与翻译脚本 - .gitignore 补充 .DS_Store
28 lines
1.0 KiB
Plaintext
28 lines
1.0 KiB
Plaintext
<view class="page">
|
|
<navbar title="{{navTitle}}" show-back="{{selectMode}}" />
|
|
<view class="searchbar">
|
|
<view class="searchbar__box">
|
|
<text class="searchbar__icon">🔍</text>
|
|
<input
|
|
class="searchbar__input"
|
|
placeholder="{{selectMode ? '选择动作加入计划' : '搜索动作 / 器械 / 部位'}}"
|
|
placeholder-class="ph"
|
|
value="{{q}}"
|
|
confirm-type="search"
|
|
bindinput="onInput" />
|
|
</view>
|
|
</view>
|
|
<view wx:if="{{selectMode}}" class="hint">从下方结果中选择动作,加入当前计划</view>
|
|
|
|
<view class="section" style="padding-top: 8rpx;">
|
|
<view class="grid" wx:if="{{results.length}}">
|
|
<view class="grid__item" wx:for="{{results}}" wx:key="id">
|
|
<exercise-card exercise="{{item}}" bind:tap="onExercise" />
|
|
</view>
|
|
</view>
|
|
<view wx:elif="{{loading}}" class="empty">搜索中…</view>
|
|
<view wx:elif="{{searched}}" class="empty">未找到相关动作</view>
|
|
<view wx:else class="empty">输入关键词开始搜索</view>
|
|
</view>
|
|
</view>
|