ComposerUpdate

This commit is contained in:
Anyon 2019-12-26 19:18:53 +08:00
parent 725f492b47
commit f143e0faa4
7 changed files with 371 additions and 446 deletions

View File

@ -1,49 +1,62 @@
<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
<div class="layui-card-body padding-left-40">
<div class="layui-form-item">
<div class="layui-col-xs2">
<input type="hidden" name="headimg" value="{$vo.headimg|default=''}">
<script>$('[name=headimg]').uploadOneImage()</script>
<fieldset class="layui-form-item">
<legend class="layui-bg-gray padding-left-5 padding-right-5">账号信息</legend>
<div class="layui-row layui-col-space15">
<div class="layui-col-xs2">
<input type="hidden" name="headimg" value="{$vo.headimg|default=''}">
<script>$('[name=headimg]').uploadOneImage()</script>
</div>
<label class="layui-col-xs5 relative block">
<span class="color-green font-w7">登录账号</span>
<span class="color-desc margin-left-5">Username</span>
{if isset($vo) and isset($vo.username)}
<input disabled value='{$vo.username|default=""}' class="layui-input layui-bg-gray">
{else}
<input name="username" value='{$vo.username|default=""}' required pattern="^.{4,}$" placeholder="请输入4位及以上字符登录用户账号" class="layui-input">
{/if}
<span class="help-block">登录账号不能重复,账号创建后不允许再次修改</span>
</label>
<label class="layui-col-xs5 relative block">
<span class="color-green font-w7">用户昵称</span>
<span class="color-desc margin-left-5">Nickname</span>
<input name="nickname" value='{$vo.nickname|default=""}' placeholder="请输入用户的昵称" class="layui-input">
<span class="help-block">可选,用于显示账号名称,请尽量保持不要重复</span>
</label>
</div>
<label class="layui-col-xs10 relative block">
<span class="color-green font-w7 font-s14">登录账号</span>
<span class="color-desc margin-left-5">Username</span>
{if isset($vo) and isset($vo.username)}
<input disabled value='{$vo.username|default=""}' class="layui-input layui-bg-gray">
{else}
<input name="username" value='{$vo.username|default=""}' required pattern="^.{4,}$" placeholder="请输入4位及以上字符登录用户账号" class="layui-input">
{/if}
<span class="help-block">登录账号不能出现重复,注意账号创建后不允许再次修改</span>
</label>
</fieldset>
<div class="layui-bg-gray">
<fieldset class="layui-form-item">
<div class="layui-row layui-col-space15">
<label class="layui-col-xs4 relative block">
<span class="color-green font-w7">联系手机</span>
<span class="color-desc margin-left-5">Mobile</span>
<input type="tel" maxlength="11" autocomplete="off" name="contact_phone" value='{$vo.contact_phone|default=""}' pattern="^1[3-9][0-9]{9}$" placeholder="请输入用户联系手机" class="layui-input">
<span class="color-desc">可选,请填写常用的联系手机号</span>
</label>
<label class="layui-col-xs4 relative block">
<span class="color-green font-w7">联系邮箱</span>
<span class="color-desc margin-left-5">Email</span>
<input name="contact_mail" autocomplete="off" pattern="^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$" value='{$vo.contact_mail|default=""}' placeholder="请输入联系电子邮箱" class="layui-input">
<span class="color-desc">可选,请填写常用的电子邮箱</span>
</label>
<label class="layui-col-xs4 relative block">
<span class="color-green font-w7">联系QQ</span>
<span class="color-desc margin-left-5">TencentQQ</span>
<input name="contact_qq" autocomplete="off" pattern="^\d{6,}$" value='{$vo.contact_qq|default=""}' placeholder="请输入联系QQ" class="layui-input">
<span class="color-desc">可选,请填写常用的联系QQ</span>
</label>
</div>
</fieldset>
</div>
<label class="layui-form-item relative block">
<span class="color-green font-w7 font-s14">用户昵称</span>
<span class="color-desc margin-left-5">Nickname</span>
<input name="nickname" value='{$vo.nickname|default=""}' placeholder="请输入用户的昵称" class="layui-input">
<span class="help-block">可选,用于显示账号名称,请尽量保持不要重复</span>
</label>
<label class="layui-form-item relative block">
<span class="color-green font-w7 font-s14">联系手机</span>
<span class="color-desc margin-left-5">Phone</span>
<input type="tel" maxlength="11" autocomplete="off" name="contact_phone" value='{$vo.contact_phone|default=""}' pattern="^1[3-9][0-9]{9}$" placeholder="请输入用户联系手机" class="layui-input">
<span class="color-desc">可选,用户联系手机号码,需要填写正确的格式</span>
</label>
<label class="layui-form-item relative block">
<span class="color-green font-w7 font-s14">联系邮箱</span>
<span class="color-desc margin-left-5">Email</span>
<input name="contact_mail" autocomplete="off" pattern="^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$" value='{$vo.contact_mail|default=""}' placeholder="请输入联系电子邮箱" class="layui-input">
<span class="color-desc">可选,用户联系电子邮箱,需要填写正确的格式</span>
</label>
{notempty name='authorizes'}
<div class="layui-form-item relative">
<span class="color-green font-w7 font-s14">访问授权</span>
<span class="color-desc margin-left-5">Authorization</span>
<span class="color-green font-w7">访问授权</span>
<span class="color-desc margin-left-5">Authorize</span>
<div class="layui-textarea">
{if isset($vo.username) and $vo.username eq 'admin'}
<span class="color-desc">超级用户不需要配置权限</span>
@ -65,7 +78,7 @@
{/notempty}
<label class="layui-form-item relative block">
<span class="color-green font-w7 font-s14">用户描述</span>
<span class="color-green font-w7">用户描述</span>
<span class="color-desc margin-left-5">Description</span>
<textarea placeholder="请输入用户描述" class="layui-textarea" name="describe">{$vo.describe|default=""}</textarea>
</label>

View File

@ -230,7 +230,7 @@ label.think-radio {
margin-top: 0;
font-size: 14px;
font-style: normal;
font-family: layui-icon !important;
font-family: "layui-icon" !important;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
}
@ -459,6 +459,94 @@ label.think-radio {
.layui-layout.layui-layout-left-hide [data-target-menu-type] {
display: none;
}
/* 浏览器DEBUG */
.version-debug {
width: 100%;
color: #fff;
height: 100px;
font-size: 20px;
text-align: center;
line-height: 100px;
margin-bottom: 40px;
background-color: #E90D24;
}
.input-right-icon {
top: 0;
right: 0;
width: 38px;
height: 38px;
display: inline-block;
position: absolute;
text-align: center;
line-height: 38px;
}
/** 加载进度 */
.pace-inactive {
display: none;
}
.pace-progress {
top: 0;
right: 100%;
width: 100%;
height: 2px;
z-index: 2000;
position: fixed;
background: #22df80;
}
.uploadimage {
width: 77px;
height: 77px;
cursor: pointer;
display: inline-block;
border: 1px dashed #e2e2e2;
background: url('../img/upimg.png') no-repeat center center;
background-size: cover;
}
.uploadimagemtl {
margin-right: 8px;
}
.uploadimagemtl a {
color: #fff;
width: 20px;
height: 20px;
float: right;
display: none;
text-align: center;
line-height: 22px;
background: rgba(0, 0, 0, 0.5);
}
.uploadimagemtl:hover a {
cursor: pointer;
display: inline-block;
}
.uploadimagemtl:hover a:hover {
color: #fff;
text-decoration: none;
}
[data-tips-image] {
cursor: zoom-in !important;
}
.portal-block-container {
font-size: 14px;
letter-spacing: 1px;
}
.portal-block-container .portal-block-icon {
top: 45%;
right: 8%;
font-size: 65px;
position: absolute;
color: rgba(255, 255, 255, 0.4);
}
.portal-block-container .portal-block-item {
color: #fff;
line-height: 4em;
padding: 15px 25px;
position: relative;
}
.portal-block-container .portal-block-item > div:nth-child(2) {
font-size: 46px;
line-height: 46px;
}
/* 通用分页 */
.pagination-container {
line-height: 40px;
@ -1097,142 +1185,4 @@ label.think-radio {
.margin-bottom-40 {
margin-bottom: 40px !important;
}
/* 浏览器DEBUG */
.version-debug {
width: 100%;
color: #fff;
height: 100px;
font-size: 20px;
text-align: center;
line-height: 100px;
margin-bottom: 40px;
background-color: #E90D24;
}
.input-right-icon {
top: 0;
right: 0;
width: 38px;
height: 38px;
display: inline-block;
position: absolute;
text-align: center;
line-height: 38px;
}
/** 加载进度 */
.pace-inactive {
display: none;
}
.pace-progress {
top: 0;
right: 100%;
width: 100%;
height: 2px;
z-index: 2000;
position: fixed;
background: #22df80;
}
/* 图片上传 */
.moxie-shim {
display: none !important;
}
.uploadimage {
width: 5pc;
height: 5pc;
cursor: pointer;
display: inline-block;
border: 1px dashed #e2e2e2;
background: url('../img/upimg.png') no-repeat center center;
background-size: cover;
}
.uploadimagemtl {
margin-right: 8px;
}
.uploadimagemtl a {
color: #fff;
width: 20px;
height: 20px;
float: right;
display: none;
text-align: center;
line-height: 22px;
background: rgba(0, 0, 0, 0.5);
}
.uploadimagemtl:hover a {
cursor: pointer;
display: inline-block;
}
.uploadimagemtl:hover a:hover {
color: #fff;
text-decoration: none;
}
/* 通用分页 */
.pagination-container {
line-height: 40px;
}
.pagination-container > span {
color: #666;
font-size: 9pt;
}
.pagination-container > ul {
float: right;
display: inline-block;
margin: 0;
padding: 0;
}
.pagination-container > ul > li {
z-index: 1;
display: inline-block;
}
.pagination-container > ul > li.active {
z-index: 2;
}
.pagination-container > ul > li.active > span {
color: #fff;
border-color: #098;
padding-right: 1px;
background: #009688 !important;
}
.pagination-container > ul > li > a,
.pagination-container > ul > li > span {
color: #333;
width: 33px;
height: 30px;
border: 1px solid #dcdcdc;
display: inline-block;
margin-left: -1px;
text-align: center;
line-height: 28px;
}
.pagination-container > ul > li > span {
background: #dcdcdc;
cursor: default;
}
.pagination-container > ul > li > a:hover {
background: #dcdcdc;
border-color: #dcdcdc;
}
[data-tips-image] {
cursor: zoom-in !important;
}
.portal-block-container {
font-size: 14px;
letter-spacing: 1px;
}
.portal-block-container .portal-block-icon {
top: 45%;
right: 8%;
font-size: 65px;
position: absolute;
color: rgba(255, 255, 255, 0.4);
}
.portal-block-container .portal-block-item {
color: #fff;
line-height: 4em;
padding: 15px 25px;
position: relative;
}
.portal-block-container .portal-block-item > div:nth-child(2) {
font-size: 46px;
line-height: 46px;
}
/*# sourceMappingURL=console.css.map */

File diff suppressed because one or more lines are too long

View File

@ -588,166 +588,4 @@
margin-bottom: 40px !important
}
}
}
/* 浏览器DEBUG */
.version-debug {
width: 100%;
color: #fff;
height: 100px;
font-size: 20px;
text-align: center;
line-height: 100px;
margin-bottom: 40px;
background-color: #E90D24
}
.input-right-icon {
top: 0;
right: 0;
width: 38px;
height: 38px;
display: inline-block;
position: absolute;
text-align: center;
line-height: 38px;
}
/** 加载进度 */
.pace-inactive {
display: none
}
.pace-progress {
top: 0;
right: 100%;
width: 100%;
height: 2px;
z-index: 2000;
position: fixed;
background: #22df80
}
/* 图片上传 */
.moxie-shim {
display: none !important
}
.uploadimage {
width: 5pc;
height: 5pc;
cursor: pointer;
display: inline-block;
border: 1px dashed #e2e2e2;
background: url('../img/upimg.png') no-repeat center center;
background-size: cover;
}
.uploadimagemtl {
margin-right: 8px;
a {
color: #fff;
width: 20px;
height: 20px;
float: right;
display: none;
text-align: center;
line-height: 22px;
background: rgba(0, 0, 0, .5)
}
&:hover a {
cursor: pointer;
display: inline-block;
&:hover {
color: #fff;
text-decoration: none
}
}
}
/* 通用分页 */
.pagination-container {
line-height: 40px;
> span {
color: #666;
font-size: 9pt
}
> ul {
float: right;
display: inline-block;
margin: 0;
padding: 0;
> li {
z-index: 1;
display: inline-block;
&.active {
z-index: 2;
> span {
color: #fff;
border-color: #098;
padding-right: 1px;
background: #009688 !important
}
}
> a, > span {
color: #333;
width: 33px;
height: 30px;
border: 1px solid #dcdcdc;
display: inline-block;
margin-left: -1px;
text-align: center;
line-height: 28px
}
> span {
background: #dcdcdc;
cursor: default
}
> a:hover {
background: #dcdcdc;
border-color: #dcdcdc
}
}
}
}
[data-tips-image] {
cursor: zoom-in !important
}
.portal-block-container {
font-size: 14px;
letter-spacing: 1px;
.portal-block-icon {
top: 45%;
right: 8%;
font-size: 65px;
position: absolute;
color: rgba(255, 255, 255, 0.4);
}
.portal-block-item {
color: #fff;
line-height: 4em;
padding: 15px 25px;
position: relative;
> div:nth-child(2) {
font-size: 46px;
line-height: 46px;
}
}
}

View File

@ -1,157 +1,178 @@
/* 弹框层表单 */
fieldset {
margin: 0;
border: 1px solid #e6e6e6;
padding: 10px 20px 5px 20px;
margin: 0;
border: 1px solid #e6e6e6;
padding: 10px 20px 5px 20px;
}
fieldset legend {
color: #666;
padding: 0 10px;
font-size: 14px;
color: #666;
padding: 0 10px;
font-size: 14px;
}
.form-search .layui-btn {
height: 32px;
line-height: 28px;
font-size: 12px;
padding: 0 10px;
height: 32px;
line-height: 28px;
font-size: 12px;
padding: 0 10px;
}
.form-search .layui-form-label {
width: auto !important;
padding: 0 8px;
height: 32px;
line-height: 30px;
width: auto !important;
padding: 0 8px;
height: 32px;
line-height: 30px;
}
.form-search .layui-input-inline {
width: 170px;
width: 170px;
}
.form-search .layui-input-inline input,
.form-search .layui-input-inline select {
width: 100%;
height: 32px;
padding: 2px 8px;
line-height: 1em;
width: 100%;
height: 32px;
padding: 2px 8px;
line-height: 1em;
}
.form-search .layui-form-select dl {
top: 31px;
padding: 0;
top: 31px;
padding: 0;
}
.layui-form input.layui-input,
.layui-form select.layui-select {
line-height: 1em;
line-height: 1em;
}
/* 表单验证异常提示 */
.label-required-prev:before {
width: 1em;
color: red;
content: '*';
display: inline-block;
position: absolute;
text-align: left;
font-weight: 700;
line-height: 1.6em;
margin-left: -0.8em;
width: 1em;
color: red;
content: '*';
display: inline-block;
position: absolute;
text-align: left;
font-weight: 700;
line-height: 1.6em;
margin-left: -0.8em;
}
.label-required:after,
.label-required-next:after {
top: 6px;
right: 5px;
color: red;
content: '*';
position: absolute;
margin-left: 4px;
font-weight: 700;
line-height: 1.8em;
top: 6px;
right: 5px;
color: red;
content: '*';
position: absolute;
margin-left: 4px;
font-weight: 700;
line-height: 1.8em;
}
.label-required-null:before {
content: none !important;
content: none !important;
}
/** 自定义表单样式 */
.think-form-label {
padding: 9px 15px;
font-weight: 400;
line-height: 20px;
text-align: right;
padding: 9px 15px;
font-weight: 400;
line-height: 20px;
text-align: right;
}
.think-form-group-right {
border-left: none;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
border-left: none;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.think-form-group-left input {
border-right: none;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-right: none;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.think-box-shadow {
background: #fff;
padding: 20px 20px !important;
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.1);
background: #fff;
padding: 20px 20px !important;
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.1);
}
/** checkbox & radio */
label.think-checkbox,
label.think-radio {
margin-right: 10px;
display: inline-block;
margin-right: 10px;
display: inline-block;
}
.think-checkbox,
.think-radio {
cursor: pointer;
margin-top: 10px;
font-weight: 400;
line-height: 17px;
cursor: pointer;
margin-top: 10px;
font-weight: 400;
line-height: 17px;
}
.think-checkbox input[type=checkbox] {
width: 18px;
height: 18px;
border: 1px solid #dcdcdc;
cursor: pointer;
margin: 0 5px 0 0;
position: relative;
display: inline-block !important;
background: #fff;
appearance: none;
box-sizing: border-box !important;
border-radius: 1px;
vertical-align: bottom;
-webkit-appearance: none;
width: 18px;
height: 18px;
border: 1px solid #dcdcdc;
cursor: pointer;
margin: 0 5px 0 0;
position: relative;
display: inline-block !important;
background: #fff;
appearance: none;
box-sizing: border-box !important;
border-radius: 1px;
vertical-align: bottom;
-webkit-appearance: none;
}
.think-checkbox input[type=checkbox]:checked:after {
color: #666;
padding: 2px;
display: block;
content: "\e605";
font-size: 12px;
font-style: normal;
font-weight: 700;
position: absolute;
font-family: layui-icon !important;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
color: #666;
padding: 2px;
display: block;
content: "\e605";
font-size: 12px;
font-style: normal;
font-weight: 700;
position: absolute;
font-family: layui-icon !important;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.think-radio input[type=radio] {
width: 18px;
height: 18px;
cursor: pointer;
margin: 0 5px 0 0;
position: relative;
border: 1px solid #dcdcdc;
display: inline-block !important;
box-sizing: border-box !important;
appearance: none;
background: #fff;
border-radius: 1em;
vertical-align: bottom;
-webkit-appearance: none;
width: 18px;
height: 18px;
cursor: pointer;
margin: 0 5px 0 0;
position: relative;
border: 1px solid #dcdcdc;
display: inline-block !important;
box-sizing: border-box !important;
appearance: none;
background: #fff;
border-radius: 1em;
vertical-align: bottom;
-webkit-appearance: none;
}
.think-radio input[type=radio]:checked:after {
top: 4px;
left: 4px;
width: 8px;
height: 8px;
content: '';
display: block;
position: relative;
background: #666;
border-radius: 1em;
top: 4px;
left: 4px;
width: 8px;
height: 8px;
content: '';
display: block;
position: relative;
background: #666;
border-radius: 1em;
}
/*# sourceMappingURL=console.form.css.map */

View File

@ -208,6 +208,109 @@
}
}
/* 浏览器DEBUG */
.version-debug {
width: 100%;
color: #fff;
height: 100px;
font-size: 20px;
text-align: center;
line-height: 100px;
margin-bottom: 40px;
background-color: #E90D24
}
.input-right-icon {
top: 0;
right: 0;
width: 38px;
height: 38px;
display: inline-block;
position: absolute;
text-align: center;
line-height: 38px;
}
/** 加载进度 */
.pace-inactive {
display: none
}
.pace-progress {
top: 0;
right: 100%;
width: 100%;
height: 2px;
z-index: 2000;
position: fixed;
background: #22df80
}
.uploadimage {
width: 77px;
height: 77px;
cursor: pointer;
display: inline-block;
border: 1px dashed #e2e2e2;
background: url('../img/upimg.png') no-repeat center center;
background-size: cover;
}
.uploadimagemtl {
margin-right: 8px;
a {
color: #fff;
width: 20px;
height: 20px;
float: right;
display: none;
text-align: center;
line-height: 22px;
background: rgba(0, 0, 0, .5)
}
&:hover a {
cursor: pointer;
display: inline-block;
&:hover {
color: #fff;
text-decoration: none
}
}
}
[data-tips-image] {
cursor: zoom-in !important
}
.portal-block-container {
font-size: 14px;
letter-spacing: 1px;
.portal-block-icon {
top: 45%;
right: 8%;
font-size: 65px;
position: absolute;
color: rgba(255, 255, 255, 0.4);
}
.portal-block-item {
color: #fff;
line-height: 4em;
padding: 15px 25px;
position: relative;
> div:nth-child(2) {
font-size: 46px;
line-height: 46px;
}
}
}
/* 通用分页 */
.pagination-container {
line-height: 40px;

View File

@ -42,7 +42,7 @@
margin-top: 0;
font-size: 14px;
font-style: normal;
font-family: layui-icon !important;
font-family: "layui-icon" !important;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;