32 lines
1.2 KiB
Plaintext
32 lines
1.2 KiB
Plaintext
<view class="container">
|
|
<!-- 头像 -->
|
|
<view class="avatar-section">
|
|
<image class="avatar" src="{{avatarUrl}}" />
|
|
<button class="change-avatar-btn" bindtap="chooseAvatar">更换头像</button>
|
|
</view>
|
|
|
|
<!-- 师傅名称 -->
|
|
<view class="info-item">
|
|
<text class="label">师傅名称</text>
|
|
<input class="value" value="{{userInfo.name}}" bindinput="updateMasterName" placeholder="请输入师傅名称" />
|
|
</view>
|
|
|
|
<!-- 性别 -->
|
|
<view class="info-item">
|
|
<text class="label">性别</text>
|
|
|
|
<view style="flex: 1;display: flex;justify-content: flex-end;">
|
|
<picker mode="selector" range="{{sexOptions}}" value="{{sexIndex}}" bindchange="changeSex">
|
|
<view class="value">{{sexOptions[sexIndex]}}</view>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="info-item">
|
|
<text class="label">电话</text>
|
|
<input class="value" value="{{userInfo.phone}}" bindinput="updateMasterName" placeholder="请输入师傅电话" />
|
|
</view>
|
|
|
|
<!-- 保存按钮 -->
|
|
<view class="save-btn" bindtap="saveMasterInfo">保存</view>
|
|
</view> |