后台管理增加夜间深色模式

feat/task1-c-wallet
gongfuxiang 2022-08-13 21:25:12 +08:00
parent 994496fb08
commit 63c34add78
10 changed files with 688 additions and 24 deletions

View File

@ -74,6 +74,10 @@ class Common extends BaseController
// 系统类型
protected $system_type;
// 主题颜色key
protected $admin_color_value_key = 'admin_color_value';
protected $admin_color_value = 0;
/**
* 构造方法
* @author Devil
@ -291,6 +295,18 @@ class Common extends BaseController
// 系统环境参数最大数
MyViewAssign('env_max_input_vars_count', SystemService::EnvMaxInputVarsCount());
// 主题配色
$this->admin_color_value = intval(MyCookie($this->admin_color_value_key));
if($this->admin_color_value == 1)
{
MyViewAssign('admin_color_name', '普通白色');
MyViewAssign('admin_color_url', MyUrl('admin/index/color', ['value'=>0]));
} else {
MyViewAssign('admin_color_name', '夜间深色');
MyViewAssign('admin_color_url', MyUrl('admin/index/color', ['value'=>1]));
}
MyViewAssign('admin_color_value', $this->admin_color_value);
}
/**

View File

@ -40,7 +40,7 @@ class Index extends Common
}
/**
* [Index 首页]
* 首页
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
@ -62,7 +62,7 @@ class Index extends Common
}
/**
* [Init 初始化页面]
* 初始化页面
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
@ -134,6 +134,27 @@ class Index extends Common
return MyView();
}
/**
* 配色切换
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2022-08-13
* @desc description
*/
public function Color()
{
// 是否指定配色0默认白色、1黑色
if(isset($this->data_request['value']) && $this->data_request['value'] == 1)
{
MyCookie($this->admin_color_value_key, 1);
} else {
MyCookie($this->admin_color_value_key, null);
}
// 跳转首页
return MyRedirect(MyUrl('admin/index/index'));
}
/**
* 钩子初始化
* @author Devil

View File

@ -44,6 +44,7 @@ class User
'is_delete' => 1,
'delete_url' => MyUrl('admin/user/delete'),
'delete_key' => 'ids',
'is_middle' => 0,
],
// 表单配置
'form' => [

View File

@ -67,6 +67,11 @@
{{/if}}
{{/foreach}}
{{/if}}
<!-- 主题配色 -->
{{if isset($admin_color_value) and $admin_color_value eq 1}}
<link rel="stylesheet" type="text/css" href="{{$public_host}}static/admin/{{$default_theme}}/css/color/black.css?v={{:MyC('home_static_cache_version')}}" />
{{/if}}
</head>
<script type="text/javascript">
var __system_type__ = '{{$system_type}}';

View File

@ -10,6 +10,12 @@
</button>
<div class="am-collapse am-topbar-collapse" id="topbar-collapse">
<ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list tpl-header-list">
<li class="am-dropdown">
<a href="{{$admin_color_url}}">
<i class="am-icon-adjust"></i>
<span>{{$admin_color_name}}</span>
</a>
</li>
{{if AdminIsPower('cache', 'statusupdate')}}
<li class="am-dropdown">
<a href="javascript:;" class="submit-ajax" data-url="{{:MyUrl('admin/cache/statusupdate')}}" data-is-confirm="0" data-is-loading="1">

View File

@ -2247,6 +2247,8 @@ class BuyService
// 是否开启虚拟订单快速创建订单
if($ret['data']['base']['site_model'] == 3 && MyC('common_fictitious_order_direct_pay') == 1)
{
// 指定订单类型
$params['site_model'] = $ret['data']['base']['site_model'];
// 调用订单添加
$ret = self::OrderInsert($params);
if($ret['code'] == 0)

View File

@ -0,0 +1,590 @@
/**
* -
*/
html,body {
background: #141414;
color: #cfd3dc;
}
.am-table-striped > tbody > tr:nth-child(odd) > td,
.am-table-striped > tbody > tr:nth-child(odd) > th {
background-color: #1d1d1d;
}
.am-table-hover > tbody > tr:hover > td,
.am-table-hover > tbody > tr:hover > th {
background-color: #262727;
}
.am-table-bordered > thead > tr > th,
.am-table-bordered > tbody > tr > th,
.am-table-bordered > tfoot > tr > th,
.am-table-bordered > thead > tr > td,
.am-table-bordered > tbody > tr > td,
.am-table-bordered > tfoot > tr > td {
border-left: 1px solid #4c4d4f;
}
.am-table > thead > tr > th,
.am-table > tbody > tr > th,
.am-table > tfoot > tr > th,
.am-table > thead > tr > td,
.am-table > tbody > tr > td,
.am-table > tfoot > tr > td,
.am-table-bordered > thead + tbody > tr:first-child > th,
.am-table-bordered > thead + tbody > tr:first-child > td,
.form-popup-submit,
.form-table-fields-button-container,
#inspect-upgrade-popup .upgrade-bottom-content {
border-top: 1px solid #4c4d4f;
}
.am-popup,
.popup-not-title .am-popup-inner {
border: 1px solid #4c4d4f;
}
.am-tagsinput,
.data-list thead th {
background-color: transparent;
}
iframe,
.am-popup,
.admin-offcanvas-bar, .admin-offcanvas-bar .am-list > li,
.am-popup-inner,
.am-popup-bd,
.am-panel,
.am-list > li,
.am-slider-default,
.tree-list li .item-content {
background-color: #141414;
}
.am-popup-hd,
.am-panel > .am-panel-hd,
.second-nav,
.am-input-group-sm > .am-input-group-btn > .am-btn,
.am-input-group-sm > .am-form-field,
.am-input-group-sm > .am-input-group-label,
.am-input-group-sm > .am-input-group-btn > .am-btn,
.goods-nav,
.goods-nav li.nav-shrink-submit {
background-color: #252525;
}
.popup-not-title {
border-color: transparent;
background: transparent;
}
.am-close,
.am-popup-hd .am-popup-title,
.am-popup-hd,
.am-panel > .am-panel-hd,
.second-nav,
.goods-nav li a:hover, .goods-nav-active,
.plugins-data-list ul li .base h3 {
color: #f5f5f5;
}
.am-switch .am-switch-handle-on.am-switch-default,
.am-switch .am-switch-handle-off.am-switch-default,
.realstore-list-container li .am-switch .am-switch-handle-off {
background: #3f3f3f;
}
.am-switch .am-switch-handle-on.am-switch-default,
.am-switch .am-switch-handle-off.am-switch-default,
.am-popup-hd .am-close:hover,
ul.am-dropdown-content > li > a,
.am-nav > li.am-active > a,
.am-nav > li.am-active > a:hover,
.am-nav > li.am-active > a:focus,
.business-operations-submit:hover,
.plug-file-upload-submit:hover,
.content-right [class*="-content"] .nav-items:hover {
color: #999;
}
.second-nav li.am-active a,
.goods-nav li a:hover, .goods-nav-active,
ul.am-dropdown-content > li > a:hover,
ul.am-dropdown-content > li > a:focus {
background-color: #464646 !important;
}
legend,
ul.am-dropdown-content > li > a:hover,
ul.am-dropdown-content > li > a:focus {
border-color: #999;
color: #f5f5f5;
}
.am-table > thead > tr > th,
.am-form select,
.am-form textarea,
.am-form input[type="text"],
.am-form input[type="password"],
.am-form input[type="datetime"],
.am-form input[type="datetime-local"],
.am-form input[type="date"],
.am-form input[type="month"],
.am-form input[type="time"],
.am-form input[type="week"],
.am-form input[type="number"],
.am-form input[type="email"],
.am-form input[type="url"],
.am-form input[type="search"],
.am-form input[type="tel"],
.am-form input[type="color"],
.am-form-field,
.am-list > li,
.am-panel,
.am-panel > .am-panel-hd,
.dl-content dd:not(:last-child),
form.am-form .am-form-group,
.plug-file-upload-view,
.business-form-group,
.business-form-block,
.table-nav,
.am-modal-bd,
.am-modal-btn,
.business-operations-submit,
.specifications-container,
.plug-file-upload-submit,
.spec-images-list,
.am-table-bordered,
.am-popup-hd,
.content-right table .am-dropdown-content button[type="button"],
.am-input-group-sm > .am-input-group-btn > .am-btn,
.am-input-group-sm > .am-form-field,
.am-input-group-sm > .am-input-group-label,
.am-input-group-sm > .am-input-group-btn > .am-btn,
.chosen-container-single .chosen-single,
.chosen-container-multi .chosen-choices,
.chosen-container .chosen-drop,
.parameters-container,
.content-app-items > li,
.goods-nav,
.goods-nav li,
.am-switch,
.form-table-search td select[multiple],
.form-table-search td select[size],
.form-table-search td .chosen-container-multi .chosen-choices,
.plugins-intellectstools-goods-category-choice .goods-category-choice-content ul,
.plugins-intellectstools-goods-category-choice .goods-category-choice-content ul li:first-child,
.inventory-early-warning-container ul li .item-content,
.right-operate .echarts-where-submit,
.block-container .am-dropdown .am-selected-btn,
.goods-list-container,
.am-tagsinput,
.tree-list li .item-content,
.business-item ul li,
.plugins-data-list ul .item,
.plugins-data-list ul li .operation,
.content-right [class*="-content"] .nav-items,
.content-right [class*="-content-base"] .items,
.admin-sidebar,
.base-content-top .right-content,
.am-nav-tabs,
.am-nav-tabs > li.am-active > a,
.am-nav-tabs > li.am-active > a:hover,
.am-nav-tabs > li.am-active > a:focus,
.am-nav-tabs > li > a:hover {
border-color: #4c4d4f;
}
.am-nav > li.am-active > a,
.am-nav > li.am-active > a:hover,
.am-nav > li.am-active > a:focus {
background: #4c4d4f;
}
.am-nav > li > a:hover,
.am-nav > li > a:focus,
.content-right [class*="-content"] .nav-items,
.content-right [class*="-content-base"] .items:hover {
background: #212121;
}
.coupon-content-module .module-items .view-to,
.am-form-group:hover>label {
color: #f5f5f5 !important;
}
.am-modal-dialog,
.am-modal-dialog .am-modal-hd,
.am-modal-dialog .am-modal-bd,
.form-popup-submit,
.business-operations-submit,
.plug-file-upload-submit,
.am-switch .am-switch-label,
.form-table-fields-button-container,
.coupon-content-module .module-items,
#inspect-upgrade-popup .upgrade-bottom-content {
background: #252525;
}
.business-operations-submit:hover,
.plug-file-upload-submit:hover,
.content-right [class*="-content"] .nav-items:hover {
border-color: #666;
}
hr,
.am-divider-default,
.am-divider-dashed,
.am-divider-dashed {
border-color: #4c4d4f;
}
.am-img-thumbnail {
background-color: #484848;
}
.am-pagination > li > a,
.am-pagination > li > span {
background-color: #3d3d3d;
border-color: #444444;
color: #d1d1d1;
}
ul.plug-file-upload-view li i {
color: #333;
}
ul.plug-file-upload-view li:hover > i {
color: #444;
background: #454545;
}
table.am-table .am-btn-default,
.plug-file-upload-submit,
.am-pagination > .am-disabled > span,
.am-pagination > .am-disabled > span:hover,
.am-pagination > .am-disabled > span:focus,
.am-pagination > .am-disabled > a,
.am-pagination > .am-disabled > a:hover,
.am-pagination > .am-disabled > a:focus,
.am-pagination > li > a:hover,
.am-pagination > li > span:hover,
.am-pagination > li > a:focus,
.am-pagination > li > span:focus,
.coupon-content-module .module-items p.total {
color: #888;
}
.am-pagination > .am-disabled > span,
.am-pagination > .am-disabled > span:hover,
.am-pagination > .am-disabled > span:focus,
.am-pagination > .am-disabled > a,
.am-pagination > .am-disabled > a:hover,
.am-pagination > .am-disabled > a:focus,
.bk-cr-ffd {
background-color: #3d3d3d !important;
border-color: #444444;
}
.am-pagination > .am-active > a,
.am-pagination > .am-active > span,
.am-pagination > .am-active > a:hover,
.am-pagination > .am-active > span:hover,
.am-pagination > .am-active > a:focus,
.am-pagination > .am-active > span:focus {
color: #f5f5f5;
background-color: #797979;
border-color: #7d7d7d;
}
.am-form select:focus,
.am-form textarea:focus,
.am-form input[type="text"]:focus,
.am-form input[type="password"]:focus,
.am-form input[type="datetime"]:focus,
.am-form input[type="datetime-local"]:focus,
.am-form input[type="date"]:focus,
.am-form input[type="month"]:focus,
.am-form input[type="time"]:focus,
.am-form input[type="week"]:focus,
.am-form input[type="number"]:focus,
.am-form input[type="email"]:focus,
.am-form input[type="url"]:focus,
.am-form input[type="search"]:focus,
.am-form input[type="tel"]:focus,
.am-form input[type="color"]:focus,
.am-form-field:focus {
background-color: #000;
}
.am-form select,
.am-form textarea,
.am-form input[type="text"],
.am-form input[type="password"],
.am-form input[type="datetime"],
.am-form input[type="datetime-local"],
.am-form input[type="date"],
.am-form input[type="month"],
.am-form input[type="time"],
.am-form input[type="week"],
.am-form input[type="number"],
.am-form input[type="email"],
.am-form input[type="url"],
.am-form input[type="search"],
.am-form input[type="tel"],
.am-form input[type="color"],
.am-form-field,
.chosen-container-single .chosen-single,
.chosen-container-multi .chosen-choices {
background-color: transparent;
color: #f5f5f5 !important;
}
.chosen-container.chosen-with-drop .chosen-drop {
background: #1d1e1f;
}
.chosen-container-single .chosen-results,
.chosen-container-multi .chosen-results {
color: #cfd3dc;
}
.chosen-container-single .chosen-results li.highlighted,
.chosen-container-multi .chosen-results li.highlighted,
.plugins-intellectstools-goods-category-choice .goods-category-choice-content ul li.active a,
.am-btn-default:active,
.am-btn-default.am-active,
.am-dropdown.am-active .am-btn-default.am-dropdown-toggle,
.am-selected-list li:hover,
.admin-multilingual-select,
.common-nav-bar {
background: #262727;
}
.chosen-container-single .chosen-drop .result-selected,
.chosen-container-multi .chosen-drop .result-selected {
color: #656565;
}
.chosen-container-multi .chosen-choices li.search-choice {
color: #bababa;
border: 1px solid #888;
background-color: #1d1d1d;
background-image: -webkit-gradient(linear,left top,left bottom,from(#141414),to(#1d1d1d));
background-image: -webkit-linear-gradient(top,#141414,#1d1d1d);
background-image: linear-gradient(to bottom,#141414,#1d1d1d);
-webkit-box-shadow: none;
box-shadow: none;
}
.am-page-loading,
.multilingual-page-loading,
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
background: #333;
}
.am-table-scrollable-horizontal {
border: 1px solid #4c4d4f;
}
.am-table-scrollable-horizontal .am-table tr th,
.form-table-search,
.am-table-scrollable-horizontal .am-table tr td.am-grid-fixed-left,
.am-table-scrollable-horizontal .am-table tr td.am-grid-fixed-right,
.specifications-table thead tr > th:nth-last-child(-n+2),
.specifications-table tbody tr > td:nth-last-child(-n+2),
.parameters-table thead tr > th:last-child,
.plugins-intellectstools-goods-category-choice .goods-category-choice-content ul,
.am-close.am-icon-btn:hover,
.am-close.am-icon-btn:focus {
background: #141414;
}
.am-list-striped > li:nth-of-type(even),
.am-table-scrollable-horizontal .am-table-striped > tbody > tr:nth-child(odd) td.am-grid-fixed-left,
.am-table-scrollable-horizontal .am-table-striped > tbody > tr:nth-child(odd) td.am-grid-fixed-right {
background-color: #1d1d1d;
}
.am-table-scrollable-horizontal .am-table-hover > tbody > tr:hover > td,
.am-table-scrollable-horizontal .am-table-hover > tbody > tr:hover > th,
.am-list-border > li > a:hover,
.am-list-bordered > li > a:hover,
.am-list-border > li > a:focus,
.am-list-bordered > li > a:focus {
background-color: #262727;
}
.am-table > thead > tr > td.am-primary,
.am-table > tbody > tr > td.am-primary,
.am-table > tfoot > tr > td.am-primary,
.am-table > thead > tr > th.am-primary,
.am-table > tbody > tr > th.am-primary,
.am-table > tfoot > tr > th.am-primary,
.am-table > thead > tr.am-primary > td,
.am-table > tbody > tr.am-primary > td,
.am-table > tfoot > tr.am-primary > td,
.am-table > thead > tr.am-primary > th,
.am-table > tbody > tr.am-primary > th,
.am-table > tfoot > tr.am-primary > th,
.am-btn-default,
.chosen-container-active .chosen-choices li.search-field input[type="text"],
.admin-multilingual-select {
color: #666 !important;
}
.admin-multilingual-select,
.common-nav-bar {
box-shadow: 0 0 10px 2px #444444;
}
table.am-table .am-btn-default,
table.am-table .am-btn-primary,
table.am-table .am-btn-secondary,
table.am-table .am-btn-success,
table.am-table .am-btn-warning,
table.am-table .am-btn-danger,
.table-no,
.table-thead-beautify thead th {
background: transparent;
}
.am-alert,
.am-dropdown-content,
.block-container,
.block-combination-container-2 li,
.plugins-intellectstools-goods-category-choice .goods-category-choice-content,
.plugins-intellectstools-goods-category-choice .goods-category-choice .already-select-tips {
background-color: #1d1d1d !important;
border-color: #292929;
}
.am-dropdown-content:after {
border-bottom-color: #1d1d1d;
}
.am-dropdown-content:before {
border-bottom-color: #292929;
}
.am-btn-default:hover,
.am-btn-default:focus,
.am-btn-default:active,
.am-btn-default.am-active,
.am-dropdown.am-active .am-btn-default.am-dropdown-toggle {
color: #f5f5f5;
}
form.am-form .am-form-group:hover, .plug-file-upload-view:hover {
background: #262727;
}
.am-form-group:hover input,
.am-form-group:hover select,
.am-form-group:hover textarea,
.am-form-group:hover .chosen-choices,
.am-form-group:hover .chosen-single,
.am-form-group:hover .am-tagsinput,
.am-btn-default:hover,
.am-btn-default:focus,
.am-btn-default:active,
.am-btn-default.am-active,
.am-dropdown.am-active .am-btn-default.am-dropdown-toggle,
button.colorpicker-submit:hover {
border: 1px solid #999;
}
button.colorpicker-submit:hover {
box-shadow: none !important;
}
.edui-default .edui-dialog-caption,
.edui-default .edui-box,
.form-validation-search .am-btn-default:hover,
.form-validation-search .am-btn-default:focus,
.form-validation-search .am-btn-default:active,
.right-operate .quick-time a {
color: #666;
}
.am-tagsinput input,
.am-form .am-tagsinput input {
background: transparent !important;
border: 0px solid transparent !important;
}
.am-form select[disabled],
.am-form textarea[disabled],
.am-form input[type="text"][disabled],
.am-form input[type="password"][disabled],
.am-form input[type="datetime"][disabled],
.am-form input[type="datetime-local"][disabled],
.am-form input[type="date"][disabled],
.am-form input[type="month"][disabled],
.am-form input[type="time"][disabled],
.am-form input[type="week"][disabled],
.am-form input[type="number"][disabled],
.am-form input[type="email"][disabled],
.am-form input[type="url"][disabled],
.am-form input[type="search"][disabled],
.am-form input[type="tel"][disabled],
.am-form input[type="color"][disabled],
.am-form-field[disabled],
.am-form select[readonly],
.am-form textarea[readonly],
.am-form input[type="text"][readonly],
.am-form input[type="password"][readonly],
.am-form input[type="datetime"][readonly],
.am-form input[type="datetime-local"][readonly],
.am-form input[type="date"][readonly],
.am-form input[type="month"][readonly],
.am-form input[type="time"][readonly],
.am-form input[type="week"][readonly],
.am-form input[type="number"][readonly],
.am-form input[type="email"][readonly],
.am-form input[type="url"][readonly],
.am-form input[type="search"][readonly],
.am-form input[type="tel"][readonly],
.am-form input[type="color"][readonly],
.am-form-field[readonly],
fieldset[disabled] .am-form select,
fieldset[disabled] .am-form textarea,
fieldset[disabled] .am-form input[type="text"],
fieldset[disabled] .am-form input[type="password"],
fieldset[disabled] .am-form input[type="datetime"],
fieldset[disabled] .am-form input[type="datetime-local"],
fieldset[disabled] .am-form input[type="date"],
fieldset[disabled] .am-form input[type="month"],
fieldset[disabled] .am-form input[type="time"],
fieldset[disabled] .am-form input[type="week"],
fieldset[disabled] .am-form input[type="number"],
fieldset[disabled] .am-form input[type="email"],
fieldset[disabled] .am-form input[type="url"],
fieldset[disabled] .am-form input[type="search"],
fieldset[disabled] .am-form input[type="tel"],
fieldset[disabled] .am-form input[type="color"],
fieldset[disabled] .am-form-field {
background-color: #252525 !important;
}
.am-table > thead > tr > td.am-active,
.am-table > tbody > tr > td.am-active,
.am-table > tfoot > tr > td.am-active,
.am-table > thead > tr > th.am-active,
.am-table > tbody > tr > th.am-active,
.am-table > tfoot > tr > th.am-active,
.am-table > thead > tr.am-active > td,
.am-table > tbody > tr.am-active > td,
.am-table > tfoot > tr.am-active > td,
.am-table > thead > tr.am-active > th,
.am-table > tbody > tr.am-active > th,
.am-table > tfoot > tr.am-active > th,
.plugins-data-list ul.already-install .item.am-active,
.plugins-data-list ul .item.am-active {
background-color: #2e2e2e !important;
}
.plugins-data-list ul li .submit-state.am-success {
color: #fff !important;
}
header {
background-color: #19222c !important;
border-color: #0e1319 !important;
}
.admin-sidebar-sub {
background: #393939;
}
.admin-sidebar-sub li {
background: #262626 !important;
border-color: #323232 !important;
}
.common-left-menu-active {
background: #19222c !important;
}
.base-content-top .vip-active {
background: rgb(255 229 0 / 30%);
}
.shopxo-base li:nth-child(1) .li-content {
background: rgb(0 188 212 / 30%);
}
.shopxo-base li:nth-child(2) .li-content {
background: rgb(255 152 0 / 30%);
}
.shopxo-base li:nth-child(3) .li-content {
background: rgb(230 58 117 / 30%);
}
.shopxo-base li:nth-child(4) .li-content {
background: rgb(156 64 172 / 30%);
}
.block-container .block-title .icon,
.block-combination-container-2 li .block-title .icon {
background: rgb(63 130 254 / 30%);
}
.common-prompt.am-alert-success {
border-color: #3b592b;
box-shadow: 0 2px 4px #3b592b, 0 0 6px rgb(0 0 0 / 20%);
}
.common-prompt.am-alert-danger {
border-color: #a48585;
box-shadow: 0 2px 4px #a48585, 0 0 6px rgb(0 0 0 / 20%);
}
.common-prompt.am-alert-warning {
border-color: #917968;
box-shadow: 0 2px 4px #917968, 0 0 6px rgb(0 0 0 / 20%);
}
.popup-not-title .am-close,
.modal-dialog-not-title .am-close {
background: #5d5d5d;
color: #dfdfdf;
border: 3px solid #868686;
}
.popup-not-title .am-close:hover,
.modal-dialog-not-title .am-close:hover {
background: #252525;
border: 3px solid #5a5a5a;
}

View File

@ -74,7 +74,7 @@ input:hover, select:hover, textarea:hover, .chosen-choices:hover, .chosen-single
.am-input-group-sm > .am-input-group-label { line-height: 26px; }
body {margin:0;color:#666;}
html,body {position:relative;background:#fff;height:100%;width:100%;}
html,body {position:relative;height:100%;width:100%;}
h1,h2,h3,h4,h5,h6 {font-family:'Karla',sans-serif;margin:10px 0;}
h1 {line-height:42px;}
h2 {line-height:32px;}
@ -502,61 +502,55 @@ table.am-table .am-btn-default {
color: #444;
}
table.am-table .am-btn-default:hover {
background: #444;
background: #444 !important;
color: #fff;
}
table.am-table .am-btn-primary {
border: 1px solid #0c79b1;
background: #fff;
color: #0c79b1;
}
table.am-table .am-btn-primary:hover {
background: #0c79b1;
background: #0c79b1 !important;
color: #fff;
}
table.am-table .am-btn-secondary {
border: 1px solid #3bb4f2;
background: #fff;
color: #3bb4f2;
}
table.am-table .am-btn-secondary:hover {
background: #3bb4f2;
background: #3bb4f2 !important;
color: #fff;
}
table.am-table .am-btn-success {
border: 1px solid #5eb95e;
background: #fff;
color: #5eb95e;
}
table.am-table .am-btn-success:hover {
background: #5eb95e;
background: #5eb95e !important;
color: #fff;
}
table.am-table .am-btn-warning {
border: 1px solid #F37B1D;
background: #fff;
color: #F37B1D;
}
table.am-table .am-btn-warning:hover {
background: #F37B1D;
background: #F37B1D !important;
color: #fff;
}
table.am-table .am-btn-danger {
border: 1px solid #dd514c;
background: #fff;
color: #dd514c;
}
table.am-table .am-btn-danger:hover {
background: #dd514c;
background: #dd514c !important;
color: #fff;
}
/**
*
*/

View File

@ -515,7 +515,7 @@ $(function()
success: function(result)
{
AMUI.dialog.loading('close');
if(result.code == 0)
if(result.code == 0 && typeof(result.data) == 'object')
{
// html内容处理
// 基础信息

View File

@ -18,16 +18,43 @@ html input[disabled] { cursor: default !important; color: #b1b1b1 !important; ba
}
/* 没数据 */
.table-no {text-align:center;padding:115px 0;background:#FFF !important;color: #888; }
.table-no {
text-align: center;
padding: 115px 0;
background: #FFF;
color: #888;
}
/* 公共dl样式 */
.dl-content dt { float: left; padding-left: 5px; overflow: hidden; width: 120px; }
.dl-content dd { padding-left: 120px; }
.dl-content dd:not(:last-child) { border-bottom: 1px solid #efefef; }
.dl-content dt, .dl-content dd { font-weight: normal !important; text-align: left; margin-top: 0px; line-height: 20px; min-height: 40px; padding-top: 10px; padding-bottom: 10px; }
.dl-content-dd-only dd { padding-left: 0; }
.dl-content-dd-compact dd { line-height: 25px; min-height: 25px; padding: 0; }
.dl-content dt {
float: left;
padding-left: 5px;
overflow: hidden;
width: 120px;
}
.dl-content dd {
padding-left: 120px;
}
.dl-content dd:not(:last-child) {
border-bottom: 1px solid #efefef;
}
.dl-content dt, .dl-content dd {
font-weight: normal !important;
text-align: left;
margin-top: 0px;
line-height: 20px;
min-height: 40px;
padding-top: 10px;
padding-bottom: 10px;
}
.dl-content-dd-only dd {
padding-left: 0;
}
.dl-content-dd-compact dd {
line-height: 25px;
min-height: 25px;
padding: 0;
}
/**
*
*/
@ -357,6 +384,8 @@ ul.plug-file-upload-view li i {
top: 5px;
cursor: pointer;
text-shadow: -2px 1px #fff;
padding-left: 5px;
line-height: 14px;
}
ul.plug-file-upload-view li:hover > i {
color: #e90f0f;