feat: 增加环境切换
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -115,6 +115,11 @@ Page({
|
||||
},
|
||||
|
||||
onOpenProfileEditor() {
|
||||
console.log(
|
||||
'onOpenProfileEditor',
|
||||
this.data.userName,
|
||||
this.data.avatarUrl,
|
||||
);
|
||||
this.setData({
|
||||
showProfileEditor: true,
|
||||
draftNickName:
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user