bugfix
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user