feat(userManagement): 新增添加用户弹框组件
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
9e8e26cb19
commit
dc0a294406
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
.userManagementAddUser-mask {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(37, 37, 53, 0.5);
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.userManagementAddUser-panel {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 660rpx;
|
||||
box-sizing: border-box;
|
||||
padding: 48rpx 40rpx 56rpx;
|
||||
background-color: #FFFFFF;
|
||||
border-radius: 24rpx;
|
||||
z-index: 101;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
.userManagementAddUser-title {
|
||||
color: #252535;
|
||||
height: 36rpx;
|
||||
font-size: 36rpx;
|
||||
font-weight: bolder;
|
||||
line-height: 36rpx;
|
||||
margin-bottom: 48rpx;
|
||||
}
|
||||
|
||||
.userManagementAddUser-btn {
|
||||
width: 100%;
|
||||
height: 96rpx;
|
||||
font-size: 36rpx;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
border-radius: 48rpx;
|
||||
box-sizing: border-box;
|
||||
|
||||
&--primary {
|
||||
color: #FFFFFF;
|
||||
line-height: 96rpx;
|
||||
background-color: #1385FA;
|
||||
margin-bottom: 40rpx;
|
||||
}
|
||||
|
||||
&--outline {
|
||||
color: #1385FA;
|
||||
line-height: 92rpx;
|
||||
border: 2rpx solid #1385FA;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
Component({
|
||||
properties: {
|
||||
/** 是否显示弹框 */
|
||||
show: {
|
||||
type: Boolean,
|
||||
value: false
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
/** 点击遮罩关闭 */
|
||||
onClose() {
|
||||
this.triggerEvent('close')
|
||||
},
|
||||
|
||||
/** 一键添加本人 */
|
||||
onAddSelf() {
|
||||
this.triggerEvent('addself')
|
||||
},
|
||||
|
||||
/** 添加其他用户 */
|
||||
onAddOther() {
|
||||
this.triggerEvent('addother')
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,8 @@
|
||||
<block wx:if="{{ show }}">
|
||||
<view class="userManagementAddUser-mask" bind:tap="onClose"></view>
|
||||
<view class="userManagementAddUser-panel">
|
||||
<view class="userManagementAddUser-title">添加用户</view>
|
||||
<view class="userManagementAddUser-btn userManagementAddUser-btn--primary" bind:tap="onAddSelf">一键添加本人</view>
|
||||
<view class="userManagementAddUser-btn userManagementAddUser-btn--outline" bind:tap="onAddOther">添加其他用户</view>
|
||||
</view>
|
||||
</block>
|
||||
Reference in New Issue
Block a user