一体机放大效果开发
This commit is contained in:
@@ -172,8 +172,8 @@ function updateSetting() {
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
header-height = 88rpx
|
||||
footer-height = 98rpx
|
||||
header-height = 132rpx
|
||||
footer-height = 147rpx
|
||||
|
||||
/* 页面容器 */
|
||||
.container {
|
||||
@@ -200,7 +200,7 @@ footer-height = 98rpx
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0; /* 如果要右侧弹出改为 right: 0; */
|
||||
width: 523rpx;
|
||||
width: 785rpx;
|
||||
height: 100%;
|
||||
background: #e7e7e6;
|
||||
transform: translateX(-100%);
|
||||
@@ -210,29 +210,29 @@ footer-height = 98rpx
|
||||
|
||||
/* 抽屉展开 */
|
||||
.drawer.open {
|
||||
box-shadow: 4rpx 0 20rpx rgba(0, 0, 0, 0.2);
|
||||
box-shadow: 6rpx 0 30rpx rgba(0, 0, 0, 0.2);
|
||||
transform: translateX(0);
|
||||
|
||||
}
|
||||
|
||||
.drawer-input-content
|
||||
margin: 0 28rpx
|
||||
padding: 0 24rpx
|
||||
height: 72rpx;
|
||||
margin: 0 42rpx
|
||||
padding: 0 36rpx
|
||||
height: 108rpx;
|
||||
background: #F6F6F6;
|
||||
border-radius: 16rpx 16rpx 16rpx 16rpx;
|
||||
border-radius: 24rpx 24rpx 24rpx 24rpx;
|
||||
display: flex
|
||||
align-items: center
|
||||
justify-content: center
|
||||
.drawer-input
|
||||
font-size: 28rpx
|
||||
font-size: 42rpx
|
||||
width: 100%
|
||||
.input-placeholder
|
||||
font-weight: 500;
|
||||
font-size: 28rpx;
|
||||
font-size: 42rpx;
|
||||
color: #A6A6A6;
|
||||
.input-search
|
||||
margin-left: 20rpx
|
||||
margin-left: 30rpx
|
||||
/* 抽屉内容 */
|
||||
.drawer-content
|
||||
height: 100%
|
||||
@@ -240,39 +240,39 @@ footer-height = 98rpx
|
||||
display: flex
|
||||
flex-direction: column
|
||||
.drawer-user
|
||||
border-top: 1rpx solid rgba(0,0,0,.1);
|
||||
padding: 20rpx 28rpx
|
||||
border-top: 2rpx solid rgba(0,0,0,.1);
|
||||
padding: 30rpx 42rpx
|
||||
display: flex
|
||||
font-weight: 500;
|
||||
align-items: center
|
||||
position: relative
|
||||
margin-bottom: calc( 32rpx + var(--window-bottom)); /*兼容 IOS<11.2*/
|
||||
margin-bottom: calc( 32rpx +var(--window-bottom)); /*兼容 IOS>11.2*/
|
||||
margin-bottom: calc( 48rpx + var(--window-bottom)); /*兼容 IOS<11.2*/
|
||||
margin-bottom: calc( 48rpx +var(--window-bottom)); /*兼容 IOS>11.2*/
|
||||
color: #000000
|
||||
.drawer-user-img
|
||||
width: 57.2rpx;
|
||||
height: 57.2rpx
|
||||
margin-right: 20rpx
|
||||
margin-right: 30rpx
|
||||
.drawer-user-setting
|
||||
width: 48rpx
|
||||
height: 48rpx
|
||||
width: 72rpx
|
||||
height: 72rpx
|
||||
position: absolute
|
||||
top: 50%
|
||||
right: 28rpx
|
||||
right: 42rpx
|
||||
transform: translate(0,-50%)
|
||||
.drawer-title
|
||||
height: header-height;
|
||||
line-height: header-height;
|
||||
padding: 0 52rpx;
|
||||
padding: 0 78rpx;
|
||||
color: #333333;
|
||||
font-size: 32rpx
|
||||
font-size: 48rpx
|
||||
font-weight: bold
|
||||
.chat-scroll
|
||||
flex: 1
|
||||
overflow: hidden
|
||||
.drawer-rows
|
||||
padding: 0 28rpx;
|
||||
// border-bottom: 2rpx dashed #e8e8e8
|
||||
padding: 0 42rpx;
|
||||
// border-bottom: 3rpx dashed #e8e8e8
|
||||
overflow:hidden; //超出的文本隐藏
|
||||
text-overflow:ellipsis; //溢出用省略号显示
|
||||
white-space:nowrap; //溢出不换行
|
||||
@@ -280,24 +280,24 @@ footer-height = 98rpx
|
||||
color: #A6A6A6;
|
||||
font-weight: 500;
|
||||
font-weight: bold;
|
||||
font-size: 28rpx
|
||||
padding: 0 24rpx
|
||||
margin-top: 50rpx
|
||||
margin-bottom: 16rpx
|
||||
font-size: 42rpx
|
||||
padding: 0 36rpx
|
||||
margin-top: 75rpx
|
||||
margin-bottom: 24rpx
|
||||
.drawer-row-list
|
||||
height: 66rpx;
|
||||
line-height: 66rpx
|
||||
font-size: 28rpx
|
||||
height: 99rpx;
|
||||
line-height: 99rpx
|
||||
font-size: 42rpx
|
||||
overflow: hidden
|
||||
text-overflow: ellipsis
|
||||
font-weight: 500;
|
||||
color: #595959;
|
||||
padding: 0 24rpx
|
||||
padding: 0 36rpx
|
||||
.drawer-row-active
|
||||
.drawer-row-list:active
|
||||
color: #333333;
|
||||
background: #F6F6F6;
|
||||
border-radius: 16rpx 16rpx 16rpx 16rpx;
|
||||
border-radius: 24rpx 24rpx 24rpx 24rpx;
|
||||
|
||||
|
||||
/* 主要内容区域 */
|
||||
@@ -326,14 +326,14 @@ footer-height = 98rpx
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between
|
||||
font-size: 32rpx
|
||||
font-size: 48rpx
|
||||
color: #000000
|
||||
padding: 0 30rpx;
|
||||
padding: 0 45rpx;
|
||||
font-weight: bold
|
||||
text-align: center
|
||||
image
|
||||
width: 36rpx;
|
||||
height: 37rpx;
|
||||
width: 54rpx;
|
||||
height: 56rpx;
|
||||
|
||||
.chatmain-warpper
|
||||
height: 'calc(100% - %s)' %( header-height + footer-height)
|
||||
@@ -341,12 +341,12 @@ footer-height = 98rpx
|
||||
display: block;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
border-top: 2rpx solid #F4F4F4;
|
||||
border-top: 3rpx solid #F4F4F4;
|
||||
flex: 1
|
||||
|
||||
/* 页面被挤压时向右移动 */
|
||||
.main-content.shift {
|
||||
margin-left: 500rpx;
|
||||
margin-left: 750rpx;
|
||||
}
|
||||
|
||||
.chatmain-footer{
|
||||
|
||||
Reference in New Issue
Block a user