49 lines
3.1 KiB
Plaintext
49 lines
3.1 KiB
Plaintext
<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"></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="card wechat-profile-card">
|
||
<view class="wechat-profile-entry" bindtap="toggleWechatProfile">
|
||
<view class="wechat-profile-mark">微</view>
|
||
<text>使用微信资料</text>
|
||
<text class="expand-arrow {{wechatProfileExpanded ? 'expanded' : ''}}">›</text>
|
||
</view>
|
||
<view wx:if="{{wechatProfileExpanded}}" class="wechat-profile-panel">
|
||
<button class="wechat-avatar-picker" open-type="chooseAvatar" loading="{{avatarUploading}}" disabled="{{saving}}" bindchooseavatar="chooseWechatAvatar">
|
||
<image wx:if="{{form.avatar}}" src="{{form.avatar}}" mode="aspectFill"></image>
|
||
<text wx:else>{{avatarText}}</text>
|
||
<view class="wechat-avatar-tip">选择微信头像</view>
|
||
</button>
|
||
<input class="wechat-nickname-input" type="nickname" value="{{form.nickname}}" bindinput="onWechatNicknameInput" placeholder="填写微信昵称" />
|
||
</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>
|