Files
JayuCloud/JC-Salon-WeChat/pages/profile-edit/index.wxml
T
xiaowang 771625d8cf
自动发布开发环境 Nacos 配置 / publish (push) Successful in 44s
fix(salon): 取消微信号必填校验,允许店长与美甲师留空
2026-11-08 00:26:49 +08:00

45 lines
2.9 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<view class="page no-tab profile-edit-page">
<view wx:if="{{loading}}" class="loading-line">正在加载个人信息...</view>
<view class="card avatar-card">
<view class="avatar-preview" bindtap="chooseAvatar">
<image wx:if="{{form.avatar}}" src="{{form.avatar}}" mode="aspectFill" binderror="onAvatarImageError"></image>
<text wx:else class="avatar-letter">{{avatarText}}</text>
<view class="avatar-change-tip">{{avatarUploading ? '上传中' : '点击更换'}}</view>
</view>
<view class="avatar-copy">
<text class="avatar-title">{{form.nickname || '未设置昵称'}}</text>
<text class="avatar-signature">{{form.signature || '暂无个性签名'}}</text>
</view>
</view>
<view class="wechat-data-actions">
<button class="wechat-data-action" open-type="chooseAvatar" disabled="{{loading || saving || avatarUploading}}" bindchooseavatar="chooseWechatAvatar">
<!-- <view class="wechat-action-mark">像</view> -->
<text>{{avatarUploading ? '头像上传中' : '使用微信头像'}}</text>
</button>
<view class="wechat-data-action nickname-action {{loading || saving || avatarUploading ? 'disabled' : ''}}">
<!-- <view class="wechat-action-mark">昵</view> -->
<text>使用微信昵称</text>
<input class="wechat-nickname-trigger" type="nickname" value="{{form.nickname}}" disabled="{{loading || saving || avatarUploading}}" bindinput="onWechatNicknameInput" />
</view>
</view>
<view class="section-title">基本资料</view>
<view class="card form-card">
<view class="field"><text class="field-label required">昵称</text><input value="{{form.nickname}}" data-field="nickname" bindinput="onInput" maxlength="30" placeholder="请输入昵称" /></view>
<view class="field phone-field" bindtap="goAccountSettings"><text class="field-label">手机号</text><view class="phone-value"><text>{{phoneDisplay}}</text><text class="phone-arrow">›</text></view></view>
<view class="field"><text class="field-label">微信号</text><input value="{{form.wechatId}}" data-field="wechatId" bindinput="onInput" maxlength="50" placeholder="请输入微信号(选填)" /></view>
<view class="field signature-field"><text class="field-label">个性签名</text><textarea value="{{form.signature}}" data-field="signature" bindinput="onInput" maxlength="200" placeholder="请输入个人签名" /></view>
</view>
<view class="section-title account-title">账号信息</view>
<view class="card readonly-card">
<view class="readonly-row"><text>登录账号</text><text>{{profile.account || '未设置'}}</text></view>
<view class="readonly-row"><text>所属门店</text><text>{{shopName}}</text></view>
<view class="readonly-row"><text>身份</text><text>{{roleText}}</text></view>
</view>
<view class="fixed-bottom"><button class="primary-btn" loading="{{saving}}" disabled="{{loading || avatarUploading}}" bindtap="save">保存个人信息</button></view>
</view>