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">
<block wx:if="{{editMode}}">
<view class="grp-hd cd-name-hd">
<text class="gh-cn">名称</text>
<text class="gh-en">Name</text>
</view>
<input
wx:if="{{editMode}}"
class="cd-input"
value="{{formData.name}}"
bindinput="onNameInput"
placeholder="衣物名称"
placeholder-class="input-ph"
/>
</block>
<view wx:else class="t-lg">{{detail.name || '未命名衣物'}}</view>
</view>
@@ -44,12 +44,19 @@
padding: 48rpx var(--pad) 0;
}
/* 编辑态名称标签:容器已自带左右边距,这里抵消分组标题的左右内边距 */
.cd-name-hd {
padding: 0 0 18rpx;
}
/* 可编辑字段统一用浅填充框(与备注输入框同一套语言),不再只靠发丝下划线 */
.cd-input {
font-family: var(--serif);
font-size: 40rpx;
width: 100%;
padding-bottom: 12rpx;
border-bottom: 1rpx solid var(--hairline-2);
padding: 24rpx 28rpx;
background: var(--fill);
border-radius: var(--r-ctrl);
}
.cd-group {