diff --git a/public/static/theme/css/console.layout.css b/public/static/theme/css/console.layout.css index b3369c529..23a76ccd8 100644 --- a/public/static/theme/css/console.layout.css +++ b/public/static/theme/css/console.layout.css @@ -155,4 +155,220 @@ .layui-layout.layui-layout-left-hide [data-target-menu-type] { display: 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; +} +/** 手机盒子及微信菜单 */ +.mobile-preview { + width: 317px; + height: 580px; + position: relative; + background: url(../img/wechat/mobile_head.png) no-repeat 0 0; +} +.mobile-preview .mobile-header { + color: #fff; + width: auto; + margin: 0 30px; + overflow: hidden; + font-size: 15px; + padding-top: 30px; + text-align: center; + white-space: nowrap; + text-overflow: ellipsis; + word-wrap: normal; + user-select: none; + pointer-events: none; + -moz-user-select: none; + -webkit-user-select: none; + -webkit-pointer-events: none; +} +.mobile-preview .mobile-body { + top: 60px; + left: 0; + right: 0; + bottom: 0; + position: absolute; + border: 1px solid #ccc; + background: #f5f5f5; +} +.mobile-preview .mobile-body iframe { + width: 100%; + height: 100%; +} +.mobile-preview .mobile-footer { + left: 0; + right: 0; + bottom: 0; + margin: 0; + position: absolute; + padding-left: 43px; + border: 1px solid #ccc; + list-style-type: none; + background: url(../img/wechat/mobile_foot.png) no-repeat 0 0; +} +.mobile-preview .mobile-footer li { + float: left; + width: 33.33%; + position: relative; + text-align: center; + line-height: 50px; +} +.mobile-preview .mobile-footer li a { + width: auto; + display: block; + overflow: hidden; + border: 1px solid hsla(0, 0%, 100%, 0); + border-left: 1px solid #e7e7eb; + margin-top: -1px; + margin-bottom: -1px; + color: #616161; + white-space: nowrap; + text-decoration: none; + text-overflow: ellipsis; + word-wrap: normal; +} +.mobile-preview .mobile-footer li a:hover { + background: rgba(0, 0, 0, 0.02); +} +.mobile-preview .mobile-footer li a.active { + border: 1px solid #44b549 !important; + box-shadow: 0 0 1px #44b549; +} +.mobile-preview .mobile-footer li a span:before { + width: 1px; + height: 1px; + content: ''; + display: inline-block; +} +.mobile-preview .mobile-footer li > .close { + top: 1px; + right: 1px; + width: 18px; + height: 18px; + display: none; + cursor: pointer; + position: absolute; + text-align: center; + line-height: 18px; +} +.mobile-preview .mobile-footer li:hover > .close { + display: inline-block; +} +.mobile-preview .mobile-footer li:hover > .close:hover { + color: #fff !important; + background: #999 !important; +} +.mobile-preview .mobile-footer .icon-add { + width: 14px; + height: 14px; + border-bottom: none !important; + background: url(../img/wechat/index.png) 0 0 no-repeat; +} +.mobile-preview .mobile-footer .icon-add, +.mobile-preview .mobile-footer .icon-sub { + display: inline-block; + vertical-align: middle; +} +.mobile-preview .mobile-footer .icon-sub { + width: 7px; + height: 7px; + margin-right: 2px; + background: url(../img/wechat/index.png) 0 -3pc no-repeat; +} +.mobile-preview .mobile-footer .sub-menu { + width: 100%; + bottom: 60px; + margin: -1px; + display: block; + position: absolute; + border: 1px solid #d0d0d0; + background-color: #fafafa; +} +.mobile-preview .mobile-footer .sub-menu ul, +.mobile-preview .mobile-footer .sub-menu ul li { + float: none; + padding: 0; + z-index: 11; + display: block; + width: 100%; +} +.mobile-preview .mobile-footer .sub-menu ul li a { + padding: 0 5px; + border: 1px solid hsla(0, 0%, 100%, 0); +} +.mobile-preview .mobile-footer .sub-menu ul li a.bottom-border { + margin: -1px -1px 0; + border-bottom: 1px solid #e7e7eb; +} +.mobile-preview .mobile-footer .sub-menu ul li:last-child a.bottom-border { + border-bottom-color: #fff; +} +.mobile-preview .mobile-footer .arrow { + left: 50%; + position: absolute; + margin-left: -6px; +} +.mobile-preview .mobile-footer .arrow_in, +.mobile-preview .mobile-footer .arrow_out { + width: 0; + height: 0; + z-index: 10; + display: inline-block; + border: 6px dashed transparent; + border-bottom-width: 0; + border-top-style: solid; +} +.mobile-preview .mobile-footer .arrow_in { + z-index: 3; + bottom: -5px; + border-top-color: #fafafa; +} +.mobile-preview .mobile-footer .arrow_out { + z-index: 2; + bottom: -6px; + border-top-color: #d0d0d0; +} /*# sourceMappingURL=console.layout.css.map */ \ No newline at end of file diff --git a/public/static/theme/css/console.layout.css.map b/public/static/theme/css/console.layout.css.map index a518697fe..c07e1c35c 100644 --- a/public/static/theme/css/console.layout.css.map +++ b/public/static/theme/css/console.layout.css.map @@ -1 +1 @@ -{"version":3,"sources":["console.layout.less"],"names":[],"mappings":";AACA,aACE;EACE,SAAA;EACA,SAAA;EACA,cAAA;;AAJJ,aAOE;EACE,SAAA;EACA,SAAA;EACA,cAAA;;AAVJ,aAOE,cAKE;EACE,gBAAA;;AAbN,aAOE,cAKE,cAGE;EACE,kBAAA;;AAhBR,aAOE,cAKE,cAOE;EACE,YAAA;EACA,YAAA;EACA,iBAAA;EACA,0CAAA;EACA,gBAAA;;;AAOR;EACE,YAAA;EACA,mBAAA;;AAFF,aAIE;EAEE,uCAAA;EACA,2CAAA;;AAPJ,aAUE;AAVF,aAWE;EACE,UAAA;;AAZJ,aAeE;EACE,WAAA;EACA,YAAA;EACA,YAAA;EACA,eAAA;EACA,iBAAA;EACA,2CAAA;EACA,4CAAA;;AAtBJ,aAeE,YASE;EACE,cAAA;EACA,gBAAA;;AA1BN,aA8BE;EACE,YAAA;EACA,iBAAA;;AAEA,aAJF,gBAIG;EACC,mBAAA;;AAnCN,aA8BE,gBAQE;EACE,WAAA;;AAvCN,aA8BE,gBAYE;EACE,SAAA;EACA,UAAA;EACA,YAAA;EACA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8Ea;EACT,qBAAA;EACA,sBAAA;;AAvHN,eAuCE,eAmFE;EACE,UAAA;EACA,WAAA;EACA,iBAAA;EACA,yDAAA;;AA9HN,eAuCE,eA0FE;EACE,WAAA;EACA,YAAA;EACA,YAAA;EACA,cAAA;EACA,kBAAA;EACA,yBAAA;EACA,yBAAA;;AAxIN,eAuCE,eA0FE,UASE;AA1IN,eAuCE,eA0FE,UASM,GAAG;EACL,WAAA;EACA,UAAA;EACA,WAAA;EACA,cAAA;EACA,WAAA;;AA/IR,eAuCE,eA0FE,UAiBE,GAAG,GACD;EACE,cAAA;EACA,sCAAA;;AAEA,eAhHR,eA0FE,UAiBE,GAAG,GACD,EAIG;EACC,mBAAA;EACA,gCAAA;;AAIJ,eAtHN,eA0FE,UAiBE,GAAG,GAWA,WAAY,EAAC;EACZ,yBAAA;;AA9JV,eAuCE,eA4HE;EACE,SAAA;EACA,kBAAA;EACA,iBAAA;;AAtKN,eAuCE,eAkIE;AAzKJ,eAuCE,eAkIa;EACT,QAAA;EACA,SAAA;EACA,WAAA;EACA,qBAAA;EACA,8BAAA;EACA,sBAAA;EACA,uBAAA;;AAhLN,eAuCE,eA4IE;EACE,UAAA;EACA,YAAA;EACA,yBAAA;;AAtLN,eAuCE,eAkJE;EACE,UAAA;EACA,YAAA;EACA,yBAAA","file":"console.layout.css"} \ No newline at end of file diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index bc957cb8e..ea7475170 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -401,12 +401,12 @@ "source": { "type": "git", "url": "https://github.com/zoujingli/ThinkLibrary.git", - "reference": "80a2dd413f62f0915afbb7be7ac43b8c8bd742d3" + "reference": "294304e62f54fcafbd5983386bf02abdd43af0ff" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/80a2dd413f62f0915afbb7be7ac43b8c8bd742d3", - "reference": "80a2dd413f62f0915afbb7be7ac43b8c8bd742d3", + "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/294304e62f54fcafbd5983386bf02abdd43af0ff", + "reference": "294304e62f54fcafbd5983386bf02abdd43af0ff", "shasum": "", "mirrors": [ { @@ -426,7 +426,7 @@ "qiniu/php-sdk": "^7.2", "topthink/framework": "5.1.*" }, - "time": "2019-12-17T10:41:31+00:00", + "time": "2019-12-30T06:33:48+00:00", "type": "library", "installation-source": "dist", "autoload": { diff --git a/vendor/zoujingli/think-library/src/Controller.php b/vendor/zoujingli/think-library/src/Controller.php index ad3293156..56026d99a 100644 --- a/vendor/zoujingli/think-library/src/Controller.php +++ b/vendor/zoujingli/think-library/src/Controller.php @@ -59,7 +59,7 @@ abstract class Controller extends \stdClass * 表单CSRF验证失败提示消息 * @var string */ - public $csrf_message = '表单令牌验证失败,请刷新页面再试!'; + public $csrf_message = ''; /** * Controller constructor. @@ -114,6 +114,9 @@ abstract class Controller extends \stdClass */ protected function initialize() { + if (empty($this->csrf_message)) { + $this->csrf_message = lang('think_library_csrf_error'); + } } /** diff --git a/vendor/zoujingli/think-library/src/common.php b/vendor/zoujingli/think-library/src/common.php index 62d187ee3..fb6652205 100644 --- a/vendor/zoujingli/think-library/src/common.php +++ b/vendor/zoujingli/think-library/src/common.php @@ -15,15 +15,14 @@ use library\service\TokenService; use library\tools\Crypt; -use library\tools\Csrf; use library\tools\Data; use library\tools\Emoji; use library\tools\Http; -use library\tools\Node; use think\Console; use think\Db; use think\db\Query; use think\facade\Cache; +use think\facade\Lang; use think\facade\Middleware; use think\Request; @@ -271,6 +270,11 @@ if (class_exists('think\Console')) { ]); } +// 加载对应的语言包 +if (Lang::range() === 'zh-cn') { + Lang::load(__DIR__ . '/lang/zh-cn.php', 'zh-cn'); +} + // 动态加载模块配置 if (function_exists('think\__include_file')) { $root = rtrim(str_replace('\\', '/', env('app_path')), '/'); diff --git a/vendor/zoujingli/think-library/src/driver/Local.php b/vendor/zoujingli/think-library/src/driver/Local.php index 7ad625d67..b155589d1 100644 --- a/vendor/zoujingli/think-library/src/driver/Local.php +++ b/vendor/zoujingli/think-library/src/driver/Local.php @@ -123,8 +123,9 @@ class Local extends File { if ($this->has($name, $safe) && is_string($file = $this->path($name, $safe))) { return ['file' => $file, 'hash' => md5_file($file), 'url' => $this->base($name), 'key' => "upload/{$name}"]; + } else { + return null; } - return null; } /** @@ -137,8 +138,9 @@ class Local extends File { if ($this->has($name, $safe) && is_string($file = $this->path($name, $safe))) { return @unlink($file); + } else { + return true; } - return true; } } diff --git a/vendor/zoujingli/think-library/src/helper/DeleteHelper.php b/vendor/zoujingli/think-library/src/helper/DeleteHelper.php index 440b09118..12aa95a94 100644 --- a/vendor/zoujingli/think-library/src/helper/DeleteHelper.php +++ b/vendor/zoujingli/think-library/src/helper/DeleteHelper.php @@ -78,9 +78,9 @@ class DeleteHelper extends Helper } // 回复前端结果 if ($result !== false) { - $this->controller->success('数据删除成功!', ''); + $this->controller->success(lang('think_library_delete_success'), ''); } else { - $this->controller->error('数据删除失败, 请稍候再试!'); + $this->controller->error(lang('think_library_delete_error')); } } } \ No newline at end of file diff --git a/vendor/zoujingli/think-library/src/helper/FormHelper.php b/vendor/zoujingli/think-library/src/helper/FormHelper.php index 9dccaf729..c7ac30f07 100644 --- a/vendor/zoujingli/think-library/src/helper/FormHelper.php +++ b/vendor/zoujingli/think-library/src/helper/FormHelper.php @@ -62,7 +62,7 @@ class FormHelper extends Helper * @param string $field 指定数据主键 * @param array $where 额外更新条件 * @param array $data 表单扩展数据 - * @return array|boolean + * @return array|mixed * @throws \think\Exception * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\ModelNotFoundException @@ -84,8 +84,9 @@ class FormHelper extends Helper $data = array_merge($data, $this->data); if (false !== $this->controller->callback('_form_filter', $data)) { return $this->controller->fetch($this->template, ['vo' => $data]); + } else { + return $data; } - return $data; } // POST请求, 数据自动存库处理 if ($this->app->request->isPost()) { @@ -93,8 +94,11 @@ class FormHelper extends Helper if (false !== $this->controller->callback('_form_filter', $data, $this->where)) { $result = data_save($this->query, $data, $this->field, $this->where); if (false !== $this->controller->callback('_form_result', $result, $data)) { - if ($result !== false) $this->controller->success('恭喜, 数据保存成功!', ''); - $this->controller->error('数据保存失败, 请稍候再试!'); + if ($result !== false) { + $this->controller->success(lang('think_library_form_success'), ''); + } else { + $this->controller->error(lang('think_library_form_error')); + } } return $result; } diff --git a/vendor/zoujingli/think-library/src/helper/PageHelper.php b/vendor/zoujingli/think-library/src/helper/PageHelper.php index 9f0c77e33..3818d1c6a 100644 --- a/vendor/zoujingli/think-library/src/helper/PageHelper.php +++ b/vendor/zoujingli/think-library/src/helper/PageHelper.php @@ -57,7 +57,7 @@ class PageHelper extends Helper * @param boolean $display 是否渲染模板 * @param boolean $total 集合分页记录数 * @param integer $limit 集合每页记录数 - * @return array + * @return array|mixed * @throws \think\Exception * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\ModelNotFoundException @@ -90,17 +90,19 @@ class PageHelper extends Helper $url = url('@admin') . '#' . $this->controller->request->baseUrl() . '?' . urldecode(http_build_query($query)); array_push($rows, ""); } - $select = ""; - $html = "