This commit is contained in:
2026-09-15 17:18:15 +08:00
parent 26c392d612
commit 469a361a2b
8 changed files with 78 additions and 34 deletions
+4 -12
View File
@@ -137,11 +137,11 @@
placeholder-class="input-ph"
/>
</view>
<view class="form-field" bindtap="onSexSelect">
<view class="form-field">
<text class="form-label">性别</text>
<view class="form-value">
<text class="{{editForm.sex ? '' : 'input-ph'}}">{{editForm.sex === 1 ? '男' : editForm.sex === 2 ? '女' : '请选择'}}</text>
<view class="icon icon-chevron-right form-arrow"></view>
<view class="sex-pick">
<view class="sex-pill {{editForm.sex === 1 ? 'is-on' : ''}}" data-value="1" bindtap="onSexTap">男</view>
<view class="sex-pill {{editForm.sex === 2 ? 'is-on' : ''}}" data-value="2" bindtap="onSexTap">女</view>
</view>
</view>
<view class="form-field">
@@ -164,12 +164,4 @@
</view>
</view>
<!-- 性别选择:底部动作表 -->
<v2-overlay
visible="{{sexVisible}}"
type="actionsheet"
items="{{sexItems}}"
bind:select="onSexPick"
bind:cancel="onSexCancel"
/>
</view>