标记店务小程序版本更新

This commit is contained in:
2026-07-22 20:40:13 +08:00
parent 5536acc4d4
commit 6806ac14c9
8 changed files with 550 additions and 432 deletions
-58
View File
@@ -42,62 +42,4 @@
<text wx:if="{{item.action !== 'logout'}}" class="arrow">›</text>
</view>
</view>
<view wx:if="{{editModalVisible}}" class="modal-mask" catchtap="stopTap">
<view class="profile-modal" catchtap="stopTap">
<view class="modal-head">
<text class="modal-title">个人信息</text>
<view class="modal-close" bindtap="closeEditProfile">×</view>
</view>
<view class="profile-avatar-row">
<view wx:if="{{profileForm.avatar}}" class="profile-avatar image-avatar">
<image src="{{profileForm.avatar}}" mode="aspectFill"></image>
</view>
<view wx:else class="profile-avatar">头像</view>
<view class="profile-avatar-copy">
<text class="profile-avatar-name">{{profileForm.nickname || userInfo.nickname || '个人头像'}}</text>
<text class="profile-avatar-desc">这里只修改个人资料头像</text>
</view>
<view class="profile-avatar-actions">
<button class="avatar-btn" loading="{{avatarUploading}}" bindtap="chooseProfileAvatar">{{avatarUploading ? '上传中' : profileForm.avatar ? '更换头像' : '上传头像'}}</button>
<button wx:if="{{profileForm.avatar}}" class="avatar-remove" bindtap="removeProfileAvatar">移除</button>
</view>
</view>
<view class="profile-info-grid">
<view class="profile-info-item">
<text>登录账号</text>
<view>{{userInfo.account || '未设置'}}</view>
</view>
<view class="profile-info-item">
<text>身份</text>
<view>{{roleText}}</view>
</view>
<view class="profile-info-item">
<text>登录手机号</text>
<view>{{userInfo.phone || '未绑定'}}</view>
</view>
<view class="profile-info-item">
<text>当前店铺</text>
<view>{{shopName}}</view>
</view>
</view>
<view class="modal-field">
<text class="required-label">昵称</text>
<input value="{{profileForm.nickname}}" data-field="nickname" bindinput="onProfileInput" placeholder="请输入昵称" />
</view>
<view class="modal-field">
<text>联系电话</text>
<input value="{{profileForm.contactPhone}}" data-field="contactPhone" bindinput="onProfileInput" type="number" placeholder="请输入联系电话" />
</view>
<view class="modal-field">
<text>微信号</text>
<input value="{{profileForm.wechatId}}" data-field="wechatId" bindinput="onProfileInput" placeholder="请输入微信号" />
</view>
<view class="modal-field">
<text>签名</text>
<textarea value="{{profileForm.signature}}" data-field="signature" bindinput="onProfileInput" placeholder="请输入个人签名" />
</view>
<button class="primary-btn modal-submit" loading="{{profileSaving}}" bindtap="saveProfile">保存个人信息</button>
</view>
</view>
</view>