feat: 增加环境切换

This commit is contained in:
R524809
2026-10-19 17:49:19 +08:00
parent 997042789d
commit fe1074e3f0
21 changed files with 968 additions and 123 deletions
+14 -3
View File
@@ -430,14 +430,17 @@ page {
}
.profile-editor__actions {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 24rpx;
display: flex;
padding-top: 20rpx;
}
.profile-editor__action {
flex: 1;
min-width: 0;
height: 92rpx;
margin: 0;
padding: 0;
border: 0;
border-radius: 24rpx;
display: flex;
align-items: center;
@@ -447,6 +450,14 @@ page {
font-weight: 700;
}
.profile-editor__action::after {
border: 0;
}
.profile-editor__action + .profile-editor__action {
margin-left: 24rpx;
}
.profile-editor__action--ghost {
background: @bg-header;
color: @text-title;
+5
View File
@@ -115,6 +115,11 @@ Page({
},
onOpenProfileEditor() {
console.log(
'onOpenProfileEditor',
this.data.userName,
this.data.avatarUrl,
);
this.setData({
showProfileEditor: true,
draftNickName:
+7 -4
View File
@@ -225,16 +225,19 @@
</view>
<view class="profile-editor__actions">
<view
<button
class="profile-editor__action profile-editor__action--ghost"
disabled="{{isSavingProfile}}"
bindtap="onCloseProfileEditor">
取消
</view>
<view
</button>
<button
class="profile-editor__action profile-editor__action--primary {{isSavingProfile ? 'profile-editor__action--disabled' : ''}}"
loading="{{isSavingProfile}}"
disabled="{{isSavingProfile}}"
bindtap="onSubmitProfile">
{{isSavingProfile ? '保存中...' : '保存'}}
</view>
</button>
</view>
</view>
</van-popup>