优化:微信资料改为双按钮

This commit is contained in:
2026-10-10 18:04:00 +08:00
parent 89f51440a0
commit ef5f638e7e
4 changed files with 21 additions and 28 deletions
+9 -13
View File
@@ -13,19 +13,15 @@
</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="{{loading || 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 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>