This commit is contained in:
2026-09-15 19:46:53 +08:00
parent 0075ddb0f2
commit abd93c844f
2 changed files with 23 additions and 11 deletions
@@ -119,16 +119,21 @@ module.exports = { hex: hex, tags: tags }
<view wx:else class="ph icon icon-hanger"></view>
</view>
<!-- 名称 -->
<!-- 名称:编辑态给标签 + 浅填充输入框,一眼看出可输入 -->
<view class="cd-name">
<input
wx:if="{{editMode}}"
class="cd-input"
value="{{formData.name}}"
bindinput="onNameInput"
placeholder="衣物名称"
placeholder-class="input-ph"
/>
<block wx:if="{{editMode}}">
<view class="grp-hd cd-name-hd">
<text class="gh-cn">名称</text>
<text class="gh-en">Name</text>
</view>
<input
class="cd-input"
value="{{formData.name}}"
bindinput="onNameInput"
placeholder="衣物名称"
placeholder-class="input-ph"
/>
</block>
<view wx:else class="t-lg">{{detail.name || '未命名衣物'}}</view>
</view>