From 12cabb5d548dd221d4019c67525f69b9ae0c7674 Mon Sep 17 00:00:00 2001 From: yinxr <2273460044@qq.com> Date: Fri, 25 Jan 2019 17:41:48 +0800 Subject: [PATCH] Signed-off-by: yinxr <2273460044@qq.com> --- .../WEB-INF/manager/include/head-file.ftl | 2 + .../WEB-INF/manager/mweixin/message-reply.ftl | 73 ++++++++++ .../static/mweixin/css/message-reply.css | 135 ++++++++++++++++++ .../webapp/static/mweixin/message-reply.less | 43 ++++++ 4 files changed, 253 insertions(+) create mode 100644 src/main/webapp/WEB-INF/manager/mweixin/message-reply.ftl create mode 100644 src/main/webapp/static/mweixin/css/message-reply.css create mode 100644 src/main/webapp/static/mweixin/message-reply.less diff --git a/src/main/webapp/WEB-INF/manager/include/head-file.ftl b/src/main/webapp/WEB-INF/manager/include/head-file.ftl index f2d130a4..b97d3037 100644 --- a/src/main/webapp/WEB-INF/manager/include/head-file.ftl +++ b/src/main/webapp/WEB-INF/manager/include/head-file.ftl @@ -19,9 +19,11 @@ + + \ No newline at end of file diff --git a/src/main/webapp/static/mweixin/css/message-reply.css b/src/main/webapp/static/mweixin/css/message-reply.css new file mode 100644 index 00000000..93d7863f --- /dev/null +++ b/src/main/webapp/static/mweixin/css/message-reply.css @@ -0,0 +1,135 @@ +/* +*这里的值严格按照UI设计图标注值来进行设置 +*/ +/* +*颜色 +*/ +/* +*页面的边距 +*/ +/* +*字体 +*/ +/* +*头像 +*/ +/* + * 按钮 + */ +/* +*对常见的多行样式进行了方法封装,方便调用,加快开发效率 +*/ +html, +body { + min-height: 100vh; + background-color: #eee; + margin: 0; + font-weight: initial !important; + font-size: 14px !important; + color: #333 !important; +} +html *, +body * { + text-decoration: none !important; + font-family: Verdana, Arial, Helvetica, sans-serif; + box-sizing: border-box; +} +.ms-ellipsis { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + display: block; +} +.ms-align-center { + display: flex; + align-items: center; +} +input::-webkit-input-placeholder, +textarea::-webkit-input-placeholder { + font-weight: initial; + font-size: 12px; + color: #999; + resize: none; +} +*::-webkit-scrollbar { + width: 8px; + height: 8px; +} +/*定义滚动条轨道 内阴影+圆角*/ +*::-webkit-scrollbar-track { + border-radius: 10px; + /*滚动条的背景区域的圆角*/ + background-color: #eee; + /*滚动条的背景颜色*/ +} +/*定义滑块 内阴影+圆角*/ +*::-webkit-scrollbar-thumb { + border-radius: 10px; + /*滚动条的圆角*/ + background-color: #ddd; + /*滚动条的背景颜色*/ +} +.ms-container { + margin: 12px; + height: 100%; + padding: 14px 14px 0 14px; + background: #fff; +} +.ms-header { + padding: 10px; + margin: 0; + border-bottom: 1px solid #ddd; + background: #fff; + height: 50px; +} +.ms-pagination { + padding: 20px 0; + text-align: right; +} +.ms-fr { + float: right; +} +.ms-tr { + text-align: right; +} +.el-button + .el-button { + margin-left: 0; +} +.ms-message-reply { + display: flex; + justify-content: flex-start; + padding: 20px; +} +.ms-message-reply > div:first-child { + margin-right: 10px; + line-height: 40px; +} +.ms-message-reply .message-reply-tabs { + flex: 1; +} +.ms-message-reply .message-reply-tabs .el-tabs { + border: 1px solid #ddd; +} +.ms-message-reply .message-reply-tabs .el-tabs .el-tabs__header { + background: #f2f2f6; + border-radius: 4px 4px 0 0 !important; + margin: 0 !important; +} +.ms-message-reply .message-reply-tabs .el-tabs .el-tabs__header .el-tabs__nav-scroll { + padding: 0 20px; +} +.ms-message-reply .message-reply-tabs .el-tabs .el-tab-pane { + padding: 20px; + width: 100%; + height: 220px; + display: flex; + justify-content: space-between; +} +.ms-message-reply .message-reply-tabs .el-tabs .el-tab-pane > .el-form .ms-message-reply-content .el-form-item__content { + position: relative; +} +.ms-message-reply .message-reply-tabs .el-tabs .el-tab-pane > .el-form .ms-message-reply-content .el-form-item__content > .el-icon-delete { + position: absolute; + right: 5px; + bottom: 5px; +} diff --git a/src/main/webapp/static/mweixin/message-reply.less b/src/main/webapp/static/mweixin/message-reply.less new file mode 100644 index 00000000..30d59912 --- /dev/null +++ b/src/main/webapp/static/mweixin/message-reply.less @@ -0,0 +1,43 @@ +@import "../ms-admin/4.7.0/less/app.less"; +// 消息回复 && 关注回复 +.ms-message-reply{ + .ms-flex(flex-start); + padding:20px; + >div:first-child{ + margin-right:10px; + line-height: 40px; + } + // 导航切换 + .message-reply-tabs{ + flex: 1; + .el-tabs{ + border: 1px solid @borderColor; + .el-tabs__header{ + background: #f2f2f6; + border-radius:4px 4px 0 0 !important; + margin: 0 !important; + .el-tabs__nav-scroll{ + padding: 0 20px; + } + } + .el-tab-pane{ + padding: 20px; + .ms-width-height(100%,220px); + .ms-flex(); + >.el-form{ + .ms-message-reply-content{ + .el-form-item__content{ + position: relative; + >.el-icon-delete{ + position: absolute; + right: 5px; + bottom: 5px; + } + } + + } + } + } + } + } +} \ No newline at end of file