diff --git a/public/core.php b/public/core.php index 1a6722973..938cef2fa 100755 --- a/public/core.php +++ b/public/core.php @@ -10,7 +10,7 @@ // +---------------------------------------------------------------------- // 系统版本 -define('APPLICATION_VERSION', 'v2.3.3'); +define('APPLICATION_VERSION', 'v3.0.0'); // 检测PHP环境 if(version_compare(PHP_VERSION,'7.4.0','<')) diff --git a/public/static/admin/default/css/admin.logininfo.css b/public/static/admin/default/css/admin.logininfo.css index e1b77c1c8..71f031b5f 100755 --- a/public/static/admin/default/css/admin.logininfo.css +++ b/public/static/admin/default/css/admin.logininfo.css @@ -33,7 +33,7 @@ body { width: 100%; padding-top: 5%; } -@media only screen and (max-width: 641px) { +@media only screen and (max-width: 640px) { .account-pages { padding-top: 10%; } @@ -46,7 +46,7 @@ body { .wrapper-page { margin: auto; position: relative; - max-width: 360px; + max-width: 36rem; } @media (max-width: 768px) { .wrapper-page { @@ -54,45 +54,45 @@ body { } } .admin-login { - box-shadow: 0 0px 8px 0 rgba(0,0,0,0.06),0 1px 0px 0 rgba(0,0,0,0.02); - -webkit-border-radius: 5px; - border-radius: 5px; - -moz-border-radius: 5px; + box-shadow: 0 0px 0.8rem 0 rgba(0,0,0,0.06),0 0.1rem 0px 0 rgba(0,0,0,0.02); + -webkit-border-radius: 0.5rem; + border-radius: 0.5rem; + -moz-border-radius: 0.5rem; background-clip: padding-box; - margin-bottom: 20px; - background: rgba(255,255,255,.85); + margin-bottom: 2rem; + background: #FFFFFF; } .logo { - font-size: 60px; + font-size: 6rem; font-weight: 500; color: #0e90d2; - text-shadow: -1px 1px #fff; + text-shadow: -0.1rem 0.1rem #fff; } .admin-login form { - padding: 5px 10px; + padding: 0.5rem 1rem; } .admin-login .am-form-group { - padding: 5px 0 !important; + padding: 0.5rem 0 !important; } .admin-login .form-verify a.form-verify-tips { - font-size: 12px; + font-size: 1.2rem; text-decoration: none; - line-height: 30px; + line-height: 3rem; color: #FFF; filter: progid:DXImageTransform.Microsoft.gradient(enabled='true', startColorstr='#7F000000', endColorstr='#7F000000'); background: rgba(0,0,0,0.5); text-align: center; display: none; - width: 102px; - height: 30px; + width: 10.2rem; + height: 3rem; position: absolute; z-index: 1; - top: -1px; - left: -1px; + top: -0.1rem; + left: -0.1rem; } @media only screen and (min-width: 641px) { .admin-login { - max-width: 360px; + max-width: 36rem; } .admin-login .form-verify:hover a.form-verify-tips { display: block; @@ -104,18 +104,18 @@ body { */ #verify-img { vertical-align:middle; - border:1px solid #ccc; + border:0.1rem solid #ccc; } #verify-win .verify-submit-win { - margin-top:20px; + margin-top:2rem; display:block; } #verify-win .am-modal-bd { - margin-top:10px; + margin-top:1rem; } #verify-win .am-modal-bd .base { overflow:hidden; } #verify-win .am-modal-bd .base .verify-tips { - font-size:12px; + font-size:1.2rem; } \ No newline at end of file diff --git a/public/static/admin/default/css/answer.css b/public/static/admin/default/css/answer.css index 40b3e800a..095bdff3b 100755 --- a/public/static/admin/default/css/answer.css +++ b/public/static/admin/default/css/answer.css @@ -2,5 +2,5 @@ * 列表 */ .form-table-content table.am-table .reply-content { - max-height: 40px; + max-height: 4rem; } \ No newline at end of file diff --git a/public/static/admin/default/css/apphomenav.css b/public/static/admin/default/css/apphomenav.css index 9807b9268..6b45ce244 100755 --- a/public/static/admin/default/css/apphomenav.css +++ b/public/static/admin/default/css/apphomenav.css @@ -2,10 +2,10 @@ * 列表 */ .nav-icon-circle { - width: 50px; - height: 50px; + width: 5rem; + height: 5rem; text-align: center; - line-height: 50px; + line-height: 5rem; } table.am-table .nav-icon-circle { margin: 0 auto; diff --git a/public/static/admin/default/css/appmini.index.css b/public/static/admin/default/css/appmini.index.css index 5d81e704f..3f37a7e70 100644 --- a/public/static/admin/default/css/appmini.index.css +++ b/public/static/admin/default/css/appmini.index.css @@ -5,11 +5,11 @@ background: #e6e6e6; } .am-gallery-desc * { - font-size: 12px; + font-size: 1.2rem; } .am-gallery-item:hover { - border: 1px solid #f60; + border: 0.1rem solid #f60; } .theme-active { - border: 3px solid #5eb95e !important; + border: 0.3rem solid #5eb95e !important; } \ No newline at end of file diff --git a/public/static/admin/default/css/article.css b/public/static/admin/default/css/article.css index 3efeb8eac..87e9512f7 100755 --- a/public/static/admin/default/css/article.css +++ b/public/static/admin/default/css/article.css @@ -1,4 +1,4 @@ /** * 编辑/添加页面 */ -.colorpicker-submit img { width: 16px; height: 16px; } \ No newline at end of file +.colorpicker-submit img { width: 1.6rem; height: 1.6rem; } \ No newline at end of file diff --git a/public/static/admin/default/css/brand.css b/public/static/admin/default/css/brand.css index 9d1018fd9..584c263b0 100644 --- a/public/static/admin/default/css/brand.css +++ b/public/static/admin/default/css/brand.css @@ -1,4 +1,4 @@ ul.brand-logo-images-view li { - width: 160px; - height: 62px; + width: 16rem; + height: 6.2rem; } \ No newline at end of file diff --git a/public/static/admin/default/css/cache.css b/public/static/admin/default/css/cache.css index d7904d9a7..12e439dd3 100755 --- a/public/static/admin/default/css/cache.css +++ b/public/static/admin/default/css/cache.css @@ -2,11 +2,11 @@ position: relative; } .content-right .am-panel .cache-submit { - width: 70px; - height: 33px; + width: 7rem; + height: 3.3rem; position: absolute; - top: -1px; - right: -1px; + top: -0.1rem; + right: -0.1rem; border-top-left-radius: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; diff --git a/public/static/admin/default/css/common.css b/public/static/admin/default/css/common.css index 320b13f8a..282f54943 100755 --- a/public/static/admin/default/css/common.css +++ b/public/static/admin/default/css/common.css @@ -21,7 +21,7 @@ time, mark, audio, video { font-family: "Microsoft YaHei",SimSun; font-style: normal; } -body {font-size: 12px;margin:0;color:#666;} +body {font-size: 1.2rem;margin:0;color:#666;} html,body {position:relative;height:100%;width:100%;} h3 small,h4 small,h5 small {color:#4444;} b {font-weight:600;} @@ -29,11 +29,11 @@ i{ font-style: normal; } a:hover {outline:0;text-decoration:none;} a:active {outline:0;text-decoration:none;} a:focus {outline:0;text-decoration:none;} -.am-popover { border-radius:2px !important; } -.am-popover * {font-size: 12px;} -.am-icon-trash-o:before {width:12px !important;} +.am-popover { border-radius:0.2rem !important; } +.am-popover * {font-size: 1.2rem;} +.am-icon-trash-o:before {width:1.2rem !important;} legend {margin-bottom: 1rem; } -legend a.am-fr{margin-top: 10px;} +legend a.am-fr{margin-top: 1rem;} .am-popup-bd {background:#fff;} .cr-eee {color:#eee !important;} .cr-ccc {color:#ccc !important;} @@ -44,58 +44,57 @@ legend a.am-fr{margin-top: 10px;} .cr-green { color: #4aaa4a !important; } .cr-blue { color: #4abbf5 !important; } .cr-yellow { color: #e4bfbc !important; } -.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 {font-size:12px !important;} -select {height:28px !important;} -.bk-cr-gray {background:#f3f3f3 !important;} +.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 {font-size:1.2rem !important;} +select {height:2.8rem !important;} +.bk-cr-grey {background:#f3f3f3 !important;} .bk-cr-ffd {background:#ffd !important;} .bk-cr-white {background-color: #fff;} .am-nav-pills > li.am-fr {float: right !important;} -.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 {font-size:12px !important;} -select {height:28px !important;} -input:hover, select:hover, textarea:hover, .chosen-choices:hover, .chosen-single:hover,.am-tagsinput:hover, button.colorpicker-submit:hover { border-style:solid; border-width:1px; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; border:1px solid #4FACF5 !important; -webkit-box-shadow: 0 0 5px #4FACF5 !important; box-shadow:0 0 5px #4FACF5 !important; } +.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 {font-size:1.2rem !important;} +select {height:2.8rem !important;} .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 { height: 31px; font-size: 12px !important; } +.am-input-group-sm > .am-input-group-btn > .am-btn { height: 3.1rem; font-size: 1.2rem !important; } .left-menu-more-icon-rotate {-webkit-transform: rotate(-90deg);transform: rotate(-90deg);-webkit-transition: all 300ms;transition: all 300ms;} .am-icon-angle-down {-webkit-transition: all 300ms;transition: all 300ms;} .am-alert-tips { background-color: #ffffe9; border-color: #faebd2; color: #888; } -.am-alert-tips, .am-alert-tips * { font-size: 12px; } -.am-btn-sm { font-size: 12px; } -.am-input-group-sm > .am-input-group-label { line-height: 26px; } +.am-alert-tips, .am-alert-tips * { font-size: 1.2rem; } +.am-btn-sm { font-size: 1.2rem; } +.am-input-group-sm > .am-input-group-label { line-height: 2.6rem; } /* fixed-layout 固定头部和边栏布局*/ -@media only screen and (max-width:641px) { +@media only screen and (max-width:640px) { header .am-dropdown-content {border:0px;} header .tpl-header-list-user-nick {color:#fff;} } header { background-color:#4386fb !important; border-color:#4386fb; color:#fff; } -header, header.am-topbar { min-height:32px; } -header .am-topbar-brand { height:32px; } -header .am-dropdown-content {border-radius:2px;} -header .header-nav-submit { margin: 4px 10px 0 0; padding: 4px 10px;} -header .am-topbar-brand h2 { font-size: 18px; line-height: 32px; } -header .admin-site-vice-name { font-size: 12px; color: #eaeaea; } +header, header.am-topbar { min-height:3.2rem; } +header .am-topbar-brand { height:3.2rem; } +header .am-dropdown-content {border-radius:0.2rem;} +header .header-nav-submit { margin: 0.4rem 1rem 0 0; padding: 0.4rem 1rem;} +header .am-topbar-brand h2 { font-size: 1.8rem; line-height: 3.2rem; } +header .admin-site-vice-name { font-size: 1.2rem; color: #eaeaea; } ul {margin-top:0;} .admin-header {position:fixed;top:0;right:0;z-index:1000;margin-bottom:0;} -.admin-sidebar {width:260px;min-height:100%;float:left;} +.admin-sidebar {width:26rem;min-height:100%;float:left;} .admin-sidebar.am-active {z-index:1600;} .admin-sidebar-list {margin-bottom:0;} .admin-sidebar-list>li:first-child { border-top: 0 !important; } .admin-sidebar-list>li:last-child { border-bottom: 0 !important; } -.admin-sidebar-list li a {color:#b6b6b6;padding-left:24px;} +.admin-sidebar-list li a {color:#b6b6b6;padding-left:2.4rem;} .admin-sidebar-list li:first-child {border-top:none;} -.admin-sidebar-list li a .nav-name {line-height: 14px;width: calc(100% - 50px);} -.admin-sidebar-sub {margin-top:0;margin-bottom:0;box-shadow:0 16px 8px -15px #e2e2e2 inset;background:#646464;padding-left:10px;} -.admin-sidebar-sub li:first-child {border-top:1px solid #dedede;} +.admin-sidebar-list li a .nav-name {line-height: 1.4rem;width: calc(100% - 5rem);} +.admin-sidebar-sub {margin-top:0;margin-bottom:0;box-shadow:0 1.6rem 0.8rem -1.5rem #e2e2e2 inset;background:#646464;padding-left:1rem;} +.admin-sidebar-sub li:first-child {border-top:0.1rem solid #dedede;} .admin-sidebar-sub li { background: #404246 !important; border-color: #393b3e !important; } .admin-sidebar {height:100%;overflow-x:hidden;overflow-y:scroll;-webkit-overflow-scrolling:touch;scrollbar-width: none;} -.admin-sidebar .am-icon-angle-down {margin-top: 2px;} +.admin-sidebar .am-icon-angle-down {margin-top: 0.2rem;} @media only screen and (min-width:641px) { - header { left: 160px; } - header .am-topbar-brand, .am-topbar-nav > li > a { line-height: 32px; } - .admin-sidebar {display:block;width:160px;z-index:1; position: fixed; top: 0; left: 0;} - .admin-offcanvas-bar {position:static;width:auto;background:none;-webkit-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0);overflow-y:visible;min-height:100%;padding-bottom: 50px;} + header { left: 16rem; } + header .am-topbar-brand, .am-topbar-nav > li > a { line-height: 3.2rem; } + .admin-sidebar {display:block;width:16rem;z-index:1; position: fixed; top: 0; left: 0;} + .admin-offcanvas-bar {position:static;width:auto;background:none;-webkit-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0);overflow-y:visible;min-height:100%;padding-bottom: 5rem;} .admin-offcanvas-bar:after {content:none;} } @media only screen and (max-width:640px) { @@ -106,99 +105,99 @@ ul {margin-top:0;} .admin-sidebar-list a:hover,.admin-sidebar-list a:active {-webkit-transition:background-color .3s ease;-moz-transition:background-color .3s ease;-ms-transition:background-color .3s ease;-o-transition:background-color .3s ease;transition:background-color .3s ease;background:#E4E4E4;} .admin-sidebar .am-offcanvas-bar { width: 70%; } } -.common-nav-bar {position:fixed;z-index:10;bottom:30px;right:20px;box-shadow: 0 0 10px 2px #c4c4c4;opacity: 0.8;} -.admin {width:100%;height:100%;display:flex;display:-webkit-flex;padding-top:33px;} +.common-nav-bar {position:fixed;z-index:10;bottom:3rem;right:2rem;box-shadow: 0 0 1rem 0.2rem #c4c4c4;opacity: 0.8;} +.admin {width:100%;height:100%;display:flex;display:-webkit-flex;padding-top:3.3rem;} .admin .am-g {padding-left:0;padding-right:0;} /*---right Content---*/ -.content-right > .content {padding:10px 10px 0 10px;} +.content-right > .content {padding:1rem 1rem 0 1rem;} .admin-sidebar-list li a {padding:0.65rem;} .common-left-menu a:hover { background:rgba(118, 119, 120, 0.45); } .common-left-menu-active {background:#1cc09f !important;color:#fff !important;} .admin-offcanvas-bar, .admin-offcanvas-bar .am-list > li { background: #36373c; } -.admin-offcanvas-bar .am-list > li { border-style: solid; border-width: 1px 0; border-color: #2e2e31; } +.admin-offcanvas-bar .am-list > li { border-style: solid; border-width: 0.1rem 0; border-color: #2e2e31; } /** * excel导入窗口 */ -.excel-form input[name="excel"] { width: 105px !important; height: 32px; } +.excel-form input[name="excel"] { width: 10.5rem !important; height: 3.2rem; } /** * 导航 */ -.table-nav { border-bottom: 1px solid #eee; } -.table-nav li a { border-top-left-radius: 2px; border-top-right-radius: 2px; } +.table-nav { border-bottom: 0.1rem solid #eee; } +.table-nav li a { border-top-left-radius: 0.2rem; border-top-right-radius: 0.2rem; } /** * 公共 */ .am-container {padding-left:0px;padding-right:0px ;} @media only screen and (min-width: 1025px) { - .am-container { max-width: 1000px;} + .am-container { max-width: 100rem;} } @media only screen and (min-width: 1260px) { - .am-container {max-width: 1200px;} + .am-container {max-width: 120rem;} } -@media only screen and (max-width: 641px) { - +@media only screen and (min-width: 1600px) { + .am-container {max-width: 150rem;} } /** * 列表按钮美化 */ -table.am-table .am-btn { +table.am-table tbody .am-btn { padding: 0.4em 1em; } -table.am-table .am-btn-default { - border: 1px solid #444; +table.am-table tbody .am-btn-default { + border: 0.1rem solid #444; background: #fff; color: #444; } -table.am-table .am-btn-default:hover { +table.am-table tbody .am-btn-default:hover { background: #444 !important; color: #fff; } -table.am-table .am-btn-primary { - border: 1px solid #0c79b1; +table.am-table tbody .am-btn-primary { + border: 0.1rem solid #0c79b1; background: #fff; color: #0c79b1; } -table.am-table .am-btn-primary:hover { +table.am-table tbody .am-btn-primary:hover { background: #0c79b1 !important; color: #fff; } -table.am-table .am-btn-secondary { - border: 1px solid #3bb4f2; +table.am-table tbody .am-btn-secondary { + border: 0.1rem solid #3bb4f2; background: #fff; color: #3bb4f2; } -table.am-table .am-btn-secondary:hover { +table.am-table tbody .am-btn-secondary:hover { background: #3bb4f2 !important; color: #fff; } -table.am-table .am-btn-success { - border: 1px solid #5eb95e; +table.am-table tbody .am-btn-success { + border: 0.1rem solid #5eb95e; background: #fff; color: #5eb95e; } -table.am-table .am-btn-success:hover { +table.am-table tbody .am-btn-success:hover { background: #5eb95e !important; color: #fff; } -table.am-table .am-btn-warning { - border: 1px solid #F37B1D; +table.am-table tbody .am-btn-warning { + border: 0.1rem solid #F37B1D; background: #fff; color: #F37B1D; } -table.am-table .am-btn-warning:hover { +table.am-table tbody .am-btn-warning:hover { background: #F37B1D !important; color: #fff; } -table.am-table .am-btn-danger { - border: 1px solid #dd514c; +table.am-table tbody .am-btn-danger { + border: 0.1rem solid #dd514c; background: #fff; color: #dd514c; } -table.am-table .am-btn-danger:hover { +table.am-table tbody .am-btn-danger:hover { background: #dd514c !important; color: #fff; } @@ -208,7 +207,7 @@ table.am-table .am-btn-danger:hover { */ table.am-table .am-operate-grid .am-btn { background: transparent; - padding: 2px 5px; + padding: 0.2rem 0.5rem; width: auto; border: 0px !important; display: block; @@ -224,7 +223,7 @@ table.am-table .am-operate-grid .am-btn:nth-child(even) { float: right; } table.am-table .am-operate-grid .am-btn:nth-child(n+3) { - margin-top: 8px; + margin-top: 0.8rem; } /** @@ -251,10 +250,10 @@ table.am-table .am-dropdown.am-active .am-selected-btn.am-btn-default.am-dropdow resize: none; } #parameters-quick-container .am-dropdown-content { - width: 260px; + width: 26rem; } .parameters-container { - border: 1px solid #ddd; + border: 0.1rem solid #ddd; } .parameters-table { border: 0; @@ -274,27 +273,20 @@ table.am-table .am-dropdown.am-active .am-selected-btn.am-btn-default.am-dropdow background: #f5f7fa; } .parameters-table thead tr > th { - min-width: 100px; + min-width: 10rem; } .parameters-table thead tr > th:last-child { - width: 120px; - min-width: 120px; - max-width: 120px; + width: 12rem; + min-width: 12rem; + max-width: 12rem; } /** * 动态数据列表 */ -.content-right, -.form-table-content { - height: 100%; -} -.form-validation-search { - height: calc(100% - 85px); -} .am-table-scrollable-horizontal { - max-height: calc(100% - 50px); + max-height: calc(100% - 5rem); overflow-x: auto; overflow-y: auto; } @@ -303,21 +295,21 @@ table.am-table .am-dropdown.am-active .am-selected-btn.am-btn-default.am-dropdow * 商店帐号信息 */ #store-accounts-popup { - width: 360px; - height: 370px; + width: 36rem; + height: 37rem; left: 50%; top: 50%; } @media (min-width: 630px) { #store-accounts-popup { - margin-left: -180px; - margin-top: -185px; + margin-left: -18rem; + margin-top: -18.5rem; } } -@media only screen and (max-width: 641px) { +@media only screen and (max-width: 640px) { #store-accounts-popup { - left: calc(50% - 180px); - top: calc(50% - 185px); + left: calc(50% - 18rem); + top: calc(50% - 18.5rem); } } @@ -325,10 +317,224 @@ table.am-table .am-dropdown.am-active .am-selected-btn.am-btn-default.am-dropdow * 插件更新弹窗 */ #package-upgrade-modal .am-scrollable-vertical { - height: 160px; - border: 1px solid #eee; - padding: 5px; + height: 16rem; + border: 0.1rem solid #eee; + padding: 0.5rem; } #package-upgrade-modal .am-modal-bd { - padding: 0 10px 10px 10px; + padding: 0 1rem 1rem 1rem; +} + +/** + * 小徽章 - 空心 + */ +.am-badge-default-plain { + border: 0.1rem solid #ddd; + background: transparent; + color: #999; +} + +a.am-badge-default-plain:hover, +a.am-badge-default-plain:focus { + color: #999; + border: 0.1rem solid #ddd; +} + +.am-badge-primary-plain { + border: 0.1rem solid #0e90d2; + background: transparent; + color: #0e90d2; +} + +a.am-badge-primary-plain:hover, +a.am-badge-primary-plain:focus { + color: #0071aa; + border: 0.1rem solid #0071aa; +} + +.am-badge-secondary-plain { + border: 0.1rem solid #3bb4f2; + background: transparent; + color: #3bb4f2; +} + +a.am-badge-secondary-plain:hover, +a.am-badge-secondary-plain:focus { + color: #03a9f4; + border: 0.1rem solid #03a9f4; +} + +.am-badge-success-plain { + border: 0.1rem solid #51B154; + background: transparent; + color: #51B154; +} + +a.am-badge-success-plain:hover, +a.am-badge-success-plain:focus { + color: #4caf50; + border: 0.1rem solid #4caf50; +} + +.am-badge-warning-plain { + border: 0.1rem solid #F37B1D; + background: transparent; + color: #F37B1D; +} + +a.am-badge-warning-plain:hover, +a.am-badge-warning-plain:focus { + color: #ff7000; + border: 0.1rem solid #ff7000; +} + +.am-badge-danger-plain { + border: 0.1rem solid #dd514c; + background: transparent; + color: #dd514c; +} + +a.am-badge-danger-plain:hover, +a.am-badge-danger-plain:focus { + color: #ee2d26; + border: 0.1rem solid #ee2d26; +} + +.am-badge-tips { + padding: 0.2rem 0.6rem; +} + +/** + * 按钮 - 空心 + */ +.am-btn-default-plain { + border: 0.1rem solid #999; + background: #fff; + color: #999; +} + +.am-btn-default-plain:focus, +.am-btn-default-plain:active, +.am-btn-default-plain.am-active { + color: #999 !important; + border-color: #999; +} + +.am-btn-default-plain:hover, +.am-btn-default-plain:active, +.am-btn-default-plain.am-active, +.am-dropdown.am-active .am-btn-default-plain.am-dropdown-toggle { + color: #fff !important; + background: #999; + border-color: #999; +} + +.am-btn-primary-plain { + border: 0.1rem solid #0e90d2; + background: #fff; + color: #0e90d2; +} + +.am-btn-primary-plain:focus, +.am-btn-primary-plain:active, +.am-btn-primary-plain.am-active { + color: #0e90d2 !important; + border-color: #0e90d2; +} + +.am-btn-primary-plain:hover, +.am-btn-primary-plain:active, +.am-btn-primary-plain.am-active, +.am-dropdown.am-active .am-btn-primary-plain.am-dropdown-toggle { + color: #fff !important; + background: #0e90d2; + border-color: #0e90d2; +} + +.am-btn-secondary-plain { + border: 0.1rem solid #e91e63; + background: #fff; + color: #e91e63; +} + +.am-btn-secondary-plain:focus, +.am-btn-secondary-plain:active, +.am-btn-secondary-plain.am-active { + color: #e91e63 !important; + border-color: #e91e63; +} + +.am-btn-secondary-plain:hover, +.am-btn-secondary-plain:active, +.am-btn-secondary-plain.am-active, +.am-dropdown.am-active .am-btn-secondary-plain.am-dropdown-toggle { + color: #fff !important; + background: #e91e63; + border-color: #e91e63; +} + +.am-btn-success-plain { + border: 0.1rem solid #5eb95e; + background: #fff; + color: #5eb95e; +} + +.am-btn-success-plain:focus, +.am-btn-success-plain:active, +.am-btn-success-plain.am-active { + color: #5eb95e !important; + border-color: #5eb95e; +} + +.am-btn-success-plain:hover, +.am-btn-success-plain:active, +.am-btn-success-plain.am-active, +.am-dropdown.am-active .am-btn-success-plain.am-dropdown-toggle { + color: #fff !important; + background: #5eb95e; + border-color: #5eb95e; +} + +.am-btn-warning-plain { + border: 0.1rem solid #F37B1D; + color: #F37B1D; + background: #fff; +} + +.am-btn-warning-plain:focus, +.am-btn-warning-plain:active, +.am-btn-warning-plain.am-active { + color: #fff !important; + border-color: #F37B1D; +} + +.am-btn-warning-plain:hover, +.am-btn-warning-plain:active, +.am-btn-warning-plain.am-active, +.am-dropdown.am-active .am-btn-warning-plain.am-dropdown-toggle { + color: #fff !important; + background: #F37B1D; + border-color: #F37B1D; +} + +.am-btn-danger-plain { + border: 0.1rem solid #E22C08; + background: #fff; + color: #E22C08; +} + +.am-btn-danger-plain:hover, +.am-btn-danger-plain:focus { + color: #E22C08 !important; + background-color: #FFE8E4; + border-color: #FDC0B4; +} + +.am-btn-danger-plain:active, +.am-btn-danger-plain.am-active, +.am-dropdown.am-active .am-btn-danger-plain.am-dropdown-toggle { + color: #C72100 !important; + background: #FDC0B4; + border-color: #FDC0B4; + box-shadow: none; } \ No newline at end of file diff --git a/public/static/admin/default/css/customview.saveinfo.css b/public/static/admin/default/css/customview.saveinfo.css index 6fe92d066..0e3780c28 100644 --- a/public/static/admin/default/css/customview.saveinfo.css +++ b/public/static/admin/default/css/customview.saveinfo.css @@ -7,16 +7,16 @@ body { .page-nav { border-color: #333; color: #ccc; - padding-bottom: 2px; + padding-bottom: 0.2rem; } .page-top-nav-logo { - width: 30px; - height: 30px; + width: 3rem; + height: 3rem; vertical-align: middle; } .page-operate-container .am-btn { - padding: 4px 10px; + padding: 0.4rem 1rem; } form .am-form-popup-submit button { - width: 120px; + width: 12rem; } \ No newline at end of file diff --git a/public/static/admin/default/css/design.saveinfo.css b/public/static/admin/default/css/design.saveinfo.css index 3c606df03..7cc91e308 100644 --- a/public/static/admin/default/css/design.saveinfo.css +++ b/public/static/admin/default/css/design.saveinfo.css @@ -1,3 +1,3 @@ form .am-form-popup-submit button { - width: 120px; + width: 12rem; } \ No newline at end of file diff --git a/public/static/admin/default/css/express.css b/public/static/admin/default/css/express.css index 3dbffee88..79b12d9ac 100755 --- a/public/static/admin/default/css/express.css +++ b/public/static/admin/default/css/express.css @@ -1,4 +1,4 @@ ul.plug-file-upload-view li { - width: 56px; - height: 56px; + width: 5.6rem; + height: 5.6rem; } \ No newline at end of file diff --git a/public/static/admin/default/css/goods.css b/public/static/admin/default/css/goods.css index af30b48dc..83c5a3d5c 100755 --- a/public/static/admin/default/css/goods.css +++ b/public/static/admin/default/css/goods.css @@ -9,14 +9,16 @@ * 滚动导航 */ .goods-nav { - background:#f5f5f5; - top:100px; + background:#fbfbfb; + top:10rem; right:0; - width:80px; + width:8rem; position:fixed; z-index:10001; - border:1px solid #eee; + border:0.1rem solid #f2f2f2; border-right:0px; + border-top-left-radius: var(--border-radius); + border-bottom-left-radius: var(--border-radius); } .goods-nav ul { margin:0; @@ -24,7 +26,7 @@ } .goods-nav li { display:inline-block; - border-bottom:1px solid #eee; + border-bottom:0.1rem solid #f2f2f2; width:100%; } .goods-nav li:last-child { @@ -32,16 +34,16 @@ } .goods-nav li a { color:#666; - padding:10px 15px; + padding:1rem 1.5rem; display:inline-block; width:100%; } .goods-nav li a:hover,.goods-nav-active { - color:#333; - background:#eee; + color: #333 !important; + background: #f2f2f2; } .goods-nav li.nav-shrink-submit { - background: #dadada; + background: #efefef; cursor: pointer; } .goods-nav-retract .nav-shrink-submit { @@ -52,12 +54,12 @@ * 区域分割 */ .division-block { - margin-bottom:30px; + margin-bottom:3rem; } .division-block .nav-detail-title { - border-bottom:3px ridge #c7c7c7; - padding:8px 5px 5px 5px; - margin-bottom:10px; + border-bottom:0.3rem ridge #c7c7c7; + padding:0.8rem 0.5rem 0.5rem 0.5rem; + margin-bottom:1rem; background:#f3f3f3; font-weight:bold; } @@ -66,7 +68,7 @@ * 规格 */ .specifications-table .title-nav th input { - width: calc(100% - 25px); + width: calc(100% - 2.5rem); } .specifications-table .title-nav-remove { position: absolute; @@ -74,32 +76,34 @@ right: 0px; } .specifications-table th { - min-width: 100px; + min-width: 10rem; } .specifications-table th.operation-btn { - min-width: 150px; + min-width: 15rem; } .specifications-table th.extend-btn { - min-width: 45px; + min-width: 4.5rem; } #goods-nav-operations { position: relative; } .spec-images-list .am-alert-warning { - margin-bottom: 10px; + margin-bottom: 1rem; } .spec-images-list { - border: 1px solid #eee; - padding: 10px; - margin-top: 15px; + border: 0.1rem solid #eee; + padding: 1rem; + margin-top: 1.5rem; + border-radius: var(--border-radius); } .spec-images-list li { display: inline-block; - width: 100px; - margin: 5px 10px 10px 0; + width: 10rem; + margin: 0.5rem 1rem 1rem 0; } .specifications-container { - border: 1px solid #ddd; + border: 0.1rem solid #eee; + border-radius: var(--border-radius); } .specifications-table { border: 0; @@ -112,8 +116,8 @@ cursor: pointer; } .specifications-line-images-auto-add input { - width: 30px !important; - padding: 1px !important; + width: 3rem !important; + padding: 0.1rem !important; } .specifications-table thead tr > th:nth-last-child(-n+2), .specifications-table tbody tr > td:nth-last-child(-n+2) { @@ -128,20 +132,20 @@ } .specifications-table thead tr > th:nth-last-child(2), .specifications-table tbody tr > td:nth-last-child(2) { - right: 150px; - -webkit-box-shadow: 0px 0px 1px #ddd; - -moz-box-shadow: 0px 0px 1px #ddd; - box-shadow: 0px 0px 1px #ddd; - -webkit-box-shadow: -5px 0px 10px rgba(136, 136, 136, 0.3); - -moz-box-shadow: -5px 0px 10px rgba(136, 136, 136, 0.3); - box-shadow: -5px 0px 10px rgba(136, 136, 136, 0.3); + right: 15rem; + -webkit-box-shadow: 0px 0px 0.1rem #ddd; + -moz-box-shadow: 0px 0px 0.1rem #ddd; + box-shadow: 0px 0px 0.1rem #ddd; + -webkit-box-shadow: -0.5rem 0px 1rem rgba(136, 136, 136, 0.3); + -moz-box-shadow: -0.5rem 0px 1rem rgba(136, 136, 136, 0.3); + box-shadow: -0.5rem 0px 1rem rgba(136, 136, 136, 0.3); } /** * app详情 */ i.drag-sort-submit { - margin-left:30px; + margin-left:3rem; } ul { margin:0px; @@ -149,8 +153,8 @@ ul { overflow:hidden; } .content-app-items > li { - border:1px dashed #eee; - padding:10px; + border:0.1rem dashed #eee; + padding:1rem; } ul li { list-style-type:none; @@ -163,15 +167,15 @@ ul li { border-bottom:0 !important; } .content-app-items li { - padding-bottom:10px; - margin-bottom:20px; + padding-bottom:1rem; + margin-bottom:2rem; overflow:hidden; } .content-app-left,.content-app-right { width:45% !important; display:inline-table; - margin-bottom:5px; - padding-right:5px !important; + margin-bottom:0.5rem; + padding-right:0.5rem !important; } /** @@ -182,10 +186,10 @@ ul li { position: relative; } .spec-quick table td.am-text-middle { - padding-right: 25px; + padding-right: 2.5rem; } .spec-quick-td-value .value-item input { - width: calc(100% - 23px) !important; + width: calc(100% - 2.3rem) !important; } .spec-quick table td.am-text-middle i.quick-title-remove, .spec-quick table td.spec-quick-td-value i.quick-value-remove { @@ -195,7 +199,7 @@ ul li { z-index: 2; } .spec-quick table td.spec-quick-td-value i.quick-value-remove { - top: 2px; + top: 0.2rem; } .spec-quick .goods-specifications { border-bottom: 0; @@ -204,23 +208,23 @@ ul li { @media only screen and (min-width: 641px) { .spec-quick-th-title { - width: 150px; + width: 15rem; } .spec-quick-td-value .value-item { - width: calc(30% - 12px) !important; + width: calc(30% - 1.2rem) !important; } } @media only screen and (min-width: 1025px) { .spec-quick-td-value .value-item { - width: calc(20% - 12px) !important; + width: calc(20% - 1.2rem) !important; } } -@media only screen and (max-width: 641px) { +@media only screen and (max-width: 640px) { .spec-quick-th-title { width: 20%; } .spec-quick-td-value .value-item { - width: calc(50% - 12px) !important; + width: calc(50% - 1.2rem) !important; } } @@ -231,7 +235,7 @@ ul li { padding: 0; } #specifications-quick-container .chosen-container { - min-width: 120px; + min-width: 12rem; } #specifications-quick-container select { border: 0px; @@ -241,13 +245,13 @@ ul li { border-color: transparent !important; -webkit-box-shadow: none !important; box-shadow: none !important; - height: 29px; - line-height: 29px; + height: 2.9rem; + line-height: 2.9rem; } #specifications-quick-container .chosen-container .chosen-drop { border-style: dashed; - left: -1px; - width: calc(100% + 2px); + left: -0.1rem; + width: calc(100% + 0.2rem); } #specifications-quick-container:hover .chosen-container .chosen-drop { border-color: #666 !important; diff --git a/public/static/admin/default/css/goodscomments.css b/public/static/admin/default/css/goodscomments.css index 369b361f9..357497b06 100644 --- a/public/static/admin/default/css/goodscomments.css +++ b/public/static/admin/default/css/goodscomments.css @@ -2,15 +2,8 @@ * 列表 */ .content-right table.am-table .reply-content, -.content-right table.am-table .images-slider img { - max-height: 58px; -} -.content-right table.am-table .images-slider .am-direction-nav .am-prev, -.content-right table.am-table .images-slider .am-direction-nav .am-next { - z-index: 1; -} -.content-right table.am-table .images-slider .am-slider-desc { - padding: 1px 5px; +.content-right table.am-table .am-gallery .am-gallery-item { + max-height: 4.5rem; } /** diff --git a/public/static/admin/default/css/iconfontmenu.css b/public/static/admin/default/css/iconfontmenu.css index 674a841d1..b4b68333f 100755 --- a/public/static/admin/default/css/iconfontmenu.css +++ b/public/static/admin/default/css/iconfontmenu.css @@ -9,7 +9,7 @@ .iconfont { font-family: "iconfont" !important; - font-size: 12px; + font-size: 1.2rem; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; diff --git a/public/static/admin/default/css/index.index.css b/public/static/admin/default/css/index.index.css index 34f6e39f0..720968441 100644 --- a/public/static/admin/default/css/index.index.css +++ b/public/static/admin/default/css/index.index.css @@ -15,7 +15,7 @@ } @media only screen and (min-width: 641px) { #ifcontent { - padding-left: 160px; + padding-left: 16rem; } } @@ -24,11 +24,11 @@ */ .menu-scaling-submit { position: fixed; - bottom: 15px; + bottom: 1.5rem; color: #f5f6f9; - font-size: 18px; - line-height: 18px; - left: 123.5px; + font-size: 1.8rem; + line-height: 1.8rem; + left: 12.35rem; } .menu-scaling-submit:hover, .menu-scaling-submit:focus { color: #fff; @@ -45,20 +45,20 @@ /** * mini小icon */ -.menu-mini-container-tips{position:absolute;left:63px;top:0;padding:0 10px;width:auto;height:35px;line-height:35px;text-align:center;color:#fff;background-color:#01bcd4;-webkit-box-shadow:0 0 5px rgba(0,0,0,.2);-moz-box-shadow:0 0 5px rgba(0,0,0,.2);box-shadow:0 0 5px rgba(0,0,0,.2);font-weight:700;display:none;z-index:1001;} -.menu-mini-container-tips span{font-size:12px} -.menu-mini-container-tips .mui-mbar-tab-tip,.menu-mini-container-popup .mui-mbar-tab-tip{position:absolute;width:16px;height:16px;line-height:16px;text-align:center;font-size:16px;font-family:"\5b8b\4f53";top:10px;left:-10px;z-index:0;color:#01bcd4;} +.menu-mini-container-tips{position:absolute;left:6.3rem;top:0;padding:0 1rem;width:auto;height:3.5rem;line-height:3.5rem;text-align:center;color:#fff;background-color:#01bcd4;-webkit-box-shadow:0 0 0.5rem rgba(0,0,0,.2);-moz-box-shadow:0 0 0.5rem rgba(0,0,0,.2);box-shadow:0 0 0.5rem rgba(0,0,0,.2);font-weight:700;display:none;z-index:1001;} +.menu-mini-container-tips span{font-size:1.2rem} +.menu-mini-container-tips .mui-mbar-tab-tip,.menu-mini-container-popup .mui-mbar-tab-tip{position:absolute;width:1.6rem;height:1.6rem;line-height:1.6rem;text-align:center;font-size:1.6rem;font-family:"\5b8b\4f53";top:1rem;left:-1rem;z-index:0;color:#01bcd4;} /** * mini子菜单 */ -.menu-mini-container-popup{background:#36373c;position:absolute;left:63px;top:0;min-width:120px;height:auto;display:none;z-index:1001;} +.menu-mini-container-popup{background:#36373c;position:absolute;left:6.3rem;top:0;min-width:12rem;height:auto;display:none;z-index:1001;} .menu-mini-container-popup ul{margin:0;padding:0} -.menu-mini-container-popup ul li{line-height:35px;list-style-type:none} -.menu-mini-container-popup ul li a{padding:0 10px;display:block;color:#fff} +.menu-mini-container-popup ul li{line-height:3.5rem;list-style-type:none} +.menu-mini-container-popup ul li a{padding:0 1rem;display:block;color:#fff} .menu-mini-container-popup ul li a:hover{background:rgba(118,119,120,0.1)} -.menu-mini-container-popup ul li a span{font-size:12px} -.menu-mini-container-popup ul li:not(:last-child){border-bottom:1px solid #2e2e31} +.menu-mini-container-popup ul li a span{font-size:1.2rem} +.menu-mini-container-popup ul li:not(:last-child){border-bottom:0.1rem solid #2e2e31} .menu-mini-container-popup .mui-mbar-tab-tip{color:#36373c} .menu-mini-container-popup ul li a.common-left-menu-active { background: #686868 !important; } @@ -66,27 +66,27 @@ * 导航打开页面列表 */ .header-menu-open-pages-list { - max-width: calc(100% - 750px); - margin-top: 4px; - margin-left: 20px; - height: 25px; + max-width: calc(100% - 75rem); + margin-top: 0.4rem; + margin-left: 2rem; + height: 2.5rem; scrollbar-width: none; } .header-menu-open-pages-list ul li { display: inline-block; - border: 1px solid #5291ff; - border-radius: 2px; - padding: 2px 10px; + border: 0.1rem solid #5291ff; + border-radius: 0.2rem; + padding: 0.2rem 1rem; cursor: pointer; } .header-menu-open-pages-list ul li:not(:last-child) { - margin-right: 10px; + margin-right: 1rem; } .header-menu-open-pages-list ul li span { color: #c1d8ff; } .header-menu-open-pages-list ul li a { - margin-left: 3px; + margin-left: 0.3rem; color: #91b9ff; } .header-menu-open-pages-list ul li:hover { @@ -117,39 +117,39 @@ } .window-layer-tab-bar { background: #f5f5f5; - height: 35px; - line-height: 35px; + height: 3.5rem; + line-height: 3.5rem; cursor: move; text-align: left; font-weight: bold; - padding: 0 5px 0 10px; + padding: 0 0.5rem 0 1rem; display: none; } .window-layer-alone-layer { - width: 800px; - height: 500px; - box-shadow: rgb(0 0 0 / 30%) 1px 1px 24px; - border: 1px solid #4386fb; + width: 80rem; + height: 50rem; + box-shadow: rgb(0 0 0 / 30%) 0.1rem 0.1rem 2.4rem; + border: 0.1rem solid #4386fb; } .window-layer-alone-layer .window-layer-tab-bar { display: block; } .window-layer-alone-layer iframe { - height: calc(100% - 35px); + height: calc(100% - 3.5rem); } .window-layer-alone-layer .window-layer-tab-bar .am-fr span { color: #a6a6a6; cursor: pointer; - font-size: 14px; - padding: 2px 8px; + font-size: 1.4rem; + padding: 0.2rem 0.8rem; line-height: 0; } .window-layer-seat { position: absolute; - top: 35px; + top: 3.5rem; left: 0; width: 100%; - height: calc(100% - 35px); + height: calc(100% - 3.5rem); background: transparent; display: none; } @@ -176,9 +176,9 @@ } .window-layer-resize-item-left, .window-layer-resize-item-right { - width: 6px; - top: 6px; - bottom: 6px; + width: 0.6rem; + top: 0.6rem; + bottom: 0.6rem; } .window-layer-resize-item-top { top: 0; @@ -190,9 +190,9 @@ } .window-layer-resize-item-bottom, .window-layer-resize-item-top { - height: 6px; - left: 6px; - right: 6px; + height: 0.6rem; + left: 0.6rem; + right: 0.6rem; } .window-layer-resize-item-left-top { left: 0; @@ -218,8 +218,8 @@ .window-layer-resize-item-left-top, .window-layer-resize-item-right-bottom, .window-layer-resize-item-right-top { - width: 6px; - height: 6px; + width: 0.6rem; + height: 0.6rem; } @media only screen and (min-width: 641px) { .window-layer-alone-layer .window-layer-tab-bar .am-fr span:hover { diff --git a/public/static/admin/default/css/index.init.css b/public/static/admin/default/css/index.init.css index 928372e58..3aedca442 100755 --- a/public/static/admin/default/css/index.init.css +++ b/public/static/admin/default/css/index.init.css @@ -8,37 +8,37 @@ html, body { .block-container, .block-combination-container-2 li { width: 100%; background: #fff !important; - padding: 10px; - border: 1px solid #eee; - border-radius: 3px; + padding: 1rem; + border: 0.1rem solid #eee; + border-radius: 0.3rem; overflow: hidden;; } .block-container, .block-combination-container-2 li { position: relative; } .block-container { - margin-bottom: 20px; + margin-bottom: 2rem; } .block-container .block-title, .block-combination-container-2 li .block-title { - margin-left: 10px; + margin-left: 1rem; } .block-container .block-title .icon, .block-combination-container-2 li .block-title .icon { background: #3f82fe; display: block; - width: 5px; - height: 16px; + width: 0.5rem; + height: 1.6rem; position: absolute; - left: 10px; - top: 13px; + left: 1rem; + top: 1.3rem; } .block-container .block-title .title, .block-combination-container-2 li .block-title .title { color: #666; - font-size: 14px; - margin-left: 5px; + font-size: 1.4rem; + margin-left: 0.5rem; } .right-operate .quick-time a { - margin-right: 8px; + margin-right: 0.8rem; color: #bde2f4; } .right-operate .quick-time a:hover { @@ -46,7 +46,7 @@ html, body { } .right-operate .echarts-where input { display: -webkit-inline-box !important; - width: 155px !important; + width: 15.5rem !important; border-color: #eee; color: #888; } @@ -64,10 +64,10 @@ html, body { color: #ccc; } .block-container .echarts-title{ - height: 46px; + height: 4.6rem; } .block-combination-container-2 li .echarts-title { - height: 100px; + height: 10rem; } .block-combination-container-2 .right-operate { float: none; @@ -75,25 +75,25 @@ html, body { .block-combination-container-2 .right-operate .quick-time, .block-combination-container-2 .right-operate .echarts-where { display: block; - margin-top: 5px; + margin-top: 0.5rem; } .block-combination-container-2 .right-operate .quick-time { - margin-top: 10px; + margin-top: 1rem; } .block-combination-container-2 .right-operate .echarts-where input { - width: calc(50% - 46px) !important; + width: calc(50% - 4.6rem) !important; } .block-container .am-dropdown .am-selected-btn { padding: 0.3em 1em 0.3em 0.3em; - border-radius: 3px; - margin-left: 5px; + border-radius: 0.3rem; + margin-left: 0.5rem; } @media only screen and (min-width: 641px) { .block-combination-container-2 { - margin-bottom: 20px; + margin-bottom: 2rem; } .block-combination-container-2 li { - width: calc(50% - 10px); + width: calc(50% - 1rem); } .block-combination-container-2 li:nth-child(1) { float: left; @@ -106,14 +106,14 @@ html, body { right: 0; } } -@media only screen and (max-width: 641px) { +@media only screen and (max-width: 640px) { .block-combination-container-2 li { - margin-bottom: 20px; + margin-bottom: 2rem; } } @media only screen and (max-width: 1000px) { .block-container .echarts-title { - height: 100px; + height: 10rem; } .right-operate { float: none; @@ -121,13 +121,13 @@ html, body { .right-operate .quick-time, .right-operate .echarts-where { display: block; - margin-top: 5px; + margin-top: 0.5rem; } .right-operate .quick-time { - margin-top: 10px; + margin-top: 1rem; } .right-operate .echarts-where input { - width: calc(50% - 46px) !important; + width: calc(50% - 4.6rem) !important; } } @@ -136,11 +136,11 @@ html, body { * 基础数据 */ .shopxo-base li { - padding: 20px; + padding: 2rem; } .shopxo-base li .li-content { - padding: 10px; - border-radius: 3px; + padding: 1rem; + border-radius: 0.3rem; background: #00BCD4; position: relative; } @@ -157,15 +157,15 @@ html, body { background: #9c40ac; } .shopxo-base li .name { - font-size: 14px; + font-size: 1.4rem; font-weight: 700; margin: 0; color: #fff; } .shopxo-base li .li-content .total { - margin: 0 0 5px 0; + margin: 0 0 0.5rem 0; color: #fff; - font-size: 26px; + font-size: 2.6rem; font-weight: 700; } .shopxo-base li .li-content p, .shopxo-base li .li-content .item { @@ -176,18 +176,18 @@ html, body { } .shopxo-base li .li-content .item { color: #f0f0f0; - font-size: 12px; + font-size: 1.2rem; } .shopxo-base li .li-content .bg-icon { - font-size: 36px; + font-size: 3.6rem; position: absolute; - top: calc(50% - 45px); - right: 10px; + top: calc(50% - 4.5rem); + right: 1rem; color: rgba(255, 255, 255, 0.12); } -@media only screen and (max-width: 641px) { +@media only screen and (max-width: 640px) { .shopxo-base li { - padding: 10px 5px; + padding: 1rem 0.5rem; } .shopxo-base ul.am-avg-lg-4 li:nth-child(3), .shopxo-base ul.am-avg-lg-4 li:nth-child(4) { @@ -203,19 +203,19 @@ html, body { #echarts-goods-hot, #echarts-pay-type, #echarts-map-whole-country { - margin-top: 10px; - height: 400px; + margin-top: 1rem; + height: 40rem; } /** * 系统信息 */ .dl-content { - margin: 10px 0 0 0; + margin: 1rem 0 0 0; } .dl-content dt, .dl-content dd { - line-height: 22px; - min-height: 30px; + line-height: 2.2rem; + min-height: 3rem; } .dl-content dd:last-child { border-bottom: 0; @@ -225,11 +225,11 @@ html, body { * 顶部基础 */ .base-content-top { - margin-bottom: 10px; + margin-bottom: 1rem; } .base-content-top .vip { - border-radius: 2px; - padding: 0 6px; + border-radius: 0.2rem; + padding: 0 0.6rem; background: #e1e1e1; color: #666; } @@ -243,20 +243,20 @@ html, body { .inspect-upgrade-submit i { background: #f00; display: inline-block; - padding: 3px; + padding: 0.3rem; vertical-align: super; - margin-left: 2px; - border-radius: 15px; + margin-left: 0.2rem; + border-radius: 1.5rem; } -@media only screen and (max-width: 641px) { +@media only screen and (max-width: 640px) { .base-content-top .left-content, .base-content-top .right-content { width: 100%; } .base-content-top .right-content { - margin-top: 10px; - border-top: 1px dashed #eee; - padding-top: 10px; + margin-top: 1rem; + border-top: 0.1rem dashed #eee; + padding-top: 1rem; } .base-content-top .left-content .ad-content, .base-content-top .right-content .right-base { @@ -268,32 +268,32 @@ html, body { * 更新信息展示 */ #inspect-upgrade-popup .am-popup-bd { - padding-bottom: 50px; + padding-bottom: 5rem; overflow: auto; } #inspect-upgrade-popup .upgrade-title span { font-weight: bold; - font-size: 16px; - line-height: 16px; + font-size: 1.6rem; + line-height: 1.6rem; } #inspect-upgrade-popup .upgrade-title * { vertical-align: middle; } #inspect-upgrade-popup .upgrade-content-item ul li { - line-height: 26px; - min-height: 26px; + line-height: 2.6rem; + min-height: 2.6rem; } #inspect-upgrade-popup .upgrade-bottom { position: fixed; left: 0; bottom: 0px; width: 100%; - height: 70px; - padding: 0 25px; + height: 7rem; + padding: 0 2.5rem; } #inspect-upgrade-popup .upgrade-bottom-content { background: #fff; - padding: 10px 20px 0 0; - height: 50px; - border-top: 1px solid #ececec; + padding: 1rem 2rem 0 0; + height: 5rem; + border-top: 0.1rem solid #ececec; } \ No newline at end of file diff --git a/public/static/admin/default/css/order.css b/public/static/admin/default/css/order.css index d0a8df9f6..70287a2a6 100644 --- a/public/static/admin/default/css/order.css +++ b/public/static/admin/default/css/order.css @@ -5,15 +5,15 @@ margin-top: 0 !important; } .fictitious-container li .am-u-sm-2 { - width: 60px; + width: 6rem; padding: 0; } .fictitious-container li .am-u-sm-10 { - width: calc(100% - 60px); + width: calc(100% - 6rem); padding: 0; } .fictitious-container li img { - max-width: 40px; + max-width: 4rem; } .fictitious-container li { border-color: #eee; @@ -31,7 +31,7 @@ * 取货 */ .form-validation-take .common-scan-submit { - padding: 16px 5px; + padding: 1.6rem 0.5rem; left: 0 !important; top: 0 !important; } \ No newline at end of file diff --git a/public/static/admin/default/css/orderaftersale.css b/public/static/admin/default/css/orderaftersale.css index d1392c844..e69de29bb 100644 --- a/public/static/admin/default/css/orderaftersale.css +++ b/public/static/admin/default/css/orderaftersale.css @@ -1,5 +0,0 @@ -/** - * 商品列表 - */ -.goods-spec li { color: #888; line-height: 16px; } -.original-price { color: #9c9c9c; text-decoration: line-through; } \ No newline at end of file diff --git a/public/static/admin/default/css/payrequestlog.css b/public/static/admin/default/css/payrequestlog.css index 2252a32bd..b91a8a972 100644 --- a/public/static/admin/default/css/payrequestlog.css +++ b/public/static/admin/default/css/payrequestlog.css @@ -1,3 +1,3 @@ .pre-container { - height: 130px; + height: 13rem; } \ No newline at end of file diff --git a/public/static/admin/default/css/pluginsadmin.css b/public/static/admin/default/css/pluginsadmin.css index 623492c5e..a51db6900 100755 --- a/public/static/admin/default/css/pluginsadmin.css +++ b/public/static/admin/default/css/pluginsadmin.css @@ -6,54 +6,54 @@ } .plugins-data-list > ul { padding: 0px; - width: calc(100% + 20px); - margin-left: -10px; + width: calc(100% + 2rem); + margin-left: -1rem; } .plugins-data-list > ul > li { float: left; - padding: 10px; + padding: 1rem; } .plugins-data-list > ul > li .item { - height: 208px; - padding: 10px; + height: 20.8rem; + padding: 1rem; } .plugins-data-list > ul > li .icon { - width: 80px; - height: 80px; - border-radius: 10px; - box-shadow: 0px 3px 6px 0px rgba(0,0,0,.4); + width: 8rem; + height: 8rem; + border-radius: 1rem; + box-shadow: 0px 0.3rem 0.6rem 0px rgba(0,0,0,.4); } .plugins-data-list > ul .item { box-shadow: none; - border: 1px solid #f0f0f0; - border-radius: 2px; + border: 0.1rem solid #f0f0f0; + border-radius: 0.2rem; } .plugins-data-list > ul .item.am-active { - border: 1px solid #ffd3d3 !important; + border: 0.1rem solid #ffd3d3 !important; background: #fff8f8; } .plugins-data-list > ul .item:hover { - border: 1px solid #ddd; - box-shadow: 0px 12px 12px -10px rgba(0,0,0,.3); + border: 0.1rem solid #ddd; + box-shadow: 0px 1.2rem 1.2rem -1rem rgba(0,0,0,.3); } .plugins-data-list > ul > li { position: relative; } .plugins-data-list > ul > li .base { position: absolute; - top: 20px; - left: 110px; - width: calc(100% - 130px); + top: 2rem; + left: 11rem; + width: calc(100% - 13rem); } .plugins-data-list > ul > li .base h3 { font-weight: 700; color: #333; - margin: 2px 0px 3px 0px; + margin: 0.2rem 0px 0.3rem 0px; } .plugins-data-list > ul > li .base p { - line-height: 18px; + line-height: 1.8rem; margin: 0; - font-size: 12px; + font-size: 1.2rem; font-weight: 300; color: #999; } @@ -69,25 +69,25 @@ display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; - margin: 10px 0; - height: 36px; - line-height: 18px; + margin: 1rem 0; + height: 3.6rem; + line-height: 1.8rem; } .plugins-data-list > ul > li .operation { - border-top: 1px dashed #f6f6f6; - padding: 10px 0 5px 0; + border-top: 0.1rem dashed #f6f6f6; + padding: 1rem 0 0.5rem 0; } .plugins-data-list > ul > li .am-btn, .plugins-data-list > ul > li .am-icon-btn { - width: 35px; + width: 3.5rem; } .plugins-data-list > ul > li .submit-state { - height: 30px; - border-radius: 2px; - font-size: 12px; - line-height: 14px; + height: 2.84rem; + border-radius: 0.2rem; + font-size: 1.2rem; + line-height: 1.4rem; } .plugins-data-list > ul > li .submit-state.am-success { - border: 1px solid #4caf50; + border: 0.1rem solid #4caf50; background-color: #4caf50; color: #fff; } @@ -95,48 +95,48 @@ cursor: move !important; } .plugins-data-list > ul.already-install .item.am-active { - border: 1px solid #ffe0d7 !important; + border: 0.1rem solid #ffe0d7 !important; background: #fffefb; } .content .middle-divider { - height: 50px; + height: 5rem; position: relative; - padding-top: 25px; + padding-top: 2.5rem; } .content .middle-divider strong { position: absolute; - top: 4px; + top: 0.4rem; background: #fff; - padding: 4px 20px; - left: calc(50% - 83px); - border: 1px dashed #ccc; - border-radius: 2px; + padding: 0.4rem 2rem; + left: calc(50% - 8.3rem); + border: 0.1rem dashed #ccc; + border-radius: 0.2rem; } .content .middle-divider:hover > strong { - border: 1px dashed #2196F3; + border: 0.1rem dashed #2196F3; color: #2196F3; background: #eaf6ff; } .content .middle-divider:hover > hr { - border-top: 1px dashed #2196F3; + border-top: 0.1rem dashed #2196F3; } -@media only screen and (max-width: 641px) { +@media only screen and (max-width: 640px) { .plugins-data-list > ul > li .item { - height: 187px; + height: 18.7rem; } .plugins-data-list > ul > li .icon { - width: 65px; - height: 65px; + width: 6.5rem; + height: 6.5rem; } .plugins-data-list > ul > li .base { - left: 95px; - width: calc(100% - 115px); + left: 9.5rem; + width: calc(100% - 11.5rem); } .plugins-data-list > ul > li .base h3 { margin: 0px; } .plugins-data-list > ul > li .base p { - line-height: 16px; + line-height: 1.6rem; } } @@ -144,14 +144,14 @@ * 删除modal */ .am-modal-confirm .am-modal-dialog { - box-shadow: rgb(85 85 85 / 60%) 0px 0px 30px; + box-shadow: rgb(85 85 85 / 60%) 0px 0px 3rem; } @media only screen and (min-width: 641px) { .plugins-data-list > ul > li { width: 50%; } #plugins-delete-modal .am-modal-bd button.submit-ajax { - margin-right: 10px; + margin-right: 1rem; } } @media only screen and (min-width: 1025px) { @@ -159,14 +159,14 @@ width: 33.33%; } } -@media only screen and (max-width: 641px) { +@media only screen and (max-width: 640px) { .plugins-data-list > ul > li { width: 100%; } #plugins-delete-modal .am-modal-bd .am-btn { width: 100%; display: block; - margin-top: 10px; + margin-top: 1rem; } } @@ -174,28 +174,30 @@ * 搜索 */ .plugins-search { - width: 380px; + width: 38rem; position: absolute; - top: 32px; - right: 20px; + top: 2.5rem; + right: 1.5rem; z-index: 1; } @media only screen and (max-width: 800px) { .plugins-search { width: 100%; position: relative; - margin-top: 10px; + margin-top: 1rem; top: auto; right: auto; } } /** - * 分类选择 + * 右上角选择 */ -.plugins-data-list .plugins-category-item { +.plugins-data-list .plugins-right-top-container { position: absolute; - top: 20px; - right: 20px; - width: 120px; + top: 2rem; + right: 2rem; +} +.plugins-data-list .plugins-right-top-container .chosen-select-item { + width: 12rem; } \ No newline at end of file diff --git a/public/static/admin/default/css/power.css b/public/static/admin/default/css/power.css index 223f65cfc..0c94570b4 100644 --- a/public/static/admin/default/css/power.css +++ b/public/static/admin/default/css/power.css @@ -2,7 +2,7 @@ list-style-type: none; } .tree-list li .item-content { - border:1px dashed #ceecff; + border:0.1rem dashed #ceecff; background: #ddf2ff; } .tree-list li .stretch { diff --git a/public/static/admin/default/css/quicknav.css b/public/static/admin/default/css/quicknav.css index 9807b9268..6b45ce244 100644 --- a/public/static/admin/default/css/quicknav.css +++ b/public/static/admin/default/css/quicknav.css @@ -2,10 +2,10 @@ * 列表 */ .nav-icon-circle { - width: 50px; - height: 50px; + width: 5rem; + height: 5rem; text-align: center; - line-height: 50px; + line-height: 5rem; } table.am-table .nav-icon-circle { margin: 0 auto; diff --git a/public/static/admin/default/css/role.css b/public/static/admin/default/css/role.css index f82f2234d..10513eece 100755 --- a/public/static/admin/default/css/role.css +++ b/public/static/admin/default/css/role.css @@ -2,7 +2,7 @@ list-style-type: none; } .tree-list li .item-content { - border:1px dashed #ceecff; + border:0.1rem dashed #ceecff; background: #ddf2ff; } .tree-list li label, diff --git a/public/static/admin/default/css/site.css b/public/static/admin/default/css/site.css index 81e25ab1a..1f4f5dedd 100755 --- a/public/static/admin/default/css/site.css +++ b/public/static/admin/default/css/site.css @@ -3,25 +3,38 @@ */ ul.home_site_logo-images-view li, ul.home_site_logo_wap-images-view li { - width: 220px; - height: 60px; + width: 22rem; + height: 6rem; } /** - * 用户注册背景图 + * 用户注册背景图、用户登录背景图 */ -ul.home_site_user_register_bg_images-images-view li { - width: 300px; - height: 180px; +ul.home_site_user_register_bg_images-images-view li, +ul.home_site_user_login_ad1_images-images-view li, +ul.home_site_user_login_ad2_images-images-view li, +ul.home_site_user_login_ad3_images-images-view li { + width: 30rem; + height: 10rem; +} + +/** + * 密码找回背景图 + */ +ul.home_site_user_forgetpwd_ad1_images-images-view li, +ul.home_site_user_forgetpwd_ad2_images-images-view li, +ul.home_site_user_forgetpwd_ad3_images-images-view li { + width: 20rem; + height: 16rem; } /** * 地址添加/编辑 */ .address-list .address-logo { - width: 18px; - height: 18px; - margin-right: 2px; + width: 1.8rem; + height: 1.8rem; + margin-right: 0.2rem; vertical-align: text-top; } .address-list .edit-submit, @@ -37,17 +50,17 @@ ul.home_site_user_register_bg_images-images-view li { .address-list .edit-submit, .address-list .delete-submit { position: absolute; - top: 12px; - right: 5px; + top: 1.2rem; + right: 0.5rem; float: none !important; } .address-list .delete-submit { - right: 70px; + right: 7rem; } } /** - * 收到模式下商品列表容器 + * 手动模式下商品列表容器 */ .manual-mode-goods-container li { position: relative; @@ -56,7 +69,7 @@ ul.home_site_user_register_bg_images-images-view li { position: absolute; top: 0; right: 0; - padding: 8px 25px 8px 15px; + padding: 0.8rem 2.5rem 0.8rem 1.5rem; } /** @@ -69,7 +82,7 @@ ul.home_site_user_register_bg_images-images-view li { display: -webkit-inline-box; } .forth-selection-container .forth-selection-form-category, .forth-selection-container .chosen-container, .forth-selection-container .forth-selection-form-keywords { - width: calc(50% - 48px) !important; + width: calc(50% - 4.8rem) !important; } .forth-selection-container .chosen-container, .forth-selection-container .forth-selection-form-keywords { display: -webkit-inline-box !important; @@ -78,35 +91,35 @@ ul.home_site_user_register_bg_images-images-view li { width: 100%; } .forth-selection-container .search-submit { - width: 87px; + width: 8.7rem; } .goods-list-container { - height: calc(100% - 92px); - border: 1px solid #eee; + height: calc(100% - 9.2rem); + border: 0.1rem solid #eee; } .goods-list-container .am-gallery-bordered .am-gallery-title { - margin-top: 5px; + margin-top: 0.5rem; } .goods-list-container ul li { position: relative; cursor: pointer; } .goods-list-container ul li:hover .am-gallery-item { - -webkit-box-shadow: 0 0 6px #3cb4f1; - box-shadow: 0 0 6px #3cb4f1; + -webkit-box-shadow: 0 0 0.6rem #3cb4f1; + box-shadow: 0 0 0.6rem #3cb4f1; } .goods-list-container .icon-submit-container { position: absolute; - right: 15px; - bottom: 47px; + right: 1.5rem; + bottom: 4.7rem; } .goods-list-container .icon-submit-container .am-icon-btn { - width: 36px; - height: 36px; - line-height: 36px; - font-size: 20px; - -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.5); - box-shadow: 0 0 3px rgba(0, 0, 0, 0.5); + width: 3.6rem; + height: 3.6rem; + line-height: 3.6rem; + font-size: 2rem; + -webkit-box-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.5); + box-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.5); } .goods-list-container .am-icon-btn.am-success:hover { background: #4CAF50; @@ -115,5 +128,16 @@ ul.home_site_user_register_bg_images-images-view li { background: #F44336; } .goods-page-container { - height: 40px; + height: 4rem; } + +/** + * 域名对应语言 + */ +.domain-multilingual-list > ul li input.item-domain-input, +.domain-multilingual-list > ul li .item-multilingual-choice { + width: calc(50% - 4rem) !important; +} +.domain-multilingual-list.am-form-success [class*="icon-"] { + color: #fff; +} \ No newline at end of file diff --git a/public/static/admin/default/css/sqlconsole.css b/public/static/admin/default/css/sqlconsole.css new file mode 100644 index 000000000..eaf5f1820 --- /dev/null +++ b/public/static/admin/default/css/sqlconsole.css @@ -0,0 +1,3 @@ +form textarea { + height: calc(100vh - 30rem) !important; +} \ No newline at end of file diff --git a/public/static/admin/default/css/theme.css b/public/static/admin/default/css/theme.css index 5d81e704f..3f37a7e70 100755 --- a/public/static/admin/default/css/theme.css +++ b/public/static/admin/default/css/theme.css @@ -5,11 +5,11 @@ background: #e6e6e6; } .am-gallery-desc * { - font-size: 12px; + font-size: 1.2rem; } .am-gallery-item:hover { - border: 1px solid #f60; + border: 0.1rem solid #f60; } .theme-active { - border: 3px solid #5eb95e !important; + border: 0.3rem solid #5eb95e !important; } \ No newline at end of file diff --git a/public/static/admin/default/css/user.css b/public/static/admin/default/css/user.css index fbdfe65cd..ce4555caf 100755 --- a/public/static/admin/default/css/user.css +++ b/public/static/admin/default/css/user.css @@ -1,7 +1,7 @@ /** * 列表 */.content-right table.am-table .user-info img { - max-width: 75px; - max-height: 75px; - margin-right: 5px; + max-width: 7.5rem; + max-height: 7.5rem; + margin-right: 0.5rem; } \ No newline at end of file diff --git a/public/static/admin/default/css/useraddress.css b/public/static/admin/default/css/useraddress.css index 506e1acae..f84d4c97f 100644 --- a/public/static/admin/default/css/useraddress.css +++ b/public/static/admin/default/css/useraddress.css @@ -7,18 +7,18 @@ @media only screen and (min-width: 641px) { .user-address-idcard-images ul li, .user-address-idcard-images .plug-file-upload-submit { - width: 200px; + width: 20rem; } .user-address-idcard-images ul li { - height: 132px; + height: 13.2rem; } } -@media only screen and (max-width: 641px) { +@media only screen and (max-width: 640px) { .user-address-idcard-images ul li, .user-address-idcard-images .plug-file-upload-submit { - width: 128px; + width: 12.8rem; } .user-address-idcard-images ul li { - height: 85px; + height: 8.5rem; } } \ No newline at end of file diff --git a/public/static/admin/default/css/warehousegoods.css b/public/static/admin/default/css/warehousegoods.css index ba87332eb..7f77af572 100644 --- a/public/static/admin/default/css/warehousegoods.css +++ b/public/static/admin/default/css/warehousegoods.css @@ -8,7 +8,7 @@ display: -webkit-inline-box; } .forth-selection-container .forth-selection-form-category, .forth-selection-container .chosen-container, .forth-selection-container .forth-selection-form-keywords { - width: calc(33% - 32px) !important; + width: calc(33% - 3.2rem) !important; } .forth-selection-container .chosen-container, .forth-selection-container .forth-selection-form-keywords { display: -webkit-inline-box !important; @@ -17,35 +17,35 @@ width: 100%; } .forth-selection-container .search-submit { - width: 87px; + width: 8.7rem; } .goods-list-container { - height: calc(100% - 92px); - border: 1px solid #eee; + height: calc(100% - 9.2rem); + border: 0.1rem solid #eee; } .goods-list-container .am-gallery-bordered .am-gallery-title { - margin-top: 5px; + margin-top: 0.5rem; } .goods-list-container ul li { position: relative; cursor: pointer; } .goods-list-container ul li:hover .am-gallery-item { - -webkit-box-shadow: 0 0 6px #3cb4f1; - box-shadow: 0 0 6px #3cb4f1; + -webkit-box-shadow: 0 0 0.6rem #3cb4f1; + box-shadow: 0 0 0.6rem #3cb4f1; } .goods-list-container .icon-submit-container { position: absolute; - right: 15px; - bottom: 47px; + right: 1.5rem; + bottom: 4.7rem; } .goods-list-container .icon-submit-container .am-icon-btn { - width: 36px; - height: 36px; - line-height: 36px; - font-size: 20px; - -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.5); - box-shadow: 0 0 3px rgba(0, 0, 0, 0.5); + width: 3.6rem; + height: 3.6rem; + line-height: 3.6rem; + font-size: 2rem; + -webkit-box-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.5); + box-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.5); } .goods-list-container .am-icon-btn.am-success:hover { background: #4CAF50; @@ -54,22 +54,22 @@ background: #F44336; } .goods-page-container { - height: 40px; + height: 4rem; } /** * 数据列表规格展示 */ .spec-inventory-list { - max-height: 75px; + max-height: 7.5rem; height: auto; } .spec-inventory-list ul li .spec-name { - width: calc(100% - 75px); + width: calc(100% - 7.5rem); } .spec-inventory-list ul li:not(:last-child) { - border-bottom: 1px solid #eee; - padding: 3px 0; + border-bottom: 0.1rem solid #eee; + padding: 0.3rem 0; } .spec-inventory-list ul li:first-child { padding-top: 0; diff --git a/public/static/admin/default/css/warehousegoods.inventoryinfo.css b/public/static/admin/default/css/warehousegoods.inventoryinfo.css index b16ef41d8..c7049e80a 100644 --- a/public/static/admin/default/css/warehousegoods.inventoryinfo.css +++ b/public/static/admin/default/css/warehousegoods.inventoryinfo.css @@ -1,23 +1,6 @@ -/** - * 布局基础样式 - */ -.form-inventory-container { - padding-bottom: 80px; -} -.form-inventory-submit { - position: fixed; - left: 0; - bottom: 0; - width: 100%; - background: #fff; - height: 70px; - padding: 20px 10px; - border-top: 1px solid #eee; -} - /** * 批量设置库存 */ #inventory-dropdown .am-dropdown-content { - width: 200px; + width: 20rem; } \ No newline at end of file diff --git a/public/static/admin/default/js/admin.js b/public/static/admin/default/js/admin.js index 5a0124915..44a027331 100644 --- a/public/static/admin/default/js/admin.js +++ b/public/static/admin/default/js/admin.js @@ -36,10 +36,10 @@ $(function() var $obj = $(this).parent().parent().find('input'); if($obj.attr('type') == 'password') { - $(this).addClass('cr-green'); + $(this).removeClass('am-icon-eye').addClass('am-icon-eye-slash'); $obj.attr('type', 'text'); } else { - $(this).removeClass('cr-green'); + $(this).removeClass('am-icon-eye-slash').addClass('am-icon-eye'); $obj.attr('type', 'password'); } }); diff --git a/public/static/admin/default/js/common.js b/public/static/admin/default/js/common.js index 8b7732bcb..028ca2935 100644 --- a/public/static/admin/default/js/common.js +++ b/public/static/admin/default/js/common.js @@ -28,10 +28,10 @@ function ParametersItemHtmlCreated(type, name, value) html += ''; html += ''; html += ''; - html += ''; + html += ''; html += ''; html += ''; - html += ''; + html += ''; html += ''; html += ''; html += ''+$parameters_table.data('move-top-name')+' '; @@ -65,20 +65,13 @@ function FormTableHeightHandle() // 表格内容 if($('.am-table-scrollable-horizontal').length > 0) { - // 页面右侧总内容容器高度 - var height = $('.content-right .content-top').outerHeight(true) || 0; - $('.content-right').css('height', 'calc(100% - '+height+'px)'); - // 内容高度 - var height_top = $('.form-table-operate-top').outerHeight(true) || 0; - var height_bottom = $('.form-table-operate-bottom').outerHeight(true) || 0; - $('.am-table-scrollable-horizontal').css('height', 'calc(100% - '+(height_top+height_bottom)+'px)'); - } - // 表格内容外围高度 - if($('.form-validation-search').length > 0) - { - var height = $('.form-table-content .am-pagination').outerHeight(true) || 0; - $('.form-validation-search').css('height', 'calc(100% - '+height+'px)'); + var body_top = parseInt($('.content-right > .content').css('padding-top').replace('px', '') || 0); + var content_top = $('.form-table-content-top').outerHeight(true) || 0; + var operate_top = $('.form-table-operate-top').outerHeight(true) || 0; + var operate_bottom = $('.form-table-operate-bottom').outerHeight(true) || 0; + var page = $('.form-table-content .am-pagination').outerHeight(true) || 0; + $('.am-table-scrollable-horizontal').css('height', 'calc(100vh - '+(body_top+content_top+operate_top+operate_bottom+page)+'px)'); } } diff --git a/public/static/admin/default/js/customview.saveinfo.js b/public/static/admin/default/js/customview.saveinfo.js index 9f04c158f..a1d1203b2 100644 --- a/public/static/admin/default/js/customview.saveinfo.js +++ b/public/static/admin/default/js/customview.saveinfo.js @@ -12,6 +12,7 @@ $(function() // 保存数据 $('.page-save-submit').on('click', function() { + $(this).button('loading'); var $form = $('form.form-validation'); $form.attr('data-opt-type', 1); $form.attr('request-type', 'ajax-fun'); diff --git a/public/static/admin/default/js/goods.js b/public/static/admin/default/js/goods.js index 530cfc31b..c503e7e14 100755 --- a/public/static/admin/default/js/goods.js +++ b/public/static/admin/default/js/goods.js @@ -561,7 +561,7 @@ $(function() var html = ''; html += ''; html += '×'; - html += ''; + html += ''; html += ''; html += ''; html += '
'; @@ -578,7 +578,7 @@ $(function() { var index = $(this).data('index'); var html = '
'; - html += ''; + html += ''; html += '×'; html += '
'; $(this).parent().before(html); @@ -695,8 +695,8 @@ $(function() if($('#goods-fictitious-container').length > 0) { UE.getEditor('goods-fictitious-container', { - toolbars: [['source', 'undo', 'redo', 'bold', 'italic', 'underline', 'fontborder', 'strikethrough', '|', 'forecolor', 'backcolor', 'link', 'fontsize', 'insertorderedlist', 'insertunorderedlist']], - initialFrameHeight : 100 + toolbars: [['source', 'undo', 'redo', 'bold', 'italic', 'underline', 'fontborder', 'strikethrough', '|', 'forecolor', 'backcolor', 'link', 'fontsize', 'insertorderedlist', 'insertunorderedlist', '|', 'simpleupload', 'insertimage', 'insertvideo', 'attachment']], + initialFrameHeight : 200 }); } diff --git a/public/static/admin/default/js/navigation.js b/public/static/admin/default/js/navigation.js index a0e4b50f6..50c85836d 100755 --- a/public/static/admin/default/js/navigation.js +++ b/public/static/admin/default/js/navigation.js @@ -1,6 +1,7 @@ $(function() { // 表单初始化 + FromInit('form.form-validation-custom'); FromInit('form.form-validation-article'); FromInit('form.form-validation-customview'); FromInit('form.form-validation-goods_category'); diff --git a/public/static/admin/default/js/order.js b/public/static/admin/default/js/order.js index 145e6a95e..225478a80 100755 --- a/public/static/admin/default/js/order.js +++ b/public/static/admin/default/js/order.js @@ -37,7 +37,7 @@ $(function() // 支付操作 var $form_pay = $('form.form-validation-pay'); - $('.submit-pay').on('click', function() + $(document).on('click', '.submit-pay', function() { $form_pay.find('input[name=id]').val($(this).data('id')); var payment_id = parseInt($(this).data('payment-id') || 0); diff --git a/public/static/admin/default/js/pluginsadmin.js b/public/static/admin/default/js/pluginsadmin.js index 886412977..f51e401f7 100644 --- a/public/static/admin/default/js/pluginsadmin.js +++ b/public/static/admin/default/js/pluginsadmin.js @@ -79,7 +79,7 @@ $(function() $('.submit-move-setup-save').removeClass('am-hide'); $('.submit-move-setup-cancel').removeClass('am-hide'); $('.plugins-data-list > ul > li .submit-move').removeClass('am-hide'); - $('.plugins-data-list > ul > li .plugins-category-item').removeClass('am-hide'); + $('.plugins-data-list > ul > li .plugins-right-top-container').removeClass('am-hide'); }); $('.submit-move-setup-cancel').on('click', function() { @@ -87,7 +87,7 @@ $(function() $('.submit-move-setup-save').addClass('am-hide'); $('.submit-move-setup-cancel').addClass('am-hide'); $('.plugins-data-list > ul > li .submit-move').addClass('am-hide'); - $('.plugins-data-list > ul > li .plugins-category-item').addClass('am-hide'); + $('.plugins-data-list > ul > li .plugins-right-top-container').addClass('am-hide'); }); $('.submit-move-setup-save').on('click', function() { @@ -97,10 +97,12 @@ $(function() var id = parseInt($(this).data('id')) || 0; if(id > 0) { + var $right = $(this).find('.plugins-right-top-container'); json[k] = { sort: k, id: id, - cid: $(this).find('.plugins-category-item select').val() || 0 + category_id: $right.find('select[name="plugins_category_id"]').val() || 0, + menu_control: $right.find('select[name="plugins_menu_control"]').val() || '', }; } }); @@ -132,7 +134,7 @@ $(function() $('.submit-move-setup-save').addClass('am-hide'); $('.submit-move-setup-cancel').addClass('am-hide'); $('.plugins-data-list > ul > li .submit-move').addClass('am-hide'); - $('.plugins-data-list > ul > li .plugins-category-item').addClass('am-hide'); + $('.plugins-data-list > ul > li .plugins-right-top-container').addClass('am-hide'); Prompt(result.msg, 'success'); setTimeout(function() { diff --git a/public/static/admin/default/js/site.js b/public/static/admin/default/js/site.js index 793d8880b..fb5be02c9 100644 --- a/public/static/admin/default/js/site.js +++ b/public/static/admin/default/js/site.js @@ -307,4 +307,36 @@ $(function() } } }); + + // 添加域名 + $('.domain-submit-add').on('click', function() + { + var please_select_tip = $(this).data('please-select-tips') || '请选择...'; + var select_html = ''; + var json = $(this).data('json') || null; + if(json != null) + { + json = JSON.parse(CryptoJS.enc.Base64.parse(decodeURIComponent(json)).toString(CryptoJS.enc.Utf8)); + for(var i in json) + { + select_html += ''; + } + } + var form_name = $(this).data('form-name'); + var index = parseInt(Math.random()*1000001); + var html = `
  • + +
    + +
    + +
  • `; + $('.domain-multilingual-list > ul').append(html); + // 下拉选择组件初始化 + SelectChosenInit(); + }); }); \ No newline at end of file diff --git a/public/static/common/css/color/black.css b/public/static/common/css/color/black.css index 4870cd08e..6f4544ee5 100644 --- a/public/static/common/css/color/black.css +++ b/public/static/common/css/color/black.css @@ -20,7 +20,7 @@ pre, .am-table-bordered > thead > tr > td, .am-table-bordered > tbody > tr > td, .am-table-bordered > tfoot > tr > td { - border-left: 1px solid #232323; + border-left: 0.1rem solid #232323; } .am-table > thead > tr > th, .am-table > tbody > tr > th, @@ -33,14 +33,14 @@ pre, .form-table-fields-button-container, #inspect-upgrade-popup .upgrade-bottom-content, .form-inventory-submit { - border-top: 1px solid #232323; + border-top: 0.1rem solid #232323; } .am-table > thead > tr > td { - border-bottom: 1px solid #232323 !important; + border-bottom: 0.1rem solid #232323 !important; } .am-popup, .popup-not-title .am-popup-inner { - border: 1px solid #232323; + border: 0.1rem solid #232323; } .am-tagsinput, .data-list thead th { @@ -347,7 +347,7 @@ table.am-table .am-btn-default, } .chosen-container-multi .chosen-choices li.search-choice { color: #bababa; - border: 1px solid #888; + border: 0.1rem 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); @@ -386,7 +386,7 @@ table.am-table .am-btn-default, background: #171717; } .am-table-scrollable-horizontal { - border: 1px solid #232323; + border: 0.1rem solid #232323; } .am-pagination > li > a:hover, .am-pagination > li > span:hover, .am-pagination > li > a:focus, .am-pagination > li > span:focus { background-color: #5e5e5e; @@ -451,7 +451,7 @@ ul.am-dropdown-content > li > a, } .admin-multilingual-select, .common-nav-bar { - box-shadow: 0 0 10px 2px #444444; + box-shadow: 0 0 1rem 0.2rem #444444; } table.am-table .am-btn-default, table.am-table .am-btn-primary, @@ -506,7 +506,7 @@ form.am-form .am-form-group-refreshing:hover { .am-btn-default.am-active, .am-dropdown.am-active .am-btn-default.am-dropdown-toggle, button.colorpicker-submit:hover { - border: 1px solid #353535; + border: 0.1rem solid #353535; } button.colorpicker-submit:hover, .am-tagsinput .tag [data-role="remove"]:hover { @@ -637,26 +637,26 @@ header { } .common-prompt.am-alert-success { border-color: #3b592b; - box-shadow: 0 2px 4px #3b592b, 0 0 6px rgb(0 0 0 / 20%); + box-shadow: 0 0.2rem 0.4rem #3b592b, 0 0 0.6rem 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%); + box-shadow: 0 0.2rem 0.4rem #a48585, 0 0 0.6rem 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%); + box-shadow: 0 0.2rem 0.4rem #917968, 0 0 0.6rem rgb(0 0 0 / 20%); } .popup-not-title .am-close, .modal-dialog-not-title .am-close { background: #5d5d5d; color: #dfdfdf; - border: 3px solid #868686; + border: 0.3rem solid #868686; } .popup-not-title .am-close:hover, .modal-dialog-not-title .am-close:hover { background: #252525; - border: 3px solid #5a5a5a; + border: 0.3rem solid #5a5a5a; } .admin-login { background: rgba(0,0,0,.85); @@ -667,13 +667,13 @@ ul.plug-file-upload-view li { .admin-nav-bar, .index-multilingual-select { background-color: #212121; - box-shadow: 0 0 15px rgb(0 0 0 / 50%); + box-shadow: 0 0 1.5rem rgb(0 0 0 / 50%); } .am-icon-btn:hover, .am-icon-btn:focus { background-color: #494949; } #modal-plugins-multilingual-select-container .am-modal-bd ul { - border: 1px solid #2b2b2b; + border: 0.1rem solid #2b2b2b; } .data-avg-text-list, .data-avg-text-list li { border-color: #232323; @@ -690,8 +690,8 @@ ul.plug-file-upload-view li { * 打印模板 */ .hiprint-printPaper.design { - background: -webkit-linear-gradient(top, transparent 15px, #181818 15px, #181818 16px, transparent 16px, transparent 31px, #181818 31px, #181818 32px, transparent 32px, transparent 47px, #181818 47px, #181818 48px, transparent 48px, transparent 63px, #1c1c1c 63px, #1c1c1c 63px), -webkit-linear-gradient( left, transparent 15px, #181818 15px, #181818 16px, transparent 16px, transparent 31px, #181818 31px, #181818 32px, transparent 32px, transparent 47px, #181818 47px, #181818 48px, transparent 48px, transparent 63px, #1c1c1c 63px, #1c1c1c 63px); - background-size: 64px 64px; + background: -webkit-linear-gradient(top, transparent 1.5rem, #181818 1.5rem, #181818 1.6rem, transparent 1.6rem, transparent 3.1rem, #181818 3.1rem, #181818 3.2rem, transparent 3.2rem, transparent 4.7rem, #181818 4.7rem, #181818 4.8rem, transparent 4.8rem, transparent 6.3rem, #1c1c1c 6.3rem, #1c1c1c 6.3rem), -webkit-linear-gradient( left, transparent 1.5rem, #181818 1.5rem, #181818 1.6rem, transparent 1.6rem, transparent 3.1rem, #181818 3.1rem, #181818 3.2rem, transparent 3.2rem, transparent 4.7rem, #181818 4.7rem, #181818 4.8rem, transparent 4.8rem, transparent 6.3rem, #1c1c1c 6.3rem, #1c1c1c 6.3rem); + background-size: 6.4rem 6.4rem; background-repeat: repeat; } .right-option-setting { @@ -763,12 +763,12 @@ ul.plug-file-upload-view li { color: #888; } .admin-header { - -webkit-box-shadow: 0 1px 2px rgb(37 48 60 / 60%); - box-shadow: 0 1px 2px rgb(37 48 60 / 60%); + -webkit-box-shadow: 0 0.1rem 0.2rem rgb(37 48 60 / 60%); + box-shadow: 0 0.1rem 0.2rem rgb(37 48 60 / 60%); } .form-bottom-nav-fixed { background: #242424; - border-top: 1px solid #2b2b2b; + border-top: 0.1rem solid #2b2b2b; } .admin-sidebar-list li a { color: #676767; @@ -795,7 +795,7 @@ ul.plug-file-upload-view li { } .product-unit-table thead tr > th:last-child, .product-unit-table tbody tr > td:last-child { background: rgb(30 30 30); - box-shadow: rgb(136 136 136 / 10%) -5px 0px 8px; + box-shadow: rgb(136 136 136 / 10%) -0.5rem 0px 0.8rem; } .position-data-list { border-color: #292929; @@ -818,10 +818,10 @@ ul.plug-file-upload-view li { color: #c2c2c2; } .am-modal-dialog { - box-shadow: rgb(62 62 62 / 60%) 0px 0px 10px; + box-shadow: rgb(62 62 62 / 60%) 0px 0px 1rem; } #modal-unit-list .am-selected-list li:not(:last-child) { - border-bottom: 1px solid #222222; + border-bottom: 0.1rem solid #222222; } .table-bottom-item-right .auto-sales-deliver { border-color: #2f2f2f; @@ -843,7 +843,7 @@ ul.plug-file-upload-view li { background: #393939; } .window-layer-alone-layer { - border: 1px solid #363636; + border: 0.1rem solid #363636; } .window-layer-alone-layer .window-layer-tab-bar .am-fr span { color: #626262; @@ -861,7 +861,7 @@ ul.plug-file-upload-view li { background-color: #191919; } ::-webkit-scrollbar-track-piece { - border-top: 1px solid rgba(0,0,0,.01); + border-top: 0.1rem solid rgba(0,0,0,.01); } ::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb:vertical { diff --git a/public/static/common/css/common.css b/public/static/common/css/common.css index 98dabdd33..0e6bebf0b 100755 --- a/public/static/common/css/common.css +++ b/public/static/common/css/common.css @@ -1,31 +1,36 @@ /** * 公共 */ -*{ outline:none !important; } +* { outline:none !important; } ul { list-style: none; } +html input[disabled] { cursor: default !important; color: #b1b1b1 !important; background: #e6e6e6 !important; } +html { font-size: var(--html-body-size); } +body{ background: var(--body-bg-color); color: #333333; } .none { display:none !important; } .block { display:block !important; } -.vertical-middle { vertical-align: middle !important; } .text-deco-none { text-decoration: none !important; } .text-deco-line { text-decoration: underline !important; } -html input[disabled] { cursor: default !important; color: #b1b1b1 !important; background: #e6e6e6 !important; } - /** * 表单组件 */ .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 { - line-height: 1.4; + line-height: 1.7rem; } /* 没数据 */ .table-no { text-align: center; - padding: 50px 0; - background: #FFF; - color: #b9b7b7; + padding: 5rem 0; + color: #999999; + min-height: 35rem; + margin-top: 2rem; + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; } .table-no > i { - font-size: 18px; + font-size: 1.8rem; color: #e8e8e8; display: block; } @@ -33,31 +38,31 @@ html input[disabled] { cursor: default !important; color: #b1b1b1 !important; ba /* 公共dl样式 */ .dl-content dt { float: left; - padding-left: 5px; + padding-left: 0.5rem; overflow: hidden; - width: 120px; + width: 12rem; } .dl-content dd { - padding-left: 120px; + padding-left: 12rem; } .dl-content dd:not(:last-child) { - border-bottom: 1px solid rgba(0,0,0,.03); + border-bottom: 0.1rem solid rgba(0,0,0,.02); } .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; + margin-top: 0; + line-height: 2rem; + min-height: 4rem; + padding-top: 1rem; + padding-bottom: 1rem; } .dl-content-dd-only dd { padding-left: 0; } .dl-content-dd-compact dd { - line-height: 25px; - min-height: 25px; + line-height: 2.5rem; + min-height: 2.5rem; padding: 0; } .dl-content dt:hover, .dl-content dd:hover, @@ -72,18 +77,18 @@ html input[disabled] { cursor: default !important; color: #b1b1b1 !important; ba border-style: solid; } .data-avg-text-list { - border-width: 1px 0 0 1px; + border-width: 0.1rem 0 0 0.1rem; } .data-avg-text-list li { - border-width: 0 1px 1px 0; - padding: 5px; - min-height: 67px; + border-width: 0 0.1rem 0.1rem 0; + padding: 0.5rem; + min-height: 6.7rem; } .data-avg-text-list li .data-avg-text-list-title { color: #b9b9b9; } .data-avg-text-list li .data-avg-text-list-content { - margin-top: 2px; + margin-top: 0.2rem; } .data-avg-text-list li:hover .data-avg-text-list-content { color: #000; @@ -92,27 +97,49 @@ html input[disabled] { cursor: default !important; color: #b1b1b1 !important; ba /** * 表单优化 */ -.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 { - border: 1px solid #999; +input[type="number"] { + -moz-appearance: textfield; + appearance: textfield; +} +input[type="number"]::-webkit-inner-spin-button, +input[type="number"]::-webkit-outer-spin-button { + -webkit-appearance: none; + margin: 0; +} +select:hover, +textarea:hover, +input[type="text"]:hover, +input[type="password"]:hover, +input[type="datetime"]:hover, +input[type="datetime-local"]:hover, +input[type="date"]:hover, +input[type="month"]:hover, +input[type="time"]:hover, +input[type="week"]:hover, +input[type="number"]:hover, +input[type="email"]:hover, +input[type="url"]:hover, +input[type="search"]:hover, +input[type="tel"]:hover, +input[type="color"]:hover, +.chosen-choices:hover, +.chosen-single:hover,.am-tagsinput:hover, +button.colorpicker-submit:hover { + border-style:solid; border-width:0.1rem; + border-color:#4FACF5; + -webkit-box-shadow: 0 0 0.5rem #4FACF5; + box-shadow:0 0 0.5rem #4FACF5; } .am-form-group .am-tagsinput input { border: 0 !important; } .am-form-error .chosen-choices, .am-form-error .chosen-default { - border: 1px solid #dd514c !important; -} -.am-form-success .chosen-choices, .am-form-success .chosen-single { - border: 1px solid #5eb95e !important; + border: 0.1rem solid #dd514c !important; } form.am-form .am-form-group-label-tips, form.am-form .am-form-group-label-tips-must, form.am-form .am-form-group-label-tips-either { - font-size: 12px; + font-size: 1.2rem; font-weight: 400; - margin-left: 10px; + margin-left: 1rem; } form.am-form .am-form-group-label-tips { color: #ccc; @@ -124,33 +151,24 @@ form.am-form .am-form-group-label-tips-either { color: #ff9800; } .am-form-group:hover>label { - color: #333 !important; + color: #333; } .am-form-group:hover>label>.am-form-group-label-tips { - color: #FF9800 !important; + color: #FF9800; } form.am-form .am-form-group, .plug-file-upload-view, .business-form-group, .business-form-block { - border-bottom: 1px dashed #e2e2e2; - padding: 15px 20% 20px 5px; + padding: 1.5rem 20% 2rem 0.5rem; margin-bottom: 0; } -.plug-file-upload-view, -form.am-form .am-form-group-refreshing, -form.am-form-pure .am-form-group, -form.am-form-pure .plug-file-upload-view, -form.am-form-pure .business-form-group, -form.am-form-pure .business-form-block { - border-bottom: 0 !important; -} @media only screen and (min-width: 641px) { form.am-form-full-screen .am-form-group, form.am-form-full-screen .plug-file-upload-view, form.am-form-full-screen .business-form-group, form.am-form-full-screen .business-form-block { - padding-right: 5px; + padding-right: 0.5rem; } .form-group-item > [class*="am-u-"]:first-child > .am-form-group, .form-group-item > [class*="am-u-"]:first-child > .am-cf > .am-form-group, @@ -197,7 +215,7 @@ form.am-form .am-form-group.am-form-icon { } .am-form-horizontal .am-form-group-label-tips-must, .am-form-horizontal .am-form-group-label-tips-icon { - margin-left: 2px !important; + margin-left: 0.2rem !important; } .am-form-horizontal .am-form-horizontal-title { text-align: right; @@ -205,183 +223,183 @@ form.am-form .am-form-group.am-form-icon { .am-form-horizontal .am-form-horizontal-title, .am-form-horizontal-4 .am-form-horizontal-title { - width: 50px; + width: 7rem; } .am-form-horizontal .am-form-horizontal-content, .am-form-horizontal-4 .am-form-horizontal-content { - width: calc(100% - 55px); + width: calc(100% - 7.5rem); } .am-form-horizontal.tips-must .am-form-horizontal-content, .am-form-horizontal-4.tips-must .am-form-horizontal-content { - width: calc(100% - 70px); + width: calc(100% - 9rem); } .am-form-horizontal.tips-icon .am-form-horizontal-content, .am-form-horizontal-4.tips-icon .am-form-horizontal-content { - width: calc(100% - 73px); + width: calc(100% - 9.3rem); } .am-form-horizontal.tips-must.tips-icon .am-form-horizontal-content, .am-form-horizontal-4.tips-must.tips-icon .am-form-horizontal-content { - width: calc(100% - 85px); + width: calc(100% - 10.5rem); } .am-form-horizontal-2 .am-form-horizontal-title { - width: 25px; + width: 4.5rem; } .am-form-horizontal-2 .am-form-horizontal-content { - width: calc(100% - 30px); + width: calc(100% - 5rem); } .am-form-horizontal-2.tips-must .am-form-horizontal-content { - width: calc(100% - 45px); + width: calc(100% - 6.5rem); } .am-form-horizontal-2.tips-icon .am-form-horizontal-content { - width: calc(100% - 48px); + width: calc(100% - 6.8rem); } .am-form-horizontal-2.tips-must.tips-icon .am-form-horizontal-content { - width: calc(100% - 60px); + width: calc(100% - 8rem); } .am-form-horizontal-3 .am-form-horizontal-title { - width: 38px; + width: 5.8rem; } .am-form-horizontal-3 .am-form-horizontal-content { - width: calc(100% - 43px); + width: calc(100% - 6.3rem); } .am-form-horizontal-3.tips-must .am-form-horizontal-content { - width: calc(100% - 57px); + width: calc(100% - 7.7rem); } .am-form-horizontal-3.tips-icon .am-form-horizontal-content { - width: calc(100% - 60px); + width: calc(100% - 8rem); } .am-form-horizontal-3.tips-must.tips-icon .am-form-horizontal-content { - width: calc(100% - 73px); + width: calc(100% - 9.3rem); } .am-form-horizontal-5 .am-form-horizontal-title { - width: 62px; + width: 8.2rem; } .am-form-horizontal-5 .am-form-horizontal-content { - width: calc(100% - 67px); + width: calc(100% - 8.7rem); } .am-form-horizontal-5.tips-must .am-form-horizontal-content { - width: calc(100% - 82px); + width: calc(100% - 8.2rem); } .am-form-horizontal-5.tips-icon .am-form-horizontal-content { - width: calc(100% - 85px); + width: calc(100% - 10.5rem); } .am-form-horizontal-5.tips-must.tips-icon .am-form-horizontal-content { - width: calc(100% - 97px); + width: calc(100% - 11.7rem); } .am-form-horizontal-6 .am-form-horizontal-title { - width: 74px; + width: 9.4rem; } .am-form-horizontal-6 .am-form-horizontal-content { - width: calc(100% - 79px); + width: calc(100% - 9.9rem); } .am-form-horizontal-6.tips-must .am-form-horizontal-content { - width: calc(100% - 94px); + width: calc(100% - 11.4rem); } .am-form-horizontal-6.tips-icon .am-form-horizontal-content { - width: calc(100% - 97px); + width: calc(100% - 11.7rem); } .am-form-horizontal-6.tips-must.tips-icon .am-form-horizontal-content { - width: calc(100% - 109px); + width: calc(100% - 12.9rem); } .am-form-horizontal-7 .am-form-horizontal-title { - width: 86px; + width: 10.6rem; } .am-form-horizontal-7 .am-form-horizontal-content { - width: calc(100% - 91px); + width: calc(100% - 11.1rem); } .am-form-horizontal-7.tips-must .am-form-horizontal-content { - width: calc(100% - 106px); + width: calc(100% - 12.6rem); } .am-form-horizontal-7.tips-icon .am-form-horizontal-content { - width: calc(100% - 109px); + width: calc(100% - 12.9rem); } .am-form-horizontal-7.tips-must.tips-icon .am-form-horizontal-content { - width: calc(100% - 121px); + width: calc(100% - 14.1rem); } .am-form-horizontal-8 .am-form-horizontal-title { - width: 98px; + width: 11.8rem; } .am-form-horizontal-8 .am-form-horizontal-content { - width: calc(100% - 103px); + width: calc(100% - 12.3rem); } .am-form-horizontal-8.tips-must .am-form-horizontal-content { - width: calc(100% - 118px); + width: calc(100% - 13.8rem); } .am-form-horizontal-8.tips-icon .am-form-horizontal-content { - width: calc(100% - 121px); + width: calc(100% - 14.1rem); } .am-form-horizontal-8.tips-must.tips-icon .am-form-horizontal-content { - width: calc(100% - 133px); + width: calc(100% - 15.3rem); } .am-form-horizontal-9 .am-form-horizontal-title { - width: 110px; + width: 13rem; } .am-form-horizontal-9 .am-form-horizontal-content { - width: calc(100% - 115px); + width: calc(100% - 13.5rem); } .am-form-horizontal-9.tips-must .am-form-horizontal-content { - width: calc(100% - 130px); + width: calc(100% - 15rem); } .am-form-horizontal-9.tips-icon .am-form-horizontal-content { - width: calc(100% - 133px); + width: calc(100% - 15.3rem); } .am-form-horizontal-9.tips-must.tips-icon .am-form-horizontal-content { - width: calc(100% - 145px); + width: calc(100% - 16.5rem); } .am-form-horizontal-10 .am-form-horizontal-title { - width: 122px; + width: 14.2rem; } .am-form-horizontal-10 .am-form-horizontal-content { - width: calc(100% - 127px); + width: calc(100% - 14.7rem); } .am-form-horizontal-10.tips-must .am-form-horizontal-content { - width: calc(100% - 142px); + width: calc(100% - 16.2rem); } .am-form-horizontal-10.tips-icon .am-form-horizontal-content { - width: calc(100% - 145px); + width: calc(100% - 16.5rem); } .am-form-horizontal-10.tips-must.tips-icon .am-form-horizontal-content { - width: calc(100% - 157px); + width: calc(100% - 17.7rem); } .am-form-horizontal-11 .am-form-horizontal-title { - width: 134px; + width: 15.4rem; } .am-form-horizontal-11 .am-form-horizontal-content { - width: calc(100% - 139px); + width: calc(100% - 15.9rem); } .am-form-horizontal-11.tips-must .am-form-horizontal-content { - width: calc(100% - 154); + width: calc(100% - 17.4); } .am-form-horizontal-11.tips-icon .am-form-horizontal-content { - width: calc(100% - 157px); + width: calc(100% - 17.7rem); } .am-form-horizontal-11.tips-must.tips-icon .am-form-horizontal-content { - width: calc(100% - 169px); + width: calc(100% - 18.9rem); } .am-form-horizontal-12 .am-form-horizontal-title { - width: 146px; + width: 16.6rem; } .am-form-horizontal-12 .am-form-horizontal-content { - width: calc(100% - 151px); + width: calc(100% - 17.1rem); } .am-form-horizontal-12.tips-must .am-form-horizontal-content { - width: calc(100% - 166); + width: calc(100% - 18.6); } .am-form-horizontal-12.tips-icon .am-form-horizontal-content { - width: calc(100% - 169px); + width: calc(100% - 18.9rem); } .am-form-horizontal-12.tips-must.tips-icon .am-form-horizontal-content { - width: calc(100% - 181px); + width: calc(100% - 20.1rem); } /** @@ -402,37 +420,37 @@ form.am-form .am-form-group.am-form-icon { vertical-align: middle; } .am-form-horizontal-compose-2 .am-form-horizontal-item { - width: calc(50% - 2px); + width: calc(50% - 0.25rem); } .am-form-horizontal-compose-3 .am-form-horizontal-item { - width: calc(33.33% - 3px); + width: calc(33.33% - 0.33rem); } .am-form-horizontal-compose-4 .am-form-horizontal-item { - width: calc(25% - 3px); + width: calc(25% - 0.35rem); } .am-form-horizontal-compose-5 .am-form-horizontal-item { - width: calc(20% - 3.5px); + width: calc(20% - 0.39rem); } .am-form-horizontal-compose-6 .am-form-horizontal-item { - width: calc(16.66% - 3.5px); + width: calc(16.66% - 0.4rem); } .am-form-horizontal-compose-7 .am-form-horizontal-item { - width: calc(14.28% - 3.5px); + width: calc(14.28% - 0.41rem); } .am-form-horizontal-compose-8 .am-form-horizontal-item { - width: calc(12.5% - 3.5px); + width: calc(12.5% - 0.42rem); } .am-form-horizontal-compose-9 .am-form-horizontal-item { - width: calc(11.11% - 3.7px); + width: calc(11.11% - 0.43rem); } .am-form-horizontal-compose-10 .am-form-horizontal-item { - width: calc(10% - 3.7px); + width: calc(10% - 0.43rem); } .am-form-horizontal-compose-11 .am-form-horizontal-item { - width: calc(9.09% - 3.7px); + width: calc(9.09% - 0.43rem); } .am-form-horizontal-compose-12 .am-form-horizontal-item { - width: calc(8.33% - 3.7px); + width: calc(8.33% - 0.43rem); } @@ -440,40 +458,82 @@ form.am-form .am-form-group.am-form-icon { * 插件 */ .chosen-container { width: 100% !important; } -.am-tagsinput { display: block; padding: 3px 5px; border-radius: 2px; min-height: 31px; } -.chosen-choices, .chosen-single { border-radius: 2px; } +.am-tagsinput { display: block; padding: 0.3rem 0.5rem; border-radius: 0.2rem; min-height: 3.1rem; } +.chosen-choices, .chosen-single { border-radius: 0.2rem; } .chosen-choices li { overflow: hidden; } -.chosen-choices li.search-field input[type="text"] { height: 29px !important; } +.chosen-choices li.search-field input[type="text"] { height: 2.9rem !important; } .chosen-choices li.search-field input[type="text"]:hover, .am-tagsinput input[type="text"]:hover { box-shadow: 0 0 0 #fff !important; border: 0 !important; } .chosen-choices li.search-field input[type="text"]:focus, .am-tagsinput input[type="text"]:focus { border-color: #fff; -webkit-box-shadow: inset 0 0 0 0 !important; box-shadow: inset 0 0 0 0 !important; } -.chosen-choices { padding: 0px 3px !important; min-height: 31px; } -.chosen-container-single .chosen-single { height: 31px; line-height: 31px; } -.chosen-container-multi .chosen-choices li.search-field { padding-left: 3px; } +.chosen-choices { padding: 0 0.3rem !important; min-height: 3.1rem; } +.chosen-container-single .chosen-single { height: 3.1rem; line-height: 3.1rem; } +.chosen-container-multi .chosen-choices li.search-field { padding-left: 0.3rem; } .chosen-container-single .chosen-single { color: #444 !important; } .chosen-container-single .chosen-default { color: #999 !important; } .chosen-disabled .chosen-choices, .chosen-disabled .chosen-single { background-color: #ccc; } .chosen-disabled .search-choice { background: #d6d6d6 !important; } -.chosen-container-multi .chosen-choices li.search-choice {margin: 4px 4px 4px 0;} -.chosen-container-multi .chosen-choices li.search-choice .search-choice-close { top: 0; right: 0; padding: 2px; background: #f4f4f4; width: auto; height: auto;} +.chosen-container-multi .chosen-choices li.search-choice {margin: 0.4rem 0.4rem 0.4rem 0;} +.chosen-container-multi .chosen-choices li.search-choice .search-choice-close { top: 0; right: 0; padding: 0.2rem; background: #f4f4f4; width: auto; height: auto;} /** * 公共提示信息 */ -.common-prompt {position:fixed;top:20px;left:0;right:0;text-align:center;padding:10px 15px;font-size:14px;z-index:10000; border-radius: 2px; width: 260px; margin: 0 auto; word-break: break-all;} -.common-prompt.am-alert-danger { background-color: #fef0f0; border-color: #f9d4d4; color: #f56c6c; box-shadow: 0 2px 4px #fef0f0, 0 0 6px rgba(0, 0, 0, 0); } -.common-prompt.am-alert-warning { background-color: #ffe7d5; border-color: #fbceac; color: #f37b1d; box-shadow: 0 2px 4px #ffe7d5, 0 0 6px rgba(0, 0, 0, 0); } -.common-prompt.am-alert-success { background-color: #e3fbd6; border-color: #bbe8a3; color: #67c23a; box-shadow: 0 2px 4px #e3fbd6, 0 0 6px rgba(0, 0, 0, 0); } -.common-prompt .prompt-content { text-align: left; font-size: 12px; } -.common-prompt .prompt-msg {width: calc(100% - 50px);display: -webkit-inline-box;} +.common-prompt { + position:fixed; + top:2rem; + left:0; + right:0; + text-align:center; + padding:0.8rem 1.1rem; + font-size:1.4rem; + z-index:10000; + border-radius: 0.2rem; + width: 28rem; + margin: 0 auto; + word-break: break-all; +} +.common-prompt .am-close { + font-size: 1.8rem; +} +.common-prompt i{ + position: absolute; + left: 1rem; + top: 1rem; +} + +.common-prompt.am-alert-danger { + background-color: #FFEBE0; + border-color: #EB5E12; + color: #EB5E12; + /* box-shadow: 0 0.2rem 0.4rem #fef0f0, 0 0 0.6rem rgba(0, 0, 0, 0); */ +} +.common-prompt.am-alert-warning { + background-color: #FFF6E3; + border-color: #FAAD14; + color: #FAAD14; + /* box-shadow: 0 0.2rem 0.4rem #ffe7d5, 0 0 0.6rem rgba(0, 0, 0, 0); */ +} +.common-prompt.am-alert-success { + background: #E9FFF0; + border-color: #38b865; + color: #38B865; + /* box-shadow: 0 0.2rem 0.4rem #e3fbd6, 0 0 0.6rem rgba(0, 0, 0, 0); */ +} +.common-prompt .prompt-content { text-align: left; font-size: 1.2rem; } +.common-prompt .prompt-msg { + width: calc(100% - 5rem); + font-size: 1.4rem; + display: -webkit-inline-box; + padding-left: 2rem; +} /** * 默认地图宽高 */ #map { width: 100%; - height: 250px; + height: 25rem; } .map-popup #map { height: 100%; @@ -482,66 +542,50 @@ form.am-form .am-form-group.am-form-icon { /** * 弹窗 */ -.am-popup .am-popup-bd { - height: 100%; -} .popup-not-title { - padding: 25px; + padding: 2.5rem; background: transparent; } .popup-not-title .am-popup-inner { padding-top: 0; background: #fff; - border: 1px solid #e8e6e6; - -webkit-box-shadow: 0 0 30px rgba(0,0,0,0.4); - box-shadow: 0 0 30px rgba(0,0,0,0.4); + border: 0.1rem solid #e8e6e6; + -webkit-box-shadow: 0 0 3rem rgba(0,0,0,0.4); + box-shadow: 0 0 3rem rgba(0,0,0,0.4); } .popup-not-title .am-close, .modal-dialog-not-title .am-close { position: absolute; - right: 10px; - top: 10px; - -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.4); - -moz-box-shadow: 0 0 6px rgba(0, 0, 0, 0.4); - box-shadow: 0 0 6px rgba(0, 0, 0, 0.4); + right: 1rem; + top: 1rem; + -webkit-box-shadow: 0 0 0.6rem rgba(0, 0, 0, 0.4); + -moz-box-shadow: 0 0 0.6rem rgba(0, 0, 0, 0.4); + box-shadow: 0 0 0.6rem rgba(0, 0, 0, 0.4); opacity: 1; background: #767676; color: #fff; - border: 3px solid #f4f4f4; - width: 32px; - height: 32px; + border: 0.2rem solid #f4f4f4; + width: 3.2rem; + height: 3.2rem; z-index: 1; } .modal-dialog-not-title .am-close { - top: -15px; - right: -15px; + top: -1.5rem; + right: -1.5rem; } .popup-not-title .am-close:hover, .modal-dialog-not-title .am-close:hover { - background: #f22a30; -} -.am-popup-hd .am-close, -.am-modal-hd .am-close, -.am-popup-hd .am-full { - width: 26px; - height: 26px; - line-height: 26px; - color: #999; - text-align: center; -} -.am-popup-hd .am-close { - line-height: 24px; - opacity: 1; + background: #E22C08; } .am-popup-hd .am-close:hover, .am-modal-hd .am-close:hover { - color: #f22a30; + color: #E22C08; transform: none; } .am-popup-hd .am-full { position: absolute; - right: 40px; - top: 9px; + right: 4rem; + top: 0.9rem; cursor: pointer; } .am-popup-hd .am-full:hover { @@ -558,31 +602,33 @@ form.am-form .am-form-group.am-form-icon { .am-modal-dialog, .am-modal-dialog .am-modal-hd, .am-modal-dialog .am-modal-bd { - background: #fff; + background: transparent; } .am-modal-dialog { width: auto; - box-shadow: rgb(136 136 136 / 60%) 0px 0px 30px; + background: #FFFFFF; + box-shadow: rgb(136 136 136 / 60%) 0 0 3rem; + border-radius: 4px; } .am-modal-dialog .am-modal-bd span { vertical-align: middle; } @media only screen and (min-width:1200px) { .popup-full-max { - max-width: 1200px; - left: calc(50% - 600px); + max-width: 120rem; + left: calc(50% - 60rem); } } @media only screen and (min-width:1000px) { .popup-full-max-lg { - max-width: 1000px; - left: calc(50% - 500px); + max-width: 100rem; + left: calc(50% - 50rem); } } @media only screen and (min-width:800px) { .popup-full-max-md { - max-width: 800px; - left: calc(50% - 400px); + max-width: 80rem; + left: calc(50% - 40rem); } } @@ -591,7 +637,7 @@ form.am-form .am-form-group.am-form-icon { */ .am-offcanvas-popup .am-offcanvas-bar { max-width: 90%; - box-shadow: 0 0 10px rgb(0 0 0 / 10%); + box-shadow: 0 0 1rem rgb(0 0 0 / 10%); } .am-offcanvas-popup .am-offcanvas-bar:after { background: none; @@ -612,7 +658,7 @@ iframe { border: 0; } .am-popup .am-form-group, .am-modal .am-form-group, .business-form-block { - padding: 10px 5px !important; + padding: 1rem 0.5rem !important; } /** * 图标表单不加内边距 @@ -624,22 +670,18 @@ iframe { border: 0; } /** * H5 */ -@media only screen and (max-width: 641px) { +@media only screen and (max-width: 640px) { /* 地址联动 */ - .region-linkage select:not(:first-child) { margin-bottom: 5px; } + .region-linkage select:not(:first-child) { margin-bottom: 0.5rem; } /* 表单 */ - form.am-form .am-form-group, .plug-file-upload-view, .business-form-group, .business-form-block { padding: 5px; border-bottom: 0; } + form.am-form .am-form-group, .plug-file-upload-view, .business-form-group, .business-form-block { padding: 0.5rem; border-bottom: 0; } } /** * PC */ @media only screen and (min-width: 641px) { - /* 表单 */ - form.am-form .am-form-group:hover, .plug-file-upload-view:hover { background: #f6f9fc; } - form.am-form .am-form-group-refreshing:hover { background: none; } - /* 地址联动 */ .region-linkage select { width: 33%; display: -webkit-inline-box; } @@ -652,46 +694,50 @@ iframe { border: 0; } /** * 日期插件成对日期样式 */ -.twain-date input { width: calc(50% - 9px) !important; display: -webkit-inline-box !important; } +.twain-date input { width: calc(50% - 0.9rem) !important; display: -webkit-inline-box !important; } /** * 公共 */ .data-error-tips { text-align: center; } -.mini-tips-text { font-size: 12px; color: #999; } +.mini-tips-text { font-size: 1.2rem; color: #999; } .business-operations-submit { display: inline-block; - padding: 5px 10px; + padding: 0.5rem 1rem; color: #888; - border: 1px dashed #ccc; + border: 0.1rem dashed #ccc; background: #fff; cursor: pointer; vertical-align: middle; + border-radius: var(--border-radius); } .business-operations-submit:hover { color: #333; - border: 1px dashed #666; + border: 0.1rem dashed #666; } .submit-state { - font-size: 16px; - width: 25px; - height: 25px; - line-height: 25px; + font-size: 1.4rem; + width: 2.5rem; + height: 2.5rem; + line-height: 2.5rem; +} +.am-cursor-pointer { + cursor: pointer; } /** * 地图拖动提示 */ -.map-dragging-tips { margin:0px 6px 6px 0px; background-color:#FFF; box-shadow:0 1px 6px rgba(0,0,0,0.35); padding:3px 5px; border-radius: 3px; } -.map-dragging-tips span { font-size:12px; font-weight:700; color:#f99797; } +.map-dragging-tips { margin:0 0.6rem 0.6rem 0; background-color:#FFF; box-shadow:0 0.1rem 0.6rem rgba(0,0,0,0.35); padding:0.3rem 0.5rem; border-radius: 0.3rem; } +.map-dragging-tips span { font-size:1.2rem; font-weight:700; color:#f99797; } /** * 公共图片上传 */ -.am-form-file input[type="file"] { overflow:hidden; width: 90px !important; height: 28px; top: 0; } -.am-form-file input.original-images-url { display: -webkit-inline-box !important; width: calc(100% - 110px) !important; background: #f5f5f5 !important; float: right; } -.am-form-file i.original-images-url-delete { position: absolute; right: 3px; margin-top: 5px; cursor: pointer; background: #f5f5f5; padding: 0px 10px; } -.am-form-file input.original-images-url-delete { padding-right: 35px !important; } +.am-form-file input[type="file"] { overflow:hidden; width: 9rem !important; height: 2.8rem; top: 0; } +.am-form-file input.original-images-url { display: -webkit-inline-box !important; width: calc(100% - 11rem) !important; background: #f5f5f5 !important; float: right; } +.am-form-file i.original-images-url-delete { position: absolute; right: 0.3rem; margin-top: 0.5rem; cursor: pointer; background: #f5f5f5; padding: 0 1rem; } +.am-form-file input.original-images-url-delete { padding-right: 3.5rem !important; } /** @@ -699,14 +745,15 @@ iframe { border: 0; } */ .plug-file-upload-submit { display: inline-block; - padding: 8px 5px; + padding: 0.5rem; color: #70b2f3; - border: 1px dashed #70b2f3; + border: 0.1rem dashed #70b2f3; background: #fff; cursor: pointer; - min-width: 100px; + min-width: 10rem; text-align: center; vertical-align: middle; + border-radius: var(--border-radius); } .plug-file-upload-submit:hover { color: #36c; @@ -714,20 +761,21 @@ iframe { border: 0; } } ul.plug-file-upload-view { margin: 0; - padding: 5px 0; + padding: 0.5rem 0; overflow: hidden; - margin-bottom: 5px; + margin-bottom: 0.5rem; } ul.plug-file-upload-view li { list-style-type: none; float: left; - width: 100px; - height: 100px; - margin: 0 10px 3px 0; - padding: 5px; + width: 10rem; + height: 10rem; + margin: 0 1rem 0.3rem 0; + padding: 0.5rem; text-align: center; - border: 1px dashed #c2c2c2; + border: 0.1rem dashed #c2c2c2; position: relative; + border-radius: var(--border-radius); } ul.plug-file-upload-view li input { position: absolute; @@ -739,103 +787,108 @@ ul.plug-file-upload-view li img, ul.plug-file-upload-view-video li video { } ul.plug-file-upload-view li i { font-style: normal; - font-size: 18px; - width: 18px; - height: 18px; - line-height: 18px; + font-size: 1.8rem; + width: 1.8rem; + height: 1.8rem; + line-height: 1.8rem; color: #C30; text-align: center; position: absolute; - right: 5px; - top: 5px; + right: 0.5rem; + top: 0.5rem; cursor: pointer; - text-shadow: -2px 1px #fff; - padding-left: 5px; - line-height: 14px; + text-shadow: -0.2rem 0.1rem #fff; + padding-left: 0.5rem; + line-height: 1.4rem; } ul.plug-file-upload-view li:hover > i { color: #e90f0f; background: #d9d6d6; } ul.plug-file-upload-view-video li { - width: 300px; - height: 200px; + width: 30rem; + height: 20rem; } ul.plug-file-upload-view-file li { width: auto; height: auto; - padding-right: 28px; + padding-right: 2.8rem; +} +.plug-file-upload-view-sm ul.plug-file-upload-view li { + width: 7rem; + height: 7rem; +} +.plug-file-upload-view-sm .plug-file-upload-submit { + padding: 0.5rem 0.5rem; + min-width: 7rem; } - /** * 拖拽排序 */ -.drag-sort-dotted { border: 3px dashed #639BF6 !important; } +.drag-sort-dotted { border: 0.3rem dashed #639BF6 !important; } /** * 覆盖框架样式 */ .am-alert { - background: #f1faff; - border: 1px solid #e2f5ff; - color: #1490d2; + background: #ECF3FD; + border: 0.1rem solid #BAE0FF; + color: #333333; + padding: 0.7rem 1.2rem; + border-radius: var(--border-radius); } .am-alert-danger { background-color: #fff1f0; - border-color: #ffe4e3; + border: 1px solid #ffe4e3; color: #dd514c; } .am-alert-secondary { background-color: #f6f6f6; - border-color: #efefef; + border: 1px solid #efefef; color: #666; } .am-alert-success { background-color: #eef7ea; - border-color: #e3f3d6; + border: 1px solid #e3f3d6; color: #468847; } .am-alert-warning { background-color: #fff7f1; - border-color: #fff0e4; + border: 1px solid #fff0e4; color: #f37b1d; } .am-alert a { - color: #d2354c; -} -.am-alert-danger a { - color: #136ed9; + color: #0e90d2; } + .am-input-radius input.am-form-field { - border-bottom-left-radius: 2px; - border-top-left-radius: 2px; + border-bottom-left-radius: 0.2rem; + border-top-left-radius: 0.2rem; } .am-input-radius span.am-input-group-label { - border-bottom-right-radius: 2px; - border-top-right-radius: 2px; + border-bottom-right-radius: 0.2rem; + border-top-right-radius: 0.2rem; } .am-checkbox, .am-radio, .am-checkbox-inline, .am-radio-inline { - font-size: 12px; - padding-left: 18px; - min-width: 18px; - min-height: 18px; + padding-left: 1.8rem; + min-width: 1.8rem; + min-height: 1.8rem; } .am-ucheck-icons { - line-height: 18px; + line-height: 1.8rem; } .am-checkbox .am-icon-checked, .am-radio .am-icon-checked, .am-checkbox-inline .am-icon-checked, .am-radio-inline .am-icon-checked, .am-checkbox .am-icon-checked, .am-radio .am-icon-checked, .am-checkbox-inline .am-icon-checked, .am-radio-inline .am-icon-checked, .am-checkbox .am-icon-unchecked, .am-radio .am-icon-unchecked, .am-checkbox-inline .am-icon-unchecked, .am-radio-inline .am-icon-unchecked { - font-size: 16px; -} -.am-btn { - padding: 0.6em 1em; - font-size: 1.2rem; + font-size: 1.6rem; } .am-dropdown-content { - -webkit-box-shadow: 0px 2px 10px rgb(136 136 136 / 40%); - -moz-box-shadow: 0px 2px 10px rgb(136 136 136 / 0.4); - box-shadow: 0px 2px 10px rgb(136 136 136 / 40%); + -webkit-box-shadow: 0 0.2rem 1rem rgb(136 136 136 / 40%); + -moz-box-shadow: 0 0.2rem 1rem rgb(136 136 136 / 0.4); + box-shadow: 0 0.2rem 1rem rgb(136 136 136 / 40%); +} +.am-switch { + border-radius: var(--border-radius); } /** @@ -846,15 +899,17 @@ button.colorpicker-submit:hover, button.colorpicker-submit:active, button.colorp } button.colorpicker-submit:active { background-image: none; - -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.15); - box-shadow: inset 0 3px 5px rgba(255, 255, 255, 0.15); + -webkit-box-shadow: inset 0 0.3rem 0.5rem rgba(0, 0, 0, 0.15); + box-shadow: inset 0 0.3rem 0.5rem rgba(255, 255, 255, 0.15); } button.colorpicker-submit { - padding-right: 10px; + padding-right: 1rem; + height: 3.1rem; + border-radius: var(--border-radius); } button.colorpicker-submit img { - width: 14px; - height: 14px; + width: 1.4rem; + height: 1.4rem; float: right; } @@ -864,39 +919,39 @@ button.colorpicker-submit img { */ .form-search .thin { overflow:hidden; } .form-search .thin .so { width:66%; } -.form-search .thin_sub { font-weight:100; margin:10px 0px 0px 10px; cursor: pointer; } -.form-search .so-list { width:100%; margin-top: 10px; } +.form-search .thin_sub { font-weight:100; margin:1rem 0 0 1rem; cursor: pointer; } +.form-search .so-list { width:100%; margin-top: 1rem; } .form-search .so-list * { font-size:1.2rem !important; } -.form-search .so-list input { height:28px; display:inline !important; } +.form-search .so-list input { height:2.8rem; display:inline !important; } .form-search .time input, .form-search .so-list .chosen-container { background:#FFF !important; } -.form-search .time input, .form-search .price input { width:101px !important; } -.form-search .time i { position:absolute; margin:4px 0px 0px -15px; } +.form-search .time input, .form-search .price input { width:10.1rem !important; } +.form-search .time i { position:absolute; margin:0.4rem 0 0 -1.5rem; } .form-search .time { width:50%; } -.form-search .so-list tr+tr>td { padding-top:10px; } -.form-search .so-list .chosen-container { border-radius:2px; } +.form-search .so-list tr+tr>td { padding-top:1rem; } +.form-search .so-list .chosen-container { border-radius:0.2rem; } .form-search .text-grey { color: #999; } -.form-search .chosen-container-single .chosen-single, .form-search .so-list select { height: 28px; line-height: 28px; width: 100%; } -.form-search .reset-submit { margin-left: 20px; } -.form-search .so-list select { padding: 0 0 0 8px; } +.form-search .chosen-container-single .chosen-single, .form-search .so-list select { height: 2.8rem; line-height: 2.8rem; width: 100%; } +.form-search .reset-submit { margin-left: 2rem; } +.form-search .so-list select { padding: 0 0 0 0.8rem; } .form-search .more-submit input { display: none; } @media only screen and (min-width: 641px) { - .form-search .so-list .chosen-container, .form-search .so-list select, .form-search .input input { width:217px !important; display: -webkit-inline-box; } + .form-search .so-list .chosen-container, .form-search .so-list select, .form-search .input input { width:21.7rem !important; display: -webkit-inline-box; } .form-search .thin_sub:hover { color:#F60; } } -@media only screen and (max-width: 641px) { - .form-search .so-list input { width:calc(50% - 29px) !important; } +@media only screen and (max-width: 640px) { + .form-search .so-list input { width:calc(50% - 2.9rem) !important; } .form-search .so-list td { width:100%; display:block; } - .form-search .so-list tr td:last-child { margin-top:10px; } - .form-search .so-list tr td:last-child { padding-top:0px !important; } + .form-search .so-list tr td:last-child { margin-top:1rem; } + .form-search .so-list tr td:last-child { padding-top:0 !important; } .form-search .chosen-container-single .chosen-search input[type="text"] { width: 100% !important; } - .form-search .so-list select, .form-search .so-list .chosen-container, .form-search .input input { width: calc(100% - 44px) !important; display: -webkit-inline-box; } + .form-search .so-list select, .form-search .so-list .chosen-container, .form-search .input input { width: calc(100% - 4.4rem) !important; display: -webkit-inline-box; } } /** * 框架组件代码优化 */ .am-radio input[type="radio"], .am-radio-inline input[type="radio"], .am-checkbox input[type="checkbox"], .am-checkbox-inline input[type="checkbox"] { - margin: -3px; + margin: -0.3rem; } /** @@ -913,30 +968,30 @@ button.colorpicker-submit img { */ .plugins-tag { background: #333; - border: 3px solid #e90000; + border: 0.3rem solid #e90000; text-align: center; - width: 15px; - height: 15px; + width: 1.5rem; + height: 1.5rem; border-radius: 50%; cursor: pointer; display: -webkit-inline-box; } .plugins-tag, .plugins-tag span { - -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.8); - -moz-box-shadow: 0 0 8px rgba(0, 0, 0, 0.8); - box-shadow: 0 0 8px rgba(0, 0, 0, 0.8); + -webkit-box-shadow: 0 0 0.8rem rgba(0, 0, 0, 0.8); + -moz-box-shadow: 0 0 0.8rem rgba(0, 0, 0, 0.8); + box-shadow: 0 0 0.8rem rgba(0, 0, 0, 0.8); } .plugins-tag span { - font-size: 16px; + font-size: 1.6rem; font-weight: bold; color: #e90000; - text-shadow: 1px 1px #bfbfbf; + text-shadow: 0.1rem 0.1rem #bfbfbf; background: #ffdfdf; - padding: 2px 6px; - border-radius: 3px; - border: 1px solid #ffd4d4; + padding: 0.2rem 0.6rem; + border-radius: 0.3rem; + border: 0.1rem solid #ffd4d4; position: absolute; - margin: -12px 0 0 -5px; + margin: -1.2rem 0 0 -0.5rem; z-index: 2; display: none; } @@ -947,18 +1002,55 @@ button.colorpicker-submit img { /** * 两行、超出字符省略 */ -.am-text-truncate-2 { +.am-text-truncate-2-sm { + font-size: 1.2rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; - line-height: 18px; - height: 34px; + line-height: 1.7rem; + height: 3.4rem; + white-space: initial !important; +} +.am-text-truncate-2, +.am-text-truncate-2-sm{ + font-size: 1.4rem; + max-width: 100%; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + line-height: 2rem; + height: 4rem; + white-space: initial !important; +} +.am-text-truncate-2-md { + font-size: 1.6rem; + max-width: 100%; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + line-height: 2.2rem; + height: 4.4rem; + white-space: initial !important; +} +.am-text-truncate-2-lg { + font-size: 1.8rem; + max-width: 100%; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + line-height: 2.6rem; + height: 5.2rem; white-space: initial !important; } - /** * 公共加载页面view */ @@ -969,10 +1061,10 @@ button.colorpicker-submit img { } .am-page-loading>div { display: inline-block; - width: 5px; - height: 15px; + width: 0.5rem; + height: 1.5rem; background: #03a9f4; - border-radius: 5px; + border-radius: 0.5rem; animation: am-page-loading 0.25s ease-in-out infinite alternate; } .am-page-loading>div:nth-child(2) { @@ -1005,148 +1097,166 @@ button.colorpicker-submit img { * 表格-基础样式 */ .am-table-scrollable-horizontal { - border: 1px solid rgba(0,0,0,.03); + border: 0.1rem solid rgba(0,0,0,.02); position: relative; } -.am-table-scrollable-horizontal .table-no { +.am-table-scrollable-horizontal .form-table-no-data { position: sticky; left: 0; top: 0; } -.am-table-scrollable-horizontal .am-table { +.am-table-scrollable-horizontal > .am-table { border: 0; margin: 0; } -.am-table-scrollable-horizontal .am-table > thead > tr > th, -.am-table-scrollable-horizontal .am-table > tbody > tr > th, -.am-table-scrollable-horizontal .am-table > tfoot > tr > th, -.am-table-scrollable-horizontal .am-table > thead > tr > td, -.am-table-scrollable-horizontal .am-table > tbody > tr > td, -.am-table-scrollable-horizontal .am-table > tfoot > tr > td { - padding: 12px; - line-height: 20px; - min-width: 160px; - max-width: 160px; +.am-table-scrollable-horizontal > .am-table > thead > tr > th, +.am-table-scrollable-horizontal > .am-table > tbody > tr > th, +.am-table-scrollable-horizontal > .am-table > tfoot > tr > th, +.am-table-scrollable-horizontal > .am-table > thead > tr > td, +.am-table-scrollable-horizontal > .am-table > tbody > tr > td, +.am-table-scrollable-horizontal > .am-table > tfoot > tr > td { + padding: 1.2rem; + line-height: 2rem; + min-width: 17rem; + max-width: 17rem; word-break: break-all; } -.am-table-scrollable-horizontal .am-table .am-nowrap-initial { +.am-table-scrollable-horizontal > .am-table .am-nowrap-initial { white-space: initial; } -.am-table-scrollable-horizontal .am-table tr th:first-child, -.am-table-scrollable-horizontal .am-table tr td:first-child { +.am-table-scrollable-horizontal > .am-table > thead > tr th:first-child, +.am-table-scrollable-horizontal > .am-table tr td:first-child { border-left: 0; } -.am-table-scrollable-horizontal .am-table tr th { +.am-table-scrollable-horizontal > .am-table > thead > tr th { background: #fafafa; - min-width: 100px; + min-width: 10rem; position: sticky; top: 0; } -.am-table-scrollable-horizontal .am-table tr .am-grid-xxxl { - min-width: 650px; +.am-table-scrollable-horizontal > .am-table tr .am-grid-xxxl { + min-width: 65rem; } -.am-table-scrollable-horizontal .am-table tr .am-grid-xxl { - min-width: 550px; +.am-table-scrollable-horizontal > .am-table tr .am-grid-xxl { + min-width: 55rem; } -.am-table-scrollable-horizontal .am-table tr .am-grid-xl { - min-width: 450px; +.am-table-scrollable-horizontal > .am-table tr .am-grid-xl { + min-width: 45rem; } -.am-table-scrollable-horizontal .am-table tr .am-grid-lg { - min-width: 350px; +.am-table-scrollable-horizontal > .am-table tr .am-grid-lg { + min-width: 35rem; } -.am-table-scrollable-horizontal .am-table tr .am-grid-sm { - min-width: 250px; +.am-table-scrollable-horizontal > .am-table tr .am-grid-sm { + min-width: 25rem; } -.am-table-scrollable-horizontal .am-table tr .am-grid-xs { - min-width: 200px; +.am-table-scrollable-horizontal > .am-table tr .am-grid-xs { + min-width: 20rem; } -.am-table-scrollable-horizontal .am-table tr .am-operate-grid { - min-width: 180px; +.am-table-scrollable-horizontal > .am-table tr .am-operate-grid { + min-width: 18rem; } -.am-table-scrollable-horizontal .am-table tr .am-grid-auto { +.am-table-scrollable-horizontal > .am-table tr .am-grid-auto { min-width: auto; max-width: none; } -.am-table-scrollable-horizontal .am-table tr .am-grid-fixed-left, -.am-table-scrollable-horizontal .am-table tr .am-grid-fixed-right { +.am-table-scrollable-horizontal > .am-table tr .am-grid-fixed-left, +.am-table-scrollable-horizontal > .am-table tr .am-grid-fixed-right { height: auto; position: sticky; } -.am-table-scrollable-horizontal .am-table .chosen-container .chosen-drop, -.am-table-scrollable-horizontal .am-table .am-dropdown-content { +.am-table-scrollable-horizontal > .am-table .chosen-container .chosen-drop, +.am-table-scrollable-horizontal > .am-table .am-dropdown-content { z-index: 1; } -.am-table-scrollable-horizontal .am-table tr td.am-grid-fixed-left, -.am-table-scrollable-horizontal .am-table tr td.am-grid-fixed-right { +.am-table-scrollable-horizontal > .am-table tr td.am-grid-fixed-left, +.am-table-scrollable-horizontal > .am-table tr td.am-grid-fixed-right { background: #fff; z-index: 4; } -.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 { +.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: #fafafa; } -.am-table-scrollable-horizontal .am-table tr th { +.am-table-scrollable-horizontal > .am-table > thead > tr th { z-index: 5; } -.am-table-scrollable-horizontal .am-table tr th.am-grid-fixed-left, -.am-table-scrollable-horizontal .am-table tr th.am-grid-fixed-right { +.am-table-scrollable-horizontal > .am-table > thead > tr th.am-grid-fixed-left, +.am-table-scrollable-horizontal > .am-table > thead > tr th.am-grid-fixed-right { z-index: 6; } -.am-table-scrollable-horizontal .am-table tr .am-grid-fixed-left { - -webkit-box-shadow: 1px 0px 1px #ddd; - -moz-box-shadow: 1px 0px 1px #ddd; - box-shadow: 1px 0px 1px #ddd; +.am-table-scrollable-horizontal > .am-table tr .am-grid-fixed-left { + -webkit-box-shadow: 0.1rem 0 0.1rem #ddd; + -moz-box-shadow: 0.1rem 0 0.1rem #ddd; + box-shadow: 0.1rem 0 0.1rem #ddd; } -.am-table-scrollable-horizontal .am-table tr .am-grid-fixed-right { - -webkit-box-shadow: 0px 0px 1px #ddd; - -moz-box-shadow: 0px 0px 1px #ddd; - box-shadow: 0px 0px 1px #ddd; +.am-table-scrollable-horizontal > .am-table tr .am-grid-fixed-right { + -webkit-box-shadow: 0 0 0.1rem #ddd; + -moz-box-shadow: 0 0 0.1rem #ddd; + box-shadow: 0 0 0.1rem #ddd; } -.am-table-scrollable-horizontal .am-table tr .am-grid-fixed-left-shadow { - -webkit-box-shadow: 5px 0px 10px rgb(145 145 145 / 10%); - -moz-box-shadow: 5px 0px 10px rgb(145 145 145 / 10%); - box-shadow: 5px 0px 10px rgb(145 145 145 / 10%); +.am-table-scrollable-horizontal > .am-table tr .am-grid-fixed-left-shadow { + -webkit-box-shadow: 0.5rem 0 1rem rgb(145 145 145 / 5%); + -moz-box-shadow: 0.5rem 0 1rem rgb(145 145 145 / 5%); + box-shadow: 0.5rem 0 1rem rgb(145 145 145 / 5%); } -.am-table-scrollable-horizontal .am-table tr .am-grid-fixed-right-shadow { - -webkit-box-shadow: -5px 0px 10px rgb(145 145 145 / 10%); - -moz-box-shadow: -5px 0px 10px rgb(145 145 145 / 10%); - box-shadow: -5px 0px 10px rgb(145 145 145 / 10%); +.am-table-scrollable-horizontal > .am-table tr .am-grid-fixed-right-shadow { + -webkit-box-shadow: -0.5rem 0 1rem rgb(145 145 145 / 5%); + -moz-box-shadow: -0.5rem 0 1rem rgb(145 145 145 / 5%); + box-shadow: -0.5rem 0 1rem rgb(145 145 145 / 5%); } -.am-table-scrollable-horizontal .am-table > thead > tr > td { - border-bottom: 1px solid rgba(0,0,0,.03); +.am-table-scrollable-horizontal > .am-table > thead > tr > td { + border-bottom: 0.1rem solid rgba(0,0,0,.02); } .am-table-scrollable-horizontal .am-table > thead > tr > td, .am-table-scrollable-horizontal .am-table > tbody > tr:first-child > td { - border-top: 0px !important; + border-top: 0 !important; } -.am-table-scrollable-horizontal .am-table > tbody > tr > td .am-text-truncate-2 { - max-height: 34px; +.am-table-scrollable-horizontal > .am-table > tbody > tr > td .am-text-truncate-2 { + max-height: 4.4rem; height: auto; } -.am-table-scrollable-horizontal ul.user-base { - padding-top: 2px; + +/** + * 表格-用户信息 + */ +.am-form-table-data-container ul.user-base { + padding-top: 0.2rem; } -.am-table-scrollable-horizontal ul.user-base li { - line-height: 12px; +.am-form-table-data-container ul.user-base li { + line-height: 1.2rem; } -.am-table-scrollable-horizontal ul.user-base li:first-child { - margin-bottom: 7px; +.am-form-table-data-container ul.user-base li:first-child { + margin-bottom: 0.7rem; } -.am-table-scrollable-horizontal .table-no { - padding: 110px 0px; +.am-form-table-data-container ul.user-base .user-number-code .am-dropdown-content { + min-width: 10rem; + line-height: inherit; +} +.am-form-table-data-container .table-no { + padding: 11rem 0; +} + +/** + * 表格-数据进度条 + */ +.am-form-table-data-container .data-progress .am-progress { + width: 100%; +} +.am-form-table-data-container .data-progress.data-progress-view-text .am-progress { + width: calc(100% - 45px); } /** * 表格-操作栏更多操作列表样式 */ -.am-table-scrollable-horizontal .am-table tr .am-operate-grid-more-list .am-dropdown-content { - padding: 10px 5px; - width: 75px; +.am-table-scrollable-horizontal > .am-table tr .am-operate-grid-more-list .am-dropdown-content { + padding: 1rem 0.5rem; + width: 7.5rem; text-align: center; min-width: auto; } -.am-table-scrollable-horizontal .am-table tr .am-operate-grid-more-list .am-dropdown-content .am-badge:not(:last-child) { - margin-right: 5px; +.am-table-scrollable-horizontal > .am-table tr .am-operate-grid-more-list .am-dropdown-content .am-badge:not(:last-child) { + margin-right: 0.5rem; } /** @@ -1161,33 +1271,39 @@ button.colorpicker-submit img { /** * 表格-顶部操作相关样式 */ -.form-table-operate-top > .am-btn:not(:last-child) { - margin-right: 10px; +.form-table-operate-top > .am-btn:not(:last-child), +.form-table-operate-top > .operate-right > .am-btn:not(:last-child) { + margin-right: 0.6rem; } .form-table-operate-top .am-btn { - margin-bottom: 10px; + margin-bottom: 1.2rem; +} +@media only screen and (max-width: 640px) { + .form-table-operate-top .am-btn > span { + display: none; + } } /** * 表格-详情底部操作 */ .form-navigation-present-operate { - padding-bottom: 30px; + padding-bottom: 3rem; } .form-detail-nav-operate { position: fixed; right: 0; bottom: 0; width: auto; - padding: 10px; + padding: 1rem; text-align: right; } .form-detail-nav-operate > .am-btn { - -webkit-box-shadow: 0 0 8px rgb(154 154 154 / 40%); - box-shadow: 0 0 8px rgb(154 154 154 / 40%); + -webkit-box-shadow: 0 0 0.8rem rgb(154 154 154 / 40%); + box-shadow: 0 0 0.8rem rgb(154 154 154 / 40%); } .form-detail-nav-operate > .am-btn:not(:last-child) { - margin-right: 10px; + margin-right: 1rem; } /** @@ -1197,25 +1313,20 @@ button.colorpicker-submit img { background: #fafafa; } .form-table-search td { - padding: 8px !important; + padding: 0.8rem !important; } .form-table-search-section input { - width: calc(50% - 8px); + width: calc(50% - 0.8rem) !important; } .form-table-search-time > i { position: absolute; - margin: 4px 0px 0px -15px; + margin: 0.4rem 0 0 -1.5rem; } .form-table-search td select[multiple], .form-table-search td select[size] { height: auto; width: 100%; - max-height: 31px; -} -.form-table-search td select[multiple], -.form-table-search td select[size], -.form-table-search td .chosen-container-multi .chosen-choices { - border: 1px solid #ccc; + max-height: 3.1rem; } /** @@ -1227,8 +1338,8 @@ button.colorpicker-submit img { } .form-table-operate-checkbox-submit { position: absolute; - left: calc(50% - 25px); - top: calc(50% - 14px); + left: calc(50% - 2.5rem); + top: calc(50% - 1.4rem); } /** @@ -1238,44 +1349,37 @@ button.colorpicker-submit img { height: 100%; } .form-table-fields-list-container { - height: calc(100% - 50px); + height: calc(100% - 5rem); } .form-table-fields-content-container li { - height: 40px; - line-height: 40px; - padding: 0 10px; + height: 4rem; + line-height: 4rem; + padding: 0 1rem; } .form-table-fields-content-container li:first-child { border-top: 0; } -.form-table-fields-button-container { - border-top: 1px solid rgba(0,0,0,.03); - height: 50px; -} -.form-table-fields-button-container .form-table-field-confirm-submit { - width: calc(100% - 200px); -} /** * 表格排序 */ .form-sort-container { position: absolute; - margin-left: 3px; - top: calc(50% - 8px); + margin-left: 0.3rem; + top: calc(50% - 0.8rem); } .form-sort-container .sort-icon { display: block; - height: 8px; - line-height: 10px; + height: 0.8rem; + line-height: 1rem; color: #999; - width: 15px; + width: 1.5rem; text-align: center; } .form-sort-container .sort-icon:before { - height: 8px; - line-height: 8px; - font-size: 14px; + height: 0.8rem; + line-height: 0.8rem; + font-size: 1.4rem; } .form-sort-container .sort-icon:hover { color: #333; @@ -1288,21 +1392,21 @@ button.colorpicker-submit img { * 内部表格 */ .form-inside-table-layer { - max-height: 50px; + max-height: 5rem; overflow: hidden; } .form-inside-table-layer-auto { max-height: 100%; } .form-inside-stretch-submit { - margin-top: 5px; + margin-top: 0.5rem; } .form-inside-stretch-submit > a { text-decoration: none !important; } .form-inside-table tr th, .form-inside-table tr td { - padding: 5px !important; + padding: 0.5rem !important; z-index: 0 !important; } .form-inside-table tr th { @@ -1329,16 +1433,16 @@ button.colorpicker-submit img { */ .form-inside-dl-content dt, .form-inside-dl-content dd { - line-height: 14px; - min-height: 24px; - padding-top: 5px; - padding-bottom: 5px; + line-height: 1.4rem; + min-height: 2.4rem; + padding-top: 0.5rem; + padding-bottom: 0.5rem; } .form-inside-dl-content dt { - width: 70px; + width: 7rem; } .form-inside-dl-content dd { - padding-left: 80px; + padding-left: 8rem; } /** @@ -1346,7 +1450,7 @@ button.colorpicker-submit img { */ .region-linkage .chosen-select { display: -webkit-inline-box; - width: calc(33.33% - 3px) !important; + width: calc(33.33% - 0.3rem) !important; } .region-linkage .chosen-select .chosen-single { width: 100%; @@ -1355,92 +1459,28 @@ button.colorpicker-submit img { float: right; } .region-linkage-code { - width: 150px; + width: 15rem; } .region-linkage-code input { - padding: 2px 5px !important; - height: 20px !important; + padding: 0.2rem 0.5rem !important; + height: 2rem !important; } .region-linkage-code button { - line-height: 20px !important; - height: 20px !important; - padding: 0 10px !important; -} - -/** - * 小微章-镂空 - */ -.am-badge-default-plain { - border: 1px solid #999; - background: transparent; - color: #999; -} -a.am-badge-default-plain:hover, -a.am-badge-default-plain:focus { - color: #666; - border: 1px solid #666; -} -.am-badge-primary-plain { - border: 1px solid #0e90d2; - background: transparent; - color: #0e90d2; -} -a.am-badge-primary-plain:hover, -a.am-badge-primary-plain:focus { - color: #0071aa; - border: 1px solid #0071aa; -} -.am-badge-secondary-plain { - border: 1px solid #3bb4f2; - background: transparent; - color: #3bb4f2; -} -a.am-badge-secondary-plain:hover, -a.am-badge-secondary-plain:focus { - color: #03a9f4; - border: 1px solid #03a9f4; -} -.am-badge-success-plain { - border: 1px solid #5eb95e; - background: transparent; - color: #5eb95e; -} -a.am-badge-success-plain:hover, -a.am-badge-success-plain:focus { - color: #4caf50; - border: 1px solid #4caf50; -} -.am-badge-warning-plain { - border: 1px solid #F37B1D; - background: transparent; - color: #F37B1D; -} -a.am-badge-warning-plain:hover, -a.am-badge-warning-plain:focus { - color: #ff7000; - border: 1px solid #ff7000; -} -.am-badge-danger-plain { - border: 1px solid #dd514c; - background: transparent; - color: #dd514c; -} -a.am-badge-danger-plain:hover, -a.am-badge-danger-plain:focus { - color: #ee2d26; - border: 1px solid #ee2d26; + line-height: 2rem !important; + height: 2rem !important; + padding: 0 1rem !important; } /** * 分页 */ .am-pagination > li > a { - border-radius: 2px; + border-radius: var(--border-radius); } .pagination-input { - width: 50px; + width: 5rem; vertical-align: inherit !important; - padding: 4px; + padding: 0.4rem; } /** @@ -1458,12 +1498,12 @@ a.am-badge-danger-plain:focus { #verify-img-value { float: left; width: 40%; - margin-right: 5px; + margin-right: 0.5rem; } } -@media only screen and (max-width: 641px) { +@media only screen and (max-width: 640px) { #verify-img-value { - margin-bottom: 10px; + margin-bottom: 1rem; } } @@ -1483,25 +1523,25 @@ form .am-tab-panel .am-form-group:last-child { vertical-align: middle; } .warehouse-item-container .warehouse-icon { - width: 14px; - height: 14px; + width: 1.4rem; + height: 1.4rem; } /** * 平台类型+数据值组合列表 */ .platform-list-value-container > div.am-input-group:not(:first-child) { - margin-top: 10px; + margin-top: 1rem; } .platform-list-value-container > div.am-input-group button { - width: 110px; + width: 11rem; } /** * 分类列表 */ #tree table.am-table td { - line-height: 32px; + line-height: 3.2rem; padding: 0.4rem 0.7rem; } #tree table.am-table td button.am-btn { @@ -1520,8 +1560,8 @@ form .am-tab-panel .am-form-group:last-child { * 弹出框 */ .am-popover { - max-width: 320px; - border-radius: 2px; + max-width: 32rem; + border-radius: 0.2rem; } /** @@ -1546,7 +1586,7 @@ form .am-tab-panel .am-form-group:last-child { * 三级导航 */ .table-nav { - border-bottom: 1px solid #eee; + border-bottom: 0.1rem solid #eee; } /** @@ -1554,10 +1594,11 @@ form .am-tab-panel .am-form-group:last-child { */ .richtext { font-family: sans-serif; - font-size: 12px; + font-size: 1.4rem; + color: #333333; } .richtext p { - margin:5px 0; + margin: 0; } /** @@ -1570,10 +1611,10 @@ form .am-tab-panel .am-form-group:last-child { z-index: 10; } .form-legend-fixed-right button { - border: 0px; + border: 0; } .form-legend-fixed-right .am-badge:not(:first-child) { - margin-left: 10px; + margin-left: 1rem; } /** @@ -1586,38 +1627,52 @@ form .am-tab-panel .am-form-group:last-child { width: 100%; background: #fff; z-index: 10; - border-top: 1px solid #e5e5e5; - padding: 10px; + border-top: 0.1rem solid #e5e5e5; + padding: 1rem; text-align: right; } .form-bottom-nav-fixed button { - border: 0px; + border: 0; } .form-bottom-nav-fixed .am-badge:not(:first-child) { - margin-left: 10px; + margin-left: 1rem; } /** - * 公共底部浮动 + * 表单公共底部浮动 */ form.am-form-popup-fixed { - padding-bottom: 80px; + padding-bottom: 7rem; } -form.am-form-popup-fixed .am-form-popup-submit { - position: fixed; +form.am-form-popup-fixed legend, +form.am-form-popup-sticky legend { + padding: 0 0.5rem 0.5rem 0.5rem; + border-bottom: 0.1rem solid #f5f5f5; +} +form.am-form-popup-fixed .am-form-popup-submit, +form.am-form-popup-sticky .am-form-popup-submit { left: 0; bottom: 0; width: 100%; - background: #fff; - height: 70px; - padding: 20px 10px; - border-top: 1px solid #eee; - z-index: 2; + min-height: 6rem; + padding: 1.5rem; + border-top: 0.1rem solid #f5f5f5; + z-index: 100; + text-align: right; + background: #FFFFFF; +} +form.am-form-popup-fixed .am-form-popup-submit { + position: fixed; } .am-popup.popup-not-title form.am-form-popup-fixed .am-form-popup-submit { - width: calc(100% - 50px); - margin-left: 25px; - bottom: 20px; + width: calc(100% - 5rem); + margin-left: 2.5rem; + bottom: 2rem; + border-bottom-left-radius: var(--border-radius); + border-bottom-right-radius: var(--border-radius); +} +form.am-form-popup-sticky .am-form-popup-submit { + position: sticky; } /** @@ -1632,44 +1687,35 @@ form.am-form-popup-fixed .am-form-popup-submit { margin-top: -0.9rem; } .business-list ul li .business-item { - border: 1px solid #ddd; + border: 0.1rem solid #CCCCCC; cursor: pointer; background: #fff; position: relative; + min-height: 4.6rem; + overflow: hidden; } .business-list ul li .business-item img { - width: 16px; - height: 15px; + width: 2.4rem; + height: 2.4rem; } .business-list ul li .business-item img, .business-list ul li .business-item span { vertical-align: middle; } -.business-list ul li .business-item .rotate { - background-color: #d2364c; - width: 22px; - height: 70px; - transform: rotate(44deg); +.business-list ul li .business-item i { position: absolute; - right: -12px; - bottom: -20px; + bottom: -1.9rem; + right: -1.7rem; + font-size: 3.4rem; + color: var(--color-main); display: none; } -.business-list ul li .business-item i.am-icon-check { - position: absolute; - right: 0; - bottom: 0; - color: #fff !important; - display: none; -} -.business-list ul li.selected .business-item .rotate, -.business-list ul li.selected .business-item i.am-icon-check { +.business-list ul li.selected .business-item i { display: block; } .business-list ul li.selected .business-item, .business-list ul li .business-item:hover { - border: 1px solid #d2364c; - box-shadow: 0px 0 0px 1px #d2364c; + border: 0.1rem solid var(--color-main); } /** @@ -1677,24 +1723,24 @@ form.am-form-popup-fixed .am-form-popup-submit { */ a.input-clearout-submit { position: fixed !important; - left: 0px; - top: 0px; + left: 0; + top: 0; z-index: 2; display: none !important; text-decoration: none !important; } a.input-clearout-submit > i { margin: 0 !important; - line-height: 11px !important; + line-height: 1.1rem !important; display: block; - border: 1px solid #dedede; - border-radius: 50px; - padding: 0px 2.37px 1px 2.37px; - font-size: 12px; + border: 0.1rem solid #dedede; + border-radius: 5rem; + padding: 0 0.237rem 0.1rem 0.237rem; + font-size: 1.2rem; color: #cccccc; } .input-clearout-element { - padding-right: 25px !important; + padding-right: 2.5rem !important; box-sizing: border-box; } a.input-clearout-submit:hover, @@ -1733,61 +1779,62 @@ a.input-clearout-submit:focus > i { * 商品可选规格 */ .common-goods-spec-choice-content { - width: 360px; + width: 36rem; height: auto; - max-height: 300px; + max-height: 30rem; text-align: left; } .common-goods-spec-choice-content .spec-options { overflow: hidden; - padding: 0 1px; - margin: 5px 0; + padding: 0 0.1rem; + margin: 0.5rem 0; } .common-goods-spec-choice-content .spec-title, .price-title { font-weight: 500; } .common-goods-spec-choice-content .sku-line { float: left; - margin: 5px 25px 10px 0; + margin: 0.5rem 2.5rem 1rem 0; background: #efefef; - padding: 8px 20px; - border: 1px solid #d5d5d5; + padding: 0.8rem 2rem; + border: 0.1rem solid #d5d5d5; cursor: pointer; + min-height: 4.2rem; } .common-goods-spec-choice-content .sku-line:hover { background: none; color: #333; - border: 1px solid #e23f36; - box-shadow: 0px 0 0px 1px #e23f36; + border: 0.1rem solid #e23f36; + box-shadow: 0 0 0 0.1rem #e23f36; } .common-goods-spec-choice-content .sku-line.selected { background: #e23f36; color: #fff; - border: 1px solid #e23f36; + border: 0.1rem solid #e23f36; } .common-goods-spec-choice-content .sku-line-images { - padding: 6px 15px !important; + padding: 0.5rem 1rem !important; } .common-goods-spec-choice-content .sku-line-images img { - width: 30px; - height: 30px; + width: 3rem; + height: 3rem; vertical-align: middle; } .common-goods-spec-choice-content .sku-not-active { - border: 1px solid #f03726 !important; - box-shadow: 0 0px 3px #ed7f76, 0 0 6px rgba(0, 0, 0, 0); - padding: 5px 10px 0 10px; + border: 0.1rem solid #f03726 !important; + box-shadow: 0 0 0.3rem #ed7f76, 0 0 0.6rem rgba(0, 0, 0, 0); + padding: 0.5rem 1rem 0 1rem; } .common-goods-spec-choice-content .sku-items-disabled { color: #d2cfcf !important; background-color: #ffffff !important; - border: 1px dashed #d5d5d5 !important; + border: 0.1rem dashed #d5d5d5 !important; box-shadow: none !important; } .common-goods-spec-choice-content .sku-dont-choose { color: #b4b3b3 !important; background-color: #ffffff !important; - border: 1px solid #ebeaea !important; + border: 0.1rem solid #ebeaea !important; box-shadow: none !important; } .common-goods-spec-choice-content .sku-dont-choose img { @@ -1796,9 +1843,9 @@ a.input-clearout-submit:focus > i { .common-goods-spec-choice-content .sku-items-disabled img { opacity: 0.3; } -@media only screen and (max-width: 641px) { +@media only screen and (max-width: 640px) { .common-goods-spec-choice-content { - max-width: 260px; + max-width: 26rem; } } @@ -1818,20 +1865,20 @@ a.input-clearout-submit:focus > i { #common-video-scan-popup .scan-area { position: absolute; z-index: 10; - width: 300px; - height: 300px; - left: calc(50% - 150px); - top: calc(50% - 150px); - border: 1px solid white; + width: 30rem; + height: 30rem; + left: calc(50% - 15rem); + top: calc(50% - 15rem); + border: 0.1rem solid white; box-sizing: border-box; - box-shadow: 0 0 100px 1920px rgb(0 0 0 / 70%); + box-shadow: 0 0 10rem 192rem rgb(0 0 0 / 70%); z-index: 1; } #common-video-scan-popup .scan-area .mark { position: absolute; - width: 20px; - height: 20px; - border: 3px solid #3cb067; + width: 2rem; + height: 2rem; + border: 0.3rem solid #3cb067; background: transparent; } #common-video-scan-popup .mark { @@ -1839,30 +1886,30 @@ a.input-clearout-submit:focus > i { background-color: #fcf8e3; } #common-video-scan-popup .scan-area .top-left { - top: -1px; - left: -1px; + top: -0.1rem; + left: -0.1rem; border-color: #3cb067 transparent transparent #3cb067; } #common-video-scan-popup .scan-area .top-right { - top: -1px; - right: -1px; + top: -0.1rem; + right: -0.1rem; border-color: #3cb067 #3cb067 transparent transparent; } #common-video-scan-popup .scan-area .bottom-left { - bottom: -1px; - left: -1px; + bottom: -0.1rem; + left: -0.1rem; border-color: transparent transparent #3cb067 #3cb067; } #common-video-scan-popup .scan-area .bottom-right { - bottom: -1px; - right: -1px; + bottom: -0.1rem; + right: -0.1rem; border-color: transparent #3cb067 #3cb067 transparent; } #common-video-scan-popup .scan-area::after { content: ' '; width: 100%; display: block; - height: 4px; + height: 0.4rem; position: absolute; animation: move 3s linear infinite; background: -moz-linear-gradient(left, rgba(76,175,80,0.25) 0%, rgba(76,175,80,0.25) 10%, rgba(76,175,80,1) 50%, rgba(76,175,80,0.25) 90%, rgba(76,175,80,0.25) 100%); @@ -1887,16 +1934,16 @@ a.input-clearout-submit:focus > i { } #common-video-scan-popup .video-scan-switch-camera-submit { position: absolute; - left: calc(50% - 12px); - bottom: calc(50% - 200px); + left: calc(50% - 1.2rem); + bottom: calc(50% - 20rem); z-index: 2; cursor: pointer; color: #fff; } #common-video-scan-popup .video-scan-continue-submit { position: absolute; - left: calc(50% - 35px); - bottom: 20px; + left: calc(50% - 3.5rem); + bottom: 2rem; z-index: 2; } @@ -1904,44 +1951,205 @@ a.input-clearout-submit:focus > i { /** * 滚动条样式 */ -::-webkit-scrollbar { - width: 3px; - height: 6px; +body ::-webkit-scrollbar { + width: 1rem; + height: 1rem; } -::-webkit-scrollbar-button, -::-webkit-scrollbar-button:vertical { +body ::-webkit-scrollbar-button, +body ::-webkit-scrollbar-button:vertical { display: none; } -::-webkit-scrollbar-track, -::-webkit-scrollbar-track:vertical { +body ::-webkit-scrollbar-track, +body ::-webkit-scrollbar-track:vertical { background-color: black; } -::-webkit-scrollbar-track-piece { - background-color: #fafafa; +body ::-webkit-scrollbar-track-piece { + background-color: #f9f9f9; } -::-webkit-scrollbar-track-piece { - border-top: 1px solid rgba(0,0,0,.01); +body ::-webkit-scrollbar-track-piece { + border-top: 0.1rem solid rgba(0,0,0,.01); } -::-webkit-scrollbar-thumb, -::-webkit-scrollbar-thumb:vertical { - margin-right: 10px; +body ::-webkit-scrollbar-thumb, +body ::-webkit-scrollbar-thumb:vertical { + margin-right: 1rem; background-color: #f0f0f0; } -::-webkit-scrollbar-thumb:hover, -::-webkit-scrollbar-thumb:vertical:hover { - background-color: #a9a9a9; +body ::-webkit-scrollbar-thumb:hover, +body ::-webkit-scrollbar-thumb:vertical:hover { + background-color: #ccc; } -::-webkit-scrollbar-corner, -::-webkit-scrollbar-corner:vertical { +body ::-webkit-scrollbar-corner, +body ::-webkit-scrollbar-corner:vertical { background-color: #e5e5e5; } -::-webkit-scrollbar-resizer, -::-webkit-scrollbar-resizer:vertical { +body ::-webkit-scrollbar-resizer, +body ::-webkit-scrollbar-resizer:vertical { background-color: #ff6e00; } /** * 滚动条样式 - 火狐浏览器、使用更窄的样式 */ -* { +body * { scrollbar-width: thin; +} + +/** + * 圆角 + */ +.am-radius, .am-form select.am-radius, .am-form textarea.am-radius, .am-form input[type="text"].am-radius, .am-form input[type="password"].am-radius, .am-form input[type="datetime"].am-radius, .am-form input[type="datetime-local"].am-radius, .am-form input[type="date"].am-radius, .am-form input[type="month"].am-radius, .am-form input[type="time"].am-radius, .am-form input[type="week"].am-radius, .am-form input[type="number"].am-radius, .am-form input[type="email"].am-radius, .am-form input[type="url"].am-radius, .am-form input[type="search"].am-radius, .am-form input[type="tel"].am-radius, .am-form input[type="color"].am-radius, .am-form-field.am-radius, .chosen-choices, .chosen-single, .am-badge.am-radius, .am-btn.am-radius { + border-radius: var(--border-radius); +} +.am-input-group > input.am-radius:first-child, +.am-input-group > .am-input-group-btn:first-child > button.am-radius, +.am-input-group > .am-input-group-label:first-child { + border-top-right-radius: 0; + border-bottom-right-radius: 0; +} +.am-input-group > input.am-radius:last-child, +.am-input-group > .am-input-group-btn:last-child > button.am-radius, +.am-input-group > .am-input-group-label:last-child { + border-top-left-radius: 0; + border-bottom-left-radius: 0; +} + +.am-offcanvas .am-offcanvas-bar > .am-close { + position: absolute; + z-index: 1; + right: 26px; + top: 10px; + box-shadow: none; + text-shadow:none; +} + +.am-offcanvas .am-offcanvas-bar > .am-close:hover { + color: #E22C08; +} + +/** +* 外边框阴影 +*/ +.am-box-shadow-top { + -webkit-box-shadow: 0px -1px 4px 0px rgba(0,0,0,0.08) !important; + box-shadow: 0px -1px 4px 0px rgba(0,0,0,0.08) !important; +} +.am-box-shadow-bottom { + -webkit-box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.08); + box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.08); +} +@media only screen and (min-width: 641px) { + /** + * 图片鼠标悬停缩放 + */ + .am-images-scale { + -webkit-transition: transform 0.3s ease-in; + -moz-transition: transform 0.3s ease-in; + -ms-transition: transform 0.3s ease-in; + -o-transition: transform 0.3s ease-in; + transition: transform 0.3s ease-in; + } + + .am-images-scale:hover { + transform: scale(1.03); + -moz-transform: scale(1.03); + -webkit-transform: scale(1.03); + -o-transform: scale(1.03); + -ms-transform: scale(1.03); + } + + /** + * 图片鼠标悬停下移 + */ + .am-images-down { + -webkit-transform: translateY(0); + transform: translateY(0); + -webkit-transition: -webkit-transform .25s,-webkit-box-shadow .25s; + transition: -webkit-transform .25s,-webkit-box-shadow .25s; + transition: transform .25s,box-shadow .25s; + transition: transform .25s,box-shadow .25s,-webkit-transform .25s,-webkit-box-shadow .25s; + } + .am-images-down:hover { + -webkit-transform: translateY(0.3rem); + transform: translateY(0.3rem); + } + + /** + * 外边框阴影 大于手机端才生效 + */ + .am-box-shadow { + -webkit-box-shadow: var(--box-shadow) !important; + box-shadow: var(--box-shadow) !important; + } + .am-shadow { + -webkit-transition: all 0.3s ease-in-out; + -moz-transition: all 0.3s ease-in-out; + -o-transition: all 0.3s ease-in-out; + transition: all 0.3s ease-in-out; + } + .am-shadow:hover { + -webkit-box-shadow: var(--box-shadow) !important; + box-shadow: var(--box-shadow) !important; + } + + /** + * 滑过透明层 + */ + .am-glideover { + overflow: hidden; + position: relative; + } + .am-glideover:before { + content: ""; + position: absolute; + top: 0; + left: -100%; + display: block; + height: 100%; + width: 50%; + z-index: 999; + background-color: rgba(255,255,255,.3); + -webkit-transition: all 1s ease 0s; + -moz-transition: all 1s ease 0s; + -o-transition: all 1s ease 0s; + transition: all 1s ease 0s; + -ms-transform: skewX(-20deg); + -webkit-transform: skewX(-20deg); + -o-transform: skewX(-20deg); + transform: skewX(-20deg); + background: -webkit-linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.4) 100%); + background: -moz-linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.4) 100%); + background: -o-linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.4) 100%); + background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.4) 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=transparent, endColorstr=rgba(255, 255, 255, 0.4),GradientType=0.9); + } + .am-glideover:hover:before { + left: 100%; + } +} + + +/** +* 滚动条隐藏--出现按钮替代滚动条 +*/ +.am-slider-horizontal { + position: relative; + overflow-y: hidden; + overflow-x: auto; +} +.am-slider-horizontal::-webkit-scrollbar { + height: 0; +} +.tabs-right { + border-radius: 50%; + position: absolute; + right: 0rem; + cursor: pointer; + width: 38px; + height: 38px; + background: #FFFFFF; + color: #868686; + box-shadow: 0px 1px 4px 3px rgba(0, 0, 0, 0.07); + text-align: center; + line-height: 3.8rem; + transform: translateY(-50%); + z-index: 101; } \ No newline at end of file diff --git a/public/static/common/css/layout.admin.css b/public/static/common/css/layout.admin.css index 82ecd6dc7..235d49d3e 100644 --- a/public/static/common/css/layout.admin.css +++ b/public/static/common/css/layout.admin.css @@ -1,24 +1,17 @@ /** * 选项卡切换 */ -.renovation-tabs .am-nav-tabs > li.am-active > a { - border-color: #eee #eee transparent #eee; -} -.renovation-tabs .am-nav-tabs { - background: none; - border-bottom: 1px solid #eee; -} .renovation-tabs .am-active { - border-bottom: 2px solid transparent !important; + border-bottom: 0.2rem solid transparent !important; background: #fff; } .renovation-tabs .am-tabs-bd { - border-color: #eee; z-index: 1; position: static; + border-width: 0; } .renovation-tabs li { - margin-bottom: -3px !important; + margin-bottom: -0.3rem !important; } .renovation-tabs li a { margin-right: 0; @@ -28,21 +21,21 @@ } .renovation-tabs.am-sticky { background: #fff; - border: 1px solid #eee; + border: 0.1rem solid #eee; border-top: 0; - -webkit-box-shadow: 0 3px 5px rgb(0 0 0 / 5%); - box-shadow: 0 3px 5px rgb(0 0 0 / 5%); - padding: 5px; + -webkit-box-shadow: 0 0.3rem 0.5rem rgb(0 0 0 / 5%); + box-shadow: 0 0.3rem 0.5rem rgb(0 0 0 / 5%); + padding: 0.5rem; } /** * 页面选择自定义url */ .pages-custom-url-container > .am-input-group:not(:first-child) { - margin-top: 5px; + margin-top: 0.5rem; } .pages-custom-url-container > .am-input-group button { - width: 100px; + width: 10rem; } /** @@ -56,17 +49,17 @@ * 布局容器-提示 */ .layout-container { - border: 1px solid #eee; + border: 0.1rem solid rgba(0,0,0,.04); } .layout-container .layout-container-tips { - border: 1px dashed #ccc; + border: 0.1rem dashed #ccc; color: #999; - padding: 20px; + padding: 2rem; text-align: center; } .layout-container .layout-container-tips:hover, .layout-container .layout-container-tips.layout-view-dragenter { - border: 1px dashed #2196f3; + border: 0.1rem dashed #2196f3; color: #2196f3; } @@ -76,7 +69,7 @@ .layout-content-submit .am-switch, .layout-content-submit .am-btn:not(:last-child), .module-view-submit-container .am-btn:not(:last-child) { - margin-right: 2px !important; + margin-right: 0.2rem !important; } /** @@ -86,23 +79,23 @@ background: #e6e6e6; cursor: move !important; text-align: right; - padding: 3px; + padding: 0.3rem; left: 0; - top: -28px; + top: -2.8rem; width: 100%; - -webkit-box-shadow: 0 -5px 10px rgb(0 0 0 / 60%); - box-shadow: 0 -5px 10px rgb(0 0 0 / 20%); + -webkit-box-shadow: 0 -0.5rem 1rem rgb(0 0 0 / 60%); + box-shadow: 0 -0.5rem 1rem rgb(0 0 0 / 20%); } .layout-view .layout-submit { - padding: 2px 5px; + padding: 0.2rem 0.5rem; } .layout-view .drag-submit .am-switch-handle-on, .layout-view .drag-submit .am-switch-handle-off, .layout-view .drag-submit .am-switch-label { - padding: 3px 5px; + padding: 0.3rem 0.5rem; } .layout-content { - border: 1px dashed rgb(244 244 244 / 50%); + border: 0.1rem dashed rgb(244 244 244 / 50%); } .layout-content:hover { border-color: #666; @@ -110,7 +103,7 @@ .layout-content-tips { color: #ccc; text-align: center; - padding: 10px; + padding: 1rem; } .layout-content-tips:hover, .layout-content-dragenter .layout-content-tips { @@ -134,12 +127,12 @@ } .layout-content-submit-container .am-btn, .module-view-submit-container .am-btn { - -webkit-box-shadow: 0 3px 5px rgb(0 0 0 / 30%); - box-shadow: 0 3px 5px rgb(0 0 0 / 30%); + -webkit-box-shadow: 0 0.3rem 0.5rem rgb(0 0 0 / 30%); + box-shadow: 0 0.3rem 0.5rem rgb(0 0 0 / 30%); } .layout-content-submit-container { top: 0; - right: 1px; + right: 0.1rem; } .layout-view:hover .drag-submit, .layout-content-children:hover .layout-content-submit-container, @@ -156,7 +149,7 @@ margin-bottom: 0; } .layout-container .drag-sort-dotted { - border-width: 2px !important; + border-width: 0.2rem !important; } .layout-view-hidden .layout-content-submit { background: #ffdddd !important; @@ -169,31 +162,31 @@ * 布局新添加的样式 */ .layout-view-new { - border: 1px solid #4caf50; - -webkit-box-shadow: 0 0px 4px #4caf50; - box-shadow: 0 0px 4px #4caf50; + border: 0.1rem solid #4caf50; + -webkit-box-shadow: 0 0px 0.4rem #4caf50; + box-shadow: 0 0px 0.4rem #4caf50; } /** * 布局拖拽过程中经过的元素样式 */ .layout-view-dragenter { - border: 2px solid #2196f3; + border: 0.2rem solid #2196f3; } .layout-view-dragenter .layout-view-dragenter-icon { color: #2296f3; display: block !important; visibility: inherit !important; position: absolute; - left: calc(50% - 8px); - top: -13px; + left: calc(50% - 0.8rem); + top: -1.3rem; } /** * 模块 */ .module-view-submit-container { - top: -1px; + top: -0.1rem; left: 0; } @@ -201,9 +194,9 @@ * 模块拖拽过程中经过的元素样式 */ .layout-content-dragenter { - border: 1px dashed #2196f3; - -webkit-box-shadow: 0 0px 4px #2196f3; - box-shadow: 0 0px 4px #2196f3; + border: 0.1rem dashed #2196f3; + -webkit-box-shadow: 0 0px 0.4rem #2196f3; + box-shadow: 0 0px 0.4rem #2196f3; } /** @@ -213,8 +206,8 @@ background-color: #fff; } .colorpicker-submit img { - width: 14px; - height: 14px; + width: 1.4rem; + height: 1.4rem; float: right; } @@ -223,11 +216,11 @@ */ .module-offcanvas-container .am-offcanvas-bar { background: #fff; - width: 330px; + width: 38rem; } .module-offcanvas-container .am-offcanvas-bar, .module-offcanvas-container .goods-search-container { - padding-bottom: 51px; + padding-bottom: 5.1rem; } .am-offcanvas.am-active .am-offcanvas-bar.am-offcanvas-bar-active { -webkit-transform: none; @@ -242,7 +235,7 @@ background: #ccc; } .module-offcanvas-container .am-form-group-refreshing { - padding: 0 0 15px 0 !important; + padding: 0 0 1.5rem 0 !important; } .module-offcanvas-container .module-images-type-images-view, .module-offcanvas-container .module-slider-type-images-view { @@ -263,9 +256,9 @@ position: fixed; bottom: 0; left: 0; - width: 329px; - padding: 10px; - border-top: 1px solid #dfdfdf; + width: 37.9rem; + padding: 1rem; + border-top: 0.1rem solid #dfdfdf; background: #f5f5f5; z-index: 100; } @@ -273,17 +266,14 @@ color: #ccc; } .module-offcanvas-container .am-tabs-d2 { - margin-bottom: 20px; + margin-bottom: 2rem; } .module-offcanvas-container .am-tabs-d2 .am-tabs-bd { - border: 1px solid #ddd; + border: 0.1rem solid #ddd; overflow: inherit; } .module-offcanvas-container .am-panel .am-panel-bd .am-form-group:last-child { - padding-bottom: 5px !important; -} -.module-offcanvas-container .am-input-group-label { - border-color: #ddd; + padding-bottom: 0.5rem !important; } /** @@ -312,20 +302,20 @@ border-left: 0; } .group-border-style .chosen-container { - width: 72px !important; + width: 7rem !important; display: block; float: left; } .group-border-style .chosen-container:not(:last-child) { - margin-right: 4px; + margin-right: 0.4rem; } .group-text-align-style { - border: 1px solid #ddd; - padding: 5px 8px; + border: 0.1rem solid #ddd; + padding: 0.5rem 0.8rem; } @media only screen and (max-width: 640px) { .group-border-style .chosen-container { - width: 59px !important; + width: 5.9rem !important; } } @@ -333,8 +323,8 @@ * 链接地址选择 */ .form-view-choice-container-active { - padding: 6px; - border: 1px solid #ccc; + padding: 0.6rem; + border: 0.1rem solid #ccc; cursor: pointer; } .form-view-choice-container-active .am-text-truncate { @@ -361,28 +351,28 @@ } #offcanvas-module-config-goods .config-goods-list li { float: left; - border: 1px solid #eee; + border: 0.1rem solid #eee; position: relative; } #offcanvas-module-config-goods .config-goods-list li:hover { - border: 1px solid #ccc; + border: 0.1rem solid #ccc; } #offcanvas-module-config-goods .config-goods-list li:not(:last-child) { - margin: 0 15px 15px 0; + margin: 0 1.5rem 1.5rem 0; } #offcanvas-module-config-goods .config-goods-list li img { - width: 33px; - height: 33px; + width: 3.3rem; + height: 3.3rem; } #offcanvas-module-config-goods .config-goods-list li .am-close, #offcanvas-module-config-many-images .config-many-images-container .am-panel .am-close, #offcanvas-module-config-images-text .config-images-text-container .am-panel .am-close { position: absolute; - top: -8px; - right: -8px; - width: 18px; - font-size: 12px; - line-height: 18px; + top: -0.8rem; + right: -0.8rem; + width: 1.8rem; + font-size: 1.2rem; + line-height: 1.8rem; opacity: 1; } @@ -404,10 +394,10 @@ } #offcanvas-module-config-many-images .config-many-images-container .am-panel .am-form-group:last-child, #offcanvas-module-config-images-text .config-images-text-container .am-panel .am-form-group:last-child { - padding-bottom: 5px !important; + padding-bottom: 0.5rem !important; } #offcanvas-module-config-images-text .config-images-text-container .am-panel .group-input-font-size { - width: 95px; + width: 9.5rem; } /** @@ -417,17 +407,17 @@ position: relative; } #offcanvas-module-config-title .config-title-container li span { - width: calc(100% - 55px); + width: calc(100% - 5.5rem); } #offcanvas-module-config-title .config-title-container li a.am-icon-edit, #offcanvas-module-config-title .config-title-container li a.am-icon-remove { position: absolute; top: 0; right: 0; - padding: 10px; + padding: 1rem; } #offcanvas-module-config-title .config-title-container li a.am-icon-edit { - right: 30px; + right: 3rem; } @@ -436,15 +426,15 @@ */ #modal-module-pages-select .am-tabs-bd { border-style: solid; - border-width: 0 0 1px 0; + border-width: 0 0 0.1rem 0; border-color: #eee; } #modal-module-pages-select .am-scrollable-vertical a { text-decoration: none; - padding-right: 30px; + padding-right: 3rem; } #modal-module-pages-select .am-accordion-default { - margin: 0 0 15px 0; + margin: 0 0 1.5rem 0; } #modal-module-pages-select .am-accordion-default .am-accordion-title { background: #f0f8ff; @@ -456,7 +446,7 @@ margin-bottom: 0; } #modal-module-pages-select .am-tabs-bd ul li { - border-width: 1px 0; + border-width: 0.1rem 0; } #modal-module-pages-select .am-tabs-bd ul li:last-child { border-bottom: 0; @@ -472,11 +462,11 @@ display: block !important; visibility: initial !important; position: absolute; - top: 10px; - right: 10px; + top: 1rem; + right: 1rem; } #modal-module-pages-select .am-tabs-bd .content { - height: 308px; + height: 30.8rem; } @@ -490,7 +480,7 @@ display: -webkit-inline-box; } .layout-forth-selection-container .forth-selection-container .forth-selection-form-category, .forth-selection-container .chosen-container, .forth-selection-container .forth-selection-form-keywords { - width: calc(50% - 48px) !important; + width: calc(50% - 4.8rem) !important; } .layout-forth-selection-container .forth-selection-container .chosen-container, .forth-selection-container .forth-selection-form-keywords { display: -webkit-inline-box !important; @@ -499,35 +489,35 @@ width: 100%; } .layout-forth-selection-container .forth-selection-container .search-submit { - width: 87px; + width: 8.7rem; } .layout-forth-selection-container .goods-list-container { - height: calc(100% - 157px); - border: 1px solid #eee; + height: calc(100% - 15.7rem); + border: 0.1rem solid #eee; } .layout-forth-selection-container .goods-list-container .am-gallery-bordered .am-gallery-title { - margin-top: 5px; + margin-top: 0.5rem; } .layout-forth-selection-container .goods-list-container ul li { position: relative; cursor: pointer; } .layout-forth-selection-container .goods-list-container ul li:hover .am-gallery-item { - -webkit-box-shadow: 0 0 6px #3cb4f1; - box-shadow: 0 0 6px #3cb4f1; + -webkit-box-shadow: 0 0 0.6rem #3cb4f1; + box-shadow: 0 0 0.6rem #3cb4f1; } .layout-forth-selection-container .goods-list-container .icon-submit-container { position: absolute; - right: 15px; - bottom: 47px; + right: 1.5rem; + bottom: 4.7rem; } .layout-forth-selection-container .goods-list-container .icon-submit-container .am-icon-btn { - width: 36px; - height: 36px; - line-height: 36px; - font-size: 20px; - -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.5); - box-shadow: 0 0 3px rgba(0, 0, 0, 0.5); + width: 3.6rem; + height: 3.6rem; + line-height: 3.6rem; + font-size: 2rem; + -webkit-box-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.5); + box-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.5); } .layout-forth-selection-container .goods-list-container .am-icon-btn.am-success:hover { background: #4CAF50; @@ -536,16 +526,16 @@ background: #F44336; } .layout-forth-selection-container .goods-page-container { - height: 40px; + height: 4rem; } .layout-forth-selection-container .goods-bottom-operate-container { background: #f5f5f5; - border-top: 1px solid #dedede; + border-top: 0.1rem solid #dedede; position: fixed; left: 0; - bottom: 25px; - width: calc(100% - 50px); - margin: 0 25px; + bottom: 2.5rem; + width: calc(100% - 5rem); + margin: 0 2.5rem; } /** @@ -553,17 +543,17 @@ */ .layout-category-choice .goods-category-choice-content { background: #f8f8f8; - border: 1px solid #eee; + border: 0.1rem solid #eee; } .layout-category-choice .goods-category-choice-content ul { - width: calc(33% - 15px); + width: calc(33% - 1.5rem); margin-bottom: 0; - height: 380px; + height: 38rem; background: #fff; - border: 1px solid #dedede; + border: 0.1rem solid #dedede; } .layout-category-choice .goods-category-choice-content ul li { - border-width: 1px 0; + border-width: 0.1rem 0; border-top: 0; margin-bottom: 0; } @@ -578,15 +568,15 @@ color: #fff; } .layout-category-choice .goods-category-choice .already-select-tips { - padding: 10px 15px; - border: 1px solid #ed7f5a; - margin-top: 10px; - margin-bottom: 10px; + padding: 1rem 1.5rem; + border: 0.1rem solid #ed7f5a; + margin-top: 1rem; + margin-bottom: 1rem; background-color: #fff4f0; color: #ed7f5a; } .layout-category-choice .form-container-category .goods-category-choice-content { - padding: 15px; + padding: 1.5rem; background: #fcfcfc; } .layout-category-choice .form-container-brand .goods-category-choice-content { @@ -594,11 +584,11 @@ } .layout-category-choice .form-container-brand ul { width: 100%; - height: 465px; + height: 46.5rem; } @media only screen and (max-width: 640px) { .layout-category-choice .form-container-category .goods-category-choice-content ul.am-margin-left-lg { - margin-left: 20px; + margin-left: 2rem; } } @@ -606,7 +596,7 @@ * 商品搜索弹窗 */ #popup-module-goods-search .am-tabs-bd { - padding-bottom: 50px; + padding-bottom: 5rem; z-index: 0; border: 0; } @@ -615,13 +605,13 @@ * 布局保存 */ .page-top-nav-logo { - width: 30px; - height: 30px; + width: 3rem; + height: 3rem; vertical-align: middle; } .layout-operate-container { - margin-right: 10px; + margin-right: 1rem; } .layout-operate-container .am-btn { - padding: 4px 10px; + padding: 0.4rem 1rem; } \ No newline at end of file diff --git a/public/static/common/css/layout.css b/public/static/common/css/layout.css index b65bf53ec..426958b4a 100644 --- a/public/static/common/css/layout.css +++ b/public/static/common/css/layout.css @@ -15,36 +15,36 @@ * 模块类型样式 - 数据列表 */ .module-list-content li{float:left} -.module-list-content-avg-1{width:calc(100% + 1px);margin-left:-1px;margin-top:-1px;} -.module-list-content-avg-2{width:calc(100% + 2px);margin-left:-2px;margin-top:-2px;} -.module-list-content-avg-3{width:calc(100% + 3px);margin-left:-3px;margin-top:-3px;} -.module-list-content-avg-4{width:calc(100% + 4px);margin-left:-4px;margin-top:-4px;} -.module-list-content-avg-5{width:calc(100% + 5px);margin-left:-5px;margin-top:-5px;} -.module-list-content-avg-6{width:calc(100% + 6px);margin-left:-6px;margin-top:-6px;} -.module-list-content-avg-7{width:calc(100% + 7px);margin-left:-7px;margin-top:-7px;} -.module-list-content-avg-8{width:calc(100% + 8px);margin-left:-8px;margin-top:-8px;} -.module-list-content-avg-9{width:calc(100% + 9px);margin-left:-9px;margin-top:-9px;} -.module-list-content-avg-10{width:calc(100% + 10px);margin-left:-10px;margin-top:-10px;} -.module-list-content-avg-11{width:calc(100% + 11px);margin-left:-11px;margin-top:-11px;} -.module-list-content-avg-12{width:calc(100% + 12px);margin-left:-12px;margin-top:-12px;} -.module-list-content-avg-13{width:calc(100% + 13px);margin-left:-13px;margin-top:-13px;} -.module-list-content-avg-14{width:calc(100% + 14px);margin-left:-14px;margin-top:-14px;} -.module-list-content-avg-15{width:calc(100% + 15px);margin-left:-15px;margin-top:-15px;} -.module-list-content-avg-16{width:calc(100% + 16px);margin-left:-16px;margin-top:-16px;} -.module-list-content-avg-17{width:calc(100% + 17px);margin-left:-17px;margin-top:-17px;} -.module-list-content-avg-18{width:calc(100% + 18px);margin-left:-18px;margin-top:-18px;} -.module-list-content-avg-19{width:calc(100% + 19px);margin-left:-19px;margin-top:-19px;} -.module-list-content-avg-20{width:calc(100% + 20px);margin-left:-20px;margin-top:-20px;} -.module-list-content-avg-21{width:calc(100% + 21px);margin-left:-21px;margin-top:-21px;} -.module-list-content-avg-22{width:calc(100% + 22px);margin-left:-22px;margin-top:-22px;} -.module-list-content-avg-23{width:calc(100% + 23px);margin-left:-23px;margin-top:-23px;} -.module-list-content-avg-24{width:calc(100% + 24px);margin-left:-24px;margin-top:-24px;} -.module-list-content-avg-25{width:calc(100% + 25px);margin-left:-25px;margin-top:-25px;} -.module-list-content-avg-26{width:calc(100% + 26px);margin-left:-26px;margin-top:-26px;} -.module-list-content-avg-27{width:calc(100% + 27px);margin-left:-27px;margin-top:-27px;} -.module-list-content-avg-28{width:calc(100% + 28px);margin-left:-28px;margin-top:-28px;} -.module-list-content-avg-29{width:calc(100% + 29px);margin-left:-29px;margin-top:-29px;} -.module-list-content-avg-30{width:calc(100% + 30px);margin-left:-30px;margin-top:-30px;} +.module-list-content-avg-1{width:calc(100% + 0.1rem);margin-left:-0.1rem;margin-top:-0.1rem;} +.module-list-content-avg-2{width:calc(100% + 0.2rem);margin-left:-0.2rem;margin-top:-0.2rem;} +.module-list-content-avg-3{width:calc(100% + 0.3rem);margin-left:-0.3rem;margin-top:-0.3rem;} +.module-list-content-avg-4{width:calc(100% + 0.4rem);margin-left:-0.4rem;margin-top:-0.4rem;} +.module-list-content-avg-5{width:calc(100% + 0.5rem);margin-left:-0.5rem;margin-top:-0.5rem;} +.module-list-content-avg-6{width:calc(100% + 0.6rem);margin-left:-0.6rem;margin-top:-0.6rem;} +.module-list-content-avg-7{width:calc(100% + 0.7rem);margin-left:-0.7rem;margin-top:-0.7rem;} +.module-list-content-avg-8{width:calc(100% + 0.8rem);margin-left:-0.8rem;margin-top:-0.8rem;} +.module-list-content-avg-9{width:calc(100% + 0.9rem);margin-left:-0.9rem;margin-top:-0.9rem;} +.module-list-content-avg-10{width:calc(100% + 1rem);margin-left:-1rem;margin-top:-1rem;} +.module-list-content-avg-11{width:calc(100% + 1.1rem);margin-left:-1.1rem;margin-top:-1.1rem;} +.module-list-content-avg-12{width:calc(100% + 1.2rem);margin-left:-1.2rem;margin-top:-1.2rem;} +.module-list-content-avg-13{width:calc(100% + 1.3rem);margin-left:-1.3rem;margin-top:-1.3rem;} +.module-list-content-avg-14{width:calc(100% + 1.4rem);margin-left:-1.4rem;margin-top:-1.4rem;} +.module-list-content-avg-15{width:calc(100% + 1.5rem);margin-left:-1.5rem;margin-top:-1.5rem;} +.module-list-content-avg-16{width:calc(100% + 1.6rem);margin-left:-1.6rem;margin-top:-1.6rem;} +.module-list-content-avg-17{width:calc(100% + 1.7rem);margin-left:-1.7rem;margin-top:-1.7rem;} +.module-list-content-avg-18{width:calc(100% + 1.8rem);margin-left:-1.8rem;margin-top:-1.8rem;} +.module-list-content-avg-19{width:calc(100% + 1.9rem);margin-left:-1.9rem;margin-top:-1.9rem;} +.module-list-content-avg-20{width:calc(100% + 2rem);margin-left:-2rem;margin-top:-2rem;} +.module-list-content-avg-21{width:calc(100% + 2.1rem);margin-left:-2.1rem;margin-top:-2.1rem;} +.module-list-content-avg-22{width:calc(100% + 2.2rem);margin-left:-2.2rem;margin-top:-2.2rem;} +.module-list-content-avg-23{width:calc(100% + 2.3rem);margin-left:-2.3rem;margin-top:-2.3rem;} +.module-list-content-avg-24{width:calc(100% + 2.4rem);margin-left:-2.4rem;margin-top:-2.4rem;} +.module-list-content-avg-25{width:calc(100% + 2.5rem);margin-left:-2.5rem;margin-top:-2.5rem;} +.module-list-content-avg-26{width:calc(100% + 2.6rem);margin-left:-2.6rem;margin-top:-2.6rem;} +.module-list-content-avg-27{width:calc(100% + 2.7rem);margin-left:-2.7rem;margin-top:-2.7rem;} +.module-list-content-avg-28{width:calc(100% + 2.8rem);margin-left:-2.8rem;margin-top:-2.8rem;} +.module-list-content-avg-29{width:calc(100% + 2.9rem);margin-left:-2.9rem;margin-top:-2.9rem;} +.module-list-content-avg-30{width:calc(100% + 3rem);margin-left:-3rem;margin-top:-3rem;} @media only screen and (min-width:641px) { .module-list-md-1 li{width:100%;} .module-list-md-2 li{width:50%;} @@ -92,9 +92,9 @@ * 商品列表 */ .module-goods-content .module-item{background:#fff} -.module-goods-content .module-item .item-bottom{margin-top:5px} -.module-goods-content .module-item .module-title{margin-bottom:5px} -.module-goods-content .module-item .module-title{max-width:100%;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:18px;height:34px;white-space:initial !important} +.module-goods-content .module-item .item-bottom{margin-top:0.5rem} +.module-goods-content .module-item .module-title{margin-bottom:0.5rem} +.module-goods-content .module-item .module-title{max-width:100%;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.8rem;height:3.4rem;white-space:initial !important} .module-goods-content .module-item .module-price{color:#c00;font-weight:bold;word-wrap:normal;text-overflow:ellipsis;white-space:nowrap} @@ -102,239 +102,239 @@ * 布局圆角 */ @media only screen and (min-width:641px) { - .layout-md-border-radius-1{border-radius:1px;} - .layout-md-border-radius-2{border-radius:2px;} - .layout-md-border-radius-3{border-radius:3px;} - .layout-md-border-radius-4{border-radius:4px;} - .layout-md-border-radius-5{border-radius:5px;} - .layout-md-border-radius-6{border-radius:6px;} - .layout-md-border-radius-7{border-radius:7px;} - .layout-md-border-radius-8{border-radius:8px;} - .layout-md-border-radius-9{border-radius:9px;} - .layout-md-border-radius-10{border-radius:10px;} - .layout-md-border-radius-11{border-radius:11px;} - .layout-md-border-radius-12{border-radius:12px;} - .layout-md-border-radius-13{border-radius:13px;} - .layout-md-border-radius-14{border-radius:14px;} - .layout-md-border-radius-15{border-radius:15px;} - .layout-md-border-radius-16{border-radius:16px;} - .layout-md-border-radius-17{border-radius:17px;} - .layout-md-border-radius-18{border-radius:18px;} - .layout-md-border-radius-19{border-radius:19px;} - .layout-md-border-radius-20{border-radius:20px;} - .layout-md-border-radius-21{border-radius:21px;} - .layout-md-border-radius-22{border-radius:22px;} - .layout-md-border-radius-23{border-radius:23px;} - .layout-md-border-radius-24{border-radius:24px;} - .layout-md-border-radius-25{border-radius:25px;} - .layout-md-border-radius-26{border-radius:26px;} - .layout-md-border-radius-27{border-radius:27px;} - .layout-md-border-radius-28{border-radius:28px;} - .layout-md-border-radius-29{border-radius:29px;} - .layout-md-border-radius-30{border-radius:30px;} + .layout-md-border-radius-1{border-radius:0.1rem;} + .layout-md-border-radius-2{border-radius:0.2rem;} + .layout-md-border-radius-3{border-radius:0.3rem;} + .layout-md-border-radius-4{border-radius:0.4rem;} + .layout-md-border-radius-5{border-radius:0.5rem;} + .layout-md-border-radius-6{border-radius:0.6rem;} + .layout-md-border-radius-7{border-radius:0.7rem;} + .layout-md-border-radius-8{border-radius:0.8rem;} + .layout-md-border-radius-9{border-radius:0.9rem;} + .layout-md-border-radius-10{border-radius:1rem;} + .layout-md-border-radius-11{border-radius:1.1rem;} + .layout-md-border-radius-12{border-radius:1.2rem;} + .layout-md-border-radius-13{border-radius:1.3rem;} + .layout-md-border-radius-14{border-radius:1.4rem;} + .layout-md-border-radius-15{border-radius:1.5rem;} + .layout-md-border-radius-16{border-radius:1.6rem;} + .layout-md-border-radius-17{border-radius:1.7rem;} + .layout-md-border-radius-18{border-radius:1.8rem;} + .layout-md-border-radius-19{border-radius:1.9rem;} + .layout-md-border-radius-20{border-radius:2rem;} + .layout-md-border-radius-21{border-radius:2.1rem;} + .layout-md-border-radius-22{border-radius:2.2rem;} + .layout-md-border-radius-23{border-radius:2.3rem;} + .layout-md-border-radius-24{border-radius:2.4rem;} + .layout-md-border-radius-25{border-radius:2.5rem;} + .layout-md-border-radius-26{border-radius:2.6rem;} + .layout-md-border-radius-27{border-radius:2.7rem;} + .layout-md-border-radius-28{border-radius:2.8rem;} + .layout-md-border-radius-29{border-radius:2.9rem;} + .layout-md-border-radius-30{border-radius:3rem;} } @media only screen and (min-width:1025px) { - .layout-lg-border-radius-1{border-radius:1px;} - .layout-lg-border-radius-2{border-radius:2px;} - .layout-lg-border-radius-3{border-radius:3px;} - .layout-lg-border-radius-4{border-radius:4px;} - .layout-lg-border-radius-5{border-radius:5px;} - .layout-lg-border-radius-6{border-radius:6px;} - .layout-lg-border-radius-7{border-radius:7px;} - .layout-lg-border-radius-8{border-radius:8px;} - .layout-lg-border-radius-9{border-radius:9px;} - .layout-lg-border-radius-10{border-radius:10px;} - .layout-lg-border-radius-11{border-radius:11px;} - .layout-lg-border-radius-12{border-radius:12px;} - .layout-lg-border-radius-13{border-radius:13px;} - .layout-lg-border-radius-14{border-radius:14px;} - .layout-lg-border-radius-15{border-radius:15px;} - .layout-lg-border-radius-16{border-radius:16px;} - .layout-lg-border-radius-17{border-radius:17px;} - .layout-lg-border-radius-18{border-radius:18px;} - .layout-lg-border-radius-19{border-radius:19px;} - .layout-lg-border-radius-20{border-radius:20px;} - .layout-lg-border-radius-21{border-radius:21px;} - .layout-lg-border-radius-22{border-radius:22px;} - .layout-lg-border-radius-23{border-radius:23px;} - .layout-lg-border-radius-24{border-radius:24px;} - .layout-lg-border-radius-25{border-radius:25px;} - .layout-lg-border-radius-26{border-radius:26px;} - .layout-lg-border-radius-27{border-radius:27px;} - .layout-lg-border-radius-28{border-radius:28px;} - .layout-lg-border-radius-29{border-radius:29px;} - .layout-lg-border-radius-30{border-radius:30px;} + .layout-lg-border-radius-1{border-radius:0.1rem;} + .layout-lg-border-radius-2{border-radius:0.2rem;} + .layout-lg-border-radius-3{border-radius:0.3rem;} + .layout-lg-border-radius-4{border-radius:0.4rem;} + .layout-lg-border-radius-5{border-radius:0.5rem;} + .layout-lg-border-radius-6{border-radius:0.6rem;} + .layout-lg-border-radius-7{border-radius:0.7rem;} + .layout-lg-border-radius-8{border-radius:0.8rem;} + .layout-lg-border-radius-9{border-radius:0.9rem;} + .layout-lg-border-radius-10{border-radius:1rem;} + .layout-lg-border-radius-11{border-radius:1.1rem;} + .layout-lg-border-radius-12{border-radius:1.2rem;} + .layout-lg-border-radius-13{border-radius:1.3rem;} + .layout-lg-border-radius-14{border-radius:1.4rem;} + .layout-lg-border-radius-15{border-radius:1.5rem;} + .layout-lg-border-radius-16{border-radius:1.6rem;} + .layout-lg-border-radius-17{border-radius:1.7rem;} + .layout-lg-border-radius-18{border-radius:1.8rem;} + .layout-lg-border-radius-19{border-radius:1.9rem;} + .layout-lg-border-radius-20{border-radius:2rem;} + .layout-lg-border-radius-21{border-radius:2.1rem;} + .layout-lg-border-radius-22{border-radius:2.2rem;} + .layout-lg-border-radius-23{border-radius:2.3rem;} + .layout-lg-border-radius-24{border-radius:2.4rem;} + .layout-lg-border-radius-25{border-radius:2.5rem;} + .layout-lg-border-radius-26{border-radius:2.6rem;} + .layout-lg-border-radius-27{border-radius:2.7rem;} + .layout-lg-border-radius-28{border-radius:2.8rem;} + .layout-lg-border-radius-29{border-radius:2.9rem;} + .layout-lg-border-radius-30{border-radius:3rem;} } @media only screen and (max-width: 640px) { - .layout-sm-border-radius-1{border-radius:1px;} - .layout-sm-border-radius-2{border-radius:2px;} - .layout-sm-border-radius-3{border-radius:3px;} - .layout-sm-border-radius-4{border-radius:4px;} - .layout-sm-border-radius-5{border-radius:5px;} - .layout-sm-border-radius-6{border-radius:6px;} - .layout-sm-border-radius-7{border-radius:7px;} - .layout-sm-border-radius-8{border-radius:8px;} - .layout-sm-border-radius-9{border-radius:9px;} - .layout-sm-border-radius-10{border-radius:10px;} - .layout-sm-border-radius-11{border-radius:11px;} - .layout-sm-border-radius-12{border-radius:12px;} - .layout-sm-border-radius-13{border-radius:13px;} - .layout-sm-border-radius-14{border-radius:14px;} - .layout-sm-border-radius-15{border-radius:15px;} - .layout-sm-border-radius-16{border-radius:16px;} - .layout-sm-border-radius-17{border-radius:17px;} - .layout-sm-border-radius-18{border-radius:18px;} - .layout-sm-border-radius-19{border-radius:19px;} - .layout-sm-border-radius-20{border-radius:20px;} - .layout-sm-border-radius-21{border-radius:21px;} - .layout-sm-border-radius-22{border-radius:22px;} - .layout-sm-border-radius-23{border-radius:23px;} - .layout-sm-border-radius-24{border-radius:24px;} - .layout-sm-border-radius-25{border-radius:25px;} - .layout-sm-border-radius-26{border-radius:26px;} - .layout-sm-border-radius-27{border-radius:27px;} - .layout-sm-border-radius-28{border-radius:28px;} - .layout-sm-border-radius-29{border-radius:29px;} - .layout-sm-border-radius-30{border-radius:30px;} + .layout-sm-border-radius-1{border-radius:0.1rem;} + .layout-sm-border-radius-2{border-radius:0.2rem;} + .layout-sm-border-radius-3{border-radius:0.3rem;} + .layout-sm-border-radius-4{border-radius:0.4rem;} + .layout-sm-border-radius-5{border-radius:0.5rem;} + .layout-sm-border-radius-6{border-radius:0.6rem;} + .layout-sm-border-radius-7{border-radius:0.7rem;} + .layout-sm-border-radius-8{border-radius:0.8rem;} + .layout-sm-border-radius-9{border-radius:0.9rem;} + .layout-sm-border-radius-10{border-radius:1rem;} + .layout-sm-border-radius-11{border-radius:1.1rem;} + .layout-sm-border-radius-12{border-radius:1.2rem;} + .layout-sm-border-radius-13{border-radius:1.3rem;} + .layout-sm-border-radius-14{border-radius:1.4rem;} + .layout-sm-border-radius-15{border-radius:1.5rem;} + .layout-sm-border-radius-16{border-radius:1.6rem;} + .layout-sm-border-radius-17{border-radius:1.7rem;} + .layout-sm-border-radius-18{border-radius:1.8rem;} + .layout-sm-border-radius-19{border-radius:1.9rem;} + .layout-sm-border-radius-20{border-radius:2rem;} + .layout-sm-border-radius-21{border-radius:2.1rem;} + .layout-sm-border-radius-22{border-radius:2.2rem;} + .layout-sm-border-radius-23{border-radius:2.3rem;} + .layout-sm-border-radius-24{border-radius:2.4rem;} + .layout-sm-border-radius-25{border-radius:2.5rem;} + .layout-sm-border-radius-26{border-radius:2.6rem;} + .layout-sm-border-radius-27{border-radius:2.7rem;} + .layout-sm-border-radius-28{border-radius:2.8rem;} + .layout-sm-border-radius-29{border-radius:2.9rem;} + .layout-sm-border-radius-30{border-radius:3rem;} } /** * 布局样式 - 边线大小 */ @media only screen and (min-width:641px) { - .layout-md-border-top-1{border-top:1px;} - .layout-md-border-top-2{border-top:2px;} - .layout-md-border-top-3{border-top:3px;} - .layout-md-border-top-4{border-top:4px;} - .layout-md-border-top-5{border-top:5px;} - .layout-md-border-top-6{border-top:6px;} - .layout-md-border-top-7{border-top:7px;} - .layout-md-border-top-8{border-top:8px;} - .layout-md-border-top-9{border-top:9px;} - .layout-md-border-top-10{border-top:10px;} + .layout-md-border-top-1{border-top:0.1rem;} + .layout-md-border-top-2{border-top:0.2rem;} + .layout-md-border-top-3{border-top:0.3rem;} + .layout-md-border-top-4{border-top:0.4rem;} + .layout-md-border-top-5{border-top:0.5rem;} + .layout-md-border-top-6{border-top:0.6rem;} + .layout-md-border-top-7{border-top:0.7rem;} + .layout-md-border-top-8{border-top:0.8rem;} + .layout-md-border-top-9{border-top:0.9rem;} + .layout-md-border-top-10{border-top:1rem;} - .layout-md-border-right-1{border-right:1px;} - .layout-md-border-right-2{border-right:2px;} - .layout-md-border-right-3{border-right:3px;} - .layout-md-border-right-4{border-right:4px;} - .layout-md-border-right-5{border-right:5px;} - .layout-md-border-right-6{border-right:6px;} - .layout-md-border-right-7{border-right:7px;} - .layout-md-border-right-8{border-right:8px;} - .layout-md-border-right-9{border-right:9px;} - .layout-md-border-right-10{border-right:10px;} + .layout-md-border-right-1{border-right:0.1rem;} + .layout-md-border-right-2{border-right:0.2rem;} + .layout-md-border-right-3{border-right:0.3rem;} + .layout-md-border-right-4{border-right:0.4rem;} + .layout-md-border-right-5{border-right:0.5rem;} + .layout-md-border-right-6{border-right:0.6rem;} + .layout-md-border-right-7{border-right:0.7rem;} + .layout-md-border-right-8{border-right:0.8rem;} + .layout-md-border-right-9{border-right:0.9rem;} + .layout-md-border-right-10{border-right:1rem;} - .layout-md-border-bottom-1{border-bottom:1px;} - .layout-md-border-bottom-2{border-bottom:2px;} - .layout-md-border-bottom-3{border-bottom:3px;} - .layout-md-border-bottom-4{border-bottom:4px;} - .layout-md-border-bottom-5{border-bottom:5px;} - .layout-md-border-bottom-6{border-bottom:6px;} - .layout-md-border-bottom-7{border-bottom:7px;} - .layout-md-border-bottom-8{border-bottom:8px;} - .layout-md-border-bottom-9{border-bottom:9px;} - .layout-md-border-bottom-10{border-bottom:10px;} + .layout-md-border-bottom-1{border-bottom:0.1rem;} + .layout-md-border-bottom-2{border-bottom:0.2rem;} + .layout-md-border-bottom-3{border-bottom:0.3rem;} + .layout-md-border-bottom-4{border-bottom:0.4rem;} + .layout-md-border-bottom-5{border-bottom:0.5rem;} + .layout-md-border-bottom-6{border-bottom:0.6rem;} + .layout-md-border-bottom-7{border-bottom:0.7rem;} + .layout-md-border-bottom-8{border-bottom:0.8rem;} + .layout-md-border-bottom-9{border-bottom:0.9rem;} + .layout-md-border-bottom-10{border-bottom:1rem;} - .layout-md-border-left-1{border-left:1px;} - .layout-md-border-left-2{border-left:2px;} - .layout-md-border-left-3{border-left:3px;} - .layout-md-border-left-4{border-left:4px;} - .layout-md-border-left-5{border-left:5px;} - .layout-md-border-left-6{border-left:6px;} - .layout-md-border-left-7{border-left:7px;} - .layout-md-border-left-8{border-left:8px;} - .layout-md-border-left-9{border-left:9px;} - .layout-md-border-left-10{border-left:10px;} + .layout-md-border-left-1{border-left:0.1rem;} + .layout-md-border-left-2{border-left:0.2rem;} + .layout-md-border-left-3{border-left:0.3rem;} + .layout-md-border-left-4{border-left:0.4rem;} + .layout-md-border-left-5{border-left:0.5rem;} + .layout-md-border-left-6{border-left:0.6rem;} + .layout-md-border-left-7{border-left:0.7rem;} + .layout-md-border-left-8{border-left:0.8rem;} + .layout-md-border-left-9{border-left:0.9rem;} + .layout-md-border-left-10{border-left:1rem;} } @media only screen and (min-width:1025px) { - .layout-lg-border-top-1{border-top:1px;} - .layout-lg-border-top-2{border-top:2px;} - .layout-lg-border-top-3{border-top:3px;} - .layout-lg-border-top-4{border-top:4px;} - .layout-lg-border-top-5{border-top:5px;} - .layout-lg-border-top-6{border-top:6px;} - .layout-lg-border-top-7{border-top:7px;} - .layout-lg-border-top-8{border-top:8px;} - .layout-lg-border-top-9{border-top:9px;} - .layout-lg-border-top-10{border-top:10px;} + .layout-lg-border-top-1{border-top:0.1rem;} + .layout-lg-border-top-2{border-top:0.2rem;} + .layout-lg-border-top-3{border-top:0.3rem;} + .layout-lg-border-top-4{border-top:0.4rem;} + .layout-lg-border-top-5{border-top:0.5rem;} + .layout-lg-border-top-6{border-top:0.6rem;} + .layout-lg-border-top-7{border-top:0.7rem;} + .layout-lg-border-top-8{border-top:0.8rem;} + .layout-lg-border-top-9{border-top:0.9rem;} + .layout-lg-border-top-10{border-top:1rem;} - .layout-lg-border-right-1{border-right:1px;} - .layout-lg-border-right-2{border-right:2px;} - .layout-lg-border-right-3{border-right:3px;} - .layout-lg-border-right-4{border-right:4px;} - .layout-lg-border-right-5{border-right:5px;} - .layout-lg-border-right-6{border-right:6px;} - .layout-lg-border-right-7{border-right:7px;} - .layout-lg-border-right-8{border-right:8px;} - .layout-lg-border-right-9{border-right:9px;} - .layout-lg-border-right-10{border-right:10px;} + .layout-lg-border-right-1{border-right:0.1rem;} + .layout-lg-border-right-2{border-right:0.2rem;} + .layout-lg-border-right-3{border-right:0.3rem;} + .layout-lg-border-right-4{border-right:0.4rem;} + .layout-lg-border-right-5{border-right:0.5rem;} + .layout-lg-border-right-6{border-right:0.6rem;} + .layout-lg-border-right-7{border-right:0.7rem;} + .layout-lg-border-right-8{border-right:0.8rem;} + .layout-lg-border-right-9{border-right:0.9rem;} + .layout-lg-border-right-10{border-right:1rem;} - .layout-lg-border-bottom-1{border-bottom:1px;} - .layout-lg-border-bottom-2{border-bottom:2px;} - .layout-lg-border-bottom-3{border-bottom:3px;} - .layout-lg-border-bottom-4{border-bottom:4px;} - .layout-lg-border-bottom-5{border-bottom:5px;} - .layout-lg-border-bottom-6{border-bottom:6px;} - .layout-lg-border-bottom-7{border-bottom:7px;} - .layout-lg-border-bottom-8{border-bottom:8px;} - .layout-lg-border-bottom-9{border-bottom:9px;} - .layout-lg-border-bottom-10{border-bottom:10px;} + .layout-lg-border-bottom-1{border-bottom:0.1rem;} + .layout-lg-border-bottom-2{border-bottom:0.2rem;} + .layout-lg-border-bottom-3{border-bottom:0.3rem;} + .layout-lg-border-bottom-4{border-bottom:0.4rem;} + .layout-lg-border-bottom-5{border-bottom:0.5rem;} + .layout-lg-border-bottom-6{border-bottom:0.6rem;} + .layout-lg-border-bottom-7{border-bottom:0.7rem;} + .layout-lg-border-bottom-8{border-bottom:0.8rem;} + .layout-lg-border-bottom-9{border-bottom:0.9rem;} + .layout-lg-border-bottom-10{border-bottom:1rem;} - .layout-lg-border-left-1{border-left:1px;} - .layout-lg-border-left-2{border-left:2px;} - .layout-lg-border-left-3{border-left:3px;} - .layout-lg-border-left-4{border-left:4px;} - .layout-lg-border-left-5{border-left:5px;} - .layout-lg-border-left-6{border-left:6px;} - .layout-lg-border-left-7{border-left:7px;} - .layout-lg-border-left-8{border-left:8px;} - .layout-lg-border-left-9{border-left:9px;} - .layout-lg-border-left-10{border-left:10px;} + .layout-lg-border-left-1{border-left:0.1rem;} + .layout-lg-border-left-2{border-left:0.2rem;} + .layout-lg-border-left-3{border-left:0.3rem;} + .layout-lg-border-left-4{border-left:0.4rem;} + .layout-lg-border-left-5{border-left:0.5rem;} + .layout-lg-border-left-6{border-left:0.6rem;} + .layout-lg-border-left-7{border-left:0.7rem;} + .layout-lg-border-left-8{border-left:0.8rem;} + .layout-lg-border-left-9{border-left:0.9rem;} + .layout-lg-border-left-10{border-left:1rem;} } @media only screen and (max-width: 640px) { - .layout-sm-border-top-1{border-top:1px;} - .layout-sm-border-top-2{border-top:2px;} - .layout-sm-border-top-3{border-top:3px;} - .layout-sm-border-top-4{border-top:4px;} - .layout-sm-border-top-5{border-top:5px;} - .layout-sm-border-top-6{border-top:6px;} - .layout-sm-border-top-7{border-top:7px;} - .layout-sm-border-top-8{border-top:8px;} - .layout-sm-border-top-9{border-top:9px;} - .layout-sm-border-top-10{border-top:10px;} + .layout-sm-border-top-1{border-top:0.1rem;} + .layout-sm-border-top-2{border-top:0.2rem;} + .layout-sm-border-top-3{border-top:0.3rem;} + .layout-sm-border-top-4{border-top:0.4rem;} + .layout-sm-border-top-5{border-top:0.5rem;} + .layout-sm-border-top-6{border-top:0.6rem;} + .layout-sm-border-top-7{border-top:0.7rem;} + .layout-sm-border-top-8{border-top:0.8rem;} + .layout-sm-border-top-9{border-top:0.9rem;} + .layout-sm-border-top-10{border-top:1rem;} - .layout-sm-border-right-1{border-right:1px;} - .layout-sm-border-right-2{border-right:2px;} - .layout-sm-border-right-3{border-right:3px;} - .layout-sm-border-right-4{border-right:4px;} - .layout-sm-border-right-5{border-right:5px;} - .layout-sm-border-right-6{border-right:6px;} - .layout-sm-border-right-7{border-right:7px;} - .layout-sm-border-right-8{border-right:8px;} - .layout-sm-border-right-9{border-right:9px;} - .layout-sm-border-right-10{border-right:10px;} + .layout-sm-border-right-1{border-right:0.1rem;} + .layout-sm-border-right-2{border-right:0.2rem;} + .layout-sm-border-right-3{border-right:0.3rem;} + .layout-sm-border-right-4{border-right:0.4rem;} + .layout-sm-border-right-5{border-right:0.5rem;} + .layout-sm-border-right-6{border-right:0.6rem;} + .layout-sm-border-right-7{border-right:0.7rem;} + .layout-sm-border-right-8{border-right:0.8rem;} + .layout-sm-border-right-9{border-right:0.9rem;} + .layout-sm-border-right-10{border-right:1rem;} - .layout-sm-border-bottom-1{border-bottom:1px;} - .layout-sm-border-bottom-2{border-bottom:2px;} - .layout-sm-border-bottom-3{border-bottom:3px;} - .layout-sm-border-bottom-4{border-bottom:4px;} - .layout-sm-border-bottom-5{border-bottom:5px;} - .layout-sm-border-bottom-6{border-bottom:6px;} - .layout-sm-border-bottom-7{border-bottom:7px;} - .layout-sm-border-bottom-8{border-bottom:8px;} - .layout-sm-border-bottom-9{border-bottom:9px;} - .layout-sm-border-bottom-10{border-bottom:10px;} + .layout-sm-border-bottom-1{border-bottom:0.1rem;} + .layout-sm-border-bottom-2{border-bottom:0.2rem;} + .layout-sm-border-bottom-3{border-bottom:0.3rem;} + .layout-sm-border-bottom-4{border-bottom:0.4rem;} + .layout-sm-border-bottom-5{border-bottom:0.5rem;} + .layout-sm-border-bottom-6{border-bottom:0.6rem;} + .layout-sm-border-bottom-7{border-bottom:0.7rem;} + .layout-sm-border-bottom-8{border-bottom:0.8rem;} + .layout-sm-border-bottom-9{border-bottom:0.9rem;} + .layout-sm-border-bottom-10{border-bottom:1rem;} - .layout-sm-border-left-1{border-left:1px;} - .layout-sm-border-left-2{border-left:2px;} - .layout-sm-border-left-3{border-left:3px;} - .layout-sm-border-left-4{border-left:4px;} - .layout-sm-border-left-5{border-left:5px;} - .layout-sm-border-left-6{border-left:6px;} - .layout-sm-border-left-7{border-left:7px;} - .layout-sm-border-left-8{border-left:8px;} - .layout-sm-border-left-9{border-left:9px;} - .layout-sm-border-left-10{border-left:10px;} + .layout-sm-border-left-1{border-left:0.1rem;} + .layout-sm-border-left-2{border-left:0.2rem;} + .layout-sm-border-left-3{border-left:0.3rem;} + .layout-sm-border-left-4{border-left:0.4rem;} + .layout-sm-border-left-5{border-left:0.5rem;} + .layout-sm-border-left-6{border-left:0.6rem;} + .layout-sm-border-left-7{border-left:0.7rem;} + .layout-sm-border-left-8{border-left:0.8rem;} + .layout-sm-border-left-9{border-left:0.9rem;} + .layout-sm-border-left-10{border-left:1rem;} } /** @@ -408,1478 +408,1478 @@ * 布局外边距 */ @media only screen and (min-width:641px) { - .layout-md-margin-top-1{margin-top:1px;} - .layout-md-margin-top-2{margin-top:2px;} - .layout-md-margin-top-3{margin-top:3px;} - .layout-md-margin-top-4{margin-top:4px;} - .layout-md-margin-top-5{margin-top:5px;} - .layout-md-margin-top-6{margin-top:6px;} - .layout-md-margin-top-7{margin-top:7px;} - .layout-md-margin-top-8{margin-top:8px;} - .layout-md-margin-top-9{margin-top:9px;} - .layout-md-margin-top-10{margin-top:10px;} - .layout-md-margin-top-11{margin-top:11px;} - .layout-md-margin-top-12{margin-top:12px;} - .layout-md-margin-top-13{margin-top:13px;} - .layout-md-margin-top-14{margin-top:14px;} - .layout-md-margin-top-15{margin-top:15px;} - .layout-md-margin-top-16{margin-top:16px;} - .layout-md-margin-top-17{margin-top:17px;} - .layout-md-margin-top-18{margin-top:18px;} - .layout-md-margin-top-19{margin-top:19px;} - .layout-md-margin-top-20{margin-top:20px;} - .layout-md-margin-top-21{margin-top:21px;} - .layout-md-margin-top-22{margin-top:22px;} - .layout-md-margin-top-23{margin-top:23px;} - .layout-md-margin-top-24{margin-top:24px;} - .layout-md-margin-top-25{margin-top:25px;} - .layout-md-margin-top-26{margin-top:26px;} - .layout-md-margin-top-27{margin-top:27px;} - .layout-md-margin-top-28{margin-top:28px;} - .layout-md-margin-top-29{margin-top:29px;} - .layout-md-margin-top-30{margin-top:30px;} - .layout-md-margin-top-31{margin-top:31px;} - .layout-md-margin-top-32{margin-top:32px;} - .layout-md-margin-top-33{margin-top:33px;} - .layout-md-margin-top-34{margin-top:34px;} - .layout-md-margin-top-35{margin-top:35px;} - .layout-md-margin-top-36{margin-top:36px;} - .layout-md-margin-top-37{margin-top:37px;} - .layout-md-margin-top-38{margin-top:38px;} - .layout-md-margin-top-39{margin-top:39px;} - .layout-md-margin-top-40{margin-top:40px;} - .layout-md-margin-top-41{margin-top:41px;} - .layout-md-margin-top-42{margin-top:42px;} - .layout-md-margin-top-43{margin-top:43px;} - .layout-md-margin-top-44{margin-top:44px;} - .layout-md-margin-top-45{margin-top:45px;} - .layout-md-margin-top-46{margin-top:46px;} - .layout-md-margin-top-47{margin-top:47px;} - .layout-md-margin-top-48{margin-top:48px;} - .layout-md-margin-top-49{margin-top:49px;} - .layout-md-margin-top-50{margin-top:50px;} - .layout-md-margin-top-51{margin-top:51px;} - .layout-md-margin-top-52{margin-top:52px;} - .layout-md-margin-top-53{margin-top:53px;} - .layout-md-margin-top-54{margin-top:54px;} - .layout-md-margin-top-55{margin-top:55px;} - .layout-md-margin-top-56{margin-top:56px;} - .layout-md-margin-top-57{margin-top:57px;} - .layout-md-margin-top-58{margin-top:58px;} - .layout-md-margin-top-59{margin-top:59px;} - .layout-md-margin-top-60{margin-top:60px;} + .layout-md-margin-top-1{margin-top:0.1rem;} + .layout-md-margin-top-2{margin-top:0.2rem;} + .layout-md-margin-top-3{margin-top:0.3rem;} + .layout-md-margin-top-4{margin-top:0.4rem;} + .layout-md-margin-top-5{margin-top:0.5rem;} + .layout-md-margin-top-6{margin-top:0.6rem;} + .layout-md-margin-top-7{margin-top:0.7rem;} + .layout-md-margin-top-8{margin-top:0.8rem;} + .layout-md-margin-top-9{margin-top:0.9rem;} + .layout-md-margin-top-10{margin-top:1rem;} + .layout-md-margin-top-11{margin-top:1.1rem;} + .layout-md-margin-top-12{margin-top:1.2rem;} + .layout-md-margin-top-13{margin-top:1.3rem;} + .layout-md-margin-top-14{margin-top:1.4rem;} + .layout-md-margin-top-15{margin-top:1.5rem;} + .layout-md-margin-top-16{margin-top:1.6rem;} + .layout-md-margin-top-17{margin-top:1.7rem;} + .layout-md-margin-top-18{margin-top:1.8rem;} + .layout-md-margin-top-19{margin-top:1.9rem;} + .layout-md-margin-top-20{margin-top:2rem;} + .layout-md-margin-top-21{margin-top:2.1rem;} + .layout-md-margin-top-22{margin-top:2.2rem;} + .layout-md-margin-top-23{margin-top:2.3rem;} + .layout-md-margin-top-24{margin-top:2.4rem;} + .layout-md-margin-top-25{margin-top:2.5rem;} + .layout-md-margin-top-26{margin-top:2.6rem;} + .layout-md-margin-top-27{margin-top:2.7rem;} + .layout-md-margin-top-28{margin-top:2.8rem;} + .layout-md-margin-top-29{margin-top:2.9rem;} + .layout-md-margin-top-30{margin-top:3rem;} + .layout-md-margin-top-31{margin-top:3.1rem;} + .layout-md-margin-top-32{margin-top:3.2rem;} + .layout-md-margin-top-33{margin-top:3.3rem;} + .layout-md-margin-top-34{margin-top:3.4rem;} + .layout-md-margin-top-35{margin-top:3.5rem;} + .layout-md-margin-top-36{margin-top:3.6rem;} + .layout-md-margin-top-37{margin-top:3.7rem;} + .layout-md-margin-top-38{margin-top:3.8rem;} + .layout-md-margin-top-39{margin-top:3.9rem;} + .layout-md-margin-top-40{margin-top:4rem;} + .layout-md-margin-top-41{margin-top:4.1rem;} + .layout-md-margin-top-42{margin-top:4.2rem;} + .layout-md-margin-top-43{margin-top:4.3rem;} + .layout-md-margin-top-44{margin-top:4.4rem;} + .layout-md-margin-top-45{margin-top:4.5rem;} + .layout-md-margin-top-46{margin-top:4.6rem;} + .layout-md-margin-top-47{margin-top:4.7rem;} + .layout-md-margin-top-48{margin-top:4.8rem;} + .layout-md-margin-top-49{margin-top:4.9rem;} + .layout-md-margin-top-50{margin-top:5rem;} + .layout-md-margin-top-51{margin-top:5.1rem;} + .layout-md-margin-top-52{margin-top:5.2rem;} + .layout-md-margin-top-53{margin-top:5.3rem;} + .layout-md-margin-top-54{margin-top:5.4rem;} + .layout-md-margin-top-55{margin-top:5.5rem;} + .layout-md-margin-top-56{margin-top:5.6rem;} + .layout-md-margin-top-57{margin-top:5.7rem;} + .layout-md-margin-top-58{margin-top:5.8rem;} + .layout-md-margin-top-59{margin-top:5.9rem;} + .layout-md-margin-top-60{margin-top:6rem;} - .layout-md-margin-right-1{margin-right:1px;} - .layout-md-margin-right-2{margin-right:2px;} - .layout-md-margin-right-3{margin-right:3px;} - .layout-md-margin-right-4{margin-right:4px;} - .layout-md-margin-right-5{margin-right:5px;} - .layout-md-margin-right-6{margin-right:6px;} - .layout-md-margin-right-7{margin-right:7px;} - .layout-md-margin-right-8{margin-right:8px;} - .layout-md-margin-right-9{margin-right:9px;} - .layout-md-margin-right-10{margin-right:10px;} - .layout-md-margin-right-11{margin-right:11px;} - .layout-md-margin-right-12{margin-right:12px;} - .layout-md-margin-right-13{margin-right:13px;} - .layout-md-margin-right-14{margin-right:14px;} - .layout-md-margin-right-15{margin-right:15px;} - .layout-md-margin-right-16{margin-right:16px;} - .layout-md-margin-right-17{margin-right:17px;} - .layout-md-margin-right-18{margin-right:18px;} - .layout-md-margin-right-19{margin-right:19px;} - .layout-md-margin-right-20{margin-right:20px;} - .layout-md-margin-right-21{margin-right:21px;} - .layout-md-margin-right-22{margin-right:22px;} - .layout-md-margin-right-23{margin-right:23px;} - .layout-md-margin-right-24{margin-right:24px;} - .layout-md-margin-right-25{margin-right:25px;} - .layout-md-margin-right-26{margin-right:26px;} - .layout-md-margin-right-27{margin-right:27px;} - .layout-md-margin-right-28{margin-right:28px;} - .layout-md-margin-right-29{margin-right:29px;} - .layout-md-margin-right-30{margin-right:30px;} - .layout-md-margin-right-31{margin-right:31px;} - .layout-md-margin-right-32{margin-right:32px;} - .layout-md-margin-right-33{margin-right:33px;} - .layout-md-margin-right-34{margin-right:34px;} - .layout-md-margin-right-35{margin-right:35px;} - .layout-md-margin-right-36{margin-right:36px;} - .layout-md-margin-right-37{margin-right:37px;} - .layout-md-margin-right-38{margin-right:38px;} - .layout-md-margin-right-39{margin-right:39px;} - .layout-md-margin-right-40{margin-right:40px;} - .layout-md-margin-right-41{margin-right:41px;} - .layout-md-margin-right-42{margin-right:42px;} - .layout-md-margin-right-43{margin-right:43px;} - .layout-md-margin-right-44{margin-right:44px;} - .layout-md-margin-right-45{margin-right:45px;} - .layout-md-margin-right-46{margin-right:46px;} - .layout-md-margin-right-47{margin-right:47px;} - .layout-md-margin-right-48{margin-right:48px;} - .layout-md-margin-right-49{margin-right:49px;} - .layout-md-margin-right-50{margin-right:50px;} - .layout-md-margin-right-51{margin-right:51px;} - .layout-md-margin-right-52{margin-right:52px;} - .layout-md-margin-right-53{margin-right:53px;} - .layout-md-margin-right-54{margin-right:54px;} - .layout-md-margin-right-55{margin-right:55px;} - .layout-md-margin-right-56{margin-right:56px;} - .layout-md-margin-right-57{margin-right:57px;} - .layout-md-margin-right-58{margin-right:58px;} - .layout-md-margin-right-59{margin-right:59px;} - .layout-md-margin-right-60{margin-right:60px;} + .layout-md-margin-right-1{margin-right:0.1rem;} + .layout-md-margin-right-2{margin-right:0.2rem;} + .layout-md-margin-right-3{margin-right:0.3rem;} + .layout-md-margin-right-4{margin-right:0.4rem;} + .layout-md-margin-right-5{margin-right:0.5rem;} + .layout-md-margin-right-6{margin-right:0.6rem;} + .layout-md-margin-right-7{margin-right:0.7rem;} + .layout-md-margin-right-8{margin-right:0.8rem;} + .layout-md-margin-right-9{margin-right:0.9rem;} + .layout-md-margin-right-10{margin-right:1rem;} + .layout-md-margin-right-11{margin-right:1.1rem;} + .layout-md-margin-right-12{margin-right:1.2rem;} + .layout-md-margin-right-13{margin-right:1.3rem;} + .layout-md-margin-right-14{margin-right:1.4rem;} + .layout-md-margin-right-15{margin-right:1.5rem;} + .layout-md-margin-right-16{margin-right:1.6rem;} + .layout-md-margin-right-17{margin-right:1.7rem;} + .layout-md-margin-right-18{margin-right:1.8rem;} + .layout-md-margin-right-19{margin-right:1.9rem;} + .layout-md-margin-right-20{margin-right:2rem;} + .layout-md-margin-right-21{margin-right:2.1rem;} + .layout-md-margin-right-22{margin-right:2.2rem;} + .layout-md-margin-right-23{margin-right:2.3rem;} + .layout-md-margin-right-24{margin-right:2.4rem;} + .layout-md-margin-right-25{margin-right:2.5rem;} + .layout-md-margin-right-26{margin-right:2.6rem;} + .layout-md-margin-right-27{margin-right:2.7rem;} + .layout-md-margin-right-28{margin-right:2.8rem;} + .layout-md-margin-right-29{margin-right:2.9rem;} + .layout-md-margin-right-30{margin-right:3rem;} + .layout-md-margin-right-31{margin-right:3.1rem;} + .layout-md-margin-right-32{margin-right:3.2rem;} + .layout-md-margin-right-33{margin-right:3.3rem;} + .layout-md-margin-right-34{margin-right:3.4rem;} + .layout-md-margin-right-35{margin-right:3.5rem;} + .layout-md-margin-right-36{margin-right:3.6rem;} + .layout-md-margin-right-37{margin-right:3.7rem;} + .layout-md-margin-right-38{margin-right:3.8rem;} + .layout-md-margin-right-39{margin-right:3.9rem;} + .layout-md-margin-right-40{margin-right:4rem;} + .layout-md-margin-right-41{margin-right:4.1rem;} + .layout-md-margin-right-42{margin-right:4.2rem;} + .layout-md-margin-right-43{margin-right:4.3rem;} + .layout-md-margin-right-44{margin-right:4.4rem;} + .layout-md-margin-right-45{margin-right:4.5rem;} + .layout-md-margin-right-46{margin-right:4.6rem;} + .layout-md-margin-right-47{margin-right:4.7rem;} + .layout-md-margin-right-48{margin-right:4.8rem;} + .layout-md-margin-right-49{margin-right:4.9rem;} + .layout-md-margin-right-50{margin-right:5rem;} + .layout-md-margin-right-51{margin-right:5.1rem;} + .layout-md-margin-right-52{margin-right:5.2rem;} + .layout-md-margin-right-53{margin-right:5.3rem;} + .layout-md-margin-right-54{margin-right:5.4rem;} + .layout-md-margin-right-55{margin-right:5.5rem;} + .layout-md-margin-right-56{margin-right:5.6rem;} + .layout-md-margin-right-57{margin-right:5.7rem;} + .layout-md-margin-right-58{margin-right:5.8rem;} + .layout-md-margin-right-59{margin-right:5.9rem;} + .layout-md-margin-right-60{margin-right:6rem;} - .layout-md-margin-bottom-1{margin-bottom:1px;} - .layout-md-margin-bottom-2{margin-bottom:2px;} - .layout-md-margin-bottom-3{margin-bottom:3px;} - .layout-md-margin-bottom-4{margin-bottom:4px;} - .layout-md-margin-bottom-5{margin-bottom:5px;} - .layout-md-margin-bottom-6{margin-bottom:6px;} - .layout-md-margin-bottom-7{margin-bottom:7px;} - .layout-md-margin-bottom-8{margin-bottom:8px;} - .layout-md-margin-bottom-9{margin-bottom:9px;} - .layout-md-margin-bottom-10{margin-bottom:10px;} - .layout-md-margin-bottom-11{margin-bottom:11px;} - .layout-md-margin-bottom-12{margin-bottom:12px;} - .layout-md-margin-bottom-13{margin-bottom:13px;} - .layout-md-margin-bottom-14{margin-bottom:14px;} - .layout-md-margin-bottom-15{margin-bottom:15px;} - .layout-md-margin-bottom-16{margin-bottom:16px;} - .layout-md-margin-bottom-17{margin-bottom:17px;} - .layout-md-margin-bottom-18{margin-bottom:18px;} - .layout-md-margin-bottom-19{margin-bottom:19px;} - .layout-md-margin-bottom-20{margin-bottom:20px;} - .layout-md-margin-bottom-21{margin-bottom:21px;} - .layout-md-margin-bottom-22{margin-bottom:22px;} - .layout-md-margin-bottom-23{margin-bottom:23px;} - .layout-md-margin-bottom-24{margin-bottom:24px;} - .layout-md-margin-bottom-25{margin-bottom:25px;} - .layout-md-margin-bottom-26{margin-bottom:26px;} - .layout-md-margin-bottom-27{margin-bottom:27px;} - .layout-md-margin-bottom-28{margin-bottom:28px;} - .layout-md-margin-bottom-29{margin-bottom:29px;} - .layout-md-margin-bottom-30{margin-bottom:30px;} - .layout-md-margin-bottom-31{margin-bottom:31px;} - .layout-md-margin-bottom-32{margin-bottom:32px;} - .layout-md-margin-bottom-33{margin-bottom:33px;} - .layout-md-margin-bottom-34{margin-bottom:34px;} - .layout-md-margin-bottom-35{margin-bottom:35px;} - .layout-md-margin-bottom-36{margin-bottom:36px;} - .layout-md-margin-bottom-37{margin-bottom:37px;} - .layout-md-margin-bottom-38{margin-bottom:38px;} - .layout-md-margin-bottom-39{margin-bottom:39px;} - .layout-md-margin-bottom-40{margin-bottom:40px;} - .layout-md-margin-bottom-41{margin-bottom:41px;} - .layout-md-margin-bottom-42{margin-bottom:42px;} - .layout-md-margin-bottom-43{margin-bottom:43px;} - .layout-md-margin-bottom-44{margin-bottom:44px;} - .layout-md-margin-bottom-45{margin-bottom:45px;} - .layout-md-margin-bottom-46{margin-bottom:46px;} - .layout-md-margin-bottom-47{margin-bottom:47px;} - .layout-md-margin-bottom-48{margin-bottom:48px;} - .layout-md-margin-bottom-49{margin-bottom:49px;} - .layout-md-margin-bottom-50{margin-bottom:50px;} - .layout-md-margin-bottom-51{margin-bottom:51px;} - .layout-md-margin-bottom-52{margin-bottom:52px;} - .layout-md-margin-bottom-53{margin-bottom:53px;} - .layout-md-margin-bottom-54{margin-bottom:54px;} - .layout-md-margin-bottom-55{margin-bottom:55px;} - .layout-md-margin-bottom-56{margin-bottom:56px;} - .layout-md-margin-bottom-57{margin-bottom:57px;} - .layout-md-margin-bottom-58{margin-bottom:58px;} - .layout-md-margin-bottom-59{margin-bottom:59px;} - .layout-md-margin-bottom-60{margin-bottom:60px;} + .layout-md-margin-bottom-1{margin-bottom:0.1rem;} + .layout-md-margin-bottom-2{margin-bottom:0.2rem;} + .layout-md-margin-bottom-3{margin-bottom:0.3rem;} + .layout-md-margin-bottom-4{margin-bottom:0.4rem;} + .layout-md-margin-bottom-5{margin-bottom:0.5rem;} + .layout-md-margin-bottom-6{margin-bottom:0.6rem;} + .layout-md-margin-bottom-7{margin-bottom:0.7rem;} + .layout-md-margin-bottom-8{margin-bottom:0.8rem;} + .layout-md-margin-bottom-9{margin-bottom:0.9rem;} + .layout-md-margin-bottom-10{margin-bottom:1rem;} + .layout-md-margin-bottom-11{margin-bottom:1.1rem;} + .layout-md-margin-bottom-12{margin-bottom:1.2rem;} + .layout-md-margin-bottom-13{margin-bottom:1.3rem;} + .layout-md-margin-bottom-14{margin-bottom:1.4rem;} + .layout-md-margin-bottom-15{margin-bottom:1.5rem;} + .layout-md-margin-bottom-16{margin-bottom:1.6rem;} + .layout-md-margin-bottom-17{margin-bottom:1.7rem;} + .layout-md-margin-bottom-18{margin-bottom:1.8rem;} + .layout-md-margin-bottom-19{margin-bottom:1.9rem;} + .layout-md-margin-bottom-20{margin-bottom:2rem;} + .layout-md-margin-bottom-21{margin-bottom:2.1rem;} + .layout-md-margin-bottom-22{margin-bottom:2.2rem;} + .layout-md-margin-bottom-23{margin-bottom:2.3rem;} + .layout-md-margin-bottom-24{margin-bottom:2.4rem;} + .layout-md-margin-bottom-25{margin-bottom:2.5rem;} + .layout-md-margin-bottom-26{margin-bottom:2.6rem;} + .layout-md-margin-bottom-27{margin-bottom:2.7rem;} + .layout-md-margin-bottom-28{margin-bottom:2.8rem;} + .layout-md-margin-bottom-29{margin-bottom:2.9rem;} + .layout-md-margin-bottom-30{margin-bottom:3rem;} + .layout-md-margin-bottom-31{margin-bottom:3.1rem;} + .layout-md-margin-bottom-32{margin-bottom:3.2rem;} + .layout-md-margin-bottom-33{margin-bottom:3.3rem;} + .layout-md-margin-bottom-34{margin-bottom:3.4rem;} + .layout-md-margin-bottom-35{margin-bottom:3.5rem;} + .layout-md-margin-bottom-36{margin-bottom:3.6rem;} + .layout-md-margin-bottom-37{margin-bottom:3.7rem;} + .layout-md-margin-bottom-38{margin-bottom:3.8rem;} + .layout-md-margin-bottom-39{margin-bottom:3.9rem;} + .layout-md-margin-bottom-40{margin-bottom:4rem;} + .layout-md-margin-bottom-41{margin-bottom:4.1rem;} + .layout-md-margin-bottom-42{margin-bottom:4.2rem;} + .layout-md-margin-bottom-43{margin-bottom:4.3rem;} + .layout-md-margin-bottom-44{margin-bottom:4.4rem;} + .layout-md-margin-bottom-45{margin-bottom:4.5rem;} + .layout-md-margin-bottom-46{margin-bottom:4.6rem;} + .layout-md-margin-bottom-47{margin-bottom:4.7rem;} + .layout-md-margin-bottom-48{margin-bottom:4.8rem;} + .layout-md-margin-bottom-49{margin-bottom:4.9rem;} + .layout-md-margin-bottom-50{margin-bottom:5rem;} + .layout-md-margin-bottom-51{margin-bottom:5.1rem;} + .layout-md-margin-bottom-52{margin-bottom:5.2rem;} + .layout-md-margin-bottom-53{margin-bottom:5.3rem;} + .layout-md-margin-bottom-54{margin-bottom:5.4rem;} + .layout-md-margin-bottom-55{margin-bottom:5.5rem;} + .layout-md-margin-bottom-56{margin-bottom:5.6rem;} + .layout-md-margin-bottom-57{margin-bottom:5.7rem;} + .layout-md-margin-bottom-58{margin-bottom:5.8rem;} + .layout-md-margin-bottom-59{margin-bottom:5.9rem;} + .layout-md-margin-bottom-60{margin-bottom:6rem;} - .layout-md-margin-left-1{margin-left:1px;} - .layout-md-margin-left-2{margin-left:2px;} - .layout-md-margin-left-3{margin-left:3px;} - .layout-md-margin-left-4{margin-left:4px;} - .layout-md-margin-left-5{margin-left:5px;} - .layout-md-margin-left-6{margin-left:6px;} - .layout-md-margin-left-7{margin-left:7px;} - .layout-md-margin-left-8{margin-left:8px;} - .layout-md-margin-left-9{margin-left:9px;} - .layout-md-margin-left-10{margin-left:10px;} - .layout-md-margin-left-11{margin-left:11px;} - .layout-md-margin-left-12{margin-left:12px;} - .layout-md-margin-left-13{margin-left:13px;} - .layout-md-margin-left-14{margin-left:14px;} - .layout-md-margin-left-15{margin-left:15px;} - .layout-md-margin-left-16{margin-left:16px;} - .layout-md-margin-left-17{margin-left:17px;} - .layout-md-margin-left-18{margin-left:18px;} - .layout-md-margin-left-19{margin-left:19px;} - .layout-md-margin-left-20{margin-left:20px;} - .layout-md-margin-left-21{margin-left:21px;} - .layout-md-margin-left-22{margin-left:22px;} - .layout-md-margin-left-23{margin-left:23px;} - .layout-md-margin-left-24{margin-left:24px;} - .layout-md-margin-left-25{margin-left:25px;} - .layout-md-margin-left-26{margin-left:26px;} - .layout-md-margin-left-27{margin-left:27px;} - .layout-md-margin-left-28{margin-left:28px;} - .layout-md-margin-left-29{margin-left:29px;} - .layout-md-margin-left-30{margin-left:30px;} - .layout-md-margin-left-31{margin-left:31px;} - .layout-md-margin-left-32{margin-left:32px;} - .layout-md-margin-left-33{margin-left:33px;} - .layout-md-margin-left-34{margin-left:34px;} - .layout-md-margin-left-35{margin-left:35px;} - .layout-md-margin-left-36{margin-left:36px;} - .layout-md-margin-left-37{margin-left:37px;} - .layout-md-margin-left-38{margin-left:38px;} - .layout-md-margin-left-39{margin-left:39px;} - .layout-md-margin-left-40{margin-left:40px;} - .layout-md-margin-left-41{margin-left:41px;} - .layout-md-margin-left-42{margin-left:42px;} - .layout-md-margin-left-43{margin-left:43px;} - .layout-md-margin-left-44{margin-left:44px;} - .layout-md-margin-left-45{margin-left:45px;} - .layout-md-margin-left-46{margin-left:46px;} - .layout-md-margin-left-47{margin-left:47px;} - .layout-md-margin-left-48{margin-left:48px;} - .layout-md-margin-left-49{margin-left:49px;} - .layout-md-margin-left-50{margin-left:50px;} - .layout-md-margin-left-51{margin-left:51px;} - .layout-md-margin-left-52{margin-left:52px;} - .layout-md-margin-left-53{margin-left:53px;} - .layout-md-margin-left-54{margin-left:54px;} - .layout-md-margin-left-55{margin-left:55px;} - .layout-md-margin-left-56{margin-left:56px;} - .layout-md-margin-left-57{margin-left:57px;} - .layout-md-margin-left-58{margin-left:58px;} - .layout-md-margin-left-59{margin-left:59px;} - .layout-md-margin-left-60{margin-left:60px;} + .layout-md-margin-left-1{margin-left:0.1rem;} + .layout-md-margin-left-2{margin-left:0.2rem;} + .layout-md-margin-left-3{margin-left:0.3rem;} + .layout-md-margin-left-4{margin-left:0.4rem;} + .layout-md-margin-left-5{margin-left:0.5rem;} + .layout-md-margin-left-6{margin-left:0.6rem;} + .layout-md-margin-left-7{margin-left:0.7rem;} + .layout-md-margin-left-8{margin-left:0.8rem;} + .layout-md-margin-left-9{margin-left:0.9rem;} + .layout-md-margin-left-10{margin-left:1rem;} + .layout-md-margin-left-11{margin-left:1.1rem;} + .layout-md-margin-left-12{margin-left:1.2rem;} + .layout-md-margin-left-13{margin-left:1.3rem;} + .layout-md-margin-left-14{margin-left:1.4rem;} + .layout-md-margin-left-15{margin-left:1.5rem;} + .layout-md-margin-left-16{margin-left:1.6rem;} + .layout-md-margin-left-17{margin-left:1.7rem;} + .layout-md-margin-left-18{margin-left:1.8rem;} + .layout-md-margin-left-19{margin-left:1.9rem;} + .layout-md-margin-left-20{margin-left:2rem;} + .layout-md-margin-left-21{margin-left:2.1rem;} + .layout-md-margin-left-22{margin-left:2.2rem;} + .layout-md-margin-left-23{margin-left:2.3rem;} + .layout-md-margin-left-24{margin-left:2.4rem;} + .layout-md-margin-left-25{margin-left:2.5rem;} + .layout-md-margin-left-26{margin-left:2.6rem;} + .layout-md-margin-left-27{margin-left:2.7rem;} + .layout-md-margin-left-28{margin-left:2.8rem;} + .layout-md-margin-left-29{margin-left:2.9rem;} + .layout-md-margin-left-30{margin-left:3rem;} + .layout-md-margin-left-31{margin-left:3.1rem;} + .layout-md-margin-left-32{margin-left:3.2rem;} + .layout-md-margin-left-33{margin-left:3.3rem;} + .layout-md-margin-left-34{margin-left:3.4rem;} + .layout-md-margin-left-35{margin-left:3.5rem;} + .layout-md-margin-left-36{margin-left:3.6rem;} + .layout-md-margin-left-37{margin-left:3.7rem;} + .layout-md-margin-left-38{margin-left:3.8rem;} + .layout-md-margin-left-39{margin-left:3.9rem;} + .layout-md-margin-left-40{margin-left:4rem;} + .layout-md-margin-left-41{margin-left:4.1rem;} + .layout-md-margin-left-42{margin-left:4.2rem;} + .layout-md-margin-left-43{margin-left:4.3rem;} + .layout-md-margin-left-44{margin-left:4.4rem;} + .layout-md-margin-left-45{margin-left:4.5rem;} + .layout-md-margin-left-46{margin-left:4.6rem;} + .layout-md-margin-left-47{margin-left:4.7rem;} + .layout-md-margin-left-48{margin-left:4.8rem;} + .layout-md-margin-left-49{margin-left:4.9rem;} + .layout-md-margin-left-50{margin-left:5rem;} + .layout-md-margin-left-51{margin-left:5.1rem;} + .layout-md-margin-left-52{margin-left:5.2rem;} + .layout-md-margin-left-53{margin-left:5.3rem;} + .layout-md-margin-left-54{margin-left:5.4rem;} + .layout-md-margin-left-55{margin-left:5.5rem;} + .layout-md-margin-left-56{margin-left:5.6rem;} + .layout-md-margin-left-57{margin-left:5.7rem;} + .layout-md-margin-left-58{margin-left:5.8rem;} + .layout-md-margin-left-59{margin-left:5.9rem;} + .layout-md-margin-left-60{margin-left:6rem;} } @media only screen and (min-width:1025px) { - .layout-lg-margin-top-1{margin-top:1px;} - .layout-lg-margin-top-2{margin-top:2px;} - .layout-lg-margin-top-3{margin-top:3px;} - .layout-lg-margin-top-4{margin-top:4px;} - .layout-lg-margin-top-5{margin-top:5px;} - .layout-lg-margin-top-6{margin-top:6px;} - .layout-lg-margin-top-7{margin-top:7px;} - .layout-lg-margin-top-8{margin-top:8px;} - .layout-lg-margin-top-9{margin-top:9px;} - .layout-lg-margin-top-10{margin-top:10px;} - .layout-lg-margin-top-11{margin-top:11px;} - .layout-lg-margin-top-12{margin-top:12px;} - .layout-lg-margin-top-13{margin-top:13px;} - .layout-lg-margin-top-14{margin-top:14px;} - .layout-lg-margin-top-15{margin-top:15px;} - .layout-lg-margin-top-16{margin-top:16px;} - .layout-lg-margin-top-17{margin-top:17px;} - .layout-lg-margin-top-18{margin-top:18px;} - .layout-lg-margin-top-19{margin-top:19px;} - .layout-lg-margin-top-20{margin-top:20px;} - .layout-lg-margin-top-21{margin-top:21px;} - .layout-lg-margin-top-22{margin-top:22px;} - .layout-lg-margin-top-23{margin-top:23px;} - .layout-lg-margin-top-24{margin-top:24px;} - .layout-lg-margin-top-25{margin-top:25px;} - .layout-lg-margin-top-26{margin-top:26px;} - .layout-lg-margin-top-27{margin-top:27px;} - .layout-lg-margin-top-28{margin-top:28px;} - .layout-lg-margin-top-29{margin-top:29px;} - .layout-lg-margin-top-30{margin-top:30px;} - .layout-lg-margin-top-31{margin-top:31px;} - .layout-lg-margin-top-32{margin-top:32px;} - .layout-lg-margin-top-33{margin-top:33px;} - .layout-lg-margin-top-34{margin-top:34px;} - .layout-lg-margin-top-35{margin-top:35px;} - .layout-lg-margin-top-36{margin-top:36px;} - .layout-lg-margin-top-37{margin-top:37px;} - .layout-lg-margin-top-38{margin-top:38px;} - .layout-lg-margin-top-39{margin-top:39px;} - .layout-lg-margin-top-40{margin-top:40px;} - .layout-lg-margin-top-41{margin-top:41px;} - .layout-lg-margin-top-42{margin-top:42px;} - .layout-lg-margin-top-43{margin-top:43px;} - .layout-lg-margin-top-44{margin-top:44px;} - .layout-lg-margin-top-45{margin-top:45px;} - .layout-lg-margin-top-46{margin-top:46px;} - .layout-lg-margin-top-47{margin-top:47px;} - .layout-lg-margin-top-48{margin-top:48px;} - .layout-lg-margin-top-49{margin-top:49px;} - .layout-lg-margin-top-50{margin-top:50px;} - .layout-lg-margin-top-51{margin-top:51px;} - .layout-lg-margin-top-52{margin-top:52px;} - .layout-lg-margin-top-53{margin-top:53px;} - .layout-lg-margin-top-54{margin-top:54px;} - .layout-lg-margin-top-55{margin-top:55px;} - .layout-lg-margin-top-56{margin-top:56px;} - .layout-lg-margin-top-57{margin-top:57px;} - .layout-lg-margin-top-58{margin-top:58px;} - .layout-lg-margin-top-59{margin-top:59px;} - .layout-lg-margin-top-60{margin-top:60px;} + .layout-lg-margin-top-1{margin-top:0.1rem;} + .layout-lg-margin-top-2{margin-top:0.2rem;} + .layout-lg-margin-top-3{margin-top:0.3rem;} + .layout-lg-margin-top-4{margin-top:0.4rem;} + .layout-lg-margin-top-5{margin-top:0.5rem;} + .layout-lg-margin-top-6{margin-top:0.6rem;} + .layout-lg-margin-top-7{margin-top:0.7rem;} + .layout-lg-margin-top-8{margin-top:0.8rem;} + .layout-lg-margin-top-9{margin-top:0.9rem;} + .layout-lg-margin-top-10{margin-top:1rem;} + .layout-lg-margin-top-11{margin-top:1.1rem;} + .layout-lg-margin-top-12{margin-top:1.2rem;} + .layout-lg-margin-top-13{margin-top:1.3rem;} + .layout-lg-margin-top-14{margin-top:1.4rem;} + .layout-lg-margin-top-15{margin-top:1.5rem;} + .layout-lg-margin-top-16{margin-top:1.6rem;} + .layout-lg-margin-top-17{margin-top:1.7rem;} + .layout-lg-margin-top-18{margin-top:1.8rem;} + .layout-lg-margin-top-19{margin-top:1.9rem;} + .layout-lg-margin-top-20{margin-top:2rem;} + .layout-lg-margin-top-21{margin-top:2.1rem;} + .layout-lg-margin-top-22{margin-top:2.2rem;} + .layout-lg-margin-top-23{margin-top:2.3rem;} + .layout-lg-margin-top-24{margin-top:2.4rem;} + .layout-lg-margin-top-25{margin-top:2.5rem;} + .layout-lg-margin-top-26{margin-top:2.6rem;} + .layout-lg-margin-top-27{margin-top:2.7rem;} + .layout-lg-margin-top-28{margin-top:2.8rem;} + .layout-lg-margin-top-29{margin-top:2.9rem;} + .layout-lg-margin-top-30{margin-top:3rem;} + .layout-lg-margin-top-31{margin-top:3.1rem;} + .layout-lg-margin-top-32{margin-top:3.2rem;} + .layout-lg-margin-top-33{margin-top:3.3rem;} + .layout-lg-margin-top-34{margin-top:3.4rem;} + .layout-lg-margin-top-35{margin-top:3.5rem;} + .layout-lg-margin-top-36{margin-top:3.6rem;} + .layout-lg-margin-top-37{margin-top:3.7rem;} + .layout-lg-margin-top-38{margin-top:3.8rem;} + .layout-lg-margin-top-39{margin-top:3.9rem;} + .layout-lg-margin-top-40{margin-top:4rem;} + .layout-lg-margin-top-41{margin-top:4.1rem;} + .layout-lg-margin-top-42{margin-top:4.2rem;} + .layout-lg-margin-top-43{margin-top:4.3rem;} + .layout-lg-margin-top-44{margin-top:4.4rem;} + .layout-lg-margin-top-45{margin-top:4.5rem;} + .layout-lg-margin-top-46{margin-top:4.6rem;} + .layout-lg-margin-top-47{margin-top:4.7rem;} + .layout-lg-margin-top-48{margin-top:4.8rem;} + .layout-lg-margin-top-49{margin-top:4.9rem;} + .layout-lg-margin-top-50{margin-top:5rem;} + .layout-lg-margin-top-51{margin-top:5.1rem;} + .layout-lg-margin-top-52{margin-top:5.2rem;} + .layout-lg-margin-top-53{margin-top:5.3rem;} + .layout-lg-margin-top-54{margin-top:5.4rem;} + .layout-lg-margin-top-55{margin-top:5.5rem;} + .layout-lg-margin-top-56{margin-top:5.6rem;} + .layout-lg-margin-top-57{margin-top:5.7rem;} + .layout-lg-margin-top-58{margin-top:5.8rem;} + .layout-lg-margin-top-59{margin-top:5.9rem;} + .layout-lg-margin-top-60{margin-top:6rem;} - .layout-lg-margin-right-1{margin-right:1px;} - .layout-lg-margin-right-2{margin-right:2px;} - .layout-lg-margin-right-3{margin-right:3px;} - .layout-lg-margin-right-4{margin-right:4px;} - .layout-lg-margin-right-5{margin-right:5px;} - .layout-lg-margin-right-6{margin-right:6px;} - .layout-lg-margin-right-7{margin-right:7px;} - .layout-lg-margin-right-8{margin-right:8px;} - .layout-lg-margin-right-9{margin-right:9px;} - .layout-lg-margin-right-10{margin-right:10px;} - .layout-lg-margin-right-11{margin-right:11px;} - .layout-lg-margin-right-12{margin-right:12px;} - .layout-lg-margin-right-13{margin-right:13px;} - .layout-lg-margin-right-14{margin-right:14px;} - .layout-lg-margin-right-15{margin-right:15px;} - .layout-lg-margin-right-16{margin-right:16px;} - .layout-lg-margin-right-17{margin-right:17px;} - .layout-lg-margin-right-18{margin-right:18px;} - .layout-lg-margin-right-19{margin-right:19px;} - .layout-lg-margin-right-20{margin-right:20px;} - .layout-lg-margin-right-21{margin-right:21px;} - .layout-lg-margin-right-22{margin-right:22px;} - .layout-lg-margin-right-23{margin-right:23px;} - .layout-lg-margin-right-24{margin-right:24px;} - .layout-lg-margin-right-25{margin-right:25px;} - .layout-lg-margin-right-26{margin-right:26px;} - .layout-lg-margin-right-27{margin-right:27px;} - .layout-lg-margin-right-28{margin-right:28px;} - .layout-lg-margin-right-29{margin-right:29px;} - .layout-lg-margin-right-30{margin-right:30px;} - .layout-lg-margin-right-31{margin-right:31px;} - .layout-lg-margin-right-32{margin-right:32px;} - .layout-lg-margin-right-33{margin-right:33px;} - .layout-lg-margin-right-34{margin-right:34px;} - .layout-lg-margin-right-35{margin-right:35px;} - .layout-lg-margin-right-36{margin-right:36px;} - .layout-lg-margin-right-37{margin-right:37px;} - .layout-lg-margin-right-38{margin-right:38px;} - .layout-lg-margin-right-39{margin-right:39px;} - .layout-lg-margin-right-40{margin-right:40px;} - .layout-lg-margin-right-41{margin-right:41px;} - .layout-lg-margin-right-42{margin-right:42px;} - .layout-lg-margin-right-43{margin-right:43px;} - .layout-lg-margin-right-44{margin-right:44px;} - .layout-lg-margin-right-45{margin-right:45px;} - .layout-lg-margin-right-46{margin-right:46px;} - .layout-lg-margin-right-47{margin-right:47px;} - .layout-lg-margin-right-48{margin-right:48px;} - .layout-lg-margin-right-49{margin-right:49px;} - .layout-lg-margin-right-50{margin-right:50px;} - .layout-lg-margin-right-51{margin-right:51px;} - .layout-lg-margin-right-52{margin-right:52px;} - .layout-lg-margin-right-53{margin-right:53px;} - .layout-lg-margin-right-54{margin-right:54px;} - .layout-lg-margin-right-55{margin-right:55px;} - .layout-lg-margin-right-56{margin-right:56px;} - .layout-lg-margin-right-57{margin-right:57px;} - .layout-lg-margin-right-58{margin-right:58px;} - .layout-lg-margin-right-59{margin-right:59px;} - .layout-lg-margin-right-60{margin-right:60px;} + .layout-lg-margin-right-1{margin-right:0.1rem;} + .layout-lg-margin-right-2{margin-right:0.2rem;} + .layout-lg-margin-right-3{margin-right:0.3rem;} + .layout-lg-margin-right-4{margin-right:0.4rem;} + .layout-lg-margin-right-5{margin-right:0.5rem;} + .layout-lg-margin-right-6{margin-right:0.6rem;} + .layout-lg-margin-right-7{margin-right:0.7rem;} + .layout-lg-margin-right-8{margin-right:0.8rem;} + .layout-lg-margin-right-9{margin-right:0.9rem;} + .layout-lg-margin-right-10{margin-right:1rem;} + .layout-lg-margin-right-11{margin-right:1.1rem;} + .layout-lg-margin-right-12{margin-right:1.2rem;} + .layout-lg-margin-right-13{margin-right:1.3rem;} + .layout-lg-margin-right-14{margin-right:1.4rem;} + .layout-lg-margin-right-15{margin-right:1.5rem;} + .layout-lg-margin-right-16{margin-right:1.6rem;} + .layout-lg-margin-right-17{margin-right:1.7rem;} + .layout-lg-margin-right-18{margin-right:1.8rem;} + .layout-lg-margin-right-19{margin-right:1.9rem;} + .layout-lg-margin-right-20{margin-right:2rem;} + .layout-lg-margin-right-21{margin-right:2.1rem;} + .layout-lg-margin-right-22{margin-right:2.2rem;} + .layout-lg-margin-right-23{margin-right:2.3rem;} + .layout-lg-margin-right-24{margin-right:2.4rem;} + .layout-lg-margin-right-25{margin-right:2.5rem;} + .layout-lg-margin-right-26{margin-right:2.6rem;} + .layout-lg-margin-right-27{margin-right:2.7rem;} + .layout-lg-margin-right-28{margin-right:2.8rem;} + .layout-lg-margin-right-29{margin-right:2.9rem;} + .layout-lg-margin-right-30{margin-right:3rem;} + .layout-lg-margin-right-31{margin-right:3.1rem;} + .layout-lg-margin-right-32{margin-right:3.2rem;} + .layout-lg-margin-right-33{margin-right:3.3rem;} + .layout-lg-margin-right-34{margin-right:3.4rem;} + .layout-lg-margin-right-35{margin-right:3.5rem;} + .layout-lg-margin-right-36{margin-right:3.6rem;} + .layout-lg-margin-right-37{margin-right:3.7rem;} + .layout-lg-margin-right-38{margin-right:3.8rem;} + .layout-lg-margin-right-39{margin-right:3.9rem;} + .layout-lg-margin-right-40{margin-right:4rem;} + .layout-lg-margin-right-41{margin-right:4.1rem;} + .layout-lg-margin-right-42{margin-right:4.2rem;} + .layout-lg-margin-right-43{margin-right:4.3rem;} + .layout-lg-margin-right-44{margin-right:4.4rem;} + .layout-lg-margin-right-45{margin-right:4.5rem;} + .layout-lg-margin-right-46{margin-right:4.6rem;} + .layout-lg-margin-right-47{margin-right:4.7rem;} + .layout-lg-margin-right-48{margin-right:4.8rem;} + .layout-lg-margin-right-49{margin-right:4.9rem;} + .layout-lg-margin-right-50{margin-right:5rem;} + .layout-lg-margin-right-51{margin-right:5.1rem;} + .layout-lg-margin-right-52{margin-right:5.2rem;} + .layout-lg-margin-right-53{margin-right:5.3rem;} + .layout-lg-margin-right-54{margin-right:5.4rem;} + .layout-lg-margin-right-55{margin-right:5.5rem;} + .layout-lg-margin-right-56{margin-right:5.6rem;} + .layout-lg-margin-right-57{margin-right:5.7rem;} + .layout-lg-margin-right-58{margin-right:5.8rem;} + .layout-lg-margin-right-59{margin-right:5.9rem;} + .layout-lg-margin-right-60{margin-right:6rem;} - .layout-lg-margin-bottom-1{margin-bottom:1px;} - .layout-lg-margin-bottom-2{margin-bottom:2px;} - .layout-lg-margin-bottom-3{margin-bottom:3px;} - .layout-lg-margin-bottom-4{margin-bottom:4px;} - .layout-lg-margin-bottom-5{margin-bottom:5px;} - .layout-lg-margin-bottom-6{margin-bottom:6px;} - .layout-lg-margin-bottom-7{margin-bottom:7px;} - .layout-lg-margin-bottom-8{margin-bottom:8px;} - .layout-lg-margin-bottom-9{margin-bottom:9px;} - .layout-lg-margin-bottom-10{margin-bottom:10px;} - .layout-lg-margin-bottom-11{margin-bottom:11px;} - .layout-lg-margin-bottom-12{margin-bottom:12px;} - .layout-lg-margin-bottom-13{margin-bottom:13px;} - .layout-lg-margin-bottom-14{margin-bottom:14px;} - .layout-lg-margin-bottom-15{margin-bottom:15px;} - .layout-lg-margin-bottom-16{margin-bottom:16px;} - .layout-lg-margin-bottom-17{margin-bottom:17px;} - .layout-lg-margin-bottom-18{margin-bottom:18px;} - .layout-lg-margin-bottom-19{margin-bottom:19px;} - .layout-lg-margin-bottom-20{margin-bottom:20px;} - .layout-lg-margin-bottom-21{margin-bottom:21px;} - .layout-lg-margin-bottom-22{margin-bottom:22px;} - .layout-lg-margin-bottom-23{margin-bottom:23px;} - .layout-lg-margin-bottom-24{margin-bottom:24px;} - .layout-lg-margin-bottom-25{margin-bottom:25px;} - .layout-lg-margin-bottom-26{margin-bottom:26px;} - .layout-lg-margin-bottom-27{margin-bottom:27px;} - .layout-lg-margin-bottom-28{margin-bottom:28px;} - .layout-lg-margin-bottom-29{margin-bottom:29px;} - .layout-lg-margin-bottom-30{margin-bottom:30px;} - .layout-lg-margin-bottom-31{margin-bottom:31px;} - .layout-lg-margin-bottom-32{margin-bottom:32px;} - .layout-lg-margin-bottom-33{margin-bottom:33px;} - .layout-lg-margin-bottom-34{margin-bottom:34px;} - .layout-lg-margin-bottom-35{margin-bottom:35px;} - .layout-lg-margin-bottom-36{margin-bottom:36px;} - .layout-lg-margin-bottom-37{margin-bottom:37px;} - .layout-lg-margin-bottom-38{margin-bottom:38px;} - .layout-lg-margin-bottom-39{margin-bottom:39px;} - .layout-lg-margin-bottom-40{margin-bottom:40px;} - .layout-lg-margin-bottom-41{margin-bottom:41px;} - .layout-lg-margin-bottom-42{margin-bottom:42px;} - .layout-lg-margin-bottom-43{margin-bottom:43px;} - .layout-lg-margin-bottom-44{margin-bottom:44px;} - .layout-lg-margin-bottom-45{margin-bottom:45px;} - .layout-lg-margin-bottom-46{margin-bottom:46px;} - .layout-lg-margin-bottom-47{margin-bottom:47px;} - .layout-lg-margin-bottom-48{margin-bottom:48px;} - .layout-lg-margin-bottom-49{margin-bottom:49px;} - .layout-lg-margin-bottom-50{margin-bottom:50px;} - .layout-lg-margin-bottom-51{margin-bottom:51px;} - .layout-lg-margin-bottom-52{margin-bottom:52px;} - .layout-lg-margin-bottom-53{margin-bottom:53px;} - .layout-lg-margin-bottom-54{margin-bottom:54px;} - .layout-lg-margin-bottom-55{margin-bottom:55px;} - .layout-lg-margin-bottom-56{margin-bottom:56px;} - .layout-lg-margin-bottom-57{margin-bottom:57px;} - .layout-lg-margin-bottom-58{margin-bottom:58px;} - .layout-lg-margin-bottom-59{margin-bottom:59px;} - .layout-lg-margin-bottom-60{margin-bottom:60px;} + .layout-lg-margin-bottom-1{margin-bottom:0.1rem;} + .layout-lg-margin-bottom-2{margin-bottom:0.2rem;} + .layout-lg-margin-bottom-3{margin-bottom:0.3rem;} + .layout-lg-margin-bottom-4{margin-bottom:0.4rem;} + .layout-lg-margin-bottom-5{margin-bottom:0.5rem;} + .layout-lg-margin-bottom-6{margin-bottom:0.6rem;} + .layout-lg-margin-bottom-7{margin-bottom:0.7rem;} + .layout-lg-margin-bottom-8{margin-bottom:0.8rem;} + .layout-lg-margin-bottom-9{margin-bottom:0.9rem;} + .layout-lg-margin-bottom-10{margin-bottom:1rem;} + .layout-lg-margin-bottom-11{margin-bottom:1.1rem;} + .layout-lg-margin-bottom-12{margin-bottom:1.2rem;} + .layout-lg-margin-bottom-13{margin-bottom:1.3rem;} + .layout-lg-margin-bottom-14{margin-bottom:1.4rem;} + .layout-lg-margin-bottom-15{margin-bottom:1.5rem;} + .layout-lg-margin-bottom-16{margin-bottom:1.6rem;} + .layout-lg-margin-bottom-17{margin-bottom:1.7rem;} + .layout-lg-margin-bottom-18{margin-bottom:1.8rem;} + .layout-lg-margin-bottom-19{margin-bottom:1.9rem;} + .layout-lg-margin-bottom-20{margin-bottom:2rem;} + .layout-lg-margin-bottom-21{margin-bottom:2.1rem;} + .layout-lg-margin-bottom-22{margin-bottom:2.2rem;} + .layout-lg-margin-bottom-23{margin-bottom:2.3rem;} + .layout-lg-margin-bottom-24{margin-bottom:2.4rem;} + .layout-lg-margin-bottom-25{margin-bottom:2.5rem;} + .layout-lg-margin-bottom-26{margin-bottom:2.6rem;} + .layout-lg-margin-bottom-27{margin-bottom:2.7rem;} + .layout-lg-margin-bottom-28{margin-bottom:2.8rem;} + .layout-lg-margin-bottom-29{margin-bottom:2.9rem;} + .layout-lg-margin-bottom-30{margin-bottom:3rem;} + .layout-lg-margin-bottom-31{margin-bottom:3.1rem;} + .layout-lg-margin-bottom-32{margin-bottom:3.2rem;} + .layout-lg-margin-bottom-33{margin-bottom:3.3rem;} + .layout-lg-margin-bottom-34{margin-bottom:3.4rem;} + .layout-lg-margin-bottom-35{margin-bottom:3.5rem;} + .layout-lg-margin-bottom-36{margin-bottom:3.6rem;} + .layout-lg-margin-bottom-37{margin-bottom:3.7rem;} + .layout-lg-margin-bottom-38{margin-bottom:3.8rem;} + .layout-lg-margin-bottom-39{margin-bottom:3.9rem;} + .layout-lg-margin-bottom-40{margin-bottom:4rem;} + .layout-lg-margin-bottom-41{margin-bottom:4.1rem;} + .layout-lg-margin-bottom-42{margin-bottom:4.2rem;} + .layout-lg-margin-bottom-43{margin-bottom:4.3rem;} + .layout-lg-margin-bottom-44{margin-bottom:4.4rem;} + .layout-lg-margin-bottom-45{margin-bottom:4.5rem;} + .layout-lg-margin-bottom-46{margin-bottom:4.6rem;} + .layout-lg-margin-bottom-47{margin-bottom:4.7rem;} + .layout-lg-margin-bottom-48{margin-bottom:4.8rem;} + .layout-lg-margin-bottom-49{margin-bottom:4.9rem;} + .layout-lg-margin-bottom-50{margin-bottom:5rem;} + .layout-lg-margin-bottom-51{margin-bottom:5.1rem;} + .layout-lg-margin-bottom-52{margin-bottom:5.2rem;} + .layout-lg-margin-bottom-53{margin-bottom:5.3rem;} + .layout-lg-margin-bottom-54{margin-bottom:5.4rem;} + .layout-lg-margin-bottom-55{margin-bottom:5.5rem;} + .layout-lg-margin-bottom-56{margin-bottom:5.6rem;} + .layout-lg-margin-bottom-57{margin-bottom:5.7rem;} + .layout-lg-margin-bottom-58{margin-bottom:5.8rem;} + .layout-lg-margin-bottom-59{margin-bottom:5.9rem;} + .layout-lg-margin-bottom-60{margin-bottom:6rem;} - .layout-lg-margin-left-1{margin-left:1px;} - .layout-lg-margin-left-2{margin-left:2px;} - .layout-lg-margin-left-3{margin-left:3px;} - .layout-lg-margin-left-4{margin-left:4px;} - .layout-lg-margin-left-5{margin-left:5px;} - .layout-lg-margin-left-6{margin-left:6px;} - .layout-lg-margin-left-7{margin-left:7px;} - .layout-lg-margin-left-8{margin-left:8px;} - .layout-lg-margin-left-9{margin-left:9px;} - .layout-lg-margin-left-10{margin-left:10px;} - .layout-lg-margin-left-11{margin-left:11px;} - .layout-lg-margin-left-12{margin-left:12px;} - .layout-lg-margin-left-13{margin-left:13px;} - .layout-lg-margin-left-14{margin-left:14px;} - .layout-lg-margin-left-15{margin-left:15px;} - .layout-lg-margin-left-16{margin-left:16px;} - .layout-lg-margin-left-17{margin-left:17px;} - .layout-lg-margin-left-18{margin-left:18px;} - .layout-lg-margin-left-19{margin-left:19px;} - .layout-lg-margin-left-20{margin-left:20px;} - .layout-lg-margin-left-21{margin-left:21px;} - .layout-lg-margin-left-22{margin-left:22px;} - .layout-lg-margin-left-23{margin-left:23px;} - .layout-lg-margin-left-24{margin-left:24px;} - .layout-lg-margin-left-25{margin-left:25px;} - .layout-lg-margin-left-26{margin-left:26px;} - .layout-lg-margin-left-27{margin-left:27px;} - .layout-lg-margin-left-28{margin-left:28px;} - .layout-lg-margin-left-29{margin-left:29px;} - .layout-lg-margin-left-30{margin-left:30px;} - .layout-lg-margin-left-31{margin-left:31px;} - .layout-lg-margin-left-32{margin-left:32px;} - .layout-lg-margin-left-33{margin-left:33px;} - .layout-lg-margin-left-34{margin-left:34px;} - .layout-lg-margin-left-35{margin-left:35px;} - .layout-lg-margin-left-36{margin-left:36px;} - .layout-lg-margin-left-37{margin-left:37px;} - .layout-lg-margin-left-38{margin-left:38px;} - .layout-lg-margin-left-39{margin-left:39px;} - .layout-lg-margin-left-40{margin-left:40px;} - .layout-lg-margin-left-41{margin-left:41px;} - .layout-lg-margin-left-42{margin-left:42px;} - .layout-lg-margin-left-43{margin-left:43px;} - .layout-lg-margin-left-44{margin-left:44px;} - .layout-lg-margin-left-45{margin-left:45px;} - .layout-lg-margin-left-46{margin-left:46px;} - .layout-lg-margin-left-47{margin-left:47px;} - .layout-lg-margin-left-48{margin-left:48px;} - .layout-lg-margin-left-49{margin-left:49px;} - .layout-lg-margin-left-50{margin-left:50px;} - .layout-lg-margin-left-51{margin-left:51px;} - .layout-lg-margin-left-52{margin-left:52px;} - .layout-lg-margin-left-53{margin-left:53px;} - .layout-lg-margin-left-54{margin-left:54px;} - .layout-lg-margin-left-55{margin-left:55px;} - .layout-lg-margin-left-56{margin-left:56px;} - .layout-lg-margin-left-57{margin-left:57px;} - .layout-lg-margin-left-58{margin-left:58px;} - .layout-lg-margin-left-59{margin-left:59px;} - .layout-lg-margin-left-60{margin-left:60px;} + .layout-lg-margin-left-1{margin-left:0.1rem;} + .layout-lg-margin-left-2{margin-left:0.2rem;} + .layout-lg-margin-left-3{margin-left:0.3rem;} + .layout-lg-margin-left-4{margin-left:0.4rem;} + .layout-lg-margin-left-5{margin-left:0.5rem;} + .layout-lg-margin-left-6{margin-left:0.6rem;} + .layout-lg-margin-left-7{margin-left:0.7rem;} + .layout-lg-margin-left-8{margin-left:0.8rem;} + .layout-lg-margin-left-9{margin-left:0.9rem;} + .layout-lg-margin-left-10{margin-left:1rem;} + .layout-lg-margin-left-11{margin-left:1.1rem;} + .layout-lg-margin-left-12{margin-left:1.2rem;} + .layout-lg-margin-left-13{margin-left:1.3rem;} + .layout-lg-margin-left-14{margin-left:1.4rem;} + .layout-lg-margin-left-15{margin-left:1.5rem;} + .layout-lg-margin-left-16{margin-left:1.6rem;} + .layout-lg-margin-left-17{margin-left:1.7rem;} + .layout-lg-margin-left-18{margin-left:1.8rem;} + .layout-lg-margin-left-19{margin-left:1.9rem;} + .layout-lg-margin-left-20{margin-left:2rem;} + .layout-lg-margin-left-21{margin-left:2.1rem;} + .layout-lg-margin-left-22{margin-left:2.2rem;} + .layout-lg-margin-left-23{margin-left:2.3rem;} + .layout-lg-margin-left-24{margin-left:2.4rem;} + .layout-lg-margin-left-25{margin-left:2.5rem;} + .layout-lg-margin-left-26{margin-left:2.6rem;} + .layout-lg-margin-left-27{margin-left:2.7rem;} + .layout-lg-margin-left-28{margin-left:2.8rem;} + .layout-lg-margin-left-29{margin-left:2.9rem;} + .layout-lg-margin-left-30{margin-left:3rem;} + .layout-lg-margin-left-31{margin-left:3.1rem;} + .layout-lg-margin-left-32{margin-left:3.2rem;} + .layout-lg-margin-left-33{margin-left:3.3rem;} + .layout-lg-margin-left-34{margin-left:3.4rem;} + .layout-lg-margin-left-35{margin-left:3.5rem;} + .layout-lg-margin-left-36{margin-left:3.6rem;} + .layout-lg-margin-left-37{margin-left:3.7rem;} + .layout-lg-margin-left-38{margin-left:3.8rem;} + .layout-lg-margin-left-39{margin-left:3.9rem;} + .layout-lg-margin-left-40{margin-left:4rem;} + .layout-lg-margin-left-41{margin-left:4.1rem;} + .layout-lg-margin-left-42{margin-left:4.2rem;} + .layout-lg-margin-left-43{margin-left:4.3rem;} + .layout-lg-margin-left-44{margin-left:4.4rem;} + .layout-lg-margin-left-45{margin-left:4.5rem;} + .layout-lg-margin-left-46{margin-left:4.6rem;} + .layout-lg-margin-left-47{margin-left:4.7rem;} + .layout-lg-margin-left-48{margin-left:4.8rem;} + .layout-lg-margin-left-49{margin-left:4.9rem;} + .layout-lg-margin-left-50{margin-left:5rem;} + .layout-lg-margin-left-51{margin-left:5.1rem;} + .layout-lg-margin-left-52{margin-left:5.2rem;} + .layout-lg-margin-left-53{margin-left:5.3rem;} + .layout-lg-margin-left-54{margin-left:5.4rem;} + .layout-lg-margin-left-55{margin-left:5.5rem;} + .layout-lg-margin-left-56{margin-left:5.6rem;} + .layout-lg-margin-left-57{margin-left:5.7rem;} + .layout-lg-margin-left-58{margin-left:5.8rem;} + .layout-lg-margin-left-59{margin-left:5.9rem;} + .layout-lg-margin-left-60{margin-left:6rem;} } @media only screen and (max-width: 640px) { - .layout-sm-margin-top-1{margin-top:1px;} - .layout-sm-margin-top-2{margin-top:2px;} - .layout-sm-margin-top-3{margin-top:3px;} - .layout-sm-margin-top-4{margin-top:4px;} - .layout-sm-margin-top-5{margin-top:5px;} - .layout-sm-margin-top-6{margin-top:6px;} - .layout-sm-margin-top-7{margin-top:7px;} - .layout-sm-margin-top-8{margin-top:8px;} - .layout-sm-margin-top-9{margin-top:9px;} - .layout-sm-margin-top-10{margin-top:10px;} - .layout-sm-margin-top-11{margin-top:11px;} - .layout-sm-margin-top-12{margin-top:12px;} - .layout-sm-margin-top-13{margin-top:13px;} - .layout-sm-margin-top-14{margin-top:14px;} - .layout-sm-margin-top-15{margin-top:15px;} - .layout-sm-margin-top-16{margin-top:16px;} - .layout-sm-margin-top-17{margin-top:17px;} - .layout-sm-margin-top-18{margin-top:18px;} - .layout-sm-margin-top-19{margin-top:19px;} - .layout-sm-margin-top-20{margin-top:20px;} - .layout-sm-margin-top-21{margin-top:21px;} - .layout-sm-margin-top-22{margin-top:22px;} - .layout-sm-margin-top-23{margin-top:23px;} - .layout-sm-margin-top-24{margin-top:24px;} - .layout-sm-margin-top-25{margin-top:25px;} - .layout-sm-margin-top-26{margin-top:26px;} - .layout-sm-margin-top-27{margin-top:27px;} - .layout-sm-margin-top-28{margin-top:28px;} - .layout-sm-margin-top-29{margin-top:29px;} - .layout-sm-margin-top-30{margin-top:30px;} - .layout-sm-margin-top-31{margin-top:31px;} - .layout-sm-margin-top-32{margin-top:32px;} - .layout-sm-margin-top-33{margin-top:33px;} - .layout-sm-margin-top-34{margin-top:34px;} - .layout-sm-margin-top-35{margin-top:35px;} - .layout-sm-margin-top-36{margin-top:36px;} - .layout-sm-margin-top-37{margin-top:37px;} - .layout-sm-margin-top-38{margin-top:38px;} - .layout-sm-margin-top-39{margin-top:39px;} - .layout-sm-margin-top-40{margin-top:40px;} - .layout-sm-margin-top-41{margin-top:41px;} - .layout-sm-margin-top-42{margin-top:42px;} - .layout-sm-margin-top-43{margin-top:43px;} - .layout-sm-margin-top-44{margin-top:44px;} - .layout-sm-margin-top-45{margin-top:45px;} - .layout-sm-margin-top-46{margin-top:46px;} - .layout-sm-margin-top-47{margin-top:47px;} - .layout-sm-margin-top-48{margin-top:48px;} - .layout-sm-margin-top-49{margin-top:49px;} - .layout-sm-margin-top-50{margin-top:50px;} - .layout-sm-margin-top-51{margin-top:51px;} - .layout-sm-margin-top-52{margin-top:52px;} - .layout-sm-margin-top-53{margin-top:53px;} - .layout-sm-margin-top-54{margin-top:54px;} - .layout-sm-margin-top-55{margin-top:55px;} - .layout-sm-margin-top-56{margin-top:56px;} - .layout-sm-margin-top-57{margin-top:57px;} - .layout-sm-margin-top-58{margin-top:58px;} - .layout-sm-margin-top-59{margin-top:59px;} - .layout-sm-margin-top-60{margin-top:60px;} + .layout-sm-margin-top-1{margin-top:0.1rem;} + .layout-sm-margin-top-2{margin-top:0.2rem;} + .layout-sm-margin-top-3{margin-top:0.3rem;} + .layout-sm-margin-top-4{margin-top:0.4rem;} + .layout-sm-margin-top-5{margin-top:0.5rem;} + .layout-sm-margin-top-6{margin-top:0.6rem;} + .layout-sm-margin-top-7{margin-top:0.7rem;} + .layout-sm-margin-top-8{margin-top:0.8rem;} + .layout-sm-margin-top-9{margin-top:0.9rem;} + .layout-sm-margin-top-10{margin-top:1rem;} + .layout-sm-margin-top-11{margin-top:1.1rem;} + .layout-sm-margin-top-12{margin-top:1.2rem;} + .layout-sm-margin-top-13{margin-top:1.3rem;} + .layout-sm-margin-top-14{margin-top:1.4rem;} + .layout-sm-margin-top-15{margin-top:1.5rem;} + .layout-sm-margin-top-16{margin-top:1.6rem;} + .layout-sm-margin-top-17{margin-top:1.7rem;} + .layout-sm-margin-top-18{margin-top:1.8rem;} + .layout-sm-margin-top-19{margin-top:1.9rem;} + .layout-sm-margin-top-20{margin-top:2rem;} + .layout-sm-margin-top-21{margin-top:2.1rem;} + .layout-sm-margin-top-22{margin-top:2.2rem;} + .layout-sm-margin-top-23{margin-top:2.3rem;} + .layout-sm-margin-top-24{margin-top:2.4rem;} + .layout-sm-margin-top-25{margin-top:2.5rem;} + .layout-sm-margin-top-26{margin-top:2.6rem;} + .layout-sm-margin-top-27{margin-top:2.7rem;} + .layout-sm-margin-top-28{margin-top:2.8rem;} + .layout-sm-margin-top-29{margin-top:2.9rem;} + .layout-sm-margin-top-30{margin-top:3rem;} + .layout-sm-margin-top-31{margin-top:3.1rem;} + .layout-sm-margin-top-32{margin-top:3.2rem;} + .layout-sm-margin-top-33{margin-top:3.3rem;} + .layout-sm-margin-top-34{margin-top:3.4rem;} + .layout-sm-margin-top-35{margin-top:3.5rem;} + .layout-sm-margin-top-36{margin-top:3.6rem;} + .layout-sm-margin-top-37{margin-top:3.7rem;} + .layout-sm-margin-top-38{margin-top:3.8rem;} + .layout-sm-margin-top-39{margin-top:3.9rem;} + .layout-sm-margin-top-40{margin-top:4rem;} + .layout-sm-margin-top-41{margin-top:4.1rem;} + .layout-sm-margin-top-42{margin-top:4.2rem;} + .layout-sm-margin-top-43{margin-top:4.3rem;} + .layout-sm-margin-top-44{margin-top:4.4rem;} + .layout-sm-margin-top-45{margin-top:4.5rem;} + .layout-sm-margin-top-46{margin-top:4.6rem;} + .layout-sm-margin-top-47{margin-top:4.7rem;} + .layout-sm-margin-top-48{margin-top:4.8rem;} + .layout-sm-margin-top-49{margin-top:4.9rem;} + .layout-sm-margin-top-50{margin-top:5rem;} + .layout-sm-margin-top-51{margin-top:5.1rem;} + .layout-sm-margin-top-52{margin-top:5.2rem;} + .layout-sm-margin-top-53{margin-top:5.3rem;} + .layout-sm-margin-top-54{margin-top:5.4rem;} + .layout-sm-margin-top-55{margin-top:5.5rem;} + .layout-sm-margin-top-56{margin-top:5.6rem;} + .layout-sm-margin-top-57{margin-top:5.7rem;} + .layout-sm-margin-top-58{margin-top:5.8rem;} + .layout-sm-margin-top-59{margin-top:5.9rem;} + .layout-sm-margin-top-60{margin-top:6rem;} - .layout-sm-margin-right-1{margin-right:1px;} - .layout-sm-margin-right-2{margin-right:2px;} - .layout-sm-margin-right-3{margin-right:3px;} - .layout-sm-margin-right-4{margin-right:4px;} - .layout-sm-margin-right-5{margin-right:5px;} - .layout-sm-margin-right-6{margin-right:6px;} - .layout-sm-margin-right-7{margin-right:7px;} - .layout-sm-margin-right-8{margin-right:8px;} - .layout-sm-margin-right-9{margin-right:9px;} - .layout-sm-margin-right-10{margin-right:10px;} - .layout-sm-margin-right-11{margin-right:11px;} - .layout-sm-margin-right-12{margin-right:12px;} - .layout-sm-margin-right-13{margin-right:13px;} - .layout-sm-margin-right-14{margin-right:14px;} - .layout-sm-margin-right-15{margin-right:15px;} - .layout-sm-margin-right-16{margin-right:16px;} - .layout-sm-margin-right-17{margin-right:17px;} - .layout-sm-margin-right-18{margin-right:18px;} - .layout-sm-margin-right-19{margin-right:19px;} - .layout-sm-margin-right-20{margin-right:20px;} - .layout-sm-margin-right-21{margin-right:21px;} - .layout-sm-margin-right-22{margin-right:22px;} - .layout-sm-margin-right-23{margin-right:23px;} - .layout-sm-margin-right-24{margin-right:24px;} - .layout-sm-margin-right-25{margin-right:25px;} - .layout-sm-margin-right-26{margin-right:26px;} - .layout-sm-margin-right-27{margin-right:27px;} - .layout-sm-margin-right-28{margin-right:28px;} - .layout-sm-margin-right-29{margin-right:29px;} - .layout-sm-margin-right-30{margin-right:30px;} - .layout-sm-margin-right-31{margin-right:31px;} - .layout-sm-margin-right-32{margin-right:32px;} - .layout-sm-margin-right-33{margin-right:33px;} - .layout-sm-margin-right-34{margin-right:34px;} - .layout-sm-margin-right-35{margin-right:35px;} - .layout-sm-margin-right-36{margin-right:36px;} - .layout-sm-margin-right-37{margin-right:37px;} - .layout-sm-margin-right-38{margin-right:38px;} - .layout-sm-margin-right-39{margin-right:39px;} - .layout-sm-margin-right-40{margin-right:40px;} - .layout-sm-margin-right-41{margin-right:41px;} - .layout-sm-margin-right-42{margin-right:42px;} - .layout-sm-margin-right-43{margin-right:43px;} - .layout-sm-margin-right-44{margin-right:44px;} - .layout-sm-margin-right-45{margin-right:45px;} - .layout-sm-margin-right-46{margin-right:46px;} - .layout-sm-margin-right-47{margin-right:47px;} - .layout-sm-margin-right-48{margin-right:48px;} - .layout-sm-margin-right-49{margin-right:49px;} - .layout-sm-margin-right-50{margin-right:50px;} - .layout-sm-margin-right-51{margin-right:51px;} - .layout-sm-margin-right-52{margin-right:52px;} - .layout-sm-margin-right-53{margin-right:53px;} - .layout-sm-margin-right-54{margin-right:54px;} - .layout-sm-margin-right-55{margin-right:55px;} - .layout-sm-margin-right-56{margin-right:56px;} - .layout-sm-margin-right-57{margin-right:57px;} - .layout-sm-margin-right-58{margin-right:58px;} - .layout-sm-margin-right-59{margin-right:59px;} - .layout-sm-margin-right-60{margin-right:60px;} + .layout-sm-margin-right-1{margin-right:0.1rem;} + .layout-sm-margin-right-2{margin-right:0.2rem;} + .layout-sm-margin-right-3{margin-right:0.3rem;} + .layout-sm-margin-right-4{margin-right:0.4rem;} + .layout-sm-margin-right-5{margin-right:0.5rem;} + .layout-sm-margin-right-6{margin-right:0.6rem;} + .layout-sm-margin-right-7{margin-right:0.7rem;} + .layout-sm-margin-right-8{margin-right:0.8rem;} + .layout-sm-margin-right-9{margin-right:0.9rem;} + .layout-sm-margin-right-10{margin-right:1rem;} + .layout-sm-margin-right-11{margin-right:1.1rem;} + .layout-sm-margin-right-12{margin-right:1.2rem;} + .layout-sm-margin-right-13{margin-right:1.3rem;} + .layout-sm-margin-right-14{margin-right:1.4rem;} + .layout-sm-margin-right-15{margin-right:1.5rem;} + .layout-sm-margin-right-16{margin-right:1.6rem;} + .layout-sm-margin-right-17{margin-right:1.7rem;} + .layout-sm-margin-right-18{margin-right:1.8rem;} + .layout-sm-margin-right-19{margin-right:1.9rem;} + .layout-sm-margin-right-20{margin-right:2rem;} + .layout-sm-margin-right-21{margin-right:2.1rem;} + .layout-sm-margin-right-22{margin-right:2.2rem;} + .layout-sm-margin-right-23{margin-right:2.3rem;} + .layout-sm-margin-right-24{margin-right:2.4rem;} + .layout-sm-margin-right-25{margin-right:2.5rem;} + .layout-sm-margin-right-26{margin-right:2.6rem;} + .layout-sm-margin-right-27{margin-right:2.7rem;} + .layout-sm-margin-right-28{margin-right:2.8rem;} + .layout-sm-margin-right-29{margin-right:2.9rem;} + .layout-sm-margin-right-30{margin-right:3rem;} + .layout-sm-margin-right-31{margin-right:3.1rem;} + .layout-sm-margin-right-32{margin-right:3.2rem;} + .layout-sm-margin-right-33{margin-right:3.3rem;} + .layout-sm-margin-right-34{margin-right:3.4rem;} + .layout-sm-margin-right-35{margin-right:3.5rem;} + .layout-sm-margin-right-36{margin-right:3.6rem;} + .layout-sm-margin-right-37{margin-right:3.7rem;} + .layout-sm-margin-right-38{margin-right:3.8rem;} + .layout-sm-margin-right-39{margin-right:3.9rem;} + .layout-sm-margin-right-40{margin-right:4rem;} + .layout-sm-margin-right-41{margin-right:4.1rem;} + .layout-sm-margin-right-42{margin-right:4.2rem;} + .layout-sm-margin-right-43{margin-right:4.3rem;} + .layout-sm-margin-right-44{margin-right:4.4rem;} + .layout-sm-margin-right-45{margin-right:4.5rem;} + .layout-sm-margin-right-46{margin-right:4.6rem;} + .layout-sm-margin-right-47{margin-right:4.7rem;} + .layout-sm-margin-right-48{margin-right:4.8rem;} + .layout-sm-margin-right-49{margin-right:4.9rem;} + .layout-sm-margin-right-50{margin-right:5rem;} + .layout-sm-margin-right-51{margin-right:5.1rem;} + .layout-sm-margin-right-52{margin-right:5.2rem;} + .layout-sm-margin-right-53{margin-right:5.3rem;} + .layout-sm-margin-right-54{margin-right:5.4rem;} + .layout-sm-margin-right-55{margin-right:5.5rem;} + .layout-sm-margin-right-56{margin-right:5.6rem;} + .layout-sm-margin-right-57{margin-right:5.7rem;} + .layout-sm-margin-right-58{margin-right:5.8rem;} + .layout-sm-margin-right-59{margin-right:5.9rem;} + .layout-sm-margin-right-60{margin-right:6rem;} - .layout-sm-margin-bottom-1{margin-bottom:1px;} - .layout-sm-margin-bottom-2{margin-bottom:2px;} - .layout-sm-margin-bottom-3{margin-bottom:3px;} - .layout-sm-margin-bottom-4{margin-bottom:4px;} - .layout-sm-margin-bottom-5{margin-bottom:5px;} - .layout-sm-margin-bottom-6{margin-bottom:6px;} - .layout-sm-margin-bottom-7{margin-bottom:7px;} - .layout-sm-margin-bottom-8{margin-bottom:8px;} - .layout-sm-margin-bottom-9{margin-bottom:9px;} - .layout-sm-margin-bottom-10{margin-bottom:10px;} - .layout-sm-margin-bottom-11{margin-bottom:11px;} - .layout-sm-margin-bottom-12{margin-bottom:12px;} - .layout-sm-margin-bottom-13{margin-bottom:13px;} - .layout-sm-margin-bottom-14{margin-bottom:14px;} - .layout-sm-margin-bottom-15{margin-bottom:15px;} - .layout-sm-margin-bottom-16{margin-bottom:16px;} - .layout-sm-margin-bottom-17{margin-bottom:17px;} - .layout-sm-margin-bottom-18{margin-bottom:18px;} - .layout-sm-margin-bottom-19{margin-bottom:19px;} - .layout-sm-margin-bottom-20{margin-bottom:20px;} - .layout-sm-margin-bottom-21{margin-bottom:21px;} - .layout-sm-margin-bottom-22{margin-bottom:22px;} - .layout-sm-margin-bottom-23{margin-bottom:23px;} - .layout-sm-margin-bottom-24{margin-bottom:24px;} - .layout-sm-margin-bottom-25{margin-bottom:25px;} - .layout-sm-margin-bottom-26{margin-bottom:26px;} - .layout-sm-margin-bottom-27{margin-bottom:27px;} - .layout-sm-margin-bottom-28{margin-bottom:28px;} - .layout-sm-margin-bottom-29{margin-bottom:29px;} - .layout-sm-margin-bottom-30{margin-bottom:30px;} - .layout-sm-margin-bottom-31{margin-bottom:31px;} - .layout-sm-margin-bottom-32{margin-bottom:32px;} - .layout-sm-margin-bottom-33{margin-bottom:33px;} - .layout-sm-margin-bottom-34{margin-bottom:34px;} - .layout-sm-margin-bottom-35{margin-bottom:35px;} - .layout-sm-margin-bottom-36{margin-bottom:36px;} - .layout-sm-margin-bottom-37{margin-bottom:37px;} - .layout-sm-margin-bottom-38{margin-bottom:38px;} - .layout-sm-margin-bottom-39{margin-bottom:39px;} - .layout-sm-margin-bottom-40{margin-bottom:40px;} - .layout-sm-margin-bottom-41{margin-bottom:41px;} - .layout-sm-margin-bottom-42{margin-bottom:42px;} - .layout-sm-margin-bottom-43{margin-bottom:43px;} - .layout-sm-margin-bottom-44{margin-bottom:44px;} - .layout-sm-margin-bottom-45{margin-bottom:45px;} - .layout-sm-margin-bottom-46{margin-bottom:46px;} - .layout-sm-margin-bottom-47{margin-bottom:47px;} - .layout-sm-margin-bottom-48{margin-bottom:48px;} - .layout-sm-margin-bottom-49{margin-bottom:49px;} - .layout-sm-margin-bottom-50{margin-bottom:50px;} - .layout-sm-margin-bottom-51{margin-bottom:51px;} - .layout-sm-margin-bottom-52{margin-bottom:52px;} - .layout-sm-margin-bottom-53{margin-bottom:53px;} - .layout-sm-margin-bottom-54{margin-bottom:54px;} - .layout-sm-margin-bottom-55{margin-bottom:55px;} - .layout-sm-margin-bottom-56{margin-bottom:56px;} - .layout-sm-margin-bottom-57{margin-bottom:57px;} - .layout-sm-margin-bottom-58{margin-bottom:58px;} - .layout-sm-margin-bottom-59{margin-bottom:59px;} - .layout-sm-margin-bottom-60{margin-bottom:60px;} + .layout-sm-margin-bottom-1{margin-bottom:0.1rem;} + .layout-sm-margin-bottom-2{margin-bottom:0.2rem;} + .layout-sm-margin-bottom-3{margin-bottom:0.3rem;} + .layout-sm-margin-bottom-4{margin-bottom:0.4rem;} + .layout-sm-margin-bottom-5{margin-bottom:0.5rem;} + .layout-sm-margin-bottom-6{margin-bottom:0.6rem;} + .layout-sm-margin-bottom-7{margin-bottom:0.7rem;} + .layout-sm-margin-bottom-8{margin-bottom:0.8rem;} + .layout-sm-margin-bottom-9{margin-bottom:0.9rem;} + .layout-sm-margin-bottom-10{margin-bottom:1rem;} + .layout-sm-margin-bottom-11{margin-bottom:1.1rem;} + .layout-sm-margin-bottom-12{margin-bottom:1.2rem;} + .layout-sm-margin-bottom-13{margin-bottom:1.3rem;} + .layout-sm-margin-bottom-14{margin-bottom:1.4rem;} + .layout-sm-margin-bottom-15{margin-bottom:1.5rem;} + .layout-sm-margin-bottom-16{margin-bottom:1.6rem;} + .layout-sm-margin-bottom-17{margin-bottom:1.7rem;} + .layout-sm-margin-bottom-18{margin-bottom:1.8rem;} + .layout-sm-margin-bottom-19{margin-bottom:1.9rem;} + .layout-sm-margin-bottom-20{margin-bottom:2rem;} + .layout-sm-margin-bottom-21{margin-bottom:2.1rem;} + .layout-sm-margin-bottom-22{margin-bottom:2.2rem;} + .layout-sm-margin-bottom-23{margin-bottom:2.3rem;} + .layout-sm-margin-bottom-24{margin-bottom:2.4rem;} + .layout-sm-margin-bottom-25{margin-bottom:2.5rem;} + .layout-sm-margin-bottom-26{margin-bottom:2.6rem;} + .layout-sm-margin-bottom-27{margin-bottom:2.7rem;} + .layout-sm-margin-bottom-28{margin-bottom:2.8rem;} + .layout-sm-margin-bottom-29{margin-bottom:2.9rem;} + .layout-sm-margin-bottom-30{margin-bottom:3rem;} + .layout-sm-margin-bottom-31{margin-bottom:3.1rem;} + .layout-sm-margin-bottom-32{margin-bottom:3.2rem;} + .layout-sm-margin-bottom-33{margin-bottom:3.3rem;} + .layout-sm-margin-bottom-34{margin-bottom:3.4rem;} + .layout-sm-margin-bottom-35{margin-bottom:3.5rem;} + .layout-sm-margin-bottom-36{margin-bottom:3.6rem;} + .layout-sm-margin-bottom-37{margin-bottom:3.7rem;} + .layout-sm-margin-bottom-38{margin-bottom:3.8rem;} + .layout-sm-margin-bottom-39{margin-bottom:3.9rem;} + .layout-sm-margin-bottom-40{margin-bottom:4rem;} + .layout-sm-margin-bottom-41{margin-bottom:4.1rem;} + .layout-sm-margin-bottom-42{margin-bottom:4.2rem;} + .layout-sm-margin-bottom-43{margin-bottom:4.3rem;} + .layout-sm-margin-bottom-44{margin-bottom:4.4rem;} + .layout-sm-margin-bottom-45{margin-bottom:4.5rem;} + .layout-sm-margin-bottom-46{margin-bottom:4.6rem;} + .layout-sm-margin-bottom-47{margin-bottom:4.7rem;} + .layout-sm-margin-bottom-48{margin-bottom:4.8rem;} + .layout-sm-margin-bottom-49{margin-bottom:4.9rem;} + .layout-sm-margin-bottom-50{margin-bottom:5rem;} + .layout-sm-margin-bottom-51{margin-bottom:5.1rem;} + .layout-sm-margin-bottom-52{margin-bottom:5.2rem;} + .layout-sm-margin-bottom-53{margin-bottom:5.3rem;} + .layout-sm-margin-bottom-54{margin-bottom:5.4rem;} + .layout-sm-margin-bottom-55{margin-bottom:5.5rem;} + .layout-sm-margin-bottom-56{margin-bottom:5.6rem;} + .layout-sm-margin-bottom-57{margin-bottom:5.7rem;} + .layout-sm-margin-bottom-58{margin-bottom:5.8rem;} + .layout-sm-margin-bottom-59{margin-bottom:5.9rem;} + .layout-sm-margin-bottom-60{margin-bottom:6rem;} - .layout-sm-margin-left-1{margin-left:1px;} - .layout-sm-margin-left-2{margin-left:2px;} - .layout-sm-margin-left-3{margin-left:3px;} - .layout-sm-margin-left-4{margin-left:4px;} - .layout-sm-margin-left-5{margin-left:5px;} - .layout-sm-margin-left-6{margin-left:6px;} - .layout-sm-margin-left-7{margin-left:7px;} - .layout-sm-margin-left-8{margin-left:8px;} - .layout-sm-margin-left-9{margin-left:9px;} - .layout-sm-margin-left-10{margin-left:10px;} - .layout-sm-margin-left-11{margin-left:11px;} - .layout-sm-margin-left-12{margin-left:12px;} - .layout-sm-margin-left-13{margin-left:13px;} - .layout-sm-margin-left-14{margin-left:14px;} - .layout-sm-margin-left-15{margin-left:15px;} - .layout-sm-margin-left-16{margin-left:16px;} - .layout-sm-margin-left-17{margin-left:17px;} - .layout-sm-margin-left-18{margin-left:18px;} - .layout-sm-margin-left-19{margin-left:19px;} - .layout-sm-margin-left-20{margin-left:20px;} - .layout-sm-margin-left-21{margin-left:21px;} - .layout-sm-margin-left-22{margin-left:22px;} - .layout-sm-margin-left-23{margin-left:23px;} - .layout-sm-margin-left-24{margin-left:24px;} - .layout-sm-margin-left-25{margin-left:25px;} - .layout-sm-margin-left-26{margin-left:26px;} - .layout-sm-margin-left-27{margin-left:27px;} - .layout-sm-margin-left-28{margin-left:28px;} - .layout-sm-margin-left-29{margin-left:29px;} - .layout-sm-margin-left-30{margin-left:30px;} - .layout-sm-margin-left-31{margin-left:31px;} - .layout-sm-margin-left-32{margin-left:32px;} - .layout-sm-margin-left-33{margin-left:33px;} - .layout-sm-margin-left-34{margin-left:34px;} - .layout-sm-margin-left-35{margin-left:35px;} - .layout-sm-margin-left-36{margin-left:36px;} - .layout-sm-margin-left-37{margin-left:37px;} - .layout-sm-margin-left-38{margin-left:38px;} - .layout-sm-margin-left-39{margin-left:39px;} - .layout-sm-margin-left-40{margin-left:40px;} - .layout-sm-margin-left-41{margin-left:41px;} - .layout-sm-margin-left-42{margin-left:42px;} - .layout-sm-margin-left-43{margin-left:43px;} - .layout-sm-margin-left-44{margin-left:44px;} - .layout-sm-margin-left-45{margin-left:45px;} - .layout-sm-margin-left-46{margin-left:46px;} - .layout-sm-margin-left-47{margin-left:47px;} - .layout-sm-margin-left-48{margin-left:48px;} - .layout-sm-margin-left-49{margin-left:49px;} - .layout-sm-margin-left-50{margin-left:50px;} - .layout-sm-margin-left-51{margin-left:51px;} - .layout-sm-margin-left-52{margin-left:52px;} - .layout-sm-margin-left-53{margin-left:53px;} - .layout-sm-margin-left-54{margin-left:54px;} - .layout-sm-margin-left-55{margin-left:55px;} - .layout-sm-margin-left-56{margin-left:56px;} - .layout-sm-margin-left-57{margin-left:57px;} - .layout-sm-margin-left-58{margin-left:58px;} - .layout-sm-margin-left-59{margin-left:59px;} - .layout-sm-margin-left-60{margin-left:60px;} + .layout-sm-margin-left-1{margin-left:0.1rem;} + .layout-sm-margin-left-2{margin-left:0.2rem;} + .layout-sm-margin-left-3{margin-left:0.3rem;} + .layout-sm-margin-left-4{margin-left:0.4rem;} + .layout-sm-margin-left-5{margin-left:0.5rem;} + .layout-sm-margin-left-6{margin-left:0.6rem;} + .layout-sm-margin-left-7{margin-left:0.7rem;} + .layout-sm-margin-left-8{margin-left:0.8rem;} + .layout-sm-margin-left-9{margin-left:0.9rem;} + .layout-sm-margin-left-10{margin-left:1rem;} + .layout-sm-margin-left-11{margin-left:1.1rem;} + .layout-sm-margin-left-12{margin-left:1.2rem;} + .layout-sm-margin-left-13{margin-left:1.3rem;} + .layout-sm-margin-left-14{margin-left:1.4rem;} + .layout-sm-margin-left-15{margin-left:1.5rem;} + .layout-sm-margin-left-16{margin-left:1.6rem;} + .layout-sm-margin-left-17{margin-left:1.7rem;} + .layout-sm-margin-left-18{margin-left:1.8rem;} + .layout-sm-margin-left-19{margin-left:1.9rem;} + .layout-sm-margin-left-20{margin-left:2rem;} + .layout-sm-margin-left-21{margin-left:2.1rem;} + .layout-sm-margin-left-22{margin-left:2.2rem;} + .layout-sm-margin-left-23{margin-left:2.3rem;} + .layout-sm-margin-left-24{margin-left:2.4rem;} + .layout-sm-margin-left-25{margin-left:2.5rem;} + .layout-sm-margin-left-26{margin-left:2.6rem;} + .layout-sm-margin-left-27{margin-left:2.7rem;} + .layout-sm-margin-left-28{margin-left:2.8rem;} + .layout-sm-margin-left-29{margin-left:2.9rem;} + .layout-sm-margin-left-30{margin-left:3rem;} + .layout-sm-margin-left-31{margin-left:3.1rem;} + .layout-sm-margin-left-32{margin-left:3.2rem;} + .layout-sm-margin-left-33{margin-left:3.3rem;} + .layout-sm-margin-left-34{margin-left:3.4rem;} + .layout-sm-margin-left-35{margin-left:3.5rem;} + .layout-sm-margin-left-36{margin-left:3.6rem;} + .layout-sm-margin-left-37{margin-left:3.7rem;} + .layout-sm-margin-left-38{margin-left:3.8rem;} + .layout-sm-margin-left-39{margin-left:3.9rem;} + .layout-sm-margin-left-40{margin-left:4rem;} + .layout-sm-margin-left-41{margin-left:4.1rem;} + .layout-sm-margin-left-42{margin-left:4.2rem;} + .layout-sm-margin-left-43{margin-left:4.3rem;} + .layout-sm-margin-left-44{margin-left:4.4rem;} + .layout-sm-margin-left-45{margin-left:4.5rem;} + .layout-sm-margin-left-46{margin-left:4.6rem;} + .layout-sm-margin-left-47{margin-left:4.7rem;} + .layout-sm-margin-left-48{margin-left:4.8rem;} + .layout-sm-margin-left-49{margin-left:4.9rem;} + .layout-sm-margin-left-50{margin-left:5rem;} + .layout-sm-margin-left-51{margin-left:5.1rem;} + .layout-sm-margin-left-52{margin-left:5.2rem;} + .layout-sm-margin-left-53{margin-left:5.3rem;} + .layout-sm-margin-left-54{margin-left:5.4rem;} + .layout-sm-margin-left-55{margin-left:5.5rem;} + .layout-sm-margin-left-56{margin-left:5.6rem;} + .layout-sm-margin-left-57{margin-left:5.7rem;} + .layout-sm-margin-left-58{margin-left:5.8rem;} + .layout-sm-margin-left-59{margin-left:5.9rem;} + .layout-sm-margin-left-60{margin-left:6rem;} } /** * 布局内边距 */ @media only screen and (min-width:641px) { - .layout-md-padding-top-1{padding-top:1px;} - .layout-md-padding-top-2{padding-top:2px;} - .layout-md-padding-top-3{padding-top:3px;} - .layout-md-padding-top-4{padding-top:4px;} - .layout-md-padding-top-5{padding-top:5px;} - .layout-md-padding-top-6{padding-top:6px;} - .layout-md-padding-top-7{padding-top:7px;} - .layout-md-padding-top-8{padding-top:8px;} - .layout-md-padding-top-9{padding-top:9px;} - .layout-md-padding-top-10{padding-top:10px;} - .layout-md-padding-top-11{padding-top:11px;} - .layout-md-padding-top-12{padding-top:12px;} - .layout-md-padding-top-13{padding-top:13px;} - .layout-md-padding-top-14{padding-top:14px;} - .layout-md-padding-top-15{padding-top:15px;} - .layout-md-padding-top-16{padding-top:16px;} - .layout-md-padding-top-17{padding-top:17px;} - .layout-md-padding-top-18{padding-top:18px;} - .layout-md-padding-top-19{padding-top:19px;} - .layout-md-padding-top-20{padding-top:20px;} - .layout-md-padding-top-21{padding-top:21px;} - .layout-md-padding-top-22{padding-top:22px;} - .layout-md-padding-top-23{padding-top:23px;} - .layout-md-padding-top-24{padding-top:24px;} - .layout-md-padding-top-25{padding-top:25px;} - .layout-md-padding-top-26{padding-top:26px;} - .layout-md-padding-top-27{padding-top:27px;} - .layout-md-padding-top-28{padding-top:28px;} - .layout-md-padding-top-29{padding-top:29px;} - .layout-md-padding-top-30{padding-top:30px;} - .layout-md-padding-top-31{padding-top:31px;} - .layout-md-padding-top-32{padding-top:32px;} - .layout-md-padding-top-33{padding-top:33px;} - .layout-md-padding-top-34{padding-top:34px;} - .layout-md-padding-top-35{padding-top:35px;} - .layout-md-padding-top-36{padding-top:36px;} - .layout-md-padding-top-37{padding-top:37px;} - .layout-md-padding-top-38{padding-top:38px;} - .layout-md-padding-top-39{padding-top:39px;} - .layout-md-padding-top-40{padding-top:40px;} - .layout-md-padding-top-41{padding-top:41px;} - .layout-md-padding-top-42{padding-top:42px;} - .layout-md-padding-top-43{padding-top:43px;} - .layout-md-padding-top-44{padding-top:44px;} - .layout-md-padding-top-45{padding-top:45px;} - .layout-md-padding-top-46{padding-top:46px;} - .layout-md-padding-top-47{padding-top:47px;} - .layout-md-padding-top-48{padding-top:48px;} - .layout-md-padding-top-49{padding-top:49px;} - .layout-md-padding-top-50{padding-top:50px;} - .layout-md-padding-top-51{padding-top:51px;} - .layout-md-padding-top-52{padding-top:52px;} - .layout-md-padding-top-53{padding-top:53px;} - .layout-md-padding-top-54{padding-top:54px;} - .layout-md-padding-top-55{padding-top:55px;} - .layout-md-padding-top-56{padding-top:56px;} - .layout-md-padding-top-57{padding-top:57px;} - .layout-md-padding-top-58{padding-top:58px;} - .layout-md-padding-top-59{padding-top:59px;} - .layout-md-padding-top-60{padding-top:60px;} + .layout-md-padding-top-1{padding-top:0.1rem;} + .layout-md-padding-top-2{padding-top:0.2rem;} + .layout-md-padding-top-3{padding-top:0.3rem;} + .layout-md-padding-top-4{padding-top:0.4rem;} + .layout-md-padding-top-5{padding-top:0.5rem;} + .layout-md-padding-top-6{padding-top:0.6rem;} + .layout-md-padding-top-7{padding-top:0.7rem;} + .layout-md-padding-top-8{padding-top:0.8rem;} + .layout-md-padding-top-9{padding-top:0.9rem;} + .layout-md-padding-top-10{padding-top:1rem;} + .layout-md-padding-top-11{padding-top:1.1rem;} + .layout-md-padding-top-12{padding-top:1.2rem;} + .layout-md-padding-top-13{padding-top:1.3rem;} + .layout-md-padding-top-14{padding-top:1.4rem;} + .layout-md-padding-top-15{padding-top:1.5rem;} + .layout-md-padding-top-16{padding-top:1.6rem;} + .layout-md-padding-top-17{padding-top:1.7rem;} + .layout-md-padding-top-18{padding-top:1.8rem;} + .layout-md-padding-top-19{padding-top:1.9rem;} + .layout-md-padding-top-20{padding-top:2rem;} + .layout-md-padding-top-21{padding-top:2.1rem;} + .layout-md-padding-top-22{padding-top:2.2rem;} + .layout-md-padding-top-23{padding-top:2.3rem;} + .layout-md-padding-top-24{padding-top:2.4rem;} + .layout-md-padding-top-25{padding-top:2.5rem;} + .layout-md-padding-top-26{padding-top:2.6rem;} + .layout-md-padding-top-27{padding-top:2.7rem;} + .layout-md-padding-top-28{padding-top:2.8rem;} + .layout-md-padding-top-29{padding-top:2.9rem;} + .layout-md-padding-top-30{padding-top:3rem;} + .layout-md-padding-top-31{padding-top:3.1rem;} + .layout-md-padding-top-32{padding-top:3.2rem;} + .layout-md-padding-top-33{padding-top:3.3rem;} + .layout-md-padding-top-34{padding-top:3.4rem;} + .layout-md-padding-top-35{padding-top:3.5rem;} + .layout-md-padding-top-36{padding-top:3.6rem;} + .layout-md-padding-top-37{padding-top:3.7rem;} + .layout-md-padding-top-38{padding-top:3.8rem;} + .layout-md-padding-top-39{padding-top:3.9rem;} + .layout-md-padding-top-40{padding-top:4rem;} + .layout-md-padding-top-41{padding-top:4.1rem;} + .layout-md-padding-top-42{padding-top:4.2rem;} + .layout-md-padding-top-43{padding-top:4.3rem;} + .layout-md-padding-top-44{padding-top:4.4rem;} + .layout-md-padding-top-45{padding-top:4.5rem;} + .layout-md-padding-top-46{padding-top:4.6rem;} + .layout-md-padding-top-47{padding-top:4.7rem;} + .layout-md-padding-top-48{padding-top:4.8rem;} + .layout-md-padding-top-49{padding-top:4.9rem;} + .layout-md-padding-top-50{padding-top:5rem;} + .layout-md-padding-top-51{padding-top:5.1rem;} + .layout-md-padding-top-52{padding-top:5.2rem;} + .layout-md-padding-top-53{padding-top:5.3rem;} + .layout-md-padding-top-54{padding-top:5.4rem;} + .layout-md-padding-top-55{padding-top:5.5rem;} + .layout-md-padding-top-56{padding-top:5.6rem;} + .layout-md-padding-top-57{padding-top:5.7rem;} + .layout-md-padding-top-58{padding-top:5.8rem;} + .layout-md-padding-top-59{padding-top:5.9rem;} + .layout-md-padding-top-60{padding-top:6rem;} - .layout-md-padding-right-1{padding-right:1px;} - .layout-md-padding-right-2{padding-right:2px;} - .layout-md-padding-right-3{padding-right:3px;} - .layout-md-padding-right-4{padding-right:4px;} - .layout-md-padding-right-5{padding-right:5px;} - .layout-md-padding-right-6{padding-right:6px;} - .layout-md-padding-right-7{padding-right:7px;} - .layout-md-padding-right-8{padding-right:8px;} - .layout-md-padding-right-9{padding-right:9px;} - .layout-md-padding-right-10{padding-right:10px;} - .layout-md-padding-right-11{padding-right:11px;} - .layout-md-padding-right-12{padding-right:12px;} - .layout-md-padding-right-13{padding-right:13px;} - .layout-md-padding-right-14{padding-right:14px;} - .layout-md-padding-right-15{padding-right:15px;} - .layout-md-padding-right-16{padding-right:16px;} - .layout-md-padding-right-17{padding-right:17px;} - .layout-md-padding-right-18{padding-right:18px;} - .layout-md-padding-right-19{padding-right:19px;} - .layout-md-padding-right-20{padding-right:20px;} - .layout-md-padding-right-21{padding-right:21px;} - .layout-md-padding-right-22{padding-right:22px;} - .layout-md-padding-right-23{padding-right:23px;} - .layout-md-padding-right-24{padding-right:24px;} - .layout-md-padding-right-25{padding-right:25px;} - .layout-md-padding-right-26{padding-right:26px;} - .layout-md-padding-right-27{padding-right:27px;} - .layout-md-padding-right-28{padding-right:28px;} - .layout-md-padding-right-29{padding-right:29px;} - .layout-md-padding-right-30{padding-right:30px;} - .layout-md-padding-right-31{padding-right:31px;} - .layout-md-padding-right-32{padding-right:32px;} - .layout-md-padding-right-33{padding-right:33px;} - .layout-md-padding-right-34{padding-right:34px;} - .layout-md-padding-right-35{padding-right:35px;} - .layout-md-padding-right-36{padding-right:36px;} - .layout-md-padding-right-37{padding-right:37px;} - .layout-md-padding-right-38{padding-right:38px;} - .layout-md-padding-right-39{padding-right:39px;} - .layout-md-padding-right-40{padding-right:40px;} - .layout-md-padding-right-41{padding-right:41px;} - .layout-md-padding-right-42{padding-right:42px;} - .layout-md-padding-right-43{padding-right:43px;} - .layout-md-padding-right-44{padding-right:44px;} - .layout-md-padding-right-45{padding-right:45px;} - .layout-md-padding-right-46{padding-right:46px;} - .layout-md-padding-right-47{padding-right:47px;} - .layout-md-padding-right-48{padding-right:48px;} - .layout-md-padding-right-49{padding-right:49px;} - .layout-md-padding-right-50{padding-right:50px;} - .layout-md-padding-right-51{padding-right:51px;} - .layout-md-padding-right-52{padding-right:52px;} - .layout-md-padding-right-53{padding-right:53px;} - .layout-md-padding-right-54{padding-right:54px;} - .layout-md-padding-right-55{padding-right:55px;} - .layout-md-padding-right-56{padding-right:56px;} - .layout-md-padding-right-57{padding-right:57px;} - .layout-md-padding-right-58{padding-right:58px;} - .layout-md-padding-right-59{padding-right:59px;} - .layout-md-padding-right-60{padding-right:60px;} + .layout-md-padding-right-1{padding-right:0.1rem;} + .layout-md-padding-right-2{padding-right:0.2rem;} + .layout-md-padding-right-3{padding-right:0.3rem;} + .layout-md-padding-right-4{padding-right:0.4rem;} + .layout-md-padding-right-5{padding-right:0.5rem;} + .layout-md-padding-right-6{padding-right:0.6rem;} + .layout-md-padding-right-7{padding-right:0.7rem;} + .layout-md-padding-right-8{padding-right:0.8rem;} + .layout-md-padding-right-9{padding-right:0.9rem;} + .layout-md-padding-right-10{padding-right:1rem;} + .layout-md-padding-right-11{padding-right:1.1rem;} + .layout-md-padding-right-12{padding-right:1.2rem;} + .layout-md-padding-right-13{padding-right:1.3rem;} + .layout-md-padding-right-14{padding-right:1.4rem;} + .layout-md-padding-right-15{padding-right:1.5rem;} + .layout-md-padding-right-16{padding-right:1.6rem;} + .layout-md-padding-right-17{padding-right:1.7rem;} + .layout-md-padding-right-18{padding-right:1.8rem;} + .layout-md-padding-right-19{padding-right:1.9rem;} + .layout-md-padding-right-20{padding-right:2rem;} + .layout-md-padding-right-21{padding-right:2.1rem;} + .layout-md-padding-right-22{padding-right:2.2rem;} + .layout-md-padding-right-23{padding-right:2.3rem;} + .layout-md-padding-right-24{padding-right:2.4rem;} + .layout-md-padding-right-25{padding-right:2.5rem;} + .layout-md-padding-right-26{padding-right:2.6rem;} + .layout-md-padding-right-27{padding-right:2.7rem;} + .layout-md-padding-right-28{padding-right:2.8rem;} + .layout-md-padding-right-29{padding-right:2.9rem;} + .layout-md-padding-right-30{padding-right:3rem;} + .layout-md-padding-right-31{padding-right:3.1rem;} + .layout-md-padding-right-32{padding-right:3.2rem;} + .layout-md-padding-right-33{padding-right:3.3rem;} + .layout-md-padding-right-34{padding-right:3.4rem;} + .layout-md-padding-right-35{padding-right:3.5rem;} + .layout-md-padding-right-36{padding-right:3.6rem;} + .layout-md-padding-right-37{padding-right:3.7rem;} + .layout-md-padding-right-38{padding-right:3.8rem;} + .layout-md-padding-right-39{padding-right:3.9rem;} + .layout-md-padding-right-40{padding-right:4rem;} + .layout-md-padding-right-41{padding-right:4.1rem;} + .layout-md-padding-right-42{padding-right:4.2rem;} + .layout-md-padding-right-43{padding-right:4.3rem;} + .layout-md-padding-right-44{padding-right:4.4rem;} + .layout-md-padding-right-45{padding-right:4.5rem;} + .layout-md-padding-right-46{padding-right:4.6rem;} + .layout-md-padding-right-47{padding-right:4.7rem;} + .layout-md-padding-right-48{padding-right:4.8rem;} + .layout-md-padding-right-49{padding-right:4.9rem;} + .layout-md-padding-right-50{padding-right:5rem;} + .layout-md-padding-right-51{padding-right:5.1rem;} + .layout-md-padding-right-52{padding-right:5.2rem;} + .layout-md-padding-right-53{padding-right:5.3rem;} + .layout-md-padding-right-54{padding-right:5.4rem;} + .layout-md-padding-right-55{padding-right:5.5rem;} + .layout-md-padding-right-56{padding-right:5.6rem;} + .layout-md-padding-right-57{padding-right:5.7rem;} + .layout-md-padding-right-58{padding-right:5.8rem;} + .layout-md-padding-right-59{padding-right:5.9rem;} + .layout-md-padding-right-60{padding-right:6rem;} - .layout-md-padding-bottom-1{padding-bottom:1px;} - .layout-md-padding-bottom-2{padding-bottom:2px;} - .layout-md-padding-bottom-3{padding-bottom:3px;} - .layout-md-padding-bottom-4{padding-bottom:4px;} - .layout-md-padding-bottom-5{padding-bottom:5px;} - .layout-md-padding-bottom-6{padding-bottom:6px;} - .layout-md-padding-bottom-7{padding-bottom:7px;} - .layout-md-padding-bottom-8{padding-bottom:8px;} - .layout-md-padding-bottom-9{padding-bottom:9px;} - .layout-md-padding-bottom-10{padding-bottom:10px;} - .layout-md-padding-bottom-11{padding-bottom:11px;} - .layout-md-padding-bottom-12{padding-bottom:12px;} - .layout-md-padding-bottom-13{padding-bottom:13px;} - .layout-md-padding-bottom-14{padding-bottom:14px;} - .layout-md-padding-bottom-15{padding-bottom:15px;} - .layout-md-padding-bottom-16{padding-bottom:16px;} - .layout-md-padding-bottom-17{padding-bottom:17px;} - .layout-md-padding-bottom-18{padding-bottom:18px;} - .layout-md-padding-bottom-19{padding-bottom:19px;} - .layout-md-padding-bottom-20{padding-bottom:20px;} - .layout-md-padding-bottom-21{padding-bottom:21px;} - .layout-md-padding-bottom-22{padding-bottom:22px;} - .layout-md-padding-bottom-23{padding-bottom:23px;} - .layout-md-padding-bottom-24{padding-bottom:24px;} - .layout-md-padding-bottom-25{padding-bottom:25px;} - .layout-md-padding-bottom-26{padding-bottom:26px;} - .layout-md-padding-bottom-27{padding-bottom:27px;} - .layout-md-padding-bottom-28{padding-bottom:28px;} - .layout-md-padding-bottom-29{padding-bottom:29px;} - .layout-md-padding-bottom-30{padding-bottom:30px;} - .layout-md-padding-bottom-31{padding-bottom:31px;} - .layout-md-padding-bottom-32{padding-bottom:32px;} - .layout-md-padding-bottom-33{padding-bottom:33px;} - .layout-md-padding-bottom-34{padding-bottom:34px;} - .layout-md-padding-bottom-35{padding-bottom:35px;} - .layout-md-padding-bottom-36{padding-bottom:36px;} - .layout-md-padding-bottom-37{padding-bottom:37px;} - .layout-md-padding-bottom-38{padding-bottom:38px;} - .layout-md-padding-bottom-39{padding-bottom:39px;} - .layout-md-padding-bottom-40{padding-bottom:40px;} - .layout-md-padding-bottom-41{padding-bottom:41px;} - .layout-md-padding-bottom-42{padding-bottom:42px;} - .layout-md-padding-bottom-43{padding-bottom:43px;} - .layout-md-padding-bottom-44{padding-bottom:44px;} - .layout-md-padding-bottom-45{padding-bottom:45px;} - .layout-md-padding-bottom-46{padding-bottom:46px;} - .layout-md-padding-bottom-47{padding-bottom:47px;} - .layout-md-padding-bottom-48{padding-bottom:48px;} - .layout-md-padding-bottom-49{padding-bottom:49px;} - .layout-md-padding-bottom-50{padding-bottom:50px;} - .layout-md-padding-bottom-51{padding-bottom:51px;} - .layout-md-padding-bottom-52{padding-bottom:52px;} - .layout-md-padding-bottom-53{padding-bottom:53px;} - .layout-md-padding-bottom-54{padding-bottom:54px;} - .layout-md-padding-bottom-55{padding-bottom:55px;} - .layout-md-padding-bottom-56{padding-bottom:56px;} - .layout-md-padding-bottom-57{padding-bottom:57px;} - .layout-md-padding-bottom-58{padding-bottom:58px;} - .layout-md-padding-bottom-59{padding-bottom:59px;} - .layout-md-padding-bottom-60{padding-bottom:60px;} + .layout-md-padding-bottom-1{padding-bottom:0.1rem;} + .layout-md-padding-bottom-2{padding-bottom:0.2rem;} + .layout-md-padding-bottom-3{padding-bottom:0.3rem;} + .layout-md-padding-bottom-4{padding-bottom:0.4rem;} + .layout-md-padding-bottom-5{padding-bottom:0.5rem;} + .layout-md-padding-bottom-6{padding-bottom:0.6rem;} + .layout-md-padding-bottom-7{padding-bottom:0.7rem;} + .layout-md-padding-bottom-8{padding-bottom:0.8rem;} + .layout-md-padding-bottom-9{padding-bottom:0.9rem;} + .layout-md-padding-bottom-10{padding-bottom:1rem;} + .layout-md-padding-bottom-11{padding-bottom:1.1rem;} + .layout-md-padding-bottom-12{padding-bottom:1.2rem;} + .layout-md-padding-bottom-13{padding-bottom:1.3rem;} + .layout-md-padding-bottom-14{padding-bottom:1.4rem;} + .layout-md-padding-bottom-15{padding-bottom:1.5rem;} + .layout-md-padding-bottom-16{padding-bottom:1.6rem;} + .layout-md-padding-bottom-17{padding-bottom:1.7rem;} + .layout-md-padding-bottom-18{padding-bottom:1.8rem;} + .layout-md-padding-bottom-19{padding-bottom:1.9rem;} + .layout-md-padding-bottom-20{padding-bottom:2rem;} + .layout-md-padding-bottom-21{padding-bottom:2.1rem;} + .layout-md-padding-bottom-22{padding-bottom:2.2rem;} + .layout-md-padding-bottom-23{padding-bottom:2.3rem;} + .layout-md-padding-bottom-24{padding-bottom:2.4rem;} + .layout-md-padding-bottom-25{padding-bottom:2.5rem;} + .layout-md-padding-bottom-26{padding-bottom:2.6rem;} + .layout-md-padding-bottom-27{padding-bottom:2.7rem;} + .layout-md-padding-bottom-28{padding-bottom:2.8rem;} + .layout-md-padding-bottom-29{padding-bottom:2.9rem;} + .layout-md-padding-bottom-30{padding-bottom:3rem;} + .layout-md-padding-bottom-31{padding-bottom:3.1rem;} + .layout-md-padding-bottom-32{padding-bottom:3.2rem;} + .layout-md-padding-bottom-33{padding-bottom:3.3rem;} + .layout-md-padding-bottom-34{padding-bottom:3.4rem;} + .layout-md-padding-bottom-35{padding-bottom:3.5rem;} + .layout-md-padding-bottom-36{padding-bottom:3.6rem;} + .layout-md-padding-bottom-37{padding-bottom:3.7rem;} + .layout-md-padding-bottom-38{padding-bottom:3.8rem;} + .layout-md-padding-bottom-39{padding-bottom:3.9rem;} + .layout-md-padding-bottom-40{padding-bottom:4rem;} + .layout-md-padding-bottom-41{padding-bottom:4.1rem;} + .layout-md-padding-bottom-42{padding-bottom:4.2rem;} + .layout-md-padding-bottom-43{padding-bottom:4.3rem;} + .layout-md-padding-bottom-44{padding-bottom:4.4rem;} + .layout-md-padding-bottom-45{padding-bottom:4.5rem;} + .layout-md-padding-bottom-46{padding-bottom:4.6rem;} + .layout-md-padding-bottom-47{padding-bottom:4.7rem;} + .layout-md-padding-bottom-48{padding-bottom:4.8rem;} + .layout-md-padding-bottom-49{padding-bottom:4.9rem;} + .layout-md-padding-bottom-50{padding-bottom:5rem;} + .layout-md-padding-bottom-51{padding-bottom:5.1rem;} + .layout-md-padding-bottom-52{padding-bottom:5.2rem;} + .layout-md-padding-bottom-53{padding-bottom:5.3rem;} + .layout-md-padding-bottom-54{padding-bottom:5.4rem;} + .layout-md-padding-bottom-55{padding-bottom:5.5rem;} + .layout-md-padding-bottom-56{padding-bottom:5.6rem;} + .layout-md-padding-bottom-57{padding-bottom:5.7rem;} + .layout-md-padding-bottom-58{padding-bottom:5.8rem;} + .layout-md-padding-bottom-59{padding-bottom:5.9rem;} + .layout-md-padding-bottom-60{padding-bottom:6rem;} - .layout-md-padding-left-1{padding-left:1px;} - .layout-md-padding-left-2{padding-left:2px;} - .layout-md-padding-left-3{padding-left:3px;} - .layout-md-padding-left-4{padding-left:4px;} - .layout-md-padding-left-5{padding-left:5px;} - .layout-md-padding-left-6{padding-left:6px;} - .layout-md-padding-left-7{padding-left:7px;} - .layout-md-padding-left-8{padding-left:8px;} - .layout-md-padding-left-9{padding-left:9px;} - .layout-md-padding-left-10{padding-left:10px;} - .layout-md-padding-left-11{padding-left:11px;} - .layout-md-padding-left-12{padding-left:12px;} - .layout-md-padding-left-13{padding-left:13px;} - .layout-md-padding-left-14{padding-left:14px;} - .layout-md-padding-left-15{padding-left:15px;} - .layout-md-padding-left-16{padding-left:16px;} - .layout-md-padding-left-17{padding-left:17px;} - .layout-md-padding-left-18{padding-left:18px;} - .layout-md-padding-left-19{padding-left:19px;} - .layout-md-padding-left-20{padding-left:20px;} - .layout-md-padding-left-21{padding-left:21px;} - .layout-md-padding-left-22{padding-left:22px;} - .layout-md-padding-left-23{padding-left:23px;} - .layout-md-padding-left-24{padding-left:24px;} - .layout-md-padding-left-25{padding-left:25px;} - .layout-md-padding-left-26{padding-left:26px;} - .layout-md-padding-left-27{padding-left:27px;} - .layout-md-padding-left-28{padding-left:28px;} - .layout-md-padding-left-29{padding-left:29px;} - .layout-md-padding-left-30{padding-left:30px;} - .layout-md-padding-left-31{padding-left:31px;} - .layout-md-padding-left-32{padding-left:32px;} - .layout-md-padding-left-33{padding-left:33px;} - .layout-md-padding-left-34{padding-left:34px;} - .layout-md-padding-left-35{padding-left:35px;} - .layout-md-padding-left-36{padding-left:36px;} - .layout-md-padding-left-37{padding-left:37px;} - .layout-md-padding-left-38{padding-left:38px;} - .layout-md-padding-left-39{padding-left:39px;} - .layout-md-padding-left-40{padding-left:40px;} - .layout-md-padding-left-41{padding-left:41px;} - .layout-md-padding-left-42{padding-left:42px;} - .layout-md-padding-left-43{padding-left:43px;} - .layout-md-padding-left-44{padding-left:44px;} - .layout-md-padding-left-45{padding-left:45px;} - .layout-md-padding-left-46{padding-left:46px;} - .layout-md-padding-left-47{padding-left:47px;} - .layout-md-padding-left-48{padding-left:48px;} - .layout-md-padding-left-49{padding-left:49px;} - .layout-md-padding-left-50{padding-left:50px;} - .layout-md-padding-left-51{padding-left:51px;} - .layout-md-padding-left-52{padding-left:52px;} - .layout-md-padding-left-53{padding-left:53px;} - .layout-md-padding-left-54{padding-left:54px;} - .layout-md-padding-left-55{padding-left:55px;} - .layout-md-padding-left-56{padding-left:56px;} - .layout-md-padding-left-57{padding-left:57px;} - .layout-md-padding-left-58{padding-left:58px;} - .layout-md-padding-left-59{padding-left:59px;} - .layout-md-padding-left-60{padding-left:60px;} + .layout-md-padding-left-1{padding-left:0.1rem;} + .layout-md-padding-left-2{padding-left:0.2rem;} + .layout-md-padding-left-3{padding-left:0.3rem;} + .layout-md-padding-left-4{padding-left:0.4rem;} + .layout-md-padding-left-5{padding-left:0.5rem;} + .layout-md-padding-left-6{padding-left:0.6rem;} + .layout-md-padding-left-7{padding-left:0.7rem;} + .layout-md-padding-left-8{padding-left:0.8rem;} + .layout-md-padding-left-9{padding-left:0.9rem;} + .layout-md-padding-left-10{padding-left:1rem;} + .layout-md-padding-left-11{padding-left:1.1rem;} + .layout-md-padding-left-12{padding-left:1.2rem;} + .layout-md-padding-left-13{padding-left:1.3rem;} + .layout-md-padding-left-14{padding-left:1.4rem;} + .layout-md-padding-left-15{padding-left:1.5rem;} + .layout-md-padding-left-16{padding-left:1.6rem;} + .layout-md-padding-left-17{padding-left:1.7rem;} + .layout-md-padding-left-18{padding-left:1.8rem;} + .layout-md-padding-left-19{padding-left:1.9rem;} + .layout-md-padding-left-20{padding-left:2rem;} + .layout-md-padding-left-21{padding-left:2.1rem;} + .layout-md-padding-left-22{padding-left:2.2rem;} + .layout-md-padding-left-23{padding-left:2.3rem;} + .layout-md-padding-left-24{padding-left:2.4rem;} + .layout-md-padding-left-25{padding-left:2.5rem;} + .layout-md-padding-left-26{padding-left:2.6rem;} + .layout-md-padding-left-27{padding-left:2.7rem;} + .layout-md-padding-left-28{padding-left:2.8rem;} + .layout-md-padding-left-29{padding-left:2.9rem;} + .layout-md-padding-left-30{padding-left:3rem;} + .layout-md-padding-left-31{padding-left:3.1rem;} + .layout-md-padding-left-32{padding-left:3.2rem;} + .layout-md-padding-left-33{padding-left:3.3rem;} + .layout-md-padding-left-34{padding-left:3.4rem;} + .layout-md-padding-left-35{padding-left:3.5rem;} + .layout-md-padding-left-36{padding-left:3.6rem;} + .layout-md-padding-left-37{padding-left:3.7rem;} + .layout-md-padding-left-38{padding-left:3.8rem;} + .layout-md-padding-left-39{padding-left:3.9rem;} + .layout-md-padding-left-40{padding-left:4rem;} + .layout-md-padding-left-41{padding-left:4.1rem;} + .layout-md-padding-left-42{padding-left:4.2rem;} + .layout-md-padding-left-43{padding-left:4.3rem;} + .layout-md-padding-left-44{padding-left:4.4rem;} + .layout-md-padding-left-45{padding-left:4.5rem;} + .layout-md-padding-left-46{padding-left:4.6rem;} + .layout-md-padding-left-47{padding-left:4.7rem;} + .layout-md-padding-left-48{padding-left:4.8rem;} + .layout-md-padding-left-49{padding-left:4.9rem;} + .layout-md-padding-left-50{padding-left:5rem;} + .layout-md-padding-left-51{padding-left:5.1rem;} + .layout-md-padding-left-52{padding-left:5.2rem;} + .layout-md-padding-left-53{padding-left:5.3rem;} + .layout-md-padding-left-54{padding-left:5.4rem;} + .layout-md-padding-left-55{padding-left:5.5rem;} + .layout-md-padding-left-56{padding-left:5.6rem;} + .layout-md-padding-left-57{padding-left:5.7rem;} + .layout-md-padding-left-58{padding-left:5.8rem;} + .layout-md-padding-left-59{padding-left:5.9rem;} + .layout-md-padding-left-60{padding-left:6rem;} } @media only screen and (min-width:1025px) { - .layout-lg-padding-top-1{padding-top:1px;} - .layout-lg-padding-top-2{padding-top:2px;} - .layout-lg-padding-top-3{padding-top:3px;} - .layout-lg-padding-top-4{padding-top:4px;} - .layout-lg-padding-top-5{padding-top:5px;} - .layout-lg-padding-top-6{padding-top:6px;} - .layout-lg-padding-top-7{padding-top:7px;} - .layout-lg-padding-top-8{padding-top:8px;} - .layout-lg-padding-top-9{padding-top:9px;} - .layout-lg-padding-top-10{padding-top:10px;} - .layout-lg-padding-top-11{padding-top:11px;} - .layout-lg-padding-top-12{padding-top:12px;} - .layout-lg-padding-top-13{padding-top:13px;} - .layout-lg-padding-top-14{padding-top:14px;} - .layout-lg-padding-top-15{padding-top:15px;} - .layout-lg-padding-top-16{padding-top:16px;} - .layout-lg-padding-top-17{padding-top:17px;} - .layout-lg-padding-top-18{padding-top:18px;} - .layout-lg-padding-top-19{padding-top:19px;} - .layout-lg-padding-top-20{padding-top:20px;} - .layout-lg-padding-top-21{padding-top:21px;} - .layout-lg-padding-top-22{padding-top:22px;} - .layout-lg-padding-top-23{padding-top:23px;} - .layout-lg-padding-top-24{padding-top:24px;} - .layout-lg-padding-top-25{padding-top:25px;} - .layout-lg-padding-top-26{padding-top:26px;} - .layout-lg-padding-top-27{padding-top:27px;} - .layout-lg-padding-top-28{padding-top:28px;} - .layout-lg-padding-top-29{padding-top:29px;} - .layout-lg-padding-top-30{padding-top:30px;} - .layout-lg-padding-top-31{padding-top:31px;} - .layout-lg-padding-top-32{padding-top:32px;} - .layout-lg-padding-top-33{padding-top:33px;} - .layout-lg-padding-top-34{padding-top:34px;} - .layout-lg-padding-top-35{padding-top:35px;} - .layout-lg-padding-top-36{padding-top:36px;} - .layout-lg-padding-top-37{padding-top:37px;} - .layout-lg-padding-top-38{padding-top:38px;} - .layout-lg-padding-top-39{padding-top:39px;} - .layout-lg-padding-top-40{padding-top:40px;} - .layout-lg-padding-top-41{padding-top:41px;} - .layout-lg-padding-top-42{padding-top:42px;} - .layout-lg-padding-top-43{padding-top:43px;} - .layout-lg-padding-top-44{padding-top:44px;} - .layout-lg-padding-top-45{padding-top:45px;} - .layout-lg-padding-top-46{padding-top:46px;} - .layout-lg-padding-top-47{padding-top:47px;} - .layout-lg-padding-top-48{padding-top:48px;} - .layout-lg-padding-top-49{padding-top:49px;} - .layout-lg-padding-top-50{padding-top:50px;} - .layout-lg-padding-top-51{padding-top:51px;} - .layout-lg-padding-top-52{padding-top:52px;} - .layout-lg-padding-top-53{padding-top:53px;} - .layout-lg-padding-top-54{padding-top:54px;} - .layout-lg-padding-top-55{padding-top:55px;} - .layout-lg-padding-top-56{padding-top:56px;} - .layout-lg-padding-top-57{padding-top:57px;} - .layout-lg-padding-top-58{padding-top:58px;} - .layout-lg-padding-top-59{padding-top:59px;} - .layout-lg-padding-top-60{padding-top:60px;} + .layout-lg-padding-top-1{padding-top:0.1rem;} + .layout-lg-padding-top-2{padding-top:0.2rem;} + .layout-lg-padding-top-3{padding-top:0.3rem;} + .layout-lg-padding-top-4{padding-top:0.4rem;} + .layout-lg-padding-top-5{padding-top:0.5rem;} + .layout-lg-padding-top-6{padding-top:0.6rem;} + .layout-lg-padding-top-7{padding-top:0.7rem;} + .layout-lg-padding-top-8{padding-top:0.8rem;} + .layout-lg-padding-top-9{padding-top:0.9rem;} + .layout-lg-padding-top-10{padding-top:1rem;} + .layout-lg-padding-top-11{padding-top:1.1rem;} + .layout-lg-padding-top-12{padding-top:1.2rem;} + .layout-lg-padding-top-13{padding-top:1.3rem;} + .layout-lg-padding-top-14{padding-top:1.4rem;} + .layout-lg-padding-top-15{padding-top:1.5rem;} + .layout-lg-padding-top-16{padding-top:1.6rem;} + .layout-lg-padding-top-17{padding-top:1.7rem;} + .layout-lg-padding-top-18{padding-top:1.8rem;} + .layout-lg-padding-top-19{padding-top:1.9rem;} + .layout-lg-padding-top-20{padding-top:2rem;} + .layout-lg-padding-top-21{padding-top:2.1rem;} + .layout-lg-padding-top-22{padding-top:2.2rem;} + .layout-lg-padding-top-23{padding-top:2.3rem;} + .layout-lg-padding-top-24{padding-top:2.4rem;} + .layout-lg-padding-top-25{padding-top:2.5rem;} + .layout-lg-padding-top-26{padding-top:2.6rem;} + .layout-lg-padding-top-27{padding-top:2.7rem;} + .layout-lg-padding-top-28{padding-top:2.8rem;} + .layout-lg-padding-top-29{padding-top:2.9rem;} + .layout-lg-padding-top-30{padding-top:3rem;} + .layout-lg-padding-top-31{padding-top:3.1rem;} + .layout-lg-padding-top-32{padding-top:3.2rem;} + .layout-lg-padding-top-33{padding-top:3.3rem;} + .layout-lg-padding-top-34{padding-top:3.4rem;} + .layout-lg-padding-top-35{padding-top:3.5rem;} + .layout-lg-padding-top-36{padding-top:3.6rem;} + .layout-lg-padding-top-37{padding-top:3.7rem;} + .layout-lg-padding-top-38{padding-top:3.8rem;} + .layout-lg-padding-top-39{padding-top:3.9rem;} + .layout-lg-padding-top-40{padding-top:4rem;} + .layout-lg-padding-top-41{padding-top:4.1rem;} + .layout-lg-padding-top-42{padding-top:4.2rem;} + .layout-lg-padding-top-43{padding-top:4.3rem;} + .layout-lg-padding-top-44{padding-top:4.4rem;} + .layout-lg-padding-top-45{padding-top:4.5rem;} + .layout-lg-padding-top-46{padding-top:4.6rem;} + .layout-lg-padding-top-47{padding-top:4.7rem;} + .layout-lg-padding-top-48{padding-top:4.8rem;} + .layout-lg-padding-top-49{padding-top:4.9rem;} + .layout-lg-padding-top-50{padding-top:5rem;} + .layout-lg-padding-top-51{padding-top:5.1rem;} + .layout-lg-padding-top-52{padding-top:5.2rem;} + .layout-lg-padding-top-53{padding-top:5.3rem;} + .layout-lg-padding-top-54{padding-top:5.4rem;} + .layout-lg-padding-top-55{padding-top:5.5rem;} + .layout-lg-padding-top-56{padding-top:5.6rem;} + .layout-lg-padding-top-57{padding-top:5.7rem;} + .layout-lg-padding-top-58{padding-top:5.8rem;} + .layout-lg-padding-top-59{padding-top:5.9rem;} + .layout-lg-padding-top-60{padding-top:6rem;} - .layout-lg-padding-right-1{padding-right:1px;} - .layout-lg-padding-right-2{padding-right:2px;} - .layout-lg-padding-right-3{padding-right:3px;} - .layout-lg-padding-right-4{padding-right:4px;} - .layout-lg-padding-right-5{padding-right:5px;} - .layout-lg-padding-right-6{padding-right:6px;} - .layout-lg-padding-right-7{padding-right:7px;} - .layout-lg-padding-right-8{padding-right:8px;} - .layout-lg-padding-right-9{padding-right:9px;} - .layout-lg-padding-right-10{padding-right:10px;} - .layout-lg-padding-right-11{padding-right:11px;} - .layout-lg-padding-right-12{padding-right:12px;} - .layout-lg-padding-right-13{padding-right:13px;} - .layout-lg-padding-right-14{padding-right:14px;} - .layout-lg-padding-right-15{padding-right:15px;} - .layout-lg-padding-right-16{padding-right:16px;} - .layout-lg-padding-right-17{padding-right:17px;} - .layout-lg-padding-right-18{padding-right:18px;} - .layout-lg-padding-right-19{padding-right:19px;} - .layout-lg-padding-right-20{padding-right:20px;} - .layout-lg-padding-right-21{padding-right:21px;} - .layout-lg-padding-right-22{padding-right:22px;} - .layout-lg-padding-right-23{padding-right:23px;} - .layout-lg-padding-right-24{padding-right:24px;} - .layout-lg-padding-right-25{padding-right:25px;} - .layout-lg-padding-right-26{padding-right:26px;} - .layout-lg-padding-right-27{padding-right:27px;} - .layout-lg-padding-right-28{padding-right:28px;} - .layout-lg-padding-right-29{padding-right:29px;} - .layout-lg-padding-right-30{padding-right:30px;} - .layout-lg-padding-right-31{padding-right:31px;} - .layout-lg-padding-right-32{padding-right:32px;} - .layout-lg-padding-right-33{padding-right:33px;} - .layout-lg-padding-right-34{padding-right:34px;} - .layout-lg-padding-right-35{padding-right:35px;} - .layout-lg-padding-right-36{padding-right:36px;} - .layout-lg-padding-right-37{padding-right:37px;} - .layout-lg-padding-right-38{padding-right:38px;} - .layout-lg-padding-right-39{padding-right:39px;} - .layout-lg-padding-right-40{padding-right:40px;} - .layout-lg-padding-right-41{padding-right:41px;} - .layout-lg-padding-right-42{padding-right:42px;} - .layout-lg-padding-right-43{padding-right:43px;} - .layout-lg-padding-right-44{padding-right:44px;} - .layout-lg-padding-right-45{padding-right:45px;} - .layout-lg-padding-right-46{padding-right:46px;} - .layout-lg-padding-right-47{padding-right:47px;} - .layout-lg-padding-right-48{padding-right:48px;} - .layout-lg-padding-right-49{padding-right:49px;} - .layout-lg-padding-right-50{padding-right:50px;} - .layout-lg-padding-right-51{padding-right:51px;} - .layout-lg-padding-right-52{padding-right:52px;} - .layout-lg-padding-right-53{padding-right:53px;} - .layout-lg-padding-right-54{padding-right:54px;} - .layout-lg-padding-right-55{padding-right:55px;} - .layout-lg-padding-right-56{padding-right:56px;} - .layout-lg-padding-right-57{padding-right:57px;} - .layout-lg-padding-right-58{padding-right:58px;} - .layout-lg-padding-right-59{padding-right:59px;} - .layout-lg-padding-right-60{padding-right:60px;} + .layout-lg-padding-right-1{padding-right:0.1rem;} + .layout-lg-padding-right-2{padding-right:0.2rem;} + .layout-lg-padding-right-3{padding-right:0.3rem;} + .layout-lg-padding-right-4{padding-right:0.4rem;} + .layout-lg-padding-right-5{padding-right:0.5rem;} + .layout-lg-padding-right-6{padding-right:0.6rem;} + .layout-lg-padding-right-7{padding-right:0.7rem;} + .layout-lg-padding-right-8{padding-right:0.8rem;} + .layout-lg-padding-right-9{padding-right:0.9rem;} + .layout-lg-padding-right-10{padding-right:1rem;} + .layout-lg-padding-right-11{padding-right:1.1rem;} + .layout-lg-padding-right-12{padding-right:1.2rem;} + .layout-lg-padding-right-13{padding-right:1.3rem;} + .layout-lg-padding-right-14{padding-right:1.4rem;} + .layout-lg-padding-right-15{padding-right:1.5rem;} + .layout-lg-padding-right-16{padding-right:1.6rem;} + .layout-lg-padding-right-17{padding-right:1.7rem;} + .layout-lg-padding-right-18{padding-right:1.8rem;} + .layout-lg-padding-right-19{padding-right:1.9rem;} + .layout-lg-padding-right-20{padding-right:2rem;} + .layout-lg-padding-right-21{padding-right:2.1rem;} + .layout-lg-padding-right-22{padding-right:2.2rem;} + .layout-lg-padding-right-23{padding-right:2.3rem;} + .layout-lg-padding-right-24{padding-right:2.4rem;} + .layout-lg-padding-right-25{padding-right:2.5rem;} + .layout-lg-padding-right-26{padding-right:2.6rem;} + .layout-lg-padding-right-27{padding-right:2.7rem;} + .layout-lg-padding-right-28{padding-right:2.8rem;} + .layout-lg-padding-right-29{padding-right:2.9rem;} + .layout-lg-padding-right-30{padding-right:3rem;} + .layout-lg-padding-right-31{padding-right:3.1rem;} + .layout-lg-padding-right-32{padding-right:3.2rem;} + .layout-lg-padding-right-33{padding-right:3.3rem;} + .layout-lg-padding-right-34{padding-right:3.4rem;} + .layout-lg-padding-right-35{padding-right:3.5rem;} + .layout-lg-padding-right-36{padding-right:3.6rem;} + .layout-lg-padding-right-37{padding-right:3.7rem;} + .layout-lg-padding-right-38{padding-right:3.8rem;} + .layout-lg-padding-right-39{padding-right:3.9rem;} + .layout-lg-padding-right-40{padding-right:4rem;} + .layout-lg-padding-right-41{padding-right:4.1rem;} + .layout-lg-padding-right-42{padding-right:4.2rem;} + .layout-lg-padding-right-43{padding-right:4.3rem;} + .layout-lg-padding-right-44{padding-right:4.4rem;} + .layout-lg-padding-right-45{padding-right:4.5rem;} + .layout-lg-padding-right-46{padding-right:4.6rem;} + .layout-lg-padding-right-47{padding-right:4.7rem;} + .layout-lg-padding-right-48{padding-right:4.8rem;} + .layout-lg-padding-right-49{padding-right:4.9rem;} + .layout-lg-padding-right-50{padding-right:5rem;} + .layout-lg-padding-right-51{padding-right:5.1rem;} + .layout-lg-padding-right-52{padding-right:5.2rem;} + .layout-lg-padding-right-53{padding-right:5.3rem;} + .layout-lg-padding-right-54{padding-right:5.4rem;} + .layout-lg-padding-right-55{padding-right:5.5rem;} + .layout-lg-padding-right-56{padding-right:5.6rem;} + .layout-lg-padding-right-57{padding-right:5.7rem;} + .layout-lg-padding-right-58{padding-right:5.8rem;} + .layout-lg-padding-right-59{padding-right:5.9rem;} + .layout-lg-padding-right-60{padding-right:6rem;} - .layout-lg-padding-bottom-1{padding-bottom:1px;} - .layout-lg-padding-bottom-2{padding-bottom:2px;} - .layout-lg-padding-bottom-3{padding-bottom:3px;} - .layout-lg-padding-bottom-4{padding-bottom:4px;} - .layout-lg-padding-bottom-5{padding-bottom:5px;} - .layout-lg-padding-bottom-6{padding-bottom:6px;} - .layout-lg-padding-bottom-7{padding-bottom:7px;} - .layout-lg-padding-bottom-8{padding-bottom:8px;} - .layout-lg-padding-bottom-9{padding-bottom:9px;} - .layout-lg-padding-bottom-10{padding-bottom:10px;} - .layout-lg-padding-bottom-11{padding-bottom:11px;} - .layout-lg-padding-bottom-12{padding-bottom:12px;} - .layout-lg-padding-bottom-13{padding-bottom:13px;} - .layout-lg-padding-bottom-14{padding-bottom:14px;} - .layout-lg-padding-bottom-15{padding-bottom:15px;} - .layout-lg-padding-bottom-16{padding-bottom:16px;} - .layout-lg-padding-bottom-17{padding-bottom:17px;} - .layout-lg-padding-bottom-18{padding-bottom:18px;} - .layout-lg-padding-bottom-19{padding-bottom:19px;} - .layout-lg-padding-bottom-20{padding-bottom:20px;} - .layout-lg-padding-bottom-21{padding-bottom:21px;} - .layout-lg-padding-bottom-22{padding-bottom:22px;} - .layout-lg-padding-bottom-23{padding-bottom:23px;} - .layout-lg-padding-bottom-24{padding-bottom:24px;} - .layout-lg-padding-bottom-25{padding-bottom:25px;} - .layout-lg-padding-bottom-26{padding-bottom:26px;} - .layout-lg-padding-bottom-27{padding-bottom:27px;} - .layout-lg-padding-bottom-28{padding-bottom:28px;} - .layout-lg-padding-bottom-29{padding-bottom:29px;} - .layout-lg-padding-bottom-30{padding-bottom:30px;} - .layout-lg-padding-bottom-31{padding-bottom:31px;} - .layout-lg-padding-bottom-32{padding-bottom:32px;} - .layout-lg-padding-bottom-33{padding-bottom:33px;} - .layout-lg-padding-bottom-34{padding-bottom:34px;} - .layout-lg-padding-bottom-35{padding-bottom:35px;} - .layout-lg-padding-bottom-36{padding-bottom:36px;} - .layout-lg-padding-bottom-37{padding-bottom:37px;} - .layout-lg-padding-bottom-38{padding-bottom:38px;} - .layout-lg-padding-bottom-39{padding-bottom:39px;} - .layout-lg-padding-bottom-40{padding-bottom:40px;} - .layout-lg-padding-bottom-41{padding-bottom:41px;} - .layout-lg-padding-bottom-42{padding-bottom:42px;} - .layout-lg-padding-bottom-43{padding-bottom:43px;} - .layout-lg-padding-bottom-44{padding-bottom:44px;} - .layout-lg-padding-bottom-45{padding-bottom:45px;} - .layout-lg-padding-bottom-46{padding-bottom:46px;} - .layout-lg-padding-bottom-47{padding-bottom:47px;} - .layout-lg-padding-bottom-48{padding-bottom:48px;} - .layout-lg-padding-bottom-49{padding-bottom:49px;} - .layout-lg-padding-bottom-50{padding-bottom:50px;} - .layout-lg-padding-bottom-51{padding-bottom:51px;} - .layout-lg-padding-bottom-52{padding-bottom:52px;} - .layout-lg-padding-bottom-53{padding-bottom:53px;} - .layout-lg-padding-bottom-54{padding-bottom:54px;} - .layout-lg-padding-bottom-55{padding-bottom:55px;} - .layout-lg-padding-bottom-56{padding-bottom:56px;} - .layout-lg-padding-bottom-57{padding-bottom:57px;} - .layout-lg-padding-bottom-58{padding-bottom:58px;} - .layout-lg-padding-bottom-59{padding-bottom:59px;} - .layout-lg-padding-bottom-60{padding-bottom:60px;} + .layout-lg-padding-bottom-1{padding-bottom:0.1rem;} + .layout-lg-padding-bottom-2{padding-bottom:0.2rem;} + .layout-lg-padding-bottom-3{padding-bottom:0.3rem;} + .layout-lg-padding-bottom-4{padding-bottom:0.4rem;} + .layout-lg-padding-bottom-5{padding-bottom:0.5rem;} + .layout-lg-padding-bottom-6{padding-bottom:0.6rem;} + .layout-lg-padding-bottom-7{padding-bottom:0.7rem;} + .layout-lg-padding-bottom-8{padding-bottom:0.8rem;} + .layout-lg-padding-bottom-9{padding-bottom:0.9rem;} + .layout-lg-padding-bottom-10{padding-bottom:1rem;} + .layout-lg-padding-bottom-11{padding-bottom:1.1rem;} + .layout-lg-padding-bottom-12{padding-bottom:1.2rem;} + .layout-lg-padding-bottom-13{padding-bottom:1.3rem;} + .layout-lg-padding-bottom-14{padding-bottom:1.4rem;} + .layout-lg-padding-bottom-15{padding-bottom:1.5rem;} + .layout-lg-padding-bottom-16{padding-bottom:1.6rem;} + .layout-lg-padding-bottom-17{padding-bottom:1.7rem;} + .layout-lg-padding-bottom-18{padding-bottom:1.8rem;} + .layout-lg-padding-bottom-19{padding-bottom:1.9rem;} + .layout-lg-padding-bottom-20{padding-bottom:2rem;} + .layout-lg-padding-bottom-21{padding-bottom:2.1rem;} + .layout-lg-padding-bottom-22{padding-bottom:2.2rem;} + .layout-lg-padding-bottom-23{padding-bottom:2.3rem;} + .layout-lg-padding-bottom-24{padding-bottom:2.4rem;} + .layout-lg-padding-bottom-25{padding-bottom:2.5rem;} + .layout-lg-padding-bottom-26{padding-bottom:2.6rem;} + .layout-lg-padding-bottom-27{padding-bottom:2.7rem;} + .layout-lg-padding-bottom-28{padding-bottom:2.8rem;} + .layout-lg-padding-bottom-29{padding-bottom:2.9rem;} + .layout-lg-padding-bottom-30{padding-bottom:3rem;} + .layout-lg-padding-bottom-31{padding-bottom:3.1rem;} + .layout-lg-padding-bottom-32{padding-bottom:3.2rem;} + .layout-lg-padding-bottom-33{padding-bottom:3.3rem;} + .layout-lg-padding-bottom-34{padding-bottom:3.4rem;} + .layout-lg-padding-bottom-35{padding-bottom:3.5rem;} + .layout-lg-padding-bottom-36{padding-bottom:3.6rem;} + .layout-lg-padding-bottom-37{padding-bottom:3.7rem;} + .layout-lg-padding-bottom-38{padding-bottom:3.8rem;} + .layout-lg-padding-bottom-39{padding-bottom:3.9rem;} + .layout-lg-padding-bottom-40{padding-bottom:4rem;} + .layout-lg-padding-bottom-41{padding-bottom:4.1rem;} + .layout-lg-padding-bottom-42{padding-bottom:4.2rem;} + .layout-lg-padding-bottom-43{padding-bottom:4.3rem;} + .layout-lg-padding-bottom-44{padding-bottom:4.4rem;} + .layout-lg-padding-bottom-45{padding-bottom:4.5rem;} + .layout-lg-padding-bottom-46{padding-bottom:4.6rem;} + .layout-lg-padding-bottom-47{padding-bottom:4.7rem;} + .layout-lg-padding-bottom-48{padding-bottom:4.8rem;} + .layout-lg-padding-bottom-49{padding-bottom:4.9rem;} + .layout-lg-padding-bottom-50{padding-bottom:5rem;} + .layout-lg-padding-bottom-51{padding-bottom:5.1rem;} + .layout-lg-padding-bottom-52{padding-bottom:5.2rem;} + .layout-lg-padding-bottom-53{padding-bottom:5.3rem;} + .layout-lg-padding-bottom-54{padding-bottom:5.4rem;} + .layout-lg-padding-bottom-55{padding-bottom:5.5rem;} + .layout-lg-padding-bottom-56{padding-bottom:5.6rem;} + .layout-lg-padding-bottom-57{padding-bottom:5.7rem;} + .layout-lg-padding-bottom-58{padding-bottom:5.8rem;} + .layout-lg-padding-bottom-59{padding-bottom:5.9rem;} + .layout-lg-padding-bottom-60{padding-bottom:6rem;} - .layout-lg-padding-left-1{padding-left:1px;} - .layout-lg-padding-left-2{padding-left:2px;} - .layout-lg-padding-left-3{padding-left:3px;} - .layout-lg-padding-left-4{padding-left:4px;} - .layout-lg-padding-left-5{padding-left:5px;} - .layout-lg-padding-left-6{padding-left:6px;} - .layout-lg-padding-left-7{padding-left:7px;} - .layout-lg-padding-left-8{padding-left:8px;} - .layout-lg-padding-left-9{padding-left:9px;} - .layout-lg-padding-left-10{padding-left:10px;} - .layout-lg-padding-left-11{padding-left:11px;} - .layout-lg-padding-left-12{padding-left:12px;} - .layout-lg-padding-left-13{padding-left:13px;} - .layout-lg-padding-left-14{padding-left:14px;} - .layout-lg-padding-left-15{padding-left:15px;} - .layout-lg-padding-left-16{padding-left:16px;} - .layout-lg-padding-left-17{padding-left:17px;} - .layout-lg-padding-left-18{padding-left:18px;} - .layout-lg-padding-left-19{padding-left:19px;} - .layout-lg-padding-left-20{padding-left:20px;} - .layout-lg-padding-left-21{padding-left:21px;} - .layout-lg-padding-left-22{padding-left:22px;} - .layout-lg-padding-left-23{padding-left:23px;} - .layout-lg-padding-left-24{padding-left:24px;} - .layout-lg-padding-left-25{padding-left:25px;} - .layout-lg-padding-left-26{padding-left:26px;} - .layout-lg-padding-left-27{padding-left:27px;} - .layout-lg-padding-left-28{padding-left:28px;} - .layout-lg-padding-left-29{padding-left:29px;} - .layout-lg-padding-left-30{padding-left:30px;} - .layout-lg-padding-left-31{padding-left:31px;} - .layout-lg-padding-left-32{padding-left:32px;} - .layout-lg-padding-left-33{padding-left:33px;} - .layout-lg-padding-left-34{padding-left:34px;} - .layout-lg-padding-left-35{padding-left:35px;} - .layout-lg-padding-left-36{padding-left:36px;} - .layout-lg-padding-left-37{padding-left:37px;} - .layout-lg-padding-left-38{padding-left:38px;} - .layout-lg-padding-left-39{padding-left:39px;} - .layout-lg-padding-left-40{padding-left:40px;} - .layout-lg-padding-left-41{padding-left:41px;} - .layout-lg-padding-left-42{padding-left:42px;} - .layout-lg-padding-left-43{padding-left:43px;} - .layout-lg-padding-left-44{padding-left:44px;} - .layout-lg-padding-left-45{padding-left:45px;} - .layout-lg-padding-left-46{padding-left:46px;} - .layout-lg-padding-left-47{padding-left:47px;} - .layout-lg-padding-left-48{padding-left:48px;} - .layout-lg-padding-left-49{padding-left:49px;} - .layout-lg-padding-left-50{padding-left:50px;} - .layout-lg-padding-left-51{padding-left:51px;} - .layout-lg-padding-left-52{padding-left:52px;} - .layout-lg-padding-left-53{padding-left:53px;} - .layout-lg-padding-left-54{padding-left:54px;} - .layout-lg-padding-left-55{padding-left:55px;} - .layout-lg-padding-left-56{padding-left:56px;} - .layout-lg-padding-left-57{padding-left:57px;} - .layout-lg-padding-left-58{padding-left:58px;} - .layout-lg-padding-left-59{padding-left:59px;} - .layout-lg-padding-left-60{padding-left:60px;} + .layout-lg-padding-left-1{padding-left:0.1rem;} + .layout-lg-padding-left-2{padding-left:0.2rem;} + .layout-lg-padding-left-3{padding-left:0.3rem;} + .layout-lg-padding-left-4{padding-left:0.4rem;} + .layout-lg-padding-left-5{padding-left:0.5rem;} + .layout-lg-padding-left-6{padding-left:0.6rem;} + .layout-lg-padding-left-7{padding-left:0.7rem;} + .layout-lg-padding-left-8{padding-left:0.8rem;} + .layout-lg-padding-left-9{padding-left:0.9rem;} + .layout-lg-padding-left-10{padding-left:1rem;} + .layout-lg-padding-left-11{padding-left:1.1rem;} + .layout-lg-padding-left-12{padding-left:1.2rem;} + .layout-lg-padding-left-13{padding-left:1.3rem;} + .layout-lg-padding-left-14{padding-left:1.4rem;} + .layout-lg-padding-left-15{padding-left:1.5rem;} + .layout-lg-padding-left-16{padding-left:1.6rem;} + .layout-lg-padding-left-17{padding-left:1.7rem;} + .layout-lg-padding-left-18{padding-left:1.8rem;} + .layout-lg-padding-left-19{padding-left:1.9rem;} + .layout-lg-padding-left-20{padding-left:2rem;} + .layout-lg-padding-left-21{padding-left:2.1rem;} + .layout-lg-padding-left-22{padding-left:2.2rem;} + .layout-lg-padding-left-23{padding-left:2.3rem;} + .layout-lg-padding-left-24{padding-left:2.4rem;} + .layout-lg-padding-left-25{padding-left:2.5rem;} + .layout-lg-padding-left-26{padding-left:2.6rem;} + .layout-lg-padding-left-27{padding-left:2.7rem;} + .layout-lg-padding-left-28{padding-left:2.8rem;} + .layout-lg-padding-left-29{padding-left:2.9rem;} + .layout-lg-padding-left-30{padding-left:3rem;} + .layout-lg-padding-left-31{padding-left:3.1rem;} + .layout-lg-padding-left-32{padding-left:3.2rem;} + .layout-lg-padding-left-33{padding-left:3.3rem;} + .layout-lg-padding-left-34{padding-left:3.4rem;} + .layout-lg-padding-left-35{padding-left:3.5rem;} + .layout-lg-padding-left-36{padding-left:3.6rem;} + .layout-lg-padding-left-37{padding-left:3.7rem;} + .layout-lg-padding-left-38{padding-left:3.8rem;} + .layout-lg-padding-left-39{padding-left:3.9rem;} + .layout-lg-padding-left-40{padding-left:4rem;} + .layout-lg-padding-left-41{padding-left:4.1rem;} + .layout-lg-padding-left-42{padding-left:4.2rem;} + .layout-lg-padding-left-43{padding-left:4.3rem;} + .layout-lg-padding-left-44{padding-left:4.4rem;} + .layout-lg-padding-left-45{padding-left:4.5rem;} + .layout-lg-padding-left-46{padding-left:4.6rem;} + .layout-lg-padding-left-47{padding-left:4.7rem;} + .layout-lg-padding-left-48{padding-left:4.8rem;} + .layout-lg-padding-left-49{padding-left:4.9rem;} + .layout-lg-padding-left-50{padding-left:5rem;} + .layout-lg-padding-left-51{padding-left:5.1rem;} + .layout-lg-padding-left-52{padding-left:5.2rem;} + .layout-lg-padding-left-53{padding-left:5.3rem;} + .layout-lg-padding-left-54{padding-left:5.4rem;} + .layout-lg-padding-left-55{padding-left:5.5rem;} + .layout-lg-padding-left-56{padding-left:5.6rem;} + .layout-lg-padding-left-57{padding-left:5.7rem;} + .layout-lg-padding-left-58{padding-left:5.8rem;} + .layout-lg-padding-left-59{padding-left:5.9rem;} + .layout-lg-padding-left-60{padding-left:6rem;} } @media only screen and (max-width: 640px) { - .layout-sm-padding-top-1{padding-top:1px;} - .layout-sm-padding-top-2{padding-top:2px;} - .layout-sm-padding-top-3{padding-top:3px;} - .layout-sm-padding-top-4{padding-top:4px;} - .layout-sm-padding-top-5{padding-top:5px;} - .layout-sm-padding-top-6{padding-top:6px;} - .layout-sm-padding-top-7{padding-top:7px;} - .layout-sm-padding-top-8{padding-top:8px;} - .layout-sm-padding-top-9{padding-top:9px;} - .layout-sm-padding-top-10{padding-top:10px;} - .layout-sm-padding-top-11{padding-top:11px;} - .layout-sm-padding-top-12{padding-top:12px;} - .layout-sm-padding-top-13{padding-top:13px;} - .layout-sm-padding-top-14{padding-top:14px;} - .layout-sm-padding-top-15{padding-top:15px;} - .layout-sm-padding-top-16{padding-top:16px;} - .layout-sm-padding-top-17{padding-top:17px;} - .layout-sm-padding-top-18{padding-top:18px;} - .layout-sm-padding-top-19{padding-top:19px;} - .layout-sm-padding-top-20{padding-top:20px;} - .layout-sm-padding-top-21{padding-top:21px;} - .layout-sm-padding-top-22{padding-top:22px;} - .layout-sm-padding-top-23{padding-top:23px;} - .layout-sm-padding-top-24{padding-top:24px;} - .layout-sm-padding-top-25{padding-top:25px;} - .layout-sm-padding-top-26{padding-top:26px;} - .layout-sm-padding-top-27{padding-top:27px;} - .layout-sm-padding-top-28{padding-top:28px;} - .layout-sm-padding-top-29{padding-top:29px;} - .layout-sm-padding-top-30{padding-top:30px;} - .layout-sm-padding-top-31{padding-top:31px;} - .layout-sm-padding-top-32{padding-top:32px;} - .layout-sm-padding-top-33{padding-top:33px;} - .layout-sm-padding-top-34{padding-top:34px;} - .layout-sm-padding-top-35{padding-top:35px;} - .layout-sm-padding-top-36{padding-top:36px;} - .layout-sm-padding-top-37{padding-top:37px;} - .layout-sm-padding-top-38{padding-top:38px;} - .layout-sm-padding-top-39{padding-top:39px;} - .layout-sm-padding-top-40{padding-top:40px;} - .layout-sm-padding-top-41{padding-top:41px;} - .layout-sm-padding-top-42{padding-top:42px;} - .layout-sm-padding-top-43{padding-top:43px;} - .layout-sm-padding-top-44{padding-top:44px;} - .layout-sm-padding-top-45{padding-top:45px;} - .layout-sm-padding-top-46{padding-top:46px;} - .layout-sm-padding-top-47{padding-top:47px;} - .layout-sm-padding-top-48{padding-top:48px;} - .layout-sm-padding-top-49{padding-top:49px;} - .layout-sm-padding-top-50{padding-top:50px;} - .layout-sm-padding-top-51{padding-top:51px;} - .layout-sm-padding-top-52{padding-top:52px;} - .layout-sm-padding-top-53{padding-top:53px;} - .layout-sm-padding-top-54{padding-top:54px;} - .layout-sm-padding-top-55{padding-top:55px;} - .layout-sm-padding-top-56{padding-top:56px;} - .layout-sm-padding-top-57{padding-top:57px;} - .layout-sm-padding-top-58{padding-top:58px;} - .layout-sm-padding-top-59{padding-top:59px;} - .layout-sm-padding-top-60{padding-top:60px;} + .layout-sm-padding-top-1{padding-top:0.1rem;} + .layout-sm-padding-top-2{padding-top:0.2rem;} + .layout-sm-padding-top-3{padding-top:0.3rem;} + .layout-sm-padding-top-4{padding-top:0.4rem;} + .layout-sm-padding-top-5{padding-top:0.5rem;} + .layout-sm-padding-top-6{padding-top:0.6rem;} + .layout-sm-padding-top-7{padding-top:0.7rem;} + .layout-sm-padding-top-8{padding-top:0.8rem;} + .layout-sm-padding-top-9{padding-top:0.9rem;} + .layout-sm-padding-top-10{padding-top:1rem;} + .layout-sm-padding-top-11{padding-top:1.1rem;} + .layout-sm-padding-top-12{padding-top:1.2rem;} + .layout-sm-padding-top-13{padding-top:1.3rem;} + .layout-sm-padding-top-14{padding-top:1.4rem;} + .layout-sm-padding-top-15{padding-top:1.5rem;} + .layout-sm-padding-top-16{padding-top:1.6rem;} + .layout-sm-padding-top-17{padding-top:1.7rem;} + .layout-sm-padding-top-18{padding-top:1.8rem;} + .layout-sm-padding-top-19{padding-top:1.9rem;} + .layout-sm-padding-top-20{padding-top:2rem;} + .layout-sm-padding-top-21{padding-top:2.1rem;} + .layout-sm-padding-top-22{padding-top:2.2rem;} + .layout-sm-padding-top-23{padding-top:2.3rem;} + .layout-sm-padding-top-24{padding-top:2.4rem;} + .layout-sm-padding-top-25{padding-top:2.5rem;} + .layout-sm-padding-top-26{padding-top:2.6rem;} + .layout-sm-padding-top-27{padding-top:2.7rem;} + .layout-sm-padding-top-28{padding-top:2.8rem;} + .layout-sm-padding-top-29{padding-top:2.9rem;} + .layout-sm-padding-top-30{padding-top:3rem;} + .layout-sm-padding-top-31{padding-top:3.1rem;} + .layout-sm-padding-top-32{padding-top:3.2rem;} + .layout-sm-padding-top-33{padding-top:3.3rem;} + .layout-sm-padding-top-34{padding-top:3.4rem;} + .layout-sm-padding-top-35{padding-top:3.5rem;} + .layout-sm-padding-top-36{padding-top:3.6rem;} + .layout-sm-padding-top-37{padding-top:3.7rem;} + .layout-sm-padding-top-38{padding-top:3.8rem;} + .layout-sm-padding-top-39{padding-top:3.9rem;} + .layout-sm-padding-top-40{padding-top:4rem;} + .layout-sm-padding-top-41{padding-top:4.1rem;} + .layout-sm-padding-top-42{padding-top:4.2rem;} + .layout-sm-padding-top-43{padding-top:4.3rem;} + .layout-sm-padding-top-44{padding-top:4.4rem;} + .layout-sm-padding-top-45{padding-top:4.5rem;} + .layout-sm-padding-top-46{padding-top:4.6rem;} + .layout-sm-padding-top-47{padding-top:4.7rem;} + .layout-sm-padding-top-48{padding-top:4.8rem;} + .layout-sm-padding-top-49{padding-top:4.9rem;} + .layout-sm-padding-top-50{padding-top:5rem;} + .layout-sm-padding-top-51{padding-top:5.1rem;} + .layout-sm-padding-top-52{padding-top:5.2rem;} + .layout-sm-padding-top-53{padding-top:5.3rem;} + .layout-sm-padding-top-54{padding-top:5.4rem;} + .layout-sm-padding-top-55{padding-top:5.5rem;} + .layout-sm-padding-top-56{padding-top:5.6rem;} + .layout-sm-padding-top-57{padding-top:5.7rem;} + .layout-sm-padding-top-58{padding-top:5.8rem;} + .layout-sm-padding-top-59{padding-top:5.9rem;} + .layout-sm-padding-top-60{padding-top:6rem;} - .layout-sm-padding-right-1{padding-right:1px;} - .layout-sm-padding-right-2{padding-right:2px;} - .layout-sm-padding-right-3{padding-right:3px;} - .layout-sm-padding-right-4{padding-right:4px;} - .layout-sm-padding-right-5{padding-right:5px;} - .layout-sm-padding-right-6{padding-right:6px;} - .layout-sm-padding-right-7{padding-right:7px;} - .layout-sm-padding-right-8{padding-right:8px;} - .layout-sm-padding-right-9{padding-right:9px;} - .layout-sm-padding-right-10{padding-right:10px;} - .layout-sm-padding-right-11{padding-right:11px;} - .layout-sm-padding-right-12{padding-right:12px;} - .layout-sm-padding-right-13{padding-right:13px;} - .layout-sm-padding-right-14{padding-right:14px;} - .layout-sm-padding-right-15{padding-right:15px;} - .layout-sm-padding-right-16{padding-right:16px;} - .layout-sm-padding-right-17{padding-right:17px;} - .layout-sm-padding-right-18{padding-right:18px;} - .layout-sm-padding-right-19{padding-right:19px;} - .layout-sm-padding-right-20{padding-right:20px;} - .layout-sm-padding-right-21{padding-right:21px;} - .layout-sm-padding-right-22{padding-right:22px;} - .layout-sm-padding-right-23{padding-right:23px;} - .layout-sm-padding-right-24{padding-right:24px;} - .layout-sm-padding-right-25{padding-right:25px;} - .layout-sm-padding-right-26{padding-right:26px;} - .layout-sm-padding-right-27{padding-right:27px;} - .layout-sm-padding-right-28{padding-right:28px;} - .layout-sm-padding-right-29{padding-right:29px;} - .layout-sm-padding-right-30{padding-right:30px;} - .layout-sm-padding-right-31{padding-right:31px;} - .layout-sm-padding-right-32{padding-right:32px;} - .layout-sm-padding-right-33{padding-right:33px;} - .layout-sm-padding-right-34{padding-right:34px;} - .layout-sm-padding-right-35{padding-right:35px;} - .layout-sm-padding-right-36{padding-right:36px;} - .layout-sm-padding-right-37{padding-right:37px;} - .layout-sm-padding-right-38{padding-right:38px;} - .layout-sm-padding-right-39{padding-right:39px;} - .layout-sm-padding-right-40{padding-right:40px;} - .layout-sm-padding-right-41{padding-right:41px;} - .layout-sm-padding-right-42{padding-right:42px;} - .layout-sm-padding-right-43{padding-right:43px;} - .layout-sm-padding-right-44{padding-right:44px;} - .layout-sm-padding-right-45{padding-right:45px;} - .layout-sm-padding-right-46{padding-right:46px;} - .layout-sm-padding-right-47{padding-right:47px;} - .layout-sm-padding-right-48{padding-right:48px;} - .layout-sm-padding-right-49{padding-right:49px;} - .layout-sm-padding-right-50{padding-right:50px;} - .layout-sm-padding-right-51{padding-right:51px;} - .layout-sm-padding-right-52{padding-right:52px;} - .layout-sm-padding-right-53{padding-right:53px;} - .layout-sm-padding-right-54{padding-right:54px;} - .layout-sm-padding-right-55{padding-right:55px;} - .layout-sm-padding-right-56{padding-right:56px;} - .layout-sm-padding-right-57{padding-right:57px;} - .layout-sm-padding-right-58{padding-right:58px;} - .layout-sm-padding-right-59{padding-right:59px;} - .layout-sm-padding-right-60{padding-right:60px;} + .layout-sm-padding-right-1{padding-right:0.1rem;} + .layout-sm-padding-right-2{padding-right:0.2rem;} + .layout-sm-padding-right-3{padding-right:0.3rem;} + .layout-sm-padding-right-4{padding-right:0.4rem;} + .layout-sm-padding-right-5{padding-right:0.5rem;} + .layout-sm-padding-right-6{padding-right:0.6rem;} + .layout-sm-padding-right-7{padding-right:0.7rem;} + .layout-sm-padding-right-8{padding-right:0.8rem;} + .layout-sm-padding-right-9{padding-right:0.9rem;} + .layout-sm-padding-right-10{padding-right:1rem;} + .layout-sm-padding-right-11{padding-right:1.1rem;} + .layout-sm-padding-right-12{padding-right:1.2rem;} + .layout-sm-padding-right-13{padding-right:1.3rem;} + .layout-sm-padding-right-14{padding-right:1.4rem;} + .layout-sm-padding-right-15{padding-right:1.5rem;} + .layout-sm-padding-right-16{padding-right:1.6rem;} + .layout-sm-padding-right-17{padding-right:1.7rem;} + .layout-sm-padding-right-18{padding-right:1.8rem;} + .layout-sm-padding-right-19{padding-right:1.9rem;} + .layout-sm-padding-right-20{padding-right:2rem;} + .layout-sm-padding-right-21{padding-right:2.1rem;} + .layout-sm-padding-right-22{padding-right:2.2rem;} + .layout-sm-padding-right-23{padding-right:2.3rem;} + .layout-sm-padding-right-24{padding-right:2.4rem;} + .layout-sm-padding-right-25{padding-right:2.5rem;} + .layout-sm-padding-right-26{padding-right:2.6rem;} + .layout-sm-padding-right-27{padding-right:2.7rem;} + .layout-sm-padding-right-28{padding-right:2.8rem;} + .layout-sm-padding-right-29{padding-right:2.9rem;} + .layout-sm-padding-right-30{padding-right:3rem;} + .layout-sm-padding-right-31{padding-right:3.1rem;} + .layout-sm-padding-right-32{padding-right:3.2rem;} + .layout-sm-padding-right-33{padding-right:3.3rem;} + .layout-sm-padding-right-34{padding-right:3.4rem;} + .layout-sm-padding-right-35{padding-right:3.5rem;} + .layout-sm-padding-right-36{padding-right:3.6rem;} + .layout-sm-padding-right-37{padding-right:3.7rem;} + .layout-sm-padding-right-38{padding-right:3.8rem;} + .layout-sm-padding-right-39{padding-right:3.9rem;} + .layout-sm-padding-right-40{padding-right:4rem;} + .layout-sm-padding-right-41{padding-right:4.1rem;} + .layout-sm-padding-right-42{padding-right:4.2rem;} + .layout-sm-padding-right-43{padding-right:4.3rem;} + .layout-sm-padding-right-44{padding-right:4.4rem;} + .layout-sm-padding-right-45{padding-right:4.5rem;} + .layout-sm-padding-right-46{padding-right:4.6rem;} + .layout-sm-padding-right-47{padding-right:4.7rem;} + .layout-sm-padding-right-48{padding-right:4.8rem;} + .layout-sm-padding-right-49{padding-right:4.9rem;} + .layout-sm-padding-right-50{padding-right:5rem;} + .layout-sm-padding-right-51{padding-right:5.1rem;} + .layout-sm-padding-right-52{padding-right:5.2rem;} + .layout-sm-padding-right-53{padding-right:5.3rem;} + .layout-sm-padding-right-54{padding-right:5.4rem;} + .layout-sm-padding-right-55{padding-right:5.5rem;} + .layout-sm-padding-right-56{padding-right:5.6rem;} + .layout-sm-padding-right-57{padding-right:5.7rem;} + .layout-sm-padding-right-58{padding-right:5.8rem;} + .layout-sm-padding-right-59{padding-right:5.9rem;} + .layout-sm-padding-right-60{padding-right:6rem;} - .layout-sm-padding-bottom-1{padding-bottom:1px;} - .layout-sm-padding-bottom-2{padding-bottom:2px;} - .layout-sm-padding-bottom-3{padding-bottom:3px;} - .layout-sm-padding-bottom-4{padding-bottom:4px;} - .layout-sm-padding-bottom-5{padding-bottom:5px;} - .layout-sm-padding-bottom-6{padding-bottom:6px;} - .layout-sm-padding-bottom-7{padding-bottom:7px;} - .layout-sm-padding-bottom-8{padding-bottom:8px;} - .layout-sm-padding-bottom-9{padding-bottom:9px;} - .layout-sm-padding-bottom-10{padding-bottom:10px;} - .layout-sm-padding-bottom-11{padding-bottom:11px;} - .layout-sm-padding-bottom-12{padding-bottom:12px;} - .layout-sm-padding-bottom-13{padding-bottom:13px;} - .layout-sm-padding-bottom-14{padding-bottom:14px;} - .layout-sm-padding-bottom-15{padding-bottom:15px;} - .layout-sm-padding-bottom-16{padding-bottom:16px;} - .layout-sm-padding-bottom-17{padding-bottom:17px;} - .layout-sm-padding-bottom-18{padding-bottom:18px;} - .layout-sm-padding-bottom-19{padding-bottom:19px;} - .layout-sm-padding-bottom-20{padding-bottom:20px;} - .layout-sm-padding-bottom-21{padding-bottom:21px;} - .layout-sm-padding-bottom-22{padding-bottom:22px;} - .layout-sm-padding-bottom-23{padding-bottom:23px;} - .layout-sm-padding-bottom-24{padding-bottom:24px;} - .layout-sm-padding-bottom-25{padding-bottom:25px;} - .layout-sm-padding-bottom-26{padding-bottom:26px;} - .layout-sm-padding-bottom-27{padding-bottom:27px;} - .layout-sm-padding-bottom-28{padding-bottom:28px;} - .layout-sm-padding-bottom-29{padding-bottom:29px;} - .layout-sm-padding-bottom-30{padding-bottom:30px;} - .layout-sm-padding-bottom-31{padding-bottom:31px;} - .layout-sm-padding-bottom-32{padding-bottom:32px;} - .layout-sm-padding-bottom-33{padding-bottom:33px;} - .layout-sm-padding-bottom-34{padding-bottom:34px;} - .layout-sm-padding-bottom-35{padding-bottom:35px;} - .layout-sm-padding-bottom-36{padding-bottom:36px;} - .layout-sm-padding-bottom-37{padding-bottom:37px;} - .layout-sm-padding-bottom-38{padding-bottom:38px;} - .layout-sm-padding-bottom-39{padding-bottom:39px;} - .layout-sm-padding-bottom-40{padding-bottom:40px;} - .layout-sm-padding-bottom-41{padding-bottom:41px;} - .layout-sm-padding-bottom-42{padding-bottom:42px;} - .layout-sm-padding-bottom-43{padding-bottom:43px;} - .layout-sm-padding-bottom-44{padding-bottom:44px;} - .layout-sm-padding-bottom-45{padding-bottom:45px;} - .layout-sm-padding-bottom-46{padding-bottom:46px;} - .layout-sm-padding-bottom-47{padding-bottom:47px;} - .layout-sm-padding-bottom-48{padding-bottom:48px;} - .layout-sm-padding-bottom-49{padding-bottom:49px;} - .layout-sm-padding-bottom-50{padding-bottom:50px;} - .layout-sm-padding-bottom-51{padding-bottom:51px;} - .layout-sm-padding-bottom-52{padding-bottom:52px;} - .layout-sm-padding-bottom-53{padding-bottom:53px;} - .layout-sm-padding-bottom-54{padding-bottom:54px;} - .layout-sm-padding-bottom-55{padding-bottom:55px;} - .layout-sm-padding-bottom-56{padding-bottom:56px;} - .layout-sm-padding-bottom-57{padding-bottom:57px;} - .layout-sm-padding-bottom-58{padding-bottom:58px;} - .layout-sm-padding-bottom-59{padding-bottom:59px;} - .layout-sm-padding-bottom-60{padding-bottom:60px;} + .layout-sm-padding-bottom-1{padding-bottom:0.1rem;} + .layout-sm-padding-bottom-2{padding-bottom:0.2rem;} + .layout-sm-padding-bottom-3{padding-bottom:0.3rem;} + .layout-sm-padding-bottom-4{padding-bottom:0.4rem;} + .layout-sm-padding-bottom-5{padding-bottom:0.5rem;} + .layout-sm-padding-bottom-6{padding-bottom:0.6rem;} + .layout-sm-padding-bottom-7{padding-bottom:0.7rem;} + .layout-sm-padding-bottom-8{padding-bottom:0.8rem;} + .layout-sm-padding-bottom-9{padding-bottom:0.9rem;} + .layout-sm-padding-bottom-10{padding-bottom:1rem;} + .layout-sm-padding-bottom-11{padding-bottom:1.1rem;} + .layout-sm-padding-bottom-12{padding-bottom:1.2rem;} + .layout-sm-padding-bottom-13{padding-bottom:1.3rem;} + .layout-sm-padding-bottom-14{padding-bottom:1.4rem;} + .layout-sm-padding-bottom-15{padding-bottom:1.5rem;} + .layout-sm-padding-bottom-16{padding-bottom:1.6rem;} + .layout-sm-padding-bottom-17{padding-bottom:1.7rem;} + .layout-sm-padding-bottom-18{padding-bottom:1.8rem;} + .layout-sm-padding-bottom-19{padding-bottom:1.9rem;} + .layout-sm-padding-bottom-20{padding-bottom:2rem;} + .layout-sm-padding-bottom-21{padding-bottom:2.1rem;} + .layout-sm-padding-bottom-22{padding-bottom:2.2rem;} + .layout-sm-padding-bottom-23{padding-bottom:2.3rem;} + .layout-sm-padding-bottom-24{padding-bottom:2.4rem;} + .layout-sm-padding-bottom-25{padding-bottom:2.5rem;} + .layout-sm-padding-bottom-26{padding-bottom:2.6rem;} + .layout-sm-padding-bottom-27{padding-bottom:2.7rem;} + .layout-sm-padding-bottom-28{padding-bottom:2.8rem;} + .layout-sm-padding-bottom-29{padding-bottom:2.9rem;} + .layout-sm-padding-bottom-30{padding-bottom:3rem;} + .layout-sm-padding-bottom-31{padding-bottom:3.1rem;} + .layout-sm-padding-bottom-32{padding-bottom:3.2rem;} + .layout-sm-padding-bottom-33{padding-bottom:3.3rem;} + .layout-sm-padding-bottom-34{padding-bottom:3.4rem;} + .layout-sm-padding-bottom-35{padding-bottom:3.5rem;} + .layout-sm-padding-bottom-36{padding-bottom:3.6rem;} + .layout-sm-padding-bottom-37{padding-bottom:3.7rem;} + .layout-sm-padding-bottom-38{padding-bottom:3.8rem;} + .layout-sm-padding-bottom-39{padding-bottom:3.9rem;} + .layout-sm-padding-bottom-40{padding-bottom:4rem;} + .layout-sm-padding-bottom-41{padding-bottom:4.1rem;} + .layout-sm-padding-bottom-42{padding-bottom:4.2rem;} + .layout-sm-padding-bottom-43{padding-bottom:4.3rem;} + .layout-sm-padding-bottom-44{padding-bottom:4.4rem;} + .layout-sm-padding-bottom-45{padding-bottom:4.5rem;} + .layout-sm-padding-bottom-46{padding-bottom:4.6rem;} + .layout-sm-padding-bottom-47{padding-bottom:4.7rem;} + .layout-sm-padding-bottom-48{padding-bottom:4.8rem;} + .layout-sm-padding-bottom-49{padding-bottom:4.9rem;} + .layout-sm-padding-bottom-50{padding-bottom:5rem;} + .layout-sm-padding-bottom-51{padding-bottom:5.1rem;} + .layout-sm-padding-bottom-52{padding-bottom:5.2rem;} + .layout-sm-padding-bottom-53{padding-bottom:5.3rem;} + .layout-sm-padding-bottom-54{padding-bottom:5.4rem;} + .layout-sm-padding-bottom-55{padding-bottom:5.5rem;} + .layout-sm-padding-bottom-56{padding-bottom:5.6rem;} + .layout-sm-padding-bottom-57{padding-bottom:5.7rem;} + .layout-sm-padding-bottom-58{padding-bottom:5.8rem;} + .layout-sm-padding-bottom-59{padding-bottom:5.9rem;} + .layout-sm-padding-bottom-60{padding-bottom:6rem;} - .layout-sm-padding-left-1{padding-left:1px;} - .layout-sm-padding-left-2{padding-left:2px;} - .layout-sm-padding-left-3{padding-left:3px;} - .layout-sm-padding-left-4{padding-left:4px;} - .layout-sm-padding-left-5{padding-left:5px;} - .layout-sm-padding-left-6{padding-left:6px;} - .layout-sm-padding-left-7{padding-left:7px;} - .layout-sm-padding-left-8{padding-left:8px;} - .layout-sm-padding-left-9{padding-left:9px;} - .layout-sm-padding-left-10{padding-left:10px;} - .layout-sm-padding-left-11{padding-left:11px;} - .layout-sm-padding-left-12{padding-left:12px;} - .layout-sm-padding-left-13{padding-left:13px;} - .layout-sm-padding-left-14{padding-left:14px;} - .layout-sm-padding-left-15{padding-left:15px;} - .layout-sm-padding-left-16{padding-left:16px;} - .layout-sm-padding-left-17{padding-left:17px;} - .layout-sm-padding-left-18{padding-left:18px;} - .layout-sm-padding-left-19{padding-left:19px;} - .layout-sm-padding-left-20{padding-left:20px;} - .layout-sm-padding-left-21{padding-left:21px;} - .layout-sm-padding-left-22{padding-left:22px;} - .layout-sm-padding-left-23{padding-left:23px;} - .layout-sm-padding-left-24{padding-left:24px;} - .layout-sm-padding-left-25{padding-left:25px;} - .layout-sm-padding-left-26{padding-left:26px;} - .layout-sm-padding-left-27{padding-left:27px;} - .layout-sm-padding-left-28{padding-left:28px;} - .layout-sm-padding-left-29{padding-left:29px;} - .layout-sm-padding-left-30{padding-left:30px;} - .layout-sm-padding-left-31{padding-left:31px;} - .layout-sm-padding-left-32{padding-left:32px;} - .layout-sm-padding-left-33{padding-left:33px;} - .layout-sm-padding-left-34{padding-left:34px;} - .layout-sm-padding-left-35{padding-left:35px;} - .layout-sm-padding-left-36{padding-left:36px;} - .layout-sm-padding-left-37{padding-left:37px;} - .layout-sm-padding-left-38{padding-left:38px;} - .layout-sm-padding-left-39{padding-left:39px;} - .layout-sm-padding-left-40{padding-left:40px;} - .layout-sm-padding-left-41{padding-left:41px;} - .layout-sm-padding-left-42{padding-left:42px;} - .layout-sm-padding-left-43{padding-left:43px;} - .layout-sm-padding-left-44{padding-left:44px;} - .layout-sm-padding-left-45{padding-left:45px;} - .layout-sm-padding-left-46{padding-left:46px;} - .layout-sm-padding-left-47{padding-left:47px;} - .layout-sm-padding-left-48{padding-left:48px;} - .layout-sm-padding-left-49{padding-left:49px;} - .layout-sm-padding-left-50{padding-left:50px;} - .layout-sm-padding-left-51{padding-left:51px;} - .layout-sm-padding-left-52{padding-left:52px;} - .layout-sm-padding-left-53{padding-left:53px;} - .layout-sm-padding-left-54{padding-left:54px;} - .layout-sm-padding-left-55{padding-left:55px;} - .layout-sm-padding-left-56{padding-left:56px;} - .layout-sm-padding-left-57{padding-left:57px;} - .layout-sm-padding-left-58{padding-left:58px;} - .layout-sm-padding-left-59{padding-left:59px;} - .layout-sm-padding-left-60{padding-left:60px;} + .layout-sm-padding-left-1{padding-left:0.1rem;} + .layout-sm-padding-left-2{padding-left:0.2rem;} + .layout-sm-padding-left-3{padding-left:0.3rem;} + .layout-sm-padding-left-4{padding-left:0.4rem;} + .layout-sm-padding-left-5{padding-left:0.5rem;} + .layout-sm-padding-left-6{padding-left:0.6rem;} + .layout-sm-padding-left-7{padding-left:0.7rem;} + .layout-sm-padding-left-8{padding-left:0.8rem;} + .layout-sm-padding-left-9{padding-left:0.9rem;} + .layout-sm-padding-left-10{padding-left:1rem;} + .layout-sm-padding-left-11{padding-left:1.1rem;} + .layout-sm-padding-left-12{padding-left:1.2rem;} + .layout-sm-padding-left-13{padding-left:1.3rem;} + .layout-sm-padding-left-14{padding-left:1.4rem;} + .layout-sm-padding-left-15{padding-left:1.5rem;} + .layout-sm-padding-left-16{padding-left:1.6rem;} + .layout-sm-padding-left-17{padding-left:1.7rem;} + .layout-sm-padding-left-18{padding-left:1.8rem;} + .layout-sm-padding-left-19{padding-left:1.9rem;} + .layout-sm-padding-left-20{padding-left:2rem;} + .layout-sm-padding-left-21{padding-left:2.1rem;} + .layout-sm-padding-left-22{padding-left:2.2rem;} + .layout-sm-padding-left-23{padding-left:2.3rem;} + .layout-sm-padding-left-24{padding-left:2.4rem;} + .layout-sm-padding-left-25{padding-left:2.5rem;} + .layout-sm-padding-left-26{padding-left:2.6rem;} + .layout-sm-padding-left-27{padding-left:2.7rem;} + .layout-sm-padding-left-28{padding-left:2.8rem;} + .layout-sm-padding-left-29{padding-left:2.9rem;} + .layout-sm-padding-left-30{padding-left:3rem;} + .layout-sm-padding-left-31{padding-left:3.1rem;} + .layout-sm-padding-left-32{padding-left:3.2rem;} + .layout-sm-padding-left-33{padding-left:3.3rem;} + .layout-sm-padding-left-34{padding-left:3.4rem;} + .layout-sm-padding-left-35{padding-left:3.5rem;} + .layout-sm-padding-left-36{padding-left:3.6rem;} + .layout-sm-padding-left-37{padding-left:3.7rem;} + .layout-sm-padding-left-38{padding-left:3.8rem;} + .layout-sm-padding-left-39{padding-left:3.9rem;} + .layout-sm-padding-left-40{padding-left:4rem;} + .layout-sm-padding-left-41{padding-left:4.1rem;} + .layout-sm-padding-left-42{padding-left:4.2rem;} + .layout-sm-padding-left-43{padding-left:4.3rem;} + .layout-sm-padding-left-44{padding-left:4.4rem;} + .layout-sm-padding-left-45{padding-left:4.5rem;} + .layout-sm-padding-left-46{padding-left:4.6rem;} + .layout-sm-padding-left-47{padding-left:4.7rem;} + .layout-sm-padding-left-48{padding-left:4.8rem;} + .layout-sm-padding-left-49{padding-left:4.9rem;} + .layout-sm-padding-left-50{padding-left:5rem;} + .layout-sm-padding-left-51{padding-left:5.1rem;} + .layout-sm-padding-left-52{padding-left:5.2rem;} + .layout-sm-padding-left-53{padding-left:5.3rem;} + .layout-sm-padding-left-54{padding-left:5.4rem;} + .layout-sm-padding-left-55{padding-left:5.5rem;} + .layout-sm-padding-left-56{padding-left:5.6rem;} + .layout-sm-padding-left-57{padding-left:5.7rem;} + .layout-sm-padding-left-58{padding-left:5.8rem;} + .layout-sm-padding-left-59{padding-left:5.9rem;} + .layout-sm-padding-left-60{padding-left:6rem;} } @@ -1901,11 +1901,11 @@ * 模块类型样式 - 标题 */ .module-title-container .module-title-content{position:relative} -.module-title-container .title-main{font-size:16px;font-weight:600;color:#666} -.module-title-container .title-vice{color:#999;font-size:12px;margin-left:10px} -.module-title-container .keywords-content,.module-title-container .more-content{position:absolute;top:calc(50% - 8px);right:0} -.module-title-container .keywords-content{right:65px} -.module-title-container .keywords-content a:not(:last-child){margin-right:10px} +.module-title-container .title-main{font-size:1.6rem;font-weight:600;color:#666} +.module-title-container .title-vice{color:#999;font-size:1.2rem;margin-left:1rem} +.module-title-container .keywords-content,.module-title-container .more-content{position:absolute;top:calc(50% - 0.8rem);right:0} +.module-title-container .keywords-content{right:6.5rem} +.module-title-container .keywords-content a:not(:last-child){margin-right:1rem} @media only screen and (max-width: 640px) { .module-title-container .keywords-content{display:none} } diff --git a/public/static/common/iconfont/demo.css b/public/static/common/iconfont/demo.css new file mode 100644 index 000000000..a67054a0a --- /dev/null +++ b/public/static/common/iconfont/demo.css @@ -0,0 +1,539 @@ +/* Logo 字体 */ +@font-face { + font-family: "iconfont logo"; + src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834'); + src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834#iefix') format('embedded-opentype'), + url('https://at.alicdn.com/t/font_985780_km7mi63cihi.woff?t=1545807318834') format('woff'), + url('https://at.alicdn.com/t/font_985780_km7mi63cihi.ttf?t=1545807318834') format('truetype'), + url('https://at.alicdn.com/t/font_985780_km7mi63cihi.svg?t=1545807318834#iconfont') format('svg'); +} + +.logo { + font-family: "iconfont logo"; + font-size: 160px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +/* tabs */ +.nav-tabs { + position: relative; +} + +.nav-tabs .nav-more { + position: absolute; + right: 0; + bottom: 0; + height: 42px; + line-height: 42px; + color: #666; +} + +#tabs { + border-bottom: 1px solid #eee; +} + +#tabs li { + cursor: pointer; + width: 100px; + height: 40px; + line-height: 40px; + text-align: center; + font-size: 16px; + border-bottom: 2px solid transparent; + position: relative; + z-index: 1; + margin-bottom: -1px; + color: #666; +} + + +#tabs .active { + border-bottom-color: #f00; + color: #222; +} + +.tab-container .content { + display: none; +} + +/* 页面布局 */ +.main { + padding: 30px 100px; + width: 960px; + margin: 0 auto; +} + +.main .logo { + color: #333; + text-align: left; + margin-bottom: 30px; + line-height: 1; + height: 110px; + margin-top: -50px; + overflow: hidden; + *zoom: 1; +} + +.main .logo a { + font-size: 160px; + color: #333; +} + +.helps { + margin-top: 40px; +} + +.helps pre { + padding: 20px; + margin: 10px 0; + border: solid 1px #e7e1cd; + background-color: #fffdef; + overflow: auto; +} + +.icon_lists { + width: 100% !important; + overflow: hidden; + *zoom: 1; +} + +.icon_lists li { + width: 100px; + margin-bottom: 10px; + margin-right: 20px; + text-align: center; + list-style: none !important; + cursor: default; +} + +.icon_lists li .code-name { + line-height: 1.2; +} + +.icon_lists .icon { + display: block; + height: 100px; + line-height: 100px; + font-size: 42px; + margin: 10px auto; + color: #333; + -webkit-transition: font-size 0.25s linear, width 0.25s linear; + -moz-transition: font-size 0.25s linear, width 0.25s linear; + transition: font-size 0.25s linear, width 0.25s linear; +} + +.icon_lists .icon:hover { + font-size: 100px; +} + +.icon_lists .svg-icon { + /* 通过设置 font-size 来改变图标大小 */ + width: 1em; + /* 图标和文字相邻时,垂直对齐 */ + vertical-align: -0.15em; + /* 通过设置 color 来改变 SVG 的颜色/fill */ + fill: currentColor; + /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示 + normalize.css 中也包含这行 */ + overflow: hidden; +} + +.icon_lists li .name, +.icon_lists li .code-name { + color: #666; +} + +/* markdown 样式 */ +.markdown { + color: #666; + font-size: 14px; + line-height: 1.8; +} + +.highlight { + line-height: 1.5; +} + +.markdown img { + vertical-align: middle; + max-width: 100%; +} + +.markdown h1 { + color: #404040; + font-weight: 500; + line-height: 40px; + margin-bottom: 24px; +} + +.markdown h2, +.markdown h3, +.markdown h4, +.markdown h5, +.markdown h6 { + color: #404040; + margin: 1.6em 0 0.6em 0; + font-weight: 500; + clear: both; +} + +.markdown h1 { + font-size: 28px; +} + +.markdown h2 { + font-size: 22px; +} + +.markdown h3 { + font-size: 16px; +} + +.markdown h4 { + font-size: 14px; +} + +.markdown h5 { + font-size: 12px; +} + +.markdown h6 { + font-size: 12px; +} + +.markdown hr { + height: 1px; + border: 0; + background: #e9e9e9; + margin: 16px 0; + clear: both; +} + +.markdown p { + margin: 1em 0; +} + +.markdown>p, +.markdown>blockquote, +.markdown>.highlight, +.markdown>ol, +.markdown>ul { + width: 80%; +} + +.markdown ul>li { + list-style: circle; +} + +.markdown>ul li, +.markdown blockquote ul>li { + margin-left: 20px; + padding-left: 4px; +} + +.markdown>ul li p, +.markdown>ol li p { + margin: 0.6em 0; +} + +.markdown ol>li { + list-style: decimal; +} + +.markdown>ol li, +.markdown blockquote ol>li { + margin-left: 20px; + padding-left: 4px; +} + +.markdown code { + margin: 0 3px; + padding: 0 5px; + background: #eee; + border-radius: 3px; +} + +.markdown strong, +.markdown b { + font-weight: 600; +} + +.markdown>table { + border-collapse: collapse; + border-spacing: 0px; + empty-cells: show; + border: 1px solid #e9e9e9; + width: 95%; + margin-bottom: 24px; +} + +.markdown>table th { + white-space: nowrap; + color: #333; + font-weight: 600; +} + +.markdown>table th, +.markdown>table td { + border: 1px solid #e9e9e9; + padding: 8px 16px; + text-align: left; +} + +.markdown>table th { + background: #F7F7F7; +} + +.markdown blockquote { + font-size: 90%; + color: #999; + border-left: 4px solid #e9e9e9; + padding-left: 0.8em; + margin: 1em 0; +} + +.markdown blockquote p { + margin: 0; +} + +.markdown .anchor { + opacity: 0; + transition: opacity 0.3s ease; + margin-left: 8px; +} + +.markdown .waiting { + color: #ccc; +} + +.markdown h1:hover .anchor, +.markdown h2:hover .anchor, +.markdown h3:hover .anchor, +.markdown h4:hover .anchor, +.markdown h5:hover .anchor, +.markdown h6:hover .anchor { + opacity: 1; + display: inline-block; +} + +.markdown>br, +.markdown>p>br { + clear: both; +} + + +.hljs { + display: block; + background: white; + padding: 0.5em; + color: #333333; + overflow-x: auto; +} + +.hljs-comment, +.hljs-meta { + color: #969896; +} + +.hljs-string, +.hljs-variable, +.hljs-template-variable, +.hljs-strong, +.hljs-emphasis, +.hljs-quote { + color: #df5000; +} + +.hljs-keyword, +.hljs-selector-tag, +.hljs-type { + color: #a71d5d; +} + +.hljs-literal, +.hljs-symbol, +.hljs-bullet, +.hljs-attribute { + color: #0086b3; +} + +.hljs-section, +.hljs-name { + color: #63a35c; +} + +.hljs-tag { + color: #333333; +} + +.hljs-title, +.hljs-attr, +.hljs-selector-id, +.hljs-selector-class, +.hljs-selector-attr, +.hljs-selector-pseudo { + color: #795da3; +} + +.hljs-addition { + color: #55a532; + background-color: #eaffea; +} + +.hljs-deletion { + color: #bd2c00; + background-color: #ffecec; +} + +.hljs-link { + text-decoration: underline; +} + +/* 代码高亮 */ +/* PrismJS 1.15.0 +https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript */ +/** + * prism.js default theme for JavaScript, CSS and HTML + * Based on dabblet (http://dabblet.com) + * @author Lea Verou + */ +code[class*="language-"], +pre[class*="language-"] { + color: black; + background: none; + text-shadow: 0 1px white; + font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; + text-align: left; + white-space: pre; + word-spacing: normal; + word-break: normal; + word-wrap: normal; + line-height: 1.5; + + -moz-tab-size: 4; + -o-tab-size: 4; + tab-size: 4; + + -webkit-hyphens: none; + -moz-hyphens: none; + -ms-hyphens: none; + hyphens: none; +} + +pre[class*="language-"]::-moz-selection, +pre[class*="language-"] ::-moz-selection, +code[class*="language-"]::-moz-selection, +code[class*="language-"] ::-moz-selection { + text-shadow: none; + background: #b3d4fc; +} + +pre[class*="language-"]::selection, +pre[class*="language-"] ::selection, +code[class*="language-"]::selection, +code[class*="language-"] ::selection { + text-shadow: none; + background: #b3d4fc; +} + +@media print { + + code[class*="language-"], + pre[class*="language-"] { + text-shadow: none; + } +} + +/* Code blocks */ +pre[class*="language-"] { + padding: 1em; + margin: .5em 0; + overflow: auto; +} + +:not(pre)>code[class*="language-"], +pre[class*="language-"] { + background: #f5f2f0; +} + +/* Inline code */ +:not(pre)>code[class*="language-"] { + padding: .1em; + border-radius: .3em; + white-space: normal; +} + +.token.comment, +.token.prolog, +.token.doctype, +.token.cdata { + color: slategray; +} + +.token.punctuation { + color: #999; +} + +.namespace { + opacity: .7; +} + +.token.property, +.token.tag, +.token.boolean, +.token.number, +.token.constant, +.token.symbol, +.token.deleted { + color: #905; +} + +.token.selector, +.token.attr-name, +.token.string, +.token.char, +.token.builtin, +.token.inserted { + color: #690; +} + +.token.operator, +.token.entity, +.token.url, +.language-css .token.string, +.style .token.string { + color: #9a6e3a; + background: hsla(0, 0%, 100%, .5); +} + +.token.atrule, +.token.attr-value, +.token.keyword { + color: #07a; +} + +.token.function, +.token.class-name { + color: #DD4A68; +} + +.token.regex, +.token.important, +.token.variable { + color: #e90; +} + +.token.important, +.token.bold { + font-weight: bold; +} + +.token.italic { + font-style: italic; +} + +.token.entity { + cursor: help; +} diff --git a/public/static/common/iconfont/demo_index.html b/public/static/common/iconfont/demo_index.html new file mode 100644 index 000000000..cf10703cc --- /dev/null +++ b/public/static/common/iconfont/demo_index.html @@ -0,0 +1,2350 @@ + + + + + iconfont Demo + + + + + + + + + + + + + +
    +

    + + +

    + +
    +
    +
      + +
    • + +
      扫一扫
      +
      &#xe8b5;
      +
    • + +
    • + +
      分类
      +
      &#xe6d5;
      +
    • + +
    • + +
      home
      +
      &#xe6d9;
      +
    • + +
    • + +
      see user o
      +
      &#xe603;
      +
    • + +
    • + +
      购物车
      +
      &#xe611;
      +
    • + +
    • + +
      home
      +
      &#xe606;
      +
    • + +
    • + +
      see user
      +
      &#xe81f;
      +
    • + +
    • + +
      分类
      +
      &#xe636;
      +
    • + +
    • + +
      购物车
      +
      &#xe637;
      +
    • + +
    • + +
      more_phone
      +
      &#xe6cb;
      +
    • + +
    • + +
      dianpuproduc
      +
      &#xe6c9;
      +
    • + +
    • + +
      dianpushuliang
      +
      &#xe6ca;
      +
    • + +
    • + +
      exchange-nav-top
      +
      &#xe6c5;
      +
    • + +
    • + +
      icon-anquantuic-left
      +
      &#xe6c7;
      +
    • + +
    • + +
      cart-nav-top
      +
      &#xe6c6;
      +
    • + +
    • + +
      shishangfushi
      +
      &#xe6c2;
      +
    • + +
    • + +
      qiche
      +
      &#xe6c3;
      +
    • + +
    • + +
      zhubaoshoubiao
      +
      &#xe6c4;
      +
    • + +
    • + +
      queren_wdfx
      +
      &#xe6c1;
      +
    • + +
    • + +
      jianotukongjian_wdfx
      +
      &#xe6bf;
      +
    • + +
    • + +
      rili_wdfx
      +
      &#xe6c0;
      +
    • + +
    • + +
      jt1_wdfx
      +
      &#xe6be;
      +
    • + +
    • + +
      putongfenxiao_wdfx
      +
      &#xe6bd;
      +
    • + +
    • + +
      qutixian_wdfx
      +
      &#xe6bb;
      +
    • + +
    • + +
      quhuodian_wdfx
      +
      &#xe6bc;
      +
    • + +
    • + +
      chongzhi_wdqb
      +
      &#xe6ab;
      +
    • + +
    • + +
      zengsong_wdqb
      +
      &#xe6ac;
      +
    • + +
    • + +
      youxiaojine_wdqb
      +
      &#xe6ad;
      +
    • + +
    • + +
      ziliaoguanli_left
      +
      &#xe6ae;
      +
    • + +
    • + +
      shaix_wdqb
      +
      &#xe6af;
      +
    • + +
    • + +
      dongjie_wdqb
      +
      &#xe6b0;
      +
    • + +
    • + +
      yewuguanli_left
      +
      &#xe6b1;
      +
    • + +
    • + +
      shezhi_wdqb
      +
      &#xe6b3;
      +
    • + +
    • + +
      zhengchangjifen_wdjf
      +
      &#xe6b5;
      +
    • + +
    • + +
      tixian_wdqb
      +
      &#xe6b6;
      +
    • + +
    • + +
      gerenzhongxin_left
      +
      &#xe6b7;
      +
    • + +
    • + +
      sousuo_wdqb
      +
      &#xe6b8;
      +
    • + +
    • + +
      caichanzhongxin_left
      +
      &#xe6b9;
      +
    • + +
    • + +
      chongzhi1_wdqb
      +
      &#xe6ba;
      +
    • + +
    • + +
      gaojihuiyuan_wdhy
      +
      &#xe6a7;
      +
    • + +
    • + +
      fkm_wdqb
      +
      &#xe6a8;
      +
    • + +
    • + +
      kthy_wdhy
      +
      &#xe6a9;
      +
    • + +
    • + +
      jiantou_wdhy
      +
      &#xe6aa;
      +
    • + +
    • + +
      finish_zb
      +
      &#xe6a3;
      +
    • + +
    • + +
      pause_zb
      +
      &#xe6a4;
      +
    • + +
    • + +
      not begun_zb
      +
      &#xe6a6;
      +
    • + +
    • + +
      ask_zb
      +
      &#xe6a2;
      +
    • + +
    • + +
      hot_tw
      +
      &#xe698;
      +
    • + +
    • + +
      admin_tw
      +
      &#xe699;
      +
    • + +
    • + +
      question_twme
      +
      &#xe69a;
      +
    • + +
    • + +
      ask_tw
      +
      &#xe69b;
      +
    • + +
    • + +
      new_tw
      +
      &#xe69c;
      +
    • + +
    • + +
      question_tw
      +
      &#xe69d;
      +
    • + +
    • + +
      recommend_tw
      +
      &#xe6a1;
      +
    • + +
    • + +
      sign_qd
      +
      &#xe694;
      +
    • + +
    • + +
      yqd_qd
      +
      &#xe695;
      +
    • + +
    • + +
      share_qd
      +
      &#xe696;
      +
    • + +
    • + +
      team_qd
      +
      &#xe697;
      +
    • + +
    • + +
      points_jf
      +
      &#xe691;
      +
    • + +
    • + +
      share_jf
      +
      &#xe692;
      +
    • + +
    • + +
      shopping_assembly
      +
      &#xe690;
      +
    • + +
    • + +
      collect
      +
      &#xe68d;
      +
    • + +
    • + +
      more
      +
      &#xe68e;
      +
    • + +
    • + +
      language
      +
      &#xe68f;
      +
    • + +
    • + +
      mall
      +
      &#xe68b;
      +
    • + +
    • + +
      message
      +
      &#xe68c;
      +
    • + +
    • + +
      give a like-tap-review
      +
      &#xe686;
      +
    • + +
    • + +
      recover
      +
      &#xe689;
      +
    • + +
    • + +
      give a like-review
      +
      &#xe68a;
      +
    • + +
    • + +
      give a like
      +
      &#xe685;
      +
    • + +
    • + +
      Share
      +
      &#xe687;
      +
    • + +
    • + +
      review
      +
      &#xe688;
      +
    • + +
    • + +
      My blog
      +
      &#xe682;
      +
    • + +
    • + +
      publish
      +
      &#xe683;
      +
    • + +
    • + +
      hot
      +
      &#xe681;
      +
    • + +
    • + +
      individual center
      +
      &#xe67d;
      +
    • + +
    • + +
      index
      +
      &#xe67e;
      +
    • + +
    • + +
      聚收藏
      +
      &#xe643;
      +
    • + +
    • + +
      列表模式
      +
      &#xe61a;
      +
    • + +
    • + +
      图片列表切换
      +
      &#xe638;
      +
    • + +
    • + +
      选中角标
      +
      &#xe619;
      +
    • + +
    • + +
      列表
      +
      &#xe66f;
      +
    • + +
    • + +
      开通服务
      +
      &#xe62b;
      +
    • + +
    • + +
      3.1 二维码
      +
      &#xe601;
      +
    • + +
    • + +
      礼物 活动
      +
      &#xe600;
      +
    • + +
    • + +
      分享
      +
      &#xe624;
      +
    • + +
    • + +
      首页
      +
      &#xe6a5;
      +
    • + +
    • + +
      销售门店
      +
      &#xe6b2;
      +
    • + +
    • + +
      提示
      +
      &#xe648;
      +
    • + +
    • + +
      地址
      +
      &#xe614;
      +
    • + +
    • + +
      消息
      +
      &#xe621;
      +
    • + +
    • + +
      时间
      +
      &#xe620;
      +
    • + +
    • + +
      购物车
      +
      &#xe653;
      +
    • + +
    • + +
      秒杀
      +
      &#xe69e;
      +
    • + +
    +
    +

    Unicode 引用

    +
    + +

    Unicode 是字体在网页端最原始的应用方式,特点是:

    +
      +
    • 支持按字体的方式去动态调整图标大小,颜色等等。
    • +
    • 默认情况下不支持多色,直接添加多色图标会自动去色。
    • +
    +
    +

    注意:新版 iconfont 支持两种方式引用多色图标:SVG symbol 引用方式和彩色字体图标模式。(使用彩色字体图标需要在「编辑项目」中开启「彩色」选项后并重新生成。)

    +
    +

    Unicode 使用步骤如下:

    +

    第一步:拷贝项目下面生成的 @font-face

    +
    @font-face {
    +  font-family: 'iconfont';
    +  src: url('iconfont.woff2?t=1693103489088') format('woff2'),
    +       url('iconfont.woff?t=1693103489088') format('woff'),
    +       url('iconfont.ttf?t=1693103489088') format('truetype');
    +}
    +
    +

    第二步:定义使用 iconfont 的样式

    +
    .iconfont {
    +  font-family: "iconfont" !important;
    +  font-size: 16px;
    +  font-style: normal;
    +  -webkit-font-smoothing: antialiased;
    +  -moz-osx-font-smoothing: grayscale;
    +}
    +
    +

    第三步:挑选相应图标并获取字体编码,应用于页面

    +
    +<span class="iconfont">&#x33;</span>
    +
    +
    +

    "iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。

    +
    +
    +
    +
    +
      + +
    • + +
      + 扫一扫 +
      +
      .icon-saoyisao +
      +
    • + +
    • + +
      + 分类 +
      +
      .icon-web-mobile-bottom-nav-category +
      +
    • + +
    • + +
      + home +
      +
      .icon-web-mobile-bottom-nav-home +
      +
    • + +
    • + +
      + see user o +
      +
      .icon-web-mobile-bottom-nav-user +
      +
    • + +
    • + +
      + 购物车 +
      +
      .icon-web-mobile-bottom-nav-cart +
      +
    • + +
    • + +
      + home +
      +
      .icon-web-mobile-bottom-nav-home-active +
      +
    • + +
    • + +
      + see user +
      +
      .icon-web-mobile-bottom-nav-user-active +
      +
    • + +
    • + +
      + 分类 +
      +
      .icon-web-mobile-bottom-nav-category-active +
      +
    • + +
    • + +
      + 购物车 +
      +
      .icon-web-mobile-bottom-nav-cart-active +
      +
    • + +
    • + +
      + more_phone +
      +
      .icon-more-phone +
      +
    • + +
    • + +
      + dianpuproduc +
      +
      .icon-dianpuproduc +
      +
    • + +
    • + +
      + dianpushuliang +
      +
      .icon-dianpushuliang +
      +
    • + +
    • + +
      + exchange-nav-top +
      +
      .icon-exchange-nav-top +
      +
    • + +
    • + +
      + icon-anquantuic-left +
      +
      .icon-user-center-left-logout +
      +
    • + +
    • + +
      + cart-nav-top +
      +
      .icon-cart-nav-top +
      +
    • + +
    • + +
      + shishangfushi +
      +
      .icon-shishangfushi +
      +
    • + +
    • + +
      + qiche +
      +
      .icon-qiche +
      +
    • + +
    • + +
      + zhubaoshoubiao +
      +
      .icon-zhubaoshoubiao +
      +
    • + +
    • + +
      + queren_wdfx +
      +
      .icon-queren_wdfx +
      +
    • + +
    • + +
      + jianotukongjian_wdfx +
      +
      .icon-jianotukongjian_wdfx +
      +
    • + +
    • + +
      + rili_wdfx +
      +
      .icon-rili_wdfx +
      +
    • + +
    • + +
      + jt1_wdfx +
      +
      .icon-jt1_wdfx +
      +
    • + +
    • + +
      + putongfenxiao_wdfx +
      +
      .icon-putongfenxiao_wdfx +
      +
    • + +
    • + +
      + qutixian_wdfx +
      +
      .icon-qutixian_wdfx +
      +
    • + +
    • + +
      + quhuodian_wdfx +
      +
      .icon-quhuodian_wdfx +
      +
    • + +
    • + +
      + chongzhi_wdqb +
      +
      .icon-chongzhi_wdqb +
      +
    • + +
    • + +
      + zengsong_wdqb +
      +
      .icon-zengsong_wdqb +
      +
    • + +
    • + +
      + youxiaojine_wdqb +
      +
      .icon-youxiaojine_wdqb +
      +
    • + +
    • + +
      + ziliaoguanli_left +
      +
      .icon-user-center-left-base +
      +
    • + +
    • + +
      + shaix_wdqb +
      +
      .icon-shaix_wdqb +
      +
    • + +
    • + +
      + dongjie_wdqb +
      +
      .icon-dongjie_wdqb +
      +
    • + +
    • + +
      + yewuguanli_left +
      +
      .icon-user-center-left-business +
      +
    • + +
    • + +
      + shezhi_wdqb +
      +
      .icon-shezhi_wdqb +
      +
    • + +
    • + +
      + zhengchangjifen_wdjf +
      +
      .icon-zhengchangjifen_wdjf +
      +
    • + +
    • + +
      + tixian_wdqb +
      +
      .icon-tixian_wdqb +
      +
    • + +
    • + +
      + gerenzhongxin_left +
      +
      .icon-user-center-left-home +
      +
    • + +
    • + +
      + sousuo_wdqb +
      +
      .icon-sousuo_wdqb +
      +
    • + +
    • + +
      + caichanzhongxin_left +
      +
      .icon-user-center-left-property +
      +
    • + +
    • + +
      + chongzhi1_wdqb +
      +
      .icon-chongzhi1_wdqb +
      +
    • + +
    • + +
      + gaojihuiyuan_wdhy +
      +
      .icon-gaojihuiyuan_wdhy +
      +
    • + +
    • + +
      + fkm_wdqb +
      +
      .icon-fkm_wdqb +
      +
    • + +
    • + +
      + kthy_wdhy +
      +
      .icon-kthy_wdhy +
      +
    • + +
    • + +
      + jiantou_wdhy +
      +
      .icon-jiantou_wdhy +
      +
    • + +
    • + +
      + finish_zb +
      +
      .icon-finish_zb +
      +
    • + +
    • + +
      + pause_zb +
      +
      .icon-pause_zb +
      +
    • + +
    • + +
      + not begun_zb +
      +
      .icon-a-notbegun_zb +
      +
    • + +
    • + +
      + ask_zb +
      +
      .icon-ask_zb +
      +
    • + +
    • + +
      + hot_tw +
      +
      .icon-hot_tw +
      +
    • + +
    • + +
      + admin_tw +
      +
      .icon-admin_tw +
      +
    • + +
    • + +
      + question_twme +
      +
      .icon-question_twme +
      +
    • + +
    • + +
      + ask_tw +
      +
      .icon-ask_tw +
      +
    • + +
    • + +
      + new_tw +
      +
      .icon-new_tw +
      +
    • + +
    • + +
      + question_tw +
      +
      .icon-question_tw +
      +
    • + +
    • + +
      + recommend_tw +
      +
      .icon-recommend_tw +
      +
    • + +
    • + +
      + sign_qd +
      +
      .icon-sign_qd +
      +
    • + +
    • + +
      + yqd_qd +
      +
      .icon-yqd_qd +
      +
    • + +
    • + +
      + share_qd +
      +
      .icon-share_qd +
      +
    • + +
    • + +
      + team_qd +
      +
      .icon-team_qd +
      +
    • + +
    • + +
      + points_jf +
      +
      .icon-points_jf +
      +
    • + +
    • + +
      + share_jf +
      +
      .icon-share_jf +
      +
    • + +
    • + +
      + shopping_assembly +
      +
      .icon-shopping_assembly +
      +
    • + +
    • + +
      + collect +
      +
      .icon-collect-nav-top +
      +
    • + +
    • + +
      + more +
      +
      .icon-more-nav-top +
      +
    • + +
    • + +
      + language +
      +
      .icon-language-nav-top +
      +
    • + +
    • + +
      + mall +
      +
      .icon-mall-nav-top +
      +
    • + +
    • + +
      + message +
      +
      .icon-message-nav-top +
      +
    • + +
    • + +
      + give a like-tap-review +
      +
      .icon-a-givealike-tap-review +
      +
    • + +
    • + +
      + recover +
      +
      .icon-recover +
      +
    • + +
    • + +
      + give a like-review +
      +
      .icon-a-givealike-review +
      +
    • + +
    • + +
      + give a like +
      +
      .icon-a-givealike +
      +
    • + +
    • + +
      + Share +
      +
      .icon-share-dark +
      +
    • + +
    • + +
      + review +
      +
      .icon-review +
      +
    • + +
    • + +
      + My blog +
      +
      .icon-my-list +
      +
    • + +
    • + +
      + publish +
      +
      .icon-publish +
      +
    • + +
    • + +
      + hot +
      +
      .icon-hot +
      +
    • + +
    • + +
      + individual center +
      +
      .icon-user-center-nav-top +
      +
    • + +
    • + +
      + index +
      +
      .icon-index +
      +
    • + +
    • + +
      + 聚收藏 +
      +
      .icon-collect +
      +
    • + +
    • + +
      + 列表模式 +
      +
      .icon-table-list +
      +
    • + +
    • + +
      + 图片列表切换 +
      +
      .icon-table-grid +
      +
    • + +
    • + +
      + 选中角标 +
      +
      .icon-subscript +
      +
    • + +
    • + +
      + 列表 +
      +
      .icon-tabulation +
      +
    • + +
    • + +
      + 开通服务 +
      +
      .icon-activate-service +
      +
    • + +
    • + +
      + 3.1 二维码 +
      +
      .icon-qr-code +
      +
    • + +
    • + +
      + 礼物 活动 +
      +
      .icon-gift +
      +
    • + +
    • + +
      + 分享 +
      +
      .icon-share +
      +
    • + +
    • + +
      + 首页 +
      +
      .icon-home-page +
      +
    • + +
    • + +
      + 销售门店 +
      +
      .icon-store +
      +
    • + +
    • + +
      + 提示 +
      +
      .icon-prompt +
      +
    • + +
    • + +
      + 地址 +
      +
      .icon-address +
      +
    • + +
    • + +
      + 消息 +
      +
      .icon-message +
      +
    • + +
    • + +
      + 时间 +
      +
      .icon-time +
      +
    • + +
    • + +
      + 购物车 +
      +
      .icon-shopping-cart +
      +
    • + +
    • + +
      + 秒杀 +
      +
      .icon-flash-killing +
      +
    • + +
    +
    +

    font-class 引用

    +
    + +

    font-class 是 Unicode 使用方式的一种变种,主要是解决 Unicode 书写不直观,语意不明确的问题。

    +

    与 Unicode 使用方式相比,具有如下特点:

    +
      +
    • 相比于 Unicode 语意明确,书写更直观。可以很容易分辨这个 icon 是什么。
    • +
    • 因为使用 class 来定义图标,所以当要替换图标时,只需要修改 class 里面的 Unicode 引用。
    • +
    +

    使用步骤如下:

    +

    第一步:引入项目下面生成的 fontclass 代码:

    +
    <link rel="stylesheet" href="./iconfont.css">
    +
    +

    第二步:挑选相应图标并获取类名,应用于页面:

    +
    <span class="iconfont icon-xxx"></span>
    +
    +
    +

    " + iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。

    +
    +
    +
    +
    +
      + +
    • + +
      扫一扫
      +
      #icon-saoyisao
      +
    • + +
    • + +
      分类
      +
      #icon-web-mobile-bottom-nav-category
      +
    • + +
    • + +
      home
      +
      #icon-web-mobile-bottom-nav-home
      +
    • + +
    • + +
      see user o
      +
      #icon-web-mobile-bottom-nav-user
      +
    • + +
    • + +
      购物车
      +
      #icon-web-mobile-bottom-nav-cart
      +
    • + +
    • + +
      home
      +
      #icon-web-mobile-bottom-nav-home-active
      +
    • + +
    • + +
      see user
      +
      #icon-web-mobile-bottom-nav-user-active
      +
    • + +
    • + +
      分类
      +
      #icon-web-mobile-bottom-nav-category-active
      +
    • + +
    • + +
      购物车
      +
      #icon-web-mobile-bottom-nav-cart-active
      +
    • + +
    • + +
      more_phone
      +
      #icon-more-phone
      +
    • + +
    • + +
      dianpuproduc
      +
      #icon-dianpuproduc
      +
    • + +
    • + +
      dianpushuliang
      +
      #icon-dianpushuliang
      +
    • + +
    • + +
      exchange-nav-top
      +
      #icon-exchange-nav-top
      +
    • + +
    • + +
      icon-anquantuic-left
      +
      #icon-user-center-left-logout
      +
    • + +
    • + +
      cart-nav-top
      +
      #icon-cart-nav-top
      +
    • + +
    • + +
      shishangfushi
      +
      #icon-shishangfushi
      +
    • + +
    • + +
      qiche
      +
      #icon-qiche
      +
    • + +
    • + +
      zhubaoshoubiao
      +
      #icon-zhubaoshoubiao
      +
    • + +
    • + +
      queren_wdfx
      +
      #icon-queren_wdfx
      +
    • + +
    • + +
      jianotukongjian_wdfx
      +
      #icon-jianotukongjian_wdfx
      +
    • + +
    • + +
      rili_wdfx
      +
      #icon-rili_wdfx
      +
    • + +
    • + +
      jt1_wdfx
      +
      #icon-jt1_wdfx
      +
    • + +
    • + +
      putongfenxiao_wdfx
      +
      #icon-putongfenxiao_wdfx
      +
    • + +
    • + +
      qutixian_wdfx
      +
      #icon-qutixian_wdfx
      +
    • + +
    • + +
      quhuodian_wdfx
      +
      #icon-quhuodian_wdfx
      +
    • + +
    • + +
      chongzhi_wdqb
      +
      #icon-chongzhi_wdqb
      +
    • + +
    • + +
      zengsong_wdqb
      +
      #icon-zengsong_wdqb
      +
    • + +
    • + +
      youxiaojine_wdqb
      +
      #icon-youxiaojine_wdqb
      +
    • + +
    • + +
      ziliaoguanli_left
      +
      #icon-user-center-left-base
      +
    • + +
    • + +
      shaix_wdqb
      +
      #icon-shaix_wdqb
      +
    • + +
    • + +
      dongjie_wdqb
      +
      #icon-dongjie_wdqb
      +
    • + +
    • + +
      yewuguanli_left
      +
      #icon-user-center-left-business
      +
    • + +
    • + +
      shezhi_wdqb
      +
      #icon-shezhi_wdqb
      +
    • + +
    • + +
      zhengchangjifen_wdjf
      +
      #icon-zhengchangjifen_wdjf
      +
    • + +
    • + +
      tixian_wdqb
      +
      #icon-tixian_wdqb
      +
    • + +
    • + +
      gerenzhongxin_left
      +
      #icon-user-center-left-home
      +
    • + +
    • + +
      sousuo_wdqb
      +
      #icon-sousuo_wdqb
      +
    • + +
    • + +
      caichanzhongxin_left
      +
      #icon-user-center-left-property
      +
    • + +
    • + +
      chongzhi1_wdqb
      +
      #icon-chongzhi1_wdqb
      +
    • + +
    • + +
      gaojihuiyuan_wdhy
      +
      #icon-gaojihuiyuan_wdhy
      +
    • + +
    • + +
      fkm_wdqb
      +
      #icon-fkm_wdqb
      +
    • + +
    • + +
      kthy_wdhy
      +
      #icon-kthy_wdhy
      +
    • + +
    • + +
      jiantou_wdhy
      +
      #icon-jiantou_wdhy
      +
    • + +
    • + +
      finish_zb
      +
      #icon-finish_zb
      +
    • + +
    • + +
      pause_zb
      +
      #icon-pause_zb
      +
    • + +
    • + +
      not begun_zb
      +
      #icon-a-notbegun_zb
      +
    • + +
    • + +
      ask_zb
      +
      #icon-ask_zb
      +
    • + +
    • + +
      hot_tw
      +
      #icon-hot_tw
      +
    • + +
    • + +
      admin_tw
      +
      #icon-admin_tw
      +
    • + +
    • + +
      question_twme
      +
      #icon-question_twme
      +
    • + +
    • + +
      ask_tw
      +
      #icon-ask_tw
      +
    • + +
    • + +
      new_tw
      +
      #icon-new_tw
      +
    • + +
    • + +
      question_tw
      +
      #icon-question_tw
      +
    • + +
    • + +
      recommend_tw
      +
      #icon-recommend_tw
      +
    • + +
    • + +
      sign_qd
      +
      #icon-sign_qd
      +
    • + +
    • + +
      yqd_qd
      +
      #icon-yqd_qd
      +
    • + +
    • + +
      share_qd
      +
      #icon-share_qd
      +
    • + +
    • + +
      team_qd
      +
      #icon-team_qd
      +
    • + +
    • + +
      points_jf
      +
      #icon-points_jf
      +
    • + +
    • + +
      share_jf
      +
      #icon-share_jf
      +
    • + +
    • + +
      shopping_assembly
      +
      #icon-shopping_assembly
      +
    • + +
    • + +
      collect
      +
      #icon-collect-nav-top
      +
    • + +
    • + +
      more
      +
      #icon-more-nav-top
      +
    • + +
    • + +
      language
      +
      #icon-language-nav-top
      +
    • + +
    • + +
      mall
      +
      #icon-mall-nav-top
      +
    • + +
    • + +
      message
      +
      #icon-message-nav-top
      +
    • + +
    • + +
      give a like-tap-review
      +
      #icon-a-givealike-tap-review
      +
    • + +
    • + +
      recover
      +
      #icon-recover
      +
    • + +
    • + +
      give a like-review
      +
      #icon-a-givealike-review
      +
    • + +
    • + +
      give a like
      +
      #icon-a-givealike
      +
    • + +
    • + +
      Share
      +
      #icon-share-dark
      +
    • + +
    • + +
      review
      +
      #icon-review
      +
    • + +
    • + +
      My blog
      +
      #icon-my-list
      +
    • + +
    • + +
      publish
      +
      #icon-publish
      +
    • + +
    • + +
      hot
      +
      #icon-hot
      +
    • + +
    • + +
      individual center
      +
      #icon-user-center-nav-top
      +
    • + +
    • + +
      index
      +
      #icon-index
      +
    • + +
    • + +
      聚收藏
      +
      #icon-collect
      +
    • + +
    • + +
      列表模式
      +
      #icon-table-list
      +
    • + +
    • + +
      图片列表切换
      +
      #icon-table-grid
      +
    • + +
    • + +
      选中角标
      +
      #icon-subscript
      +
    • + +
    • + +
      列表
      +
      #icon-tabulation
      +
    • + +
    • + +
      开通服务
      +
      #icon-activate-service
      +
    • + +
    • + +
      3.1 二维码
      +
      #icon-qr-code
      +
    • + +
    • + +
      礼物 活动
      +
      #icon-gift
      +
    • + +
    • + +
      分享
      +
      #icon-share
      +
    • + +
    • + +
      首页
      +
      #icon-home-page
      +
    • + +
    • + +
      销售门店
      +
      #icon-store
      +
    • + +
    • + +
      提示
      +
      #icon-prompt
      +
    • + +
    • + +
      地址
      +
      #icon-address
      +
    • + +
    • + +
      消息
      +
      #icon-message
      +
    • + +
    • + +
      时间
      +
      #icon-time
      +
    • + +
    • + +
      购物车
      +
      #icon-shopping-cart
      +
    • + +
    • + +
      秒杀
      +
      #icon-flash-killing
      +
    • + +
    +
    +

    Symbol 引用

    +
    + +

    这是一种全新的使用方式,应该说这才是未来的主流,也是平台目前推荐的用法。相关介绍可以参考这篇文章 + 这种用法其实是做了一个 SVG 的集合,与另外两种相比具有如下特点:

    +
      +
    • 支持多色图标了,不再受单色限制。
    • +
    • 通过一些技巧,支持像字体那样,通过 font-size, color 来调整样式。
    • +
    • 兼容性较差,支持 IE9+,及现代浏览器。
    • +
    • 浏览器渲染 SVG 的性能一般,还不如 png。
    • +
    +

    使用步骤如下:

    +

    第一步:引入项目下面生成的 symbol 代码:

    +
    <script src="./iconfont.js"></script>
    +
    +

    第二步:加入通用 CSS 代码(引入一次就行):

    +
    <style>
    +.icon {
    +  width: 1em;
    +  height: 1em;
    +  vertical-align: -0.15em;
    +  fill: currentColor;
    +  overflow: hidden;
    +}
    +</style>
    +
    +

    第三步:挑选相应图标并获取类名,应用于页面:

    +
    <svg class="icon" aria-hidden="true">
    +  <use xlink:href="#icon-xxx"></use>
    +</svg>
    +
    +
    +
    + +
    +
    + + + diff --git a/public/static/common/iconfont/iconfont.css b/public/static/common/iconfont/iconfont.css new file mode 100644 index 000000000..f8a8e0781 --- /dev/null +++ b/public/static/common/iconfont/iconfont.css @@ -0,0 +1,391 @@ +@font-face { + font-family: "iconfont"; /* Project id 4094254 */ + src: url('iconfont.woff2?t=1693103489088') format('woff2'), + url('iconfont.woff?t=1693103489088') format('woff'), + url('iconfont.ttf?t=1693103489088') format('truetype'); +} + +.iconfont { + font-family: "iconfont" !important; + font-size: 16px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.icon-saoyisao:before { + content: "\e8b5"; +} + +.icon-web-mobile-bottom-nav-category:before { + content: "\e6d5"; +} + +.icon-web-mobile-bottom-nav-home:before { + content: "\e6d9"; +} + +.icon-web-mobile-bottom-nav-user:before { + content: "\e603"; +} + +.icon-web-mobile-bottom-nav-cart:before { + content: "\e611"; +} + +.icon-web-mobile-bottom-nav-home-active:before { + content: "\e606"; +} + +.icon-web-mobile-bottom-nav-user-active:before { + content: "\e81f"; +} + +.icon-web-mobile-bottom-nav-category-active:before { + content: "\e636"; +} + +.icon-web-mobile-bottom-nav-cart-active:before { + content: "\e637"; +} + +.icon-more-phone:before { + content: "\e6cb"; +} + +.icon-dianpuproduc:before { + content: "\e6c9"; +} + +.icon-dianpushuliang:before { + content: "\e6ca"; +} + +.icon-exchange-nav-top:before { + content: "\e6c5"; +} + +.icon-user-center-left-logout:before { + content: "\e6c7"; +} + +.icon-cart-nav-top:before { + content: "\e6c6"; +} + +.icon-shishangfushi:before { + content: "\e6c2"; +} + +.icon-qiche:before { + content: "\e6c3"; +} + +.icon-zhubaoshoubiao:before { + content: "\e6c4"; +} + +.icon-queren_wdfx:before { + content: "\e6c1"; +} + +.icon-jianotukongjian_wdfx:before { + content: "\e6bf"; +} + +.icon-rili_wdfx:before { + content: "\e6c0"; +} + +.icon-jt1_wdfx:before { + content: "\e6be"; +} + +.icon-putongfenxiao_wdfx:before { + content: "\e6bd"; +} + +.icon-qutixian_wdfx:before { + content: "\e6bb"; +} + +.icon-quhuodian_wdfx:before { + content: "\e6bc"; +} + +.icon-chongzhi_wdqb:before { + content: "\e6ab"; +} + +.icon-zengsong_wdqb:before { + content: "\e6ac"; +} + +.icon-youxiaojine_wdqb:before { + content: "\e6ad"; +} + +.icon-user-center-left-base:before { + content: "\e6ae"; +} + +.icon-shaix_wdqb:before { + content: "\e6af"; +} + +.icon-dongjie_wdqb:before { + content: "\e6b0"; +} + +.icon-user-center-left-business:before { + content: "\e6b1"; +} + +.icon-shezhi_wdqb:before { + content: "\e6b3"; +} + +.icon-zhengchangjifen_wdjf:before { + content: "\e6b5"; +} + +.icon-tixian_wdqb:before { + content: "\e6b6"; +} + +.icon-user-center-left-home:before { + content: "\e6b7"; +} + +.icon-sousuo_wdqb:before { + content: "\e6b8"; +} + +.icon-user-center-left-property:before { + content: "\e6b9"; +} + +.icon-chongzhi1_wdqb:before { + content: "\e6ba"; +} + +.icon-gaojihuiyuan_wdhy:before { + content: "\e6a7"; +} + +.icon-fkm_wdqb:before { + content: "\e6a8"; +} + +.icon-kthy_wdhy:before { + content: "\e6a9"; +} + +.icon-jiantou_wdhy:before { + content: "\e6aa"; +} + +.icon-finish_zb:before { + content: "\e6a3"; +} + +.icon-pause_zb:before { + content: "\e6a4"; +} + +.icon-a-notbegun_zb:before { + content: "\e6a6"; +} + +.icon-ask_zb:before { + content: "\e6a2"; +} + +.icon-hot_tw:before { + content: "\e698"; +} + +.icon-admin_tw:before { + content: "\e699"; +} + +.icon-question_twme:before { + content: "\e69a"; +} + +.icon-ask_tw:before { + content: "\e69b"; +} + +.icon-new_tw:before { + content: "\e69c"; +} + +.icon-question_tw:before { + content: "\e69d"; +} + +.icon-recommend_tw:before { + content: "\e6a1"; +} + +.icon-sign_qd:before { + content: "\e694"; +} + +.icon-yqd_qd:before { + content: "\e695"; +} + +.icon-share_qd:before { + content: "\e696"; +} + +.icon-team_qd:before { + content: "\e697"; +} + +.icon-points_jf:before { + content: "\e691"; +} + +.icon-share_jf:before { + content: "\e692"; +} + +.icon-shopping_assembly:before { + content: "\e690"; +} + +.icon-collect-nav-top:before { + content: "\e68d"; +} + +.icon-more-nav-top:before { + content: "\e68e"; +} + +.icon-language-nav-top:before { + content: "\e68f"; +} + +.icon-mall-nav-top:before { + content: "\e68b"; +} + +.icon-message-nav-top:before { + content: "\e68c"; +} + +.icon-a-givealike-tap-review:before { + content: "\e686"; +} + +.icon-recover:before { + content: "\e689"; +} + +.icon-a-givealike-review:before { + content: "\e68a"; +} + +.icon-a-givealike:before { + content: "\e685"; +} + +.icon-share-dark:before { + content: "\e687"; +} + +.icon-review:before { + content: "\e688"; +} + +.icon-my-list:before { + content: "\e682"; +} + +.icon-publish:before { + content: "\e683"; +} + +.icon-hot:before { + content: "\e681"; +} + +.icon-user-center-nav-top:before { + content: "\e67d"; +} + +.icon-index:before { + content: "\e67e"; +} + +.icon-collect:before { + content: "\e643"; +} + +.icon-table-list:before { + content: "\e61a"; +} + +.icon-table-grid:before { + content: "\e638"; +} + +.icon-subscript:before { + content: "\e619"; +} + +.icon-tabulation:before { + content: "\e66f"; +} + +.icon-activate-service:before { + content: "\e62b"; +} + +.icon-qr-code:before { + content: "\e601"; +} + +.icon-gift:before { + content: "\e600"; +} + +.icon-share:before { + content: "\e624"; +} + +.icon-home-page:before { + content: "\e6a5"; +} + +.icon-store:before { + content: "\e6b2"; +} + +.icon-prompt:before { + content: "\e648"; +} + +.icon-address:before { + content: "\e614"; +} + +.icon-message:before { + content: "\e621"; +} + +.icon-time:before { + content: "\e620"; +} + +.icon-shopping-cart:before { + content: "\e653"; +} + +.icon-flash-killing:before { + content: "\e69e"; +} + diff --git a/public/static/common/iconfont/iconfont.js b/public/static/common/iconfont/iconfont.js new file mode 100644 index 000000000..b7161c350 --- /dev/null +++ b/public/static/common/iconfont/iconfont.js @@ -0,0 +1 @@ +window._iconfont_svg_string_4094254='',function(c){var l=(l=document.getElementsByTagName("script"))[l.length-1],a=l.getAttribute("data-injectcss"),l=l.getAttribute("data-disable-injectsvg");if(!l){var h,i,o,t,m,z=function(l,a){a.parentNode.insertBefore(l,a)};if(a&&!c.__iconfont__svg__cssinject__){c.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(l){console&&console.log(l)}}h=function(){var l,a=document.createElement("div");a.innerHTML=c._iconfont_svg_string_4094254,(a=a.getElementsByTagName("svg")[0])&&(a.setAttribute("aria-hidden","true"),a.style.position="absolute",a.style.width=0,a.style.height=0,a.style.overflow="hidden",a=a,(l=document.body).firstChild?z(a,l.firstChild):l.appendChild(a))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(h,0):(i=function(){document.removeEventListener("DOMContentLoaded",i,!1),h()},document.addEventListener("DOMContentLoaded",i,!1)):document.attachEvent&&(o=h,t=c.document,m=!1,s(),t.onreadystatechange=function(){"complete"==t.readyState&&(t.onreadystatechange=null,v())})}function v(){m||(m=!0,o())}function s(){try{t.documentElement.doScroll("left")}catch(l){return void setTimeout(s,50)}v()}}(window); \ No newline at end of file diff --git a/public/static/common/iconfont/iconfont.json b/public/static/common/iconfont/iconfont.json new file mode 100644 index 000000000..15b2f6a19 --- /dev/null +++ b/public/static/common/iconfont/iconfont.json @@ -0,0 +1,667 @@ +{ + "id": "4094254", + "name": "shopxo", + "font_family": "iconfont", + "css_prefix_text": "icon-", + "description": "", + "glyphs": [ + { + "icon_id": "11372685", + "name": "扫一扫", + "font_class": "saoyisao", + "unicode": "e8b5", + "unicode_decimal": 59573 + }, + { + "icon_id": "802977", + "name": "分类", + "font_class": "web-mobile-bottom-nav-category", + "unicode": "e6d5", + "unicode_decimal": 59093 + }, + { + "icon_id": "854493", + "name": "home", + "font_class": "web-mobile-bottom-nav-home", + "unicode": "e6d9", + "unicode_decimal": 59097 + }, + { + "icon_id": "2476899", + "name": "see user o", + "font_class": "web-mobile-bottom-nav-user", + "unicode": "e603", + "unicode_decimal": 58883 + }, + { + "icon_id": "653953", + "name": "购物车", + "font_class": "web-mobile-bottom-nav-cart", + "unicode": "e611", + "unicode_decimal": 58897 + }, + { + "icon_id": "745370", + "name": "home", + "font_class": "web-mobile-bottom-nav-home-active", + "unicode": "e606", + "unicode_decimal": 58886 + }, + { + "icon_id": "1140936", + "name": "see user", + "font_class": "web-mobile-bottom-nav-user-active", + "unicode": "e81f", + "unicode_decimal": 59423 + }, + { + "icon_id": "2844949", + "name": "分类", + "font_class": "web-mobile-bottom-nav-category-active", + "unicode": "e636", + "unicode_decimal": 58934 + }, + { + "icon_id": "3283307", + "name": "购物车", + "font_class": "web-mobile-bottom-nav-cart-active", + "unicode": "e637", + "unicode_decimal": 58935 + }, + { + "icon_id": "37021308", + "name": "more_phone", + "font_class": "more-phone", + "unicode": "e6cb", + "unicode_decimal": 59083 + }, + { + "icon_id": "36982857", + "name": "dianpuproduc", + "font_class": "dianpuproduc", + "unicode": "e6c9", + "unicode_decimal": 59081 + }, + { + "icon_id": "36982856", + "name": "dianpushuliang", + "font_class": "dianpushuliang", + "unicode": "e6ca", + "unicode_decimal": 59082 + }, + { + "icon_id": "36960616", + "name": "exchange-nav-top", + "font_class": "exchange-nav-top", + "unicode": "e6c5", + "unicode_decimal": 59077 + }, + { + "icon_id": "36959656", + "name": "icon-anquantuic-left", + "font_class": "user-center-left-logout", + "unicode": "e6c7", + "unicode_decimal": 59079 + }, + { + "icon_id": "36959195", + "name": "cart-nav-top", + "font_class": "cart-nav-top", + "unicode": "e6c6", + "unicode_decimal": 59078 + }, + { + "icon_id": "36936843", + "name": "shishangfushi", + "font_class": "shishangfushi", + "unicode": "e6c2", + "unicode_decimal": 59074 + }, + { + "icon_id": "36935976", + "name": "qiche", + "font_class": "qiche", + "unicode": "e6c3", + "unicode_decimal": 59075 + }, + { + "icon_id": "36935975", + "name": "zhubaoshoubiao ", + "font_class": "zhubaoshoubiao", + "unicode": "e6c4", + "unicode_decimal": 59076 + }, + { + "icon_id": "36930303", + "name": "queren_wdfx", + "font_class": "queren_wdfx", + "unicode": "e6c1", + "unicode_decimal": 59073 + }, + { + "icon_id": "36930043", + "name": "jianotukongjian_wdfx", + "font_class": "jianotukongjian_wdfx", + "unicode": "e6bf", + "unicode_decimal": 59071 + }, + { + "icon_id": "36930042", + "name": "rili_wdfx", + "font_class": "rili_wdfx", + "unicode": "e6c0", + "unicode_decimal": 59072 + }, + { + "icon_id": "36882792", + "name": "jt1_wdfx", + "font_class": "jt1_wdfx", + "unicode": "e6be", + "unicode_decimal": 59070 + }, + { + "icon_id": "36882581", + "name": "putongfenxiao_wdfx", + "font_class": "putongfenxiao_wdfx", + "unicode": "e6bd", + "unicode_decimal": 59069 + }, + { + "icon_id": "36882578", + "name": "qutixian_wdfx", + "font_class": "qutixian_wdfx", + "unicode": "e6bb", + "unicode_decimal": 59067 + }, + { + "icon_id": "36882577", + "name": "quhuodian_wdfx", + "font_class": "quhuodian_wdfx", + "unicode": "e6bc", + "unicode_decimal": 59068 + }, + { + "icon_id": "36882569", + "name": "chongzhi_wdqb", + "font_class": "chongzhi_wdqb", + "unicode": "e6ab", + "unicode_decimal": 59051 + }, + { + "icon_id": "36882568", + "name": "zengsong_wdqb", + "font_class": "zengsong_wdqb", + "unicode": "e6ac", + "unicode_decimal": 59052 + }, + { + "icon_id": "36882567", + "name": "youxiaojine_wdqb", + "font_class": "youxiaojine_wdqb", + "unicode": "e6ad", + "unicode_decimal": 59053 + }, + { + "icon_id": "36882566", + "name": "ziliaoguanli_left", + "font_class": "user-center-left-base", + "unicode": "e6ae", + "unicode_decimal": 59054 + }, + { + "icon_id": "36882563", + "name": "shaix_wdqb", + "font_class": "shaix_wdqb", + "unicode": "e6af", + "unicode_decimal": 59055 + }, + { + "icon_id": "36882564", + "name": "dongjie_wdqb", + "font_class": "dongjie_wdqb", + "unicode": "e6b0", + "unicode_decimal": 59056 + }, + { + "icon_id": "36882557", + "name": "yewuguanli_left", + "font_class": "user-center-left-business", + "unicode": "e6b1", + "unicode_decimal": 59057 + }, + { + "icon_id": "36882561", + "name": "shezhi_wdqb", + "font_class": "shezhi_wdqb", + "unicode": "e6b3", + "unicode_decimal": 59059 + }, + { + "icon_id": "36882560", + "name": "zhengchangjifen_wdjf", + "font_class": "zhengchangjifen_wdjf", + "unicode": "e6b5", + "unicode_decimal": 59061 + }, + { + "icon_id": "36882565", + "name": "tixian_wdqb", + "font_class": "tixian_wdqb", + "unicode": "e6b6", + "unicode_decimal": 59062 + }, + { + "icon_id": "36882559", + "name": "gerenzhongxin_left", + "font_class": "user-center-left-home", + "unicode": "e6b7", + "unicode_decimal": 59063 + }, + { + "icon_id": "36882562", + "name": "sousuo_wdqb", + "font_class": "sousuo_wdqb", + "unicode": "e6b8", + "unicode_decimal": 59064 + }, + { + "icon_id": "36882556", + "name": "caichanzhongxin_left", + "font_class": "user-center-left-property", + "unicode": "e6b9", + "unicode_decimal": 59065 + }, + { + "icon_id": "36882558", + "name": "chongzhi1_wdqb", + "font_class": "chongzhi1_wdqb", + "unicode": "e6ba", + "unicode_decimal": 59066 + }, + { + "icon_id": "36882573", + "name": "gaojihuiyuan_wdhy", + "font_class": "gaojihuiyuan_wdhy", + "unicode": "e6a7", + "unicode_decimal": 59047 + }, + { + "icon_id": "36882572", + "name": "fkm_wdqb", + "font_class": "fkm_wdqb", + "unicode": "e6a8", + "unicode_decimal": 59048 + }, + { + "icon_id": "36882571", + "name": "kthy_wdhy", + "font_class": "kthy_wdhy", + "unicode": "e6a9", + "unicode_decimal": 59049 + }, + { + "icon_id": "36882570", + "name": "jiantou_wdhy", + "font_class": "jiantou_wdhy", + "unicode": "e6aa", + "unicode_decimal": 59050 + }, + { + "icon_id": "36873387", + "name": "finish_zb", + "font_class": "finish_zb", + "unicode": "e6a3", + "unicode_decimal": 59043 + }, + { + "icon_id": "36873388", + "name": "pause_zb", + "font_class": "pause_zb", + "unicode": "e6a4", + "unicode_decimal": 59044 + }, + { + "icon_id": "36873386", + "name": "not begun_zb", + "font_class": "a-notbegun_zb", + "unicode": "e6a6", + "unicode_decimal": 59046 + }, + { + "icon_id": "36867907", + "name": "ask_zb", + "font_class": "ask_zb", + "unicode": "e6a2", + "unicode_decimal": 59042 + }, + { + "icon_id": "36859093", + "name": "hot_tw", + "font_class": "hot_tw", + "unicode": "e698", + "unicode_decimal": 59032 + }, + { + "icon_id": "36859092", + "name": "admin_tw", + "font_class": "admin_tw", + "unicode": "e699", + "unicode_decimal": 59033 + }, + { + "icon_id": "36859091", + "name": "question_twme", + "font_class": "question_twme", + "unicode": "e69a", + "unicode_decimal": 59034 + }, + { + "icon_id": "36859090", + "name": "ask_tw", + "font_class": "ask_tw", + "unicode": "e69b", + "unicode_decimal": 59035 + }, + { + "icon_id": "36859089", + "name": "new_tw", + "font_class": "new_tw", + "unicode": "e69c", + "unicode_decimal": 59036 + }, + { + "icon_id": "36859088", + "name": "question_tw", + "font_class": "question_tw", + "unicode": "e69d", + "unicode_decimal": 59037 + }, + { + "icon_id": "36859087", + "name": "recommend_tw", + "font_class": "recommend_tw", + "unicode": "e6a1", + "unicode_decimal": 59041 + }, + { + "icon_id": "36775990", + "name": "sign_qd", + "font_class": "sign_qd", + "unicode": "e694", + "unicode_decimal": 59028 + }, + { + "icon_id": "36775991", + "name": "yqd_qd", + "font_class": "yqd_qd", + "unicode": "e695", + "unicode_decimal": 59029 + }, + { + "icon_id": "36775989", + "name": "share_qd", + "font_class": "share_qd", + "unicode": "e696", + "unicode_decimal": 59030 + }, + { + "icon_id": "36775988", + "name": "team_qd", + "font_class": "team_qd", + "unicode": "e697", + "unicode_decimal": 59031 + }, + { + "icon_id": "36740202", + "name": "points_jf", + "font_class": "points_jf", + "unicode": "e691", + "unicode_decimal": 59025 + }, + { + "icon_id": "36740201", + "name": "share_jf", + "font_class": "share_jf", + "unicode": "e692", + "unicode_decimal": 59026 + }, + { + "icon_id": "36677786", + "name": "shopping_assembly", + "font_class": "shopping_assembly", + "unicode": "e690", + "unicode_decimal": 59024 + }, + { + "icon_id": "36639788", + "name": "collect", + "font_class": "collect-nav-top", + "unicode": "e68d", + "unicode_decimal": 59021 + }, + { + "icon_id": "36639787", + "name": "more", + "font_class": "more-nav-top", + "unicode": "e68e", + "unicode_decimal": 59022 + }, + { + "icon_id": "36639786", + "name": "language", + "font_class": "language-nav-top", + "unicode": "e68f", + "unicode_decimal": 59023 + }, + { + "icon_id": "36639789", + "name": "mall", + "font_class": "mall-nav-top", + "unicode": "e68b", + "unicode_decimal": 59019 + }, + { + "icon_id": "36639790", + "name": "message", + "font_class": "message-nav-top", + "unicode": "e68c", + "unicode_decimal": 59020 + }, + { + "icon_id": "36597902", + "name": "give a like-tap-review", + "font_class": "a-givealike-tap-review", + "unicode": "e686", + "unicode_decimal": 59014 + }, + { + "icon_id": "36597901", + "name": "recover", + "font_class": "recover", + "unicode": "e689", + "unicode_decimal": 59017 + }, + { + "icon_id": "36597900", + "name": "give a like-review", + "font_class": "a-givealike-review", + "unicode": "e68a", + "unicode_decimal": 59018 + }, + { + "icon_id": "36597158", + "name": "give a like", + "font_class": "a-givealike", + "unicode": "e685", + "unicode_decimal": 59013 + }, + { + "icon_id": "36597157", + "name": "Share", + "font_class": "share-dark", + "unicode": "e687", + "unicode_decimal": 59015 + }, + { + "icon_id": "36597153", + "name": "review", + "font_class": "review", + "unicode": "e688", + "unicode_decimal": 59016 + }, + { + "icon_id": "36584456", + "name": "My blog", + "font_class": "my-list", + "unicode": "e682", + "unicode_decimal": 59010 + }, + { + "icon_id": "36584455", + "name": "publish", + "font_class": "publish", + "unicode": "e683", + "unicode_decimal": 59011 + }, + { + "icon_id": "36576934", + "name": "hot", + "font_class": "hot", + "unicode": "e681", + "unicode_decimal": 59009 + }, + { + "icon_id": "36563526", + "name": "individual center", + "font_class": "user-center-nav-top", + "unicode": "e67d", + "unicode_decimal": 59005 + }, + { + "icon_id": "36563547", + "name": "index", + "font_class": "index", + "unicode": "e67e", + "unicode_decimal": 59006 + }, + { + "icon_id": "627569", + "name": "聚收藏", + "font_class": "collect", + "unicode": "e643", + "unicode_decimal": 58947 + }, + { + "icon_id": "201552", + "name": "列表模式", + "font_class": "table-list", + "unicode": "e61a", + "unicode_decimal": 58906 + }, + { + "icon_id": "1069105", + "name": "图片列表切换", + "font_class": "table-grid", + "unicode": "e638", + "unicode_decimal": 58936 + }, + { + "icon_id": "3878925", + "name": "选中角标", + "font_class": "subscript", + "unicode": "e619", + "unicode_decimal": 58905 + }, + { + "icon_id": "6056156", + "name": "列表", + "font_class": "tabulation", + "unicode": "e66f", + "unicode_decimal": 58991 + }, + { + "icon_id": "33987005", + "name": "开通服务", + "font_class": "activate-service", + "unicode": "e62b", + "unicode_decimal": 58923 + }, + { + "icon_id": "201637", + "name": "3.1 二维码", + "font_class": "qr-code", + "unicode": "e601", + "unicode_decimal": 58881 + }, + { + "icon_id": "201525", + "name": "礼物 活动", + "font_class": "gift", + "unicode": "e600", + "unicode_decimal": 58880 + }, + { + "icon_id": "579811", + "name": "分享", + "font_class": "share", + "unicode": "e624", + "unicode_decimal": 58916 + }, + { + "icon_id": "905458", + "name": "首页", + "font_class": "home-page", + "unicode": "e6a5", + "unicode_decimal": 59045 + }, + { + "icon_id": "975323", + "name": "销售门店", + "font_class": "store", + "unicode": "e6b2", + "unicode_decimal": 59058 + }, + { + "icon_id": "1167186", + "name": "提示", + "font_class": "prompt", + "unicode": "e648", + "unicode_decimal": 58952 + }, + { + "icon_id": "1288647", + "name": "地址", + "font_class": "address", + "unicode": "e614", + "unicode_decimal": 58900 + }, + { + "icon_id": "1969465", + "name": "消息", + "font_class": "message", + "unicode": "e621", + "unicode_decimal": 58913 + }, + { + "icon_id": "4942660", + "name": "时间", + "font_class": "time", + "unicode": "e620", + "unicode_decimal": 58912 + }, + { + "icon_id": "11481160", + "name": "购物车", + "font_class": "shopping-cart", + "unicode": "e653", + "unicode_decimal": 58963 + }, + { + "icon_id": "12864190", + "name": "秒杀", + "font_class": "flash-killing", + "unicode": "e69e", + "unicode_decimal": 59038 + } + ] +} diff --git a/public/static/common/iconfont/iconfont.ttf b/public/static/common/iconfont/iconfont.ttf new file mode 100644 index 000000000..fbea37aec Binary files /dev/null and b/public/static/common/iconfont/iconfont.ttf differ diff --git a/public/static/common/iconfont/iconfont.woff b/public/static/common/iconfont/iconfont.woff new file mode 100644 index 000000000..4020a532d Binary files /dev/null and b/public/static/common/iconfont/iconfont.woff differ diff --git a/public/static/common/iconfont/iconfont.woff2 b/public/static/common/iconfont/iconfont.woff2 new file mode 100644 index 000000000..be52cada7 Binary files /dev/null and b/public/static/common/iconfont/iconfont.woff2 differ diff --git a/public/static/common/images/default-lapse-icon.png b/public/static/common/images/default-lapse-icon.png new file mode 100644 index 000000000..bf70730dc Binary files /dev/null and b/public/static/common/images/default-lapse-icon.png differ diff --git a/public/static/common/images/no-address.png b/public/static/common/images/no-address.png new file mode 100644 index 000000000..858daf8e0 Binary files /dev/null and b/public/static/common/images/no-address.png differ diff --git a/public/static/common/images/no-comment.png b/public/static/common/images/no-comment.png new file mode 100644 index 000000000..289040808 Binary files /dev/null and b/public/static/common/images/no-comment.png differ diff --git a/public/static/common/images/no-data.png b/public/static/common/images/no-data.png new file mode 100644 index 000000000..fddb03528 Binary files /dev/null and b/public/static/common/images/no-data.png differ diff --git a/public/static/common/js/common.js b/public/static/common/js/common.js index 6aa50fe17..377779c69 100755 --- a/public/static/common/js/common.js +++ b/public/static/common/js/common.js @@ -8,65 +8,55 @@ * @param {[string]} type [类型(失败:error, 警告:warning, 成功:success)] * @param {[int]} time [自动关闭时间(秒), 默认3秒] */ -function Prompt(msg, type, time) -{ - if(msg != undefined && msg != '') - { - // 存在的提示信息则不继续 - var status = true; - $('.common-prompt').each(function(k, v) - { - if(status && $(this).find('.prompt-msg').text() == msg) - { - status = false; - } - }); - if(status) - { - // 是否已存在提示条 - var height = 55; - var length = $('.common-prompt').length; +function Prompt (msg, type, time) { + if (msg != undefined && msg != '') { + // 存在的提示信息则不继续 + var status = true; + $('.common-prompt').each(function (k, v) { + if (status && $(this).find('.prompt-msg').text() == msg) { + status = false; + } + }); + if (status) { + // 是否已存在提示条 + var height = 55; + var length = $('.common-prompt').length; - // 提示信息添加 - if((type || null) == null) - { - type = 'danger'; - } + // 提示信息添加 + if ((type || null) == null) { + type = 'danger'; + } - // icon图标, 默认错误 - var icon = 'am-icon-times-circle'; - switch(type) - { - // 成功 - case 'success' : - icon = 'am-icon-check-circle'; - break; + // icon图标, 默认错误 + var icon = 'am-icon-times-circle'; + switch (type) { + // 成功 + case 'success': + icon = 'am-icon-check-circle'; + break; - // 警告 - case 'warning' : - icon = 'am-icon-exclamation-circle'; - break; - } - var index = parseInt(Math.random()*1000001); - var html = '

    '+msg+'

    '; - $('body').append(html); + // 警告 + case 'warning': + icon = 'am-icon-exclamation-circle'; + break; + } + var index = parseInt(Math.random() * 1000001); + var html = '

    ' + msg + '

    '; + $('body').append(html); - // 自动关闭提示 - setTimeout(function() - { - $('.common-prompt-'+index).slideToggle(300, function() - { - $('.common-prompt-'+index).remove(); - $('.common-prompt').each(function(k, v) - { - $(this).animate({'top':(k*height+20)+'px'}); - }); - }); - }, (time || 3)*1000); - return true; - } - } - return false; + // 自动关闭提示 + setTimeout(function () { + $('.common-prompt-' + index).slideToggle(300, function () { + $('.common-prompt-' + index).remove(); + $('.common-prompt').each(function (k, v) { + $(this).animate({ 'top': (k * height + 20) + 'px' }); + }); + }); + }, (time || 3) * 1000); + return true; + } + } + return false; } /** @@ -79,13 +69,11 @@ function Prompt(msg, type, time) * @param {[object]} object [需要压进去的json对象] * @return {[object]} [josn对象] */ -function ArrayTurnJson(all, object) -{ - for(var name in all) - { - object.append(name, all[name]); - } - return object; +function ArrayTurnJson (all, object) { + for (var name in all) { + object.append(name, all[name]); + } + return object; } /** @@ -98,95 +86,78 @@ function ArrayTurnJson(all, object) * @param {[boolean]} is_json [是否返回json对象(默认否)] * @return {[object]} [josn对象] */ -function GetFormVal(element, is_json) -{ - var object = new FormData(); +function GetFormVal (element, is_json) { + var object = new FormData(); - // input 常用类型 - $(element).find('input[type="hidden"], input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="date"], input[type="url"], input[type="radio"]:checked, textarea, input[type="file"]').each(function(key, tmp) - { - if(tmp.type == 'file') - { - object.append(tmp.name, ($(this).get(0).files[0] == undefined) ? '' : $(this).get(0).files[0]); - } else { - object.append(tmp.name, tmp.value.replace(/^\s+|\s+$/g,"")); - } - }); + // input 常用类型 + $(element).find('input[type="hidden"], input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="date"], input[type="url"], input[type="radio"]:checked, textarea, input[type="file"]').each(function (key, tmp) { + if (tmp.type == 'file') { + object.append(tmp.name, ($(this).get(0).files[0] == undefined) ? '' : $(this).get(0).files[0]); + } else { + object.append(tmp.name, tmp.value.replace(/^\s+|\s+$/g, "")); + } + }); - // select 单选择和多选择 - var tmp_all = []; - var i = 0; - $(element).find('select').find('option').each(function(key, tmp) - { - var name = $(this).parents('select').attr('name'); - if(name != undefined && name != '') - { - if($(this).is(':selected')) - { - var value = (tmp.value == undefined) ? '' : tmp.value; - if($(this).parents('select').attr('multiple') != undefined) - { - // 多选择 - if(tmp_all[name] == undefined) - { - tmp_all[name] = []; - i = 0; - } - tmp_all[name][i] = value; - i++; - } else { - // 单选择 - if(object[name] == undefined) - { - object.append(name, value); - } - } - } - } - }); - object = ArrayTurnJson(tmp_all, object); + // select 单选择和多选择 + var tmp_all = []; + var i = 0; + $(element).find('select').find('option').each(function (key, tmp) { + var name = $(this).parents('select').attr('name'); + if (name != undefined && name != '') { + if ($(this).is(':selected')) { + var value = (tmp.value == undefined) ? '' : tmp.value; + if ($(this).parents('select').attr('multiple') != undefined) { + // 多选择 + if (tmp_all[name] == undefined) { + tmp_all[name] = []; + i = 0; + } + tmp_all[name][i] = value; + i++; + } else { + // 单选择 + if (object[name] == undefined) { + object.append(name, value); + } + } + } + } + }); + object = ArrayTurnJson(tmp_all, object); - // input 复选框checkbox - tmp_all = []; - i = 0; - $(element).find('input[type="checkbox"]').each(function(key, tmp) - { - if(tmp.name != undefined && tmp.name != '') - { - if($(this).is(':checked')) - { - if(tmp_all[tmp.name] == undefined) - { - tmp_all[tmp.name] = []; - i = 0; - } - tmp_all[tmp.name][i] = tmp.value; - i++; - } else { - // 滑动开关、未选中则0 - if(typeof($(this).attr('data-am-switch')) != 'undefined') - { - tmp_all[tmp.name] = 0; - } - } - } - }); - object = ArrayTurnJson(tmp_all, object); + // input 复选框checkbox + tmp_all = []; + i = 0; + $(element).find('input[type="checkbox"]').each(function (key, tmp) { + if (tmp.name != undefined && tmp.name != '') { + if ($(this).is(':checked')) { + if (tmp_all[tmp.name] == undefined) { + tmp_all[tmp.name] = []; + i = 0; + } + tmp_all[tmp.name][i] = tmp.value; + i++; + } else { + // 滑动开关、未选中则0 + if (typeof ($(this).attr('data-am-switch')) != 'undefined') { + tmp_all[tmp.name] = 0; + } + } + } + }); + object = ArrayTurnJson(tmp_all, object); - // 是否需要返回json对象 - if(is_json === true) - { - var json = {}; - object.forEach(function(value, key) - { - if((key || null) != null) - { - json[key] = value - } - }); - return json; - } - return object; + // 是否需要返回json对象 + if (is_json === true) { + var json = {}; + object.forEach(function (value, key) { + if ((key || null) != null) { + json[key] = value + } + }); + return json; + } + return object; } /** @@ -198,12 +169,10 @@ function GetFormVal(element, is_json) * @param {[string]} fun_name [方法名] * @return {[boolean]} [已定义true, 则false] */ -function IsExitsFunction(fun_name) -{ - try - { - if(typeof(eval(fun_name)) == "function") return true; - } catch(e) {} +function IsExitsFunction (fun_name) { + try { + if (typeof (eval(fun_name)) == "function") return true; + } catch (e) { } return false; } @@ -215,31 +184,28 @@ function IsExitsFunction(fun_name) * @datetime 2017-10-07T20:53:40+0800 * @param {[object]} tag_obj [tag对象] */ -function GetTagValue(tag_obj) -{ - // 默认值 - var v = null; +function GetTagValue (tag_obj) { + // 默认值 + var v = null; - // 标签名称 - var tag_name = tag_obj.prop("tagName"); + // 标签名称 + var tag_name = tag_obj.prop("tagName"); - // input - if(tag_name == 'INPUT') - { - var type = tag_obj.attr('type'); - switch(type) - { - // 单选框 - case 'checkbox' : - v = tag_obj.is(':checked') ? tag_obj.val() : null; - break; + // input + if (tag_name == 'INPUT') { + var type = tag_obj.attr('type'); + switch (type) { + // 单选框 + case 'checkbox': + v = tag_obj.is(':checked') ? tag_obj.val() : null; + break; - // 其它选择 - default : - v = tag_obj.val() || null; - } - } - return v; + // 其它选择 + default: + v = tag_obj.val() || null; + } + } + return v; } /** @@ -255,362 +221,312 @@ function GetTagValue(tag_obj) * @param {[string] [request-value] [回调值 ajax-url地址 或 ajax-fun方法]} */ -function FromInit(form_name) -{ - if(form_name == undefined) - { - form_name = 'form.form-validation'; - } - var editor_tag_name = 'editor-tag'; - var $form = $(form_name); - if($form.length <= 0) - { - return false; - } - var $editor_tag = $form.find('[id='+editor_tag_name+']'); - var editor_count = $editor_tag.length; - if(editor_count > 0) - { - // 编辑器初始化 - var editor = UE.getEditor(editor_tag_name); +function FromInit (form_name) { + if (form_name == undefined) { + form_name = 'form.form-validation'; + } + var editor_tag_name = 'editor-tag'; + var $form = $(form_name); + if ($form.length <= 0) { + return false; + } + var $editor_tag = $form.find('[id=' + editor_tag_name + ']'); + var editor_count = $editor_tag.length; + if (editor_count > 0) { + // 编辑器初始化 + var editor = UE.getEditor(editor_tag_name); - // 编辑器内容变化时同步到 textarea - editor.addListener('contentChange', function() - { - editor.sync(); + // 编辑器内容变化时同步到 textarea + editor.addListener('contentChange', function () { + editor.sync(); - // 触发验证 - $editor_tag.trigger('change'); - }); - } - $form.validator( - { - // 自定义校验规则 - validate: function(validity) - { - // 二选一校验 - if($(validity.field).is('.js-choice-one')) - { - var tag = $(validity.field).attr('data-choice-one-to'); - if(typeof($(validity.field).attr('required')) == 'undefined' && typeof($(tag).attr('required')) == 'undefined') - { - validity.valid = true; - } else { - var v1 = GetTagValue($(validity.field)); - var v2 = GetTagValue($(tag)); - validity.valid = (v1 == null && v2 == null) ? false : true; - } - } - }, + // 触发验证 + $editor_tag.trigger('change'); + }); + } + $form.validator( + { + // 自定义校验规则 + validate: function (validity) { + // 二选一校验 + if ($(validity.field).is('.js-choice-one')) { + var tag = $(validity.field).attr('data-choice-one-to'); + if (typeof ($(validity.field).attr('required')) == 'undefined' && typeof ($(tag).attr('required')) == 'undefined') { + validity.valid = true; + } else { + var v1 = GetTagValue($(validity.field)); + var v2 = GetTagValue($(tag)); + validity.valid = (v1 == null && v2 == null) ? false : true; + } + } + }, - // 错误 - onInValid: function(validity) - { - var $this = this; - var $field = $(validity.field); - var tag_name = $field.prop('tagName'); - if(tag_name == 'SELECT') - { - setTimeout(function() - { - // 错误信息 - var $field = $(validity.field); - var value = $field.val(); - var msg = $field.data('validationMessage') || $this.getValidationMessage(validity); - if((value == '' || value == undefined) && $field.hasClass('am-field-error')) - { - Prompt(msg); - } - }, 100); - } else { - var msg = $field.data('validationMessage') || $this.getValidationMessage(validity); - Prompt(msg); - } - }, + // 错误 + onInValid: function (validity) { + var $this = this; + var $field = $(validity.field); + var tag_name = $field.prop('tagName'); + if (tag_name == 'SELECT') { + setTimeout(function () { + // 错误信息 + var $field = $(validity.field); + var value = $field.val(); + var msg = $field.data('validationMessage') || $this.getValidationMessage(validity); + if ((value == '' || value == undefined) && $field.hasClass('am-field-error')) { + Prompt(msg); + } + }, 100); + } else { + var msg = $field.data('validationMessage') || $this.getValidationMessage(validity); + Prompt(msg); + } + }, - // 提交 - submit: function(e) - { - if(editor_count > 0) - { - // 同步编辑器数据 - editor.sync(); + // 提交 + submit: function (e) { + if (editor_count > 0) { + // 同步编辑器数据 + editor.sync(); - // 表单验证未成功,而且未成功的第一个元素为 UEEditor 时,focus 编辑器 - if (!this.isFormValid() && $form.find('.' + this.options.inValidClass).eq(0).is($editor_tag)) - { - // 编辑器获取焦点 - editor.focus(); + // 表单验证未成功,而且未成功的第一个元素为 UEEditor 时,focus 编辑器 + if (!this.isFormValid() && $form.find('.' + this.options.inValidClass).eq(0).is($editor_tag)) { + // 编辑器获取焦点 + editor.focus(); - // 错误信息 - var msg = $editor_tag.data('validationMessage') || $editor_tag.getValidationMessage(validity); - Prompt(msg); - } - } + // 错误信息 + var msg = $editor_tag.data('validationMessage') || $editor_tag.getValidationMessage(validity); + Prompt(msg); + } + } - // 通过验证 - if(this.isFormValid()) - { - // 多选插件校验 - if($form.find('select.chosen-select')) - { - var is_success = true; - $form.find('select.chosen-select').each(function(k, v) - { - var required = $(this).attr('required'); - if(($(this).attr('required') || null) == 'required') - { - var multiple = $(this).attr('multiple') || null; - var minchecked = parseInt($(this).attr('minchecked')) || 0; - var maxchecked = parseInt($(this).attr('maxchecked')) || 0; - var msg = $(this).attr('data-validation-message'); - var value = $(this).val(); - if((value || null) == null && value != '0') - { - is_success = false; - Prompt(msg || window['lang_select_not_chosen_tips'] || '请选择项'); - $(this).trigger('blur'); - return false; - } else { - if(multiple == 'multiple') - { - var count = value.length; - if(minchecked > 0 && count < minchecked) - { - is_success = false; - if((msg || null) == null) - { - var temp_msg = window['lang_select_chosen_min_tips'] || '至少选择{value}项'; - msg = temp_msg.replace('{value}', minchecked); - } - } - if(maxchecked > 0 && count > maxchecked) - { - is_success = false; - if((msg || null) == null) - { - var temp_msg = window['lang_select_chosen_max_tips'] || '最多选择{value}项'; - msg = temp_msg.replace('{value}', maxchecked); - } - } - if(is_success === false) - { - Prompt(msg); - $(this).trigger('blur'); - $(this).parents('.am-form-group').removeClass('am-form-success').addClass('am-form-error'); - return false; - } - } - } - } - }); - if(is_success === false) - { - return false; - } - } + // 通过验证 + if (this.isFormValid()) { + // 多选插件校验 + if ($form.find('select.chosen-select')) { + var is_success = true; + $form.find('select.chosen-select').each(function (k, v) { + var required = $(this).attr('required'); + if (($(this).attr('required') || null) == 'required') { + var multiple = $(this).attr('multiple') || null; + var minchecked = parseInt($(this).attr('minchecked')) || 0; + var maxchecked = parseInt($(this).attr('maxchecked')) || 0; + var msg = $(this).attr('data-validation-message'); + var value = $(this).val(); + if ((value || null) == null && value != '0') { + is_success = false; + Prompt(msg || window['lang_select_not_chosen_tips'] || '请选择项'); + $(this).trigger('blur'); + return false; + } else { + if (multiple == 'multiple') { + var count = value.length; + if (minchecked > 0 && count < minchecked) { + is_success = false; + if ((msg || null) == null) { + var temp_msg = window['lang_select_chosen_min_tips'] || '至少选择{value}项'; + msg = temp_msg.replace('{value}', minchecked); + } + } + if (maxchecked > 0 && count > maxchecked) { + is_success = false; + if ((msg || null) == null) { + var temp_msg = window['lang_select_chosen_max_tips'] || '最多选择{value}项'; + msg = temp_msg.replace('{value}', maxchecked); + } + } + if (is_success === false) { + Prompt(msg); + $(this).trigger('blur'); + $(this).parents('.am-form-group').removeClass('am-form-success').addClass('am-form-error'); + return false; + } + } + } + } + }); + if (is_success === false) { + return false; + } + } - // button加载 - var $button = $form.find('button[type="submit"]'); - $button.button('loading'); + // button加载 + var $button = $form.find('button[type="submit"]'); + $button.button('loading'); - // 获取表单数据 - var action = $form.attr('action') || null; - var method = $form.attr('method') || null; - var request_type = $form.attr('request-type') || null; - var request_value = $form.attr('request-value') || null; - // 以 ajax 开头的都会先请求再处理 - // ajax-reload 请求完成后刷新页面 - // ajax-url 请求完成后调整到指定的请求值 - // ajax-fun 请求完成后调用指定方法 - // ajax-view 请求完成后仅提示文本信息 - // sync 不发起请求、直接同步调用指定的方法 - // jump 不发起请求、拼接数据参数跳转到指定 url 地址 - var request_handle = ['ajax-reload', 'ajax-url', 'ajax-fun', 'ajax-view', 'sync', 'jump', 'form']; + // 获取表单数据 + var action = $form.attr('action') || null; + var method = $form.attr('method') || null; + var request_type = $form.attr('request-type') || null; + var request_value = $form.attr('request-value') || null; + // 以 ajax 开头的都会先请求再处理 + // ajax-reload 请求完成后刷新页面 + // ajax-url 请求完成后调整到指定的请求值 + // ajax-fun 请求完成后调用指定方法 + // ajax-view 请求完成后仅提示文本信息 + // sync 不发起请求、直接同步调用指定的方法 + // jump 不发起请求、拼接数据参数跳转到指定 url 地址 + var request_handle = ['ajax-reload', 'ajax-url', 'ajax-fun', 'ajax-view', 'sync', 'jump', 'form']; - // 参数校验 - if(request_handle.indexOf(request_type) == -1) - { - $button.button('reset'); - Prompt(window['lang_form_config_type_params_tips'] || '表单[类型]参数配置有误'); - return false; - } + // 参数校验 + if (request_handle.indexOf(request_type) == -1) { + $button.button('reset'); + Prompt(window['lang_form_config_type_params_tips'] || '表单[类型]参数配置有误'); + return false; + } - // 类型值必须配置校验 - var request_type_value = ['ajax-url', 'ajax-fun', 'sync', 'jump'] - if(request_type_value.indexOf(request_type) != -1 && request_value == null) - { - $button.button('reset'); - Prompt(window['lang_form_config_value_params_tips'] || '表单[类型值]参数配置有误'); - return false; - } + // 类型值必须配置校验 + var request_type_value = ['ajax-url', 'ajax-fun', 'sync', 'jump'] + if (request_type_value.indexOf(request_type) != -1 && request_value == null) { + $button.button('reset'); + Prompt(window['lang_form_config_value_params_tips'] || '表单[类型值]参数配置有误'); + return false; + } - // 请求类型 - switch(request_type) - { - // 是form表单直接通过 - case 'form' : - return true; - break; + // 请求类型 + switch (request_type) { + // 是form表单直接通过 + case 'form': + return true; + break; - // 同步调用方法 - case 'sync' : - $button.button('reset'); - if(IsExitsFunction(request_value)) - { - window[request_value](GetFormVal(form_name, true)); - } else { - Prompt((window['lang_form_call_fun_not_exist_tips'] || '表单配置的方法未定义')+'['+request_value+']'); - } - return false; - break; + // 同步调用方法 + case 'sync': + $button.button('reset'); + if (IsExitsFunction(request_value)) { + window[request_value](GetFormVal(form_name, true)); + } else { + Prompt((window['lang_form_call_fun_not_exist_tips'] || '表单配置的方法未定义') + '[' + request_value + ']'); + } + return false; + break; - // 拼接参数跳转 - case 'jump' : - var params = GetFormVal(form_name, true); - var pv = ''; - for(var i in params) - { - if(params[i] != undefined && params[i] != '') - { - pv += i+'='+encodeURIComponent(params[i])+'&'; - } - } - if(pv != '') - { - var join = (request_value.indexOf('?') >= 0) ? '&' : '?'; - request_value += join+pv.substr(0, pv.length-1); - } + // 拼接参数跳转 + case 'jump': + var params = GetFormVal(form_name, true); + var pv = ''; + for (var i in params) { + if (params[i] != undefined && params[i] != '') { + pv += i + '=' + encodeURIComponent(params[i]) + '&'; + } + } + if (pv != '') { + var join = (request_value.indexOf('?') >= 0) ? '&' : '?'; + request_value += join + pv.substr(0, pv.length - 1); + } - window.location.href = request_value; - return false; - break; + window.location.href = request_value; + return false; + break; - // 调用自定义回调方法 - case 'ajax-fun' : - if(!IsExitsFunction(request_value)) - { - $button.button('reset'); - Prompt((window['lang_form_call_fun_not_exist_tips'] || '表单配置的方法未定义')+'['+request_value+']'); - return false; - } - break; + // 调用自定义回调方法 + case 'ajax-fun': + if (!IsExitsFunction(request_value)) { + $button.button('reset'); + Prompt((window['lang_form_call_fun_not_exist_tips'] || '表单配置的方法未定义') + '[' + request_value + ']'); + return false; + } + break; - } + } - // 请求 url http类型 - if(action == null || method == null) - { - $button.button('reset'); - Prompt(window['lang_form_config_main_tips'] || '表单[action或method]参数配置有误'); - return false; - } + // 请求 url http类型 + if (action == null || method == null) { + $button.button('reset'); + Prompt(window['lang_form_config_main_tips'] || '表单[action或method]参数配置有误'); + return false; + } - // 请求参数 - var form_data_count = 0; - var form_data = GetFormVal(form_name); - form_data.forEach(function(value, key) - { - form_data_count += 1; - }); + // 请求参数 + var form_data_count = 0; + var form_data = GetFormVal(form_name); + form_data.forEach(function (value, key) { + form_data_count += 1; + }); - // 请求参数是否超过系统环境参数 - if(typeof(__env_max_input_vars_count__) != 'undefined') - { - var env_vars_count = parseInt(__env_max_input_vars_count__); - if(env_vars_count > 0 && form_data_count > env_vars_count) - { - $button.button('reset'); - Prompt((window['lang_max_input_vars_tips'] || '请求参数数量已超出php.ini限制')+'[max_input_vars]('+form_data_count+'>'+env_vars_count+')'); - return false; - } - } + // 请求参数是否超过系统环境参数 + if (typeof (__env_max_input_vars_count__) != 'undefined') { + var env_vars_count = parseInt(__env_max_input_vars_count__); + if (env_vars_count > 0 && form_data_count > env_vars_count) { + $button.button('reset'); + Prompt((window['lang_max_input_vars_tips'] || '请求参数数量已超出php.ini限制') + '[max_input_vars](' + form_data_count + '>' + env_vars_count + ')'); + return false; + } + } - // ajax请求 - $.AMUI.progress.start(); - $.ajax({ - url: RequestUrlHandle(action), - type: method, - dataType: "json", - timeout: $form.attr('timeout') || 60000, - data: form_data, - processData: false, - contentType: false, - success: function(result) - { - $.AMUI.progress.done(); - // 调用自定义回调方法 - if(request_type == 'ajax-fun') - { - if(IsExitsFunction(request_value)) - { - window[request_value](result); - } else { - $button.button('reset'); - Prompt((window['lang_form_call_fun_not_exist_tips'] || '表单配置的方法未定义')+'['+request_value+']'); - } - } else { - // 统一处理 - if(result.code == 0) - { - switch(request_type) - { - // url跳转 - case 'ajax-url' : - Prompt(result.msg, 'success'); - setTimeout(function() - { - window.location.href = request_value; - }, 1500); - break; + // ajax请求 + $.AMUI.progress.start(); + $.ajax({ + url: RequestUrlHandle(action), + type: method, + dataType: "json", + timeout: $form.attr('timeout') || 60000, + data: form_data, + processData: false, + contentType: false, + success: function (result) { + $.AMUI.progress.done(); + // 调用自定义回调方法 + if (request_type == 'ajax-fun') { + if (IsExitsFunction(request_value)) { + window[request_value](result); + } else { + $button.button('reset'); + Prompt((window['lang_form_call_fun_not_exist_tips'] || '表单配置的方法未定义') + '[' + request_value + ']'); + } + } else { + // 统一处理 + if (result.code == 0) { + switch (request_type) { + // url跳转 + case 'ajax-url': + Prompt(result.msg, 'success'); + setTimeout(function () { + window.location.href = request_value; + }, 1500); + break; - // 页面刷新 - case 'ajax-reload' : - Prompt(result.msg, 'success'); - setTimeout(function() - { - // 等于parent则刷新父窗口 - if(request_value == 'parent') - { - parent.location.reload(); - } else { - window.location.reload(); - } - }, 1500); - break; + // 页面刷新 + case 'ajax-reload': + Prompt(result.msg, 'success'); + setTimeout(function () { + // 等于parent则刷新父窗口 + if (request_value == 'parent') { + parent.location.reload(); + } else { + window.location.reload(); + } + }, 1500); + break; - // 默认仅提示 - default : - Prompt(result.msg, 'success'); - // 等于parent则关闭父窗口 - if(request_value == 'parent') - { - setTimeout(function() - { - $button.button('reset'); - parent.CommonPopupClose(); - }, 1500); - } else { - $button.button('reset'); - } - } - } else { - Prompt(result.msg); - $button.button('reset'); - } - } - }, - error: function(xhr, type) - { - $.AMUI.progress.done(); - $button.button('reset'); - Prompt(HtmlToString(xhr.responseText) || (window['lang_error_text'] || '异常错误'), null, 30); - } - }); - } - return false; - } - }); + // 默认仅提示 + default: + Prompt(result.msg, 'success'); + // 等于parent则关闭父窗口 + if (request_value == 'parent') { + setTimeout(function () { + $button.button('reset'); + parent.CommonPopupClose(); + }, 1500); + } else { + $button.button('reset'); + } + } + } else { + Prompt(result.msg); + $button.button('reset'); + } + } + }, + error: function (xhr, type) { + $.AMUI.progress.done(); + $button.button('reset'); + Prompt(HtmlToString(xhr.responseText) || (window['lang_error_text'] || '异常错误'), null, 30); + } + }); + } + return false; + } + }); } // 默认初始化一次,默认标签[form.form-validation] FromInit('form.form-validation'); @@ -626,59 +542,49 @@ FromInit('form.form-validation-search'); * @param {[json]} json [json数据对象] * @param {[string]} tag [tag标签] */ -function FormDataFill(json, tag) -{ - if(json != undefined) - { - if(tag == undefined) - { - tag = 'form.form-validation'; - } - $form = $(tag); - for(var i in json) - { - $form.find('input[type="hidden"][name="'+i+'"], input[type="text"][name="'+i+'"], input[type="password"][name="'+i+'"], input[type="email"][name="'+i+'"], input[type="number"][name="'+i+'"], input[type="date"][name="'+i+'"], textarea[name="'+i+'"], select[name="'+i+'"], input[type="url"][name="'+i+'"]').val(json[i]).trigger('change'); +function FormDataFill (json, tag) { + if (json != undefined) { + if (tag == undefined) { + tag = 'form.form-validation'; + } + $form = $(tag); + for (var i in json) { + $form.find('input[type="hidden"][name="' + i + '"], input[type="text"][name="' + i + '"], input[type="password"][name="' + i + '"], input[type="email"][name="' + i + '"], input[type="number"][name="' + i + '"], input[type="date"][name="' + i + '"], textarea[name="' + i + '"], select[name="' + i + '"], input[type="url"][name="' + i + '"]').val(json[i]).trigger('change'); - // input radio - $form.find('input[type="radio"][name="'+i+'"]').each(function(k, v) - { - this.checked = json[i] == $(this).val(); - $(this).trigger('change'); - }); - // input checkbox - $form.find('input[type="checkbox"][name="'+i+'"]').each(function(k, v) - { - var temp_value = (typeof(json[i]) != 'object') ? json[i].toString().split(',') : json[i]; - this.checked = temp_value.indexOf($(this).val()) != -1; - $(this).trigger('change'); - }); - } + // input radio + $form.find('input[type="radio"][name="' + i + '"]').each(function (k, v) { + this.checked = json[i] == $(this).val(); + $(this).trigger('change'); + }); + // input checkbox + $form.find('input[type="checkbox"][name="' + i + '"]').each(function (k, v) { + var temp_value = (typeof (json[i]) != 'object') ? json[i].toString().split(',') : json[i]; + this.checked = temp_value.indexOf($(this).val()) != -1; + $(this).trigger('change'); + }); + } - // 是否存在pid和当前id相同 - if($form.find('select[name="pid"]').length > 0) - { - $form.find('select[name="pid"]').find('option').removeAttr('disabled'); - if((json['id'] || null) != null) - { - $form.find('select[name="pid"]').find('option[value="'+json['id']+'"]').attr('disabled', true); - } - } + // 是否存在pid和当前id相同 + if ($form.find('select[name="pid"]').length > 0) { + $form.find('select[name="pid"]').find('option').removeAttr('disabled'); + if ((json['id'] || null) != null) { + $form.find('select[name="pid"]').find('option[value="' + json['id'] + '"]').attr('disabled', true); + } + } - // switch切换插件 - $form.find('.am-switch').each(function(k, v) - { - var name = $(this).find('input').attr('name') || null; - var state = (name == null || (json[name] || 0) == 0) ? false : true; - $(this).find('input').bootstrapSwitch('state', state); - $(this).find('input').trigger('change'); - }); + // switch切换插件 + $form.find('.am-switch').each(function (k, v) { + var name = $(this).find('input').attr('name') || null; + var state = (name == null || (json[name] || 0) == 0) ? false : true; + $(this).find('input').bootstrapSwitch('state', state); + $(this).find('input').trigger('change'); + }); - // 多选插件事件更新 - if($('select.chosen-select').length > 0) - { - $('select.chosen-select').trigger('chosen:updated'); - } - } + // 多选插件事件更新 + if ($('select.chosen-select').length > 0) { + $('select.chosen-select').trigger('chosen:updated'); + } + } } /** @@ -692,47 +598,46 @@ function FormDataFill(json, tag) * @param {[int]} level [层级] * @param {[int]} is_delete_all [是否所有开启删除按钮] */ -function Tree(id, url, level = 0, is_delete_all = 0) -{ - $.ajax({ - url: RequestUrlHandle(url), - type: 'POST', - dataType: 'json', - timeout: 60000, - data: {"id":id}, - success: function(result) - { - if(result.code == 0 && result.data.length > 0) - { - html = ''; - for(var i in result.data) - { - html += TreeItemHtmlHandle(result.data[i], id, level, is_delete_all) - } +function Tree (id, url, level = 0, is_delete_all = 0) { + $.ajax({ + url: RequestUrlHandle(url), + type: 'POST', + dataType: 'json', + timeout: 60000, + data: { "id": id }, + success: function (result) { + if (result.code == 0 && result.data.length > 0) { + html = ''; + for (var i in result.data) { + html += TreeItemHtmlHandle(result.data[i], id, level, is_delete_all) + } - // 是否首次 - if(id == 0) - { - $('#tree').attr('data-is-delete-all', is_delete_all); - html = ''+html+'
    '; - $('#tree').html(html); - } else { - $('.tree-pid-'+id).remove(); - $('#data-list-'+id).after(html); - $('#data-list-'+id).find('.tree-submit').removeClass('am-icon-plus'); - $('#data-list-'+id).find('.tree-submit').addClass('am-icon-minus-square'); - } - } else { - $('#tree').find('p').text(result.msg); - $('#tree').find('img').remove(); - } - }, - error: function(xhr, type) - { - $('#tree').find('p').text(HtmlToString(xhr.responseText) || (window['lang_error_text'] || '异常错误')); - $('#tree').find('img').remove(); - } - }); + // 是否首次 + if (id == 0) { + $('#tree').attr('data-is-delete-all', is_delete_all); + html = '' + html + '
    '; + $('#tree').html(html); + } else { + $('.tree-pid-' + id).remove(); + $('#data-list-' + id).after(html); + $('#data-list-' + id).find('.tree-submit').removeClass('am-icon-plus'); + $('#data-list-' + id).find('.tree-submit').addClass('am-icon-minus-square'); + } + + // 图片预览初始化 + $.AMUI.figure.init(); + // 图片画廊初始化 + $.AMUI.gallery.init(); + } else { + $('#tree').find('p').text(result.msg); + $('#tree').find('img').remove(); + } + }, + error: function (xhr, type) { + $('#tree').find('p').text(HtmlToString(xhr.responseText) || (window['lang_error_text'] || '异常错误')); + $('#tree').find('img').remove(); + } + }); } /** @@ -747,57 +652,52 @@ function Tree(id, url, level = 0, is_delete_all = 0) * @param {[int]} level [层级] * @param {[int]} is_delete_all [是否所有开启删除按钮] */ -function TreeItemHtmlHandle(item, pid, level, is_delete_all) -{ - // 基础参数处理 - is_delete_all = is_delete_all || 0; - var rank = parseInt($('#tree').attr('data-rank')) || 0; - var delete_url = $('#tree').data('del-url'); - var class_name = $('#data-list-'+pid).attr('class') || ''; - class_name = class_name.replace('am-active', ''); - var popup_tag = $('#tree').data('popup-tag') || ''+popup_tag+''; +function TreeItemHtmlHandle (item, pid, level, is_delete_all) { + // 基础参数处理 + is_delete_all = is_delete_all || 0; + var rank = parseInt($('#tree').attr('data-rank')) || 0; + var delete_url = $('#tree').data('del-url'); + var class_name = $('#data-list-' + pid).attr('class') || ''; + class_name = class_name.replace('am-active', ''); + var popup_tag = $('#tree').data('popup-tag') || '' + popup_tag + ''; - // 数据 start - var is_active = (item.is_enable == 0) ? 'am-active' : ''; - html = ''; - var left = (pid != 0) ? parseInt(level)*20 : parseInt(level); - html += ''; - if(item.is_son == 'ok') - { - html += ''; - } - if((item.icon || null) != null) - { - html += ''; - } - html += ''+(item.name_alias || item.name)+''; - html += ''; - // 数据 end + // 数据 start + var is_active = (item.is_enable == 0) ? 'am-active' : ''; + html = ''; + var left = (pid != 0) ? parseInt(level) * 20 : parseInt(level); + html += ''; + if (item.is_son == 'ok') { + html += ''; + } + if ((item.icon || null) != null) { + html += ''; + } + html += '' + (item.name_alias || item.name) + ''; + html += ''; + // 数据 end - // 操作项 start - html += '
    '; + // 操作项 start + html += '
    '; - // 新增 - if(level < rank-1) - { - html += ''; - } + // 新增 + if (level < rank - 1) { + html += ''; + } - // 编辑 - html += ''; - if(item.is_son != 'ok' || is_delete_all == 1) - { - // 是否需要删除子数据 - var pid_class = is_delete_all == 1 ? '.tree-pid-'+item.id : ''; + // 编辑 + html += ''; + if (item.is_son != 'ok' || is_delete_all == 1) { + // 是否需要删除子数据 + var pid_class = is_delete_all == 1 ? '.tree-pid-' + item.id : ''; - // 删除 - html += ''; - } - html += '
    '; - // 操作项 end - - html += ''; - return html; + // 删除 + html += ''; + } + html += '
    '; + // 操作项 end + + html += ''; + return html; } /** @@ -809,98 +709,95 @@ function TreeItemHtmlHandle(item, pid, level, is_delete_all) * @desc description * @param {[boject]} e [当前回调数据] */ -function TreeFormSaveBackHandle(e) -{ - $.AMUI.progress.done(); - $('form.form-validation').find('button[type="submit"]').button('reset'); - if(e.code == 0) - { +function TreeFormSaveBackHandle (e) { + $.AMUI.progress.done(); + var $button = $('form.form-validation').find('button[type="submit"]'); + if (e.code == 0) { Prompt(e.msg, 'success'); - var $popup = $($('#tree').data('popup-tag') || ''+popup_tag+''); - + var $popup = $($('#tree').data('popup-tag') || '' + popup_tag + ''); + // 数据处理 - if((e.data || null) != null) - { - if(typeof(e.data) == 'object') - { - var json = e.data; - var string = JSON.stringify(e.data); - } else { - var json = JSON.parse(decodeURIComponent(e.data)); - var string = e.data; - } - if((json.id || null) != null) - { - // 存在数据编辑、则添加 - var $obj = $('#data-list-'+json.id); - if($obj.length > 0) - { - // 原始json数据 - var json_old = JSON.parse(decodeURIComponent($obj.find('.submit-edit').attr('data-json'))); + if ((e.data || null) != null) { + if (typeof (e.data) == 'object') { + var json = e.data; + var string = JSON.stringify(e.data); + } else { + var json = JSON.parse(decodeURIComponent(e.data)); + var string = e.data; + } + if ((json.id || null) != null) { + // 存在数据编辑、则添加 + var $obj = $('#data-list-' + json.id); + if ($obj.length > 0) { + // 原始json数据 + var json_old = JSON.parse(decodeURIComponent($obj.find('.submit-edit').attr('data-json'))); - // 名称更新 - $obj.find('td>span>span').text(json.name_alias || json.name); + // 名称更新 + $obj.find('td>span>span').text(json.name_alias || json.name); - // 图标 - if((json.icon || null) != null) - { - if($obj.find('.three-item-icon').length == 0) - { - $obj.find('td>.name').prepend(''); - } else { - $obj.find('.three-item-icon img').attr('src', json.icon); - } - } else { - $obj.find('.three-item-icon').remove(); - } + // 图标 + if ((json.icon || null) != null) { + if ($obj.find('.three-item-icon').length == 0) { + $obj.find('td>.name').prepend(''); - // 状态处理 - if(json.is_enable != json_old.is_enable) - { - if($obj.hasClass('am-active')) - { - $obj.removeClass('am-active'); - } else { - $obj.addClass('am-active'); - } - } + } else { + $obj.find('.three-item-icon img').attr('src', json.icon); + } + } else { + $obj.find('.three-item-icon').remove(); + } - // 属性json数据更新 - $obj.find('.submit-edit').attr('data-json', encodeURIComponent(string)); - } else { - // 存在pid直接拉取下级数据,则追加新数据 - var is_delete_all = parseInt($('#tree').attr('data-is-delete-all') || 0); - if(json.pid > 0) - { - // 没有展开图标则增加 - if($('#data-list-'+json.pid+' .tree-submit').length == 0) - { - $('#data-list-'+json.pid+' td span.name').prepend(''); - } + // 状态处理 + if (json.is_enable != json_old.is_enable) { + if ($obj.hasClass('am-active')) { + $obj.removeClass('am-active'); + } else { + $obj.addClass('am-active'); + } + } - // 数据子级读取 - var level = $('#data-list-'+json.pid).length > 0 ? parseInt($('#data-list-'+json.pid).attr('data-level') || 0)+1 : 0; - Tree(json.pid, $('#tree').data('node-url'), level, is_delete_all); - } else { - json['json'] = string; + // 属性json数据更新 + $obj.find('.submit-edit').attr('data-json', encodeURIComponent(string)); + } else { + // 存在pid直接拉取下级数据,则追加新数据 + var is_delete_all = parseInt($('#tree').attr('data-is-delete-all') || 0); + if (json.pid > 0) { + // 没有展开图标则增加 + if ($('#data-list-' + json.pid + ' .tree-submit').length == 0) { + $('#data-list-' + json.pid + ' td span.name').prepend(''); + } - // 拼接html数据 - var html = TreeItemHtmlHandle(json, 0, 0, is_delete_all); + // 数据子级读取 + var level = $('#data-list-' + json.pid).length > 0 ? parseInt($('#data-list-' + json.pid).attr('data-level') || 0) + 1 : 0; + Tree(json.pid, $('#tree').data('node-url'), level, is_delete_all); + } else { + json['json'] = string; - // 首次则增加table标签容器 - if($('#tree table tbody').length > 0) - { - $('#tree table tbody').append(html); - - } else { - $('#tree').html(''+html+'
    '); - } - } - } - } + // 拼接html数据 + var html = TreeItemHtmlHandle(json, 0, 0, is_delete_all); + + // 首次则增加table标签容器 + if ($('#tree table tbody').length > 0) { + $('#tree table tbody').append(html); + + } else { + $('#tree').html('' + html + '
    '); + } + } + } + + // 图片预览初始化 + $.AMUI.figure.init(); + // 图片画廊初始化 + $.AMUI.gallery.init(); + } } - $popup.modal('close'); + setTimeout(function () { + $button.button('reset'); + $popup.modal('close'); + }, 1500); } else { + $button.button('reset'); Prompt(e.msg); } } @@ -911,40 +808,34 @@ function TreeFormSaveBackHandle(e) * @param {[string]} show_img [预览图片id或class] * @param {[string]} default_images [默认图片] */ -function ImageFileUploadShow(class_name, show_img, default_images) -{ - $(document).on("change", class_name, function(imgFile) - { - show_img = $(this).attr('data-image-tag') || null; - var status = false; - if((imgFile.target.value || null) != null) - { - var filextension = imgFile.target.value.substring(imgFile.target.value.lastIndexOf("."),imgFile.target.value.length); - filextension = filextension.toLowerCase(); - if((filextension!='.jpg') && (filextension!='.gif') && (filextension!='.jpeg') && (filextension!='.png') && (filextension!='.bmp')) - { - Prompt(window['lang_upload_images_format_tips'] || '图片格式错误,请重新上传'); - } else { - if(document.all) - { - Prompt(window['lang_ie_browser_tips'] || 'ie浏览器不可用'); - /*imgFile.select(); - path = document.selection.createRange().text; - $(this).parent().parent().find('img').attr('src', ''); - $(this).parent().parent().find('img').attr('src', path); //使用滤镜效果 */ - } else { - var url = window.URL.createObjectURL(imgFile.target.files[0]);// FF 7.0以上 - $(show_img).attr('src', url); - status = true; - } - } - } - var default_img = $(show_img).attr('data-default') || null; - if(status == false && ((default_images || null) != null || default_img != null)) - { - $(show_img).attr('src', default_images || default_img); - } - }); +function ImageFileUploadShow (class_name, show_img, default_images) { + $(document).on("change", class_name, function (imgFile) { + show_img = $(this).attr('data-image-tag') || null; + var status = false; + if ((imgFile.target.value || null) != null) { + var filextension = imgFile.target.value.substring(imgFile.target.value.lastIndexOf("."), imgFile.target.value.length); + filextension = filextension.toLowerCase(); + if ((filextension != '.jpg') && (filextension != '.gif') && (filextension != '.jpeg') && (filextension != '.png') && (filextension != '.bmp')) { + Prompt(window['lang_upload_images_format_tips'] || '图片格式错误,请重新上传'); + } else { + if (document.all) { + Prompt(window['lang_ie_browser_tips'] || 'ie浏览器不可用'); + /*imgFile.select(); + path = document.selection.createRange().text; + $(this).parent().parent().find('img').attr('src', ''); + $(this).parent().parent().find('img').attr('src', path); //使用滤镜效果 */ + } else { + var url = window.URL.createObjectURL(imgFile.target.files[0]);// FF 7.0以上 + $(show_img).attr('src', url); + status = true; + } + } + } + var default_img = $(show_img).attr('data-default') || null; + if (status == false && ((default_images || null) != null || default_img != null)) { + $(show_img).attr('src', default_images || default_img); + } + }); } /** @@ -953,40 +844,34 @@ function ImageFileUploadShow(class_name, show_img, default_images) * @param {[string]} show_video [预览视频id或class] * @param {[string]} default_video [默认视频] */ -function VideoFileUploadShow(class_name, show_video, default_video) -{ - $(document).on("change", class_name, function(imgFile) - { - show_video = $(this).attr('data-video-tag') || null; - var status = false; - if((imgFile.target.value || null) != null) - { - var filextension = imgFile.target.value.substring(imgFile.target.value.lastIndexOf("."),imgFile.target.value.length); - filextension = filextension.toLowerCase(); - if(filextension != '.mp4') - { - Prompt(window['lang_upload_video_format_tips'] || '视频格式错误,请重新上传'); - } else { - if(document.all) - { - Prompt(window['lang_ie_browser_tips'] || 'ie浏览器不可用'); - /*imgFile.select(); - path = document.selection.createRange().text; - $(this).parent().parent().find('img').attr('src', ''); - $(this).parent().parent().find('img').attr('src', path); //使用滤镜效果 */ - } else { - var url = window.URL.createObjectURL(imgFile.target.files[0]);// FF 7.0以上 - $(show_video).attr('src', url); - status = true; - } - } - } - var default_video = $(show_video).attr('data-default') || null; - if(status == false && ((default_video || null) != null || default_video != null)) - { - $(show_video).attr('src', default_video || default_video); - } - }); +function VideoFileUploadShow (class_name, show_video, default_video) { + $(document).on("change", class_name, function (imgFile) { + show_video = $(this).attr('data-video-tag') || null; + var status = false; + if ((imgFile.target.value || null) != null) { + var filextension = imgFile.target.value.substring(imgFile.target.value.lastIndexOf("."), imgFile.target.value.length); + filextension = filextension.toLowerCase(); + if (filextension != '.mp4') { + Prompt(window['lang_upload_video_format_tips'] || '视频格式错误,请重新上传'); + } else { + if (document.all) { + Prompt(window['lang_ie_browser_tips'] || 'ie浏览器不可用'); + /*imgFile.select(); + path = document.selection.createRange().text; + $(this).parent().parent().find('img').attr('src', ''); + $(this).parent().parent().find('img').attr('src', path); //使用滤镜效果 */ + } else { + var url = window.URL.createObjectURL(imgFile.target.files[0]);// FF 7.0以上 + $(show_video).attr('src', url); + status = true; + } + } + } + var default_video = $(show_video).attr('data-default') || null; + if (status == false && ((default_video || null) != null || default_video != null)) { + $(show_video).attr('src', default_video || default_video); + } + }); } /** @@ -1003,40 +888,35 @@ function VideoFileUploadShow(class_name, show_video, default_video) * @param {[int]} full_max [满屏最大限制(max-width:1200px)(0否, 1是)] * @param {[string]} full_max_size [满屏最大限制指定(默认空 最大1200、有效值 md 800, lg 1000)] */ -function ModalLoad(url, title, class_tag, full = 0, full_max = 0, full_max_size = '') -{ - // class 定义 - var ent = 'popup-iframe'; +function ModalLoad (url, title, class_tag, full = 0, full_max = 0, full_max_size = '') { + // class 定义 + var ent = 'popup-iframe'; - // 自定义 class - if((class_tag || null) != null) - { - ent += ' '+class_tag; - } + // 自定义 class + if ((class_tag || null) != null) { + ent += ' ' + class_tag; + } - // 是否满屏 - if((full || 0) == 1) - { - ent += ' popup-full'; - } + // 是否满屏 + if ((full || 0) == 1) { + ent += ' popup-full'; + } - // 满屏最大限制 - if((full_max || 0) == 1) - { - ent += ' popup-full-max'; - // 满屏最大限制指定大小类型 - if((full_max_size || null) != null) - { - ent += '-'+full_max_size; - } - } - - // 调用弹窗组件 - AMUI.dialog.popup({ - title: title || '', - content: '', - class: ent - }); + // 满屏最大限制 + if ((full_max || 0) == 1) { + ent += ' popup-full-max'; + // 满屏最大限制指定大小类型 + if ((full_max_size || null) != null) { + ent += '-' + full_max_size; + } + } + + // 调用弹窗组件 + AMUI.dialog.popup({ + title: title || '', + content: '', + class: ent + }); } /** @@ -1049,22 +929,18 @@ function ModalLoad(url, title, class_tag, full = 0, full_max = 0, full_max_size * @param {[float]} value [金额] * @param {[int]} pos [位数 默认2] */ -function FomatFloat(value, pos = 2) -{ - var f_x = Math.round(value*Math.pow(10, pos))/Math.pow(10, pos); - - var s_x = f_x.toString(); - var pos_decimal = s_x.indexOf('.'); - if(pos_decimal < 0) - { - pos_decimal = s_x.length; - s_x += '.'; - } - while (s_x.length <= pos_decimal + 2) - { - s_x += '0'; - } - return s_x; +function FomatFloat (value, pos = 2) { + var f_x = Math.round(value * Math.pow(10, pos)) / Math.pow(10, pos); + var s_x = f_x.toString(); + var pos_decimal = s_x.indexOf('.'); + if (pos_decimal < 0) { + pos_decimal = s_x.length; + s_x += '.'; + } + while (s_x.length <= pos_decimal + 2) { + s_x += '0'; + } + return s_x; } /** @@ -1075,138 +951,120 @@ function FomatFloat(value, pos = 2) * @datetime 2018-09-24T08:24:58+0800 * @param {[object]} e [当前元素对象] */ -function DataDelete(e) -{ - // 参数获取 - var id = e.attr('data-id'); - var key = e.attr('data-key') || 'id'; - var url = e.attr('data-url'); - var value = e.attr('data-value') || null; - var view = e.attr('data-view') || 'delete'; - var view_value = e.attr('data-view-value') || ''; - var ext_delete_tag = e.attr('data-ext-delete-tag') || null; - var is_loading = parseInt(e.attr('data-is-loading') || 0); - var loading_msg = e.attr('data-loading-msg') || window['lang_request_handle_loading_tips'] || '正在处理中、请稍候...'; +function DataDelete (e) { + // 参数获取 + var id = e.attr('data-id'); + var key = e.attr('data-key') || 'id'; + var url = e.attr('data-url'); + var value = e.attr('data-value') || null; + var view = e.attr('data-view') || 'delete'; + var view_value = e.attr('data-view-value') || ''; + var ext_delete_tag = e.attr('data-ext-delete-tag') || null; + var is_loading = parseInt(e.attr('data-is-loading') || 0); + var loading_msg = e.attr('data-loading-msg') || window['lang_request_handle_loading_tips'] || '正在处理中、请稍候...'; - // 参数校验 - if((id || null) == null || (url || null) == null) - { - Prompt(window['lang_params_error_tips'] || '参数配置有误'); - return false; - } + // 参数校验 + if ((id || null) == null || (url || null) == null) { + Prompt(window['lang_params_error_tips'] || '参数配置有误'); + return false; + } - // 弹层加载 - if(is_loading == 1) - { - AMUI.dialog.loading({title: loading_msg}); - } + // 弹层加载 + if (is_loading == 1) { + AMUI.dialog.loading({ title: loading_msg }); + } - // 请求数据 - var data = {}; - data[key] = id; + // 请求数据 + var data = {}; + data[key] = id; - // 请求删除数据 - $.AMUI.progress.start(); - $.ajax({ - url: RequestUrlHandle(url), - type: 'POST', - dataType: 'json', - timeout: e.attr('data-timeout') || 60000, - data: data, - success: function(result) - { - $.AMUI.progress.done(); - if(result.code == 0) - { - Prompt(result.msg, 'success'); + // 请求删除数据 + $.AMUI.progress.start(); + $.ajax({ + url: RequestUrlHandle(url), + type: 'POST', + dataType: 'json', + timeout: e.attr('data-timeout') || 60000, + data: data, + success: function (result) { + $.AMUI.progress.done(); + if (result.code == 0) { + Prompt(result.msg, 'success'); - switch(view) - { - // 成功则删除数据列表 - case 'delete' : - Prompt(result.msg, 'success'); - $('#data-list-'+id).remove(); - if(ext_delete_tag != null) - { - $(ext_delete_tag).remove(); - } - break; + switch (view) { + // 成功则删除数据列表 + case 'delete': + Prompt(result.msg, 'success'); + $('#data-list-' + id).remove(); + if (ext_delete_tag != null) { + $(ext_delete_tag).remove(); + } + break; - // 刷新 - case 'reload' : - Prompt(result.msg, 'success'); - setTimeout(function() - { - if(is_loading == 1) - { - AMUI.dialog.loading('close'); - } - // 等于parent则刷新父窗口 - if(view_value == 'parent') - { - parent.location.reload(); - } else { - window.location.reload(); - } - }, 1500); - break; + // 刷新 + case 'reload': + Prompt(result.msg, 'success'); + setTimeout(function () { + if (is_loading == 1) { + AMUI.dialog.loading('close'); + } + // 等于parent则刷新父窗口 + if (view_value == 'parent') { + parent.location.reload(); + } else { + window.location.reload(); + } + }, 1500); + break; - // 回调函数 - case 'fun' : - if(IsExitsFunction(value)) - { - result['data_id'] = id; - window[value](result); - } else { - Prompt((window['lang_config_fun_not_exist_tips'] || '配置方法未定义')+'['+value+']'); - } - break; + // 回调函数 + case 'fun': + if (IsExitsFunction(value)) { + result['data_id'] = id; + window[value](result, e); + } else { + Prompt((window['lang_config_fun_not_exist_tips'] || '配置方法未定义') + '[' + value + ']'); + } + break; - // 跳转 - case 'jump' : - Prompt(result.msg, 'success'); - if(value != null) - { - setTimeout(function() - { - window.location.href = value; - }, 1500); - } - break; + // 跳转 + case 'jump': + Prompt(result.msg, 'success'); + if (value != null) { + setTimeout(function () { + window.location.href = value; + }, 1500); + } + break; - // 默认提示成功 - default : - Prompt(result.msg, 'success'); - } - // 成功则删除数据列表 - $('#data-list-'+id).remove(); + // 默认提示成功 + default: + Prompt(result.msg, 'success'); + } + // 成功则删除数据列表 + $('#data-list-' + id).remove(); - // 非刷新和跳转操作 - if(view != 'reload' && view != 'jump') - { - if(is_loading == 1) - { - AMUI.dialog.loading('close'); - } - } - } else { - if(is_loading == 1) - { - AMUI.dialog.loading('close'); - } - Prompt(result.msg); - } - }, - error: function(xhr, type) - { - if(is_loading == 1) - { - AMUI.dialog.loading('close'); - } - $.AMUI.progress.done(); - Prompt(HtmlToString(xhr.responseText) || (window['lang_error_text'] || '异常错误'), null, 30); - } - }); + // 非刷新和跳转操作 + if (view != 'reload' && view != 'jump') { + if (is_loading == 1) { + AMUI.dialog.loading('close'); + } + } + } else { + if (is_loading == 1) { + AMUI.dialog.loading('close'); + } + Prompt(result.msg); + } + }, + error: function (xhr, type) { + if (is_loading == 1) { + AMUI.dialog.loading('close'); + } + $.AMUI.progress.done(); + Prompt(HtmlToString(xhr.responseText) || (window['lang_error_text'] || '异常错误'), null, 30); + } + }); } /** @@ -1217,26 +1075,23 @@ function DataDelete(e) * @datetime 2018-09-24T08:24:58+0800 * @param {[object]} e [当前元素对象] */ -function ConfirmDataDelete(e) -{ - var title = e.attr('data-title') || window['lang_reminder_title'] || '温馨提示'; - var msg = e.attr('data-msg') || window['lang_delete_confirm_tips'] || '删除后不可恢复、确认操作吗?'; - var is_confirm = (e.attr('data-is-confirm') == undefined || e.attr('data-is-confirm') == 1) ? 1 : 0; +function ConfirmDataDelete (e) { + var title = e.attr('data-title') || window['lang_reminder_title'] || '温馨提示'; + var msg = e.attr('data-msg') || window['lang_delete_confirm_tips'] || '删除后不可恢复、确认操作吗?'; + var is_confirm = (e.attr('data-is-confirm') == undefined || e.attr('data-is-confirm') == 1) ? 1 : 0; - if(is_confirm == 1) - { - AMUI.dialog.confirm({ - title: title, - content: msg, - onConfirm: function(options) - { - DataDelete(e); - }, - onCancel: function(){} - }); - } else { - DataDelete(e); - } + if (is_confirm == 1) { + AMUI.dialog.confirm({ + title: title, + content: msg, + onConfirm: function (options) { + DataDelete(e); + }, + onCancel: function () { } + }); + } else { + DataDelete(e); + } } /** @@ -1247,137 +1102,124 @@ function ConfirmDataDelete(e) * @datetime 2019-04-30T00:25:21+0800 * @param {[object]} e [当前元素对象] */ -function AjaxRequest(e) -{ - // 参数 - var id = e.attr('data-id'); - var key = e.attr('data-key') || 'id'; - var field = e.attr('data-field') || ''; - var value = e.attr('data-value') || ''; - var url = e.attr('data-url'); - var view = e.attr('data-view') || ''; - var view_value = e.attr('data-view-value') || ''; - var is_example = e.hasClass('btn-loading-example'); - var is_loading = parseInt(e.attr('data-is-loading') || 0); - var loading_msg = e.attr('data-loading-msg') || window['lang_request_handle_loading_tips'] || '正在处理中、请稍候...'; +function AjaxRequest (e) { + // 参数 + var id = e.attr('data-id'); + var key = e.attr('data-key') || 'id'; + var field = e.attr('data-field') || ''; + var value = e.attr('data-value') || ''; + var url = e.attr('data-url'); + var view = e.attr('data-view') || ''; + var view_value = e.attr('data-view-value') || ''; + var is_example = e.hasClass('btn-loading-example'); + var is_loading = parseInt(e.attr('data-is-loading') || 0); + var loading_msg = e.attr('data-loading-msg') || window['lang_request_handle_loading_tips'] || '正在处理中、请稍候...'; - // 请求数据 - var data = {"value": value, "field": field}; - data[key] = id; + // 请求数据 + var data = { "value": value, "field": field }; + data[key] = id; - // 弹层加载 - if(is_loading == 1) - { - AMUI.dialog.loading({title: loading_msg}); - } + // 弹层加载 + if (is_loading == 1) { + AMUI.dialog.loading({ title: loading_msg }); + } - // 按钮加载 - if(is_example) - { - e.button('loading'); - } + // 按钮加载 + if (is_example) { + e.button('loading'); + } - // ajax - $.AMUI.progress.start(); - $.ajax({ - url: RequestUrlHandle(url), - type: 'POST', - dataType: 'json', - timeout: e.attr('data-timeout') || 60000, - data: data, - success: function(result) - { - if(is_example) - { - e.button('reset'); - } - $.AMUI.progress.done(); - if(result.code == 0) - { - switch(view) - { - // 成功则删除数据列表 - case 'delete' : - Prompt(result.msg, 'success'); - $('#data-list-'+id).remove(); - break; + // ajax + $.AMUI.progress.start(); + $.ajax({ + url: RequestUrlHandle(url), + type: 'POST', + dataType: 'json', + timeout: e.attr('data-timeout') || 60000, + data: data, + success: function (result) { + // 刷新和跳转不释放按钮禁用状态 + var not_reset = ['reload', 'jump']; + if (is_example && not_reset.indexOf(view) == -1) { + e.button('reset'); + } - // 刷新 - case 'reload' : - Prompt(result.msg, 'success'); - setTimeout(function() - { - if(is_loading == 1) - { - AMUI.dialog.loading('close'); - } - // 等于parent则刷新父窗口 - if(view_value == 'parent') - { - parent.location.reload(); - } else { - window.location.reload(); - } - }, 1500); - break; + // 关闭进度条 + $.AMUI.progress.done(); - // 回调函数 - case 'fun' : - if(IsExitsFunction(value)) - { - window[value](result); - } else { - Prompt((window['lang_config_fun_not_exist_tips'] || '配置方法未定义')+'['+value+']'); - } - break; + // 根据类型处理回调 + if (result.code == 0) { + switch (view) { + // 成功则删除数据列表 + case 'delete': + Prompt(result.msg, 'success'); + $('#data-list-' + id).remove(); + break; - // 跳转 - case 'jump' : - Prompt(result.msg, 'success'); - if(value != null) - { - setTimeout(function() - { - window.location.href = value; - }, 1500); - } - break; + // 刷新 + case 'reload': + Prompt(result.msg, 'success'); + setTimeout(function () { + if (is_loading == 1) { + AMUI.dialog.loading('close'); + } + // 等于parent则刷新父窗口 + if (view_value == 'parent') { + parent.location.reload(); + } else { + window.location.reload(); + } + }, 1500); + break; - // 默认提示成功 - default : - Prompt(result.msg, 'success'); - } + // 回调函数 + case 'fun': + if (IsExitsFunction(value)) { + window[value](result, e); + } else { + Prompt((window['lang_config_fun_not_exist_tips'] || '配置方法未定义') + '[' + value + ']'); + } + break; - // 非刷新和跳转操作 - if(view != 'reload' && view != 'jump') - { - if(is_loading == 1) - { - AMUI.dialog.loading('close'); - } - } - } else { - if(is_loading == 1) - { - AMUI.dialog.loading('close'); - } - Prompt(result.msg); - } - }, - error: function(xhr, type) - { - if(is_loading == 1) - { - AMUI.dialog.loading('close'); - } - if(is_example) - { - e.button('reset'); - } - $.AMUI.progress.done(); - Prompt(HtmlToString(xhr.responseText) || (window['lang_error_text'] || '异常错误'), null, 30); - } - }); + // 跳转 + case 'jump': + Prompt(result.msg, 'success'); + if (value != null) { + setTimeout(function () { + window.location.href = value; + }, 1500); + } + break; + + // 默认提示成功 + default: + Prompt(result.msg, 'success'); + } + + // 非刷新和跳转操作 + if (view != 'reload' && view != 'jump') { + if (is_loading == 1) { + AMUI.dialog.loading('close'); + } + } + } else { + if (is_loading == 1) { + AMUI.dialog.loading('close'); + } + Prompt(result.msg); + } + }, + error: function (xhr, type) { + if (is_loading == 1) { + AMUI.dialog.loading('close'); + } + if (is_example) { + e.button('reset'); + } + $.AMUI.progress.done(); + Prompt(HtmlToString(xhr.responseText) || (window['lang_error_text'] || '异常错误'), null, 30); + } + }); } /** @@ -1388,19 +1230,17 @@ function AjaxRequest(e) * @datetime 2018-09-24T08:24:58+0800 * @param {[object]} e [当前元素对象] */ -function ConfirmNetworkAjax(e) -{ - var title = e.attr('data-title') || window['lang_reminder_title'] || '温馨提示'; - var msg = e.attr('data-msg') || window['lang_operate_confirm_tips'] || '操作后不可恢复、确认继续吗?'; - AMUI.dialog.confirm({ - title: title, - content: msg, - onConfirm: function(result) - { - AjaxRequest(e); - }, - onCancel: function(){} - }); +function ConfirmNetworkAjax (e) { + var title = e.attr('data-title') || window['lang_reminder_title'] || '温馨提示'; + var msg = e.attr('data-msg') || window['lang_operate_confirm_tips'] || '操作后不可恢复、确认继续吗?'; + AMUI.dialog.confirm({ + title: title, + content: msg, + onConfirm: function (result) { + AjaxRequest(e); + }, + onCancel: function () { } + }); } /** @@ -1411,17 +1251,13 @@ function ConfirmNetworkAjax(e) * @date 2019-03-01 * @desc description */ -function FullscreenOpen() -{ +function FullscreenOpen () { var elem = document.body; - if(elem.webkitRequestFullScreen) - { + if (elem.webkitRequestFullScreen) { elem.webkitRequestFullScreen(); - } else if (elem.mozRequestFullScreen) - { + } else if (elem.mozRequestFullScreen) { elem.mozRequestFullScreen(); - } else if (elem.requestFullScreen) - { + } else if (elem.requestFullScreen) { elem.requestFullScreen(); } else { Prompt(window['lang_browser_api_error_tips'] || '浏览器不支持全屏API或已被禁用'); @@ -1438,20 +1274,15 @@ function FullscreenOpen() * @date 2019-03-01 * @desc description */ -function FullscreenExit() -{ +function FullscreenExit () { var elem = document; - if (elem.webkitCancelFullScreen) - { + if (elem.webkitCancelFullScreen) { elem.webkitCancelFullScreen(); - } else if (elem.mozCancelFullScreen) - { + } else if (elem.mozCancelFullScreen) { elem.mozCancelFullScreen(); - } else if (elem.cancelFullScreen) - { + } else if (elem.cancelFullScreen) { elem.cancelFullScreen(); - } else if (elem.exitFullscreen) - { + } else if (elem.exitFullscreen) { elem.exitFullscreen(); } else { Prompt(window['lang_browser_api_error_tips'] || '浏览器不支持全屏API或已被禁用'); @@ -1469,18 +1300,15 @@ function FullscreenExit() * @desc description */ var fullscreen_counter = 0; -function FullscreenEscEvent() -{ - fullscreen_counter++; - if(fullscreen_counter%2 == 0) - { - var $fullscreen = $('.fullscreen-event'); - if(($fullscreen.attr('data-status') || 0) == 1) - { - $fullscreen.find('.fullscreen-text').text($fullscreen.attr('data-fulltext-open') || window['lang_fullscreen_open_name'] || '开启全屏'); - $fullscreen.attr('data-status', 0); - } - } +function FullscreenEscEvent () { + fullscreen_counter++; + if (fullscreen_counter % 2 == 0) { + var $fullscreen = $('.fullscreen-event'); + if (($fullscreen.attr('data-status') || 0) == 1) { + $fullscreen.find('.fullscreen-text').text($fullscreen.attr('data-fulltext-open') || window['lang_fullscreen_open_name'] || '开启全屏'); + $fullscreen.attr('data-status', 0); + } + } } /** @@ -1495,109 +1323,90 @@ function FullscreenEscEvent() * @param {[string]} url [自定义url] * @param {[string]} anchor[锚点、传入空字符串则表示去除已存在的锚点] */ -function UrlFieldReplace(field, value, url = null, anchor = null) -{ +function UrlFieldReplace (field, value, url = null, anchor = null) { // 当前页面url地址 url = url || window.location.href; // 锚点 - if(url.indexOf('#') != -1) - { - var temp_url = url.split('#'); - url = temp_url[0]; + if (url.indexOf('#') != -1) { + var temp_url = url.split('#'); + url = temp_url[0]; // 未指定锚点则使用url自带的 - if(temp_url.length > 1 && anchor === null) - { - anchor = temp_url[1]; + if (temp_url.length > 1 && anchor === null) { + anchor = temp_url[1]; } } // 存在锚点则增加#号、则赋空字符 - if((anchor || null) != null && anchor.indexOf('#') == -1) - { - anchor = '#'+anchor; + if ((anchor || null) != null && anchor.indexOf('#') == -1) { + anchor = '#' + anchor; } else { - anchor = ''; + anchor = ''; } // 是否存在问号参数 - if(url.indexOf('?') >= 0) - { - var str = url.substr(0, url.lastIndexOf('.'+__seo_url_suffix__)); - var ext = url.substr(url.lastIndexOf('.'+__seo_url_suffix__)); - if(str.indexOf(field) >= 0) - { + if (url.indexOf('?') >= 0) { + var str = url.substr(0, url.lastIndexOf('.' + __seo_url_suffix__)); + var ext = url.substr(url.lastIndexOf('.' + __seo_url_suffix__)); + if (str.indexOf(field) >= 0) { var first = str.substr(0, str.lastIndexOf(field)); var last = str.substr(str.lastIndexOf(field)); - last = last.replace(new RegExp(field+'/', 'g'), ''); - last = (last.indexOf('/') >= 0) ? last.substr(last.indexOf('/')) : ''; - if(value === null) - { - if(first.substr(-1) == '/') - { - first = first.substr(0, first.length-1); - } - url = first+last+ext; - } else { - url = first+field+'/'+value+last+ext; + last = last.replace(new RegExp(field + '/', 'g'), ''); + last = (last.indexOf('/') >= 0) ? last.substr(last.indexOf('/')) : ''; + if (value === null) { + if (first.substr(-1) == '/') { + first = first.substr(0, first.length - 1); } + url = first + last + ext; + } else { + url = first + field + '/' + value + last + ext; + } } else { - if(ext.indexOf('?') >= 0) - { + if (ext.indexOf('?') >= 0) { var p = ''; - exts = ext.substr(ext.indexOf('?')+1); - if(ext.indexOf(field) >= 0) - { + exts = ext.substr(ext.indexOf('?') + 1); + if (ext.indexOf(field) >= 0) { var params_all = exts.split('&'); - for(var i in params_all) - { + for (var i in params_all) { var temp = params_all[i].split('='); - if(temp.length >= 2) - { - if(temp[0] == field) - { - if(value !== null) - { - p += '&'+field+'='+value; - } + if (temp.length >= 2) { + if (temp[0] == field) { + if (value !== null) { + p += '&' + field + '=' + value; + } } else { - p += '&'+params_all[i]; + p += '&' + params_all[i]; } } } } else { - if(value === null) - { - p = exts; - } else { - p = exts+'&'+field+'='+value; - } + if (value === null) { + p = exts; + } else { + p = exts + '&' + field + '=' + value; + } } - url = str+(ext.substr(0, ext.indexOf('?'))) - if((p || null) != null) - { - if(p.substr(0, 1) == '&') - { - p = p.substr(1); - } - url += '?'+p; + url = str + (ext.substr(0, ext.indexOf('?'))) + if ((p || null) != null) { + if (p.substr(0, 1) == '&') { + p = p.substr(1); + } + url += '?' + p; } } else { - if(value === null) - { - url = str+ext; + if (value === null) { + url = str + ext; } else { - url = str+'/'+field+'/'+value+ext; + url = str + '/' + field + '/' + value + ext; } } } } else { - if(value !== null) - { - url += '?'+field+'='+value; - } + if (value !== null) { + url += '?' + field + '=' + value; + } } - return url+anchor; + return url + anchor; } /** @@ -1608,35 +1417,30 @@ function UrlFieldReplace(field, value, url = null, anchor = null) * @datetime 2019-04-20T19:48:59+0800 * @return {string} [weixin,weibo,qq] */ -function MobileBrowserEnvironment() -{ - // 浏览器标识 - var ua = navigator.userAgent.toLowerCase(); +function MobileBrowserEnvironment () { + // 浏览器标识 + var ua = navigator.userAgent.toLowerCase(); - // 微信 - if(ua.match(/MicroMessenger/i) == 'micromessenger') - { - return 'weixin'; - } + // 微信 + if (ua.match(/MicroMessenger/i) == 'micromessenger') { + return 'weixin'; + } - // 新浪微博 - if(ua.match(/WeiBo/i) == 'weibo') - { - return 'weibo'; - } + // 新浪微博 + if (ua.match(/WeiBo/i) == 'weibo') { + return 'weibo'; + } - // QQ空间 - if(ua.match(/qzone/i) == 'qzone') - { - return 'qzone'; - } + // QQ空间 + if (ua.match(/qzone/i) == 'qzone') { + return 'qzone'; + } - // QQ - if(ua.match(/QQ/i) == 'qq') - { - return 'qq'; - } - return null; + // QQ + if (ua.match(/QQ/i) == 'qq') { + return 'qq'; + } + return null; } /** @@ -1647,53 +1451,47 @@ function MobileBrowserEnvironment() * @param {[int]} sub_number [按钮生成个数] * @return {[string]} [html代码] */ -function PageLibrary(total, number, page, sub_number) -{ - if((page || null) == null) page = 1; - if((number || null) == null) number = 15; - if((sub_number || null) == null) sub_number = 2; +function PageLibrary (total, number, page, sub_number) { + if ((page || null) == null) page = 1; + if ((number || null) == null) number = 15; + if ((sub_number || null) == null) sub_number = 2; - var page_total = Math.ceil(total/number); - if(page > page_total) page = page_total; - page = (page <= 0) ? 1 : parseInt(page); + var page_total = Math.ceil(total / number); + if (page > page_total) page = page_total; + page = (page <= 0) ? 1 : parseInt(page); - var html = ''; + return html; } /** @@ -1707,65 +1505,56 @@ function PageLibrary(total, number, page, sub_number) * @param {[string]} next_name [下一个节点名称(数据渲染节点)] * @param {[int]} value [需要选中的值] */ -function RegionNodeData(pid, name, next_name, value) -{ - if(pid != null) - { - $.ajax({ - url: RequestUrlHandle($('.region-linkage').attr('data-url')), - type: 'POST', - data: {"pid": pid}, - dataType: 'json', - success: function(result) - { - if(result.code == 0) - { - /* html拼接 */ - var html = ''; +function RegionNodeData (pid, name, next_name, value) { + if (pid != null) { + $.ajax({ + url: RequestUrlHandle($('.region-linkage').attr('data-url')), + type: 'POST', + data: { "pid": pid }, + dataType: 'json', + success: function (result) { + if (result.code == 0) { + /* html拼接 */ + var html = ''; - /* 没有指定选中值则从元素属性读取 */ - value = value || $('.region-linkage select[name='+next_name+']').attr('data-value') || null; - for(var i in result.data) - { - html += ''; - $temp_obj.html(temp_html).trigger('chosen:updated'); - } - } + case 'city': + child = ['county']; + break; + } + if (child != null) { + for (var i in child) { + var $temp_obj = $('.region-linkage select[name=' + child[i] + ']'); + var temp_find = $temp_obj.find('option').first().text(); + var temp_html = ''; + $temp_obj.html(temp_html).trigger('chosen:updated'); + } + } } /** @@ -1779,55 +1568,49 @@ function RegionNodeData(pid, name, next_name, value) * @param {[string]} type [edit, add] * @return {[object]} [处理后的数据] */ -function FunSaveWinAdditional(data, type) -{ - // 额外处理数据 - if($('#tree').length > 0) - { - var additional = $('#tree').data('additional') || null; - if(additional != null) - { - for(var i in additional) - { - var value = (type == 'add') ? (additional[i]['value'] || '') : (data[additional[i]['field']] || additional[i]['value'] || ''); - switch(additional[i]['type']) - { - // 表单 - case 'input' : - case 'select' : - case 'textarea' : - data[additional[i]['field']] = value; - break; +function FunSaveWinAdditional (data, type) { + // 额外处理数据 + if ($('#tree').length > 0) { + var additional = $('#tree').data('additional') || null; + if (additional != null) { + for (var i in additional) { + var value = (type == 'add') ? (additional[i]['value'] || '') : (data[additional[i]['field']] || additional[i]['value'] || ''); + switch (additional[i]['type']) { + // 表单 + case 'input': + case 'select': + case 'textarea': + data[additional[i]['field']] = value; + break; - // 样式处理 - case 'css' : - $(additional[i]['tag']).css(additional[i]['style'], value); - break; + // 样式处理 + case 'css': + $(additional[i]['tag']).css(additional[i]['style'], value); + break; - // 文件 - case 'file' : - var $file_tag = $(additional[i]['tag']); - if($file_tag.val().length > 0) - { - $file_tag.after($file_tag.clone().val('')); - $file_tag.val(''); - } - break; + // 文件 + case 'file': + var $file_tag = $(additional[i]['tag']); + if ($file_tag.val().length > 0) { + $file_tag.after($file_tag.clone().val('')); + $file_tag.val(''); + } + break; - // 属性 - case 'attr' : - $(additional[i]['tag']).attr(additional[i]['style'], value); - break; + // 属性 + case 'attr': + $(additional[i]['tag']).attr(additional[i]['style'], value); + break; - // 内容替换 - case 'html' : - $(additional[i]['tag']).html(value); - break; - } - } - } - } - return data; + // 内容替换 + case 'html': + $(additional[i]['tag']).html(value); + break; + } + } + } + } + return data; } /** @@ -1838,48 +1621,43 @@ function FunSaveWinAdditional(data, type) * @date 2018-08-06 * @desc description */ -function TreeFormInit() -{ - // popup窗口 - var $popup = $($('#tree').data('popup-tag') || ''+popup_tag+''); +function TreeFormInit () { + // popup窗口 + var $popup = $($('#tree').data('popup-tag') || '' + popup_tag + ''); - // 更改窗口名称 - var $title = $popup.find('.am-popup-title'); - $title.text($title.attr('data-add-title')); + // 更改窗口名称 + var $title = $popup.find('.am-popup-title'); + $title.text($title.attr('data-add-title')); - // 填充数据 - var data = {id:'', pid:0, name:'', vice_name:'', describe:'', letters:'', lng:'', lat:'', sort:0, is_enable:1, icon:'', big_images:'', seo_title:'', seo_keywords:'', seo_desc:''}; - // 指定字段 - var fields = $popup.data('fields') || null; - if(fields != null) - { - var arr = fields.split(','); - for(var i in arr) - { - data[arr[i]] = ''; - } - } + // 填充数据 + var data = { id: '', pid: 0, name: '', vice_name: '', describe: '', letters: '', lng: '', lat: '', sort: 0, is_enable: 1, icon: '', realistic_images: '', big_images: '', seo_title: '', seo_keywords: '', seo_desc: '' }; + // 指定字段 + var fields = $popup.data('fields') || null; + if (fields != null) { + var arr = fields.split(','); + for (var i in arr) { + data[arr[i]] = ''; + } + } - // 额外处理数据 - data = FunSaveWinAdditional(data, 'init'); + // 额外处理数据 + data = FunSaveWinAdditional(data, 'init'); - // 清空表单 - FormDataFill(data); + // 清空表单 + FormDataFill(data); - // 移除菜单禁止状态 - $popup.find('form select[name="pid"]').removeAttr('disabled'); + // 移除菜单禁止状态 + $popup.find('form select[name="pid"]').removeAttr('disabled'); - // 校验成功状态增加失去焦点 - $popup.find('form').find('.am-field-valid').each(function() - { - $(this).blur(); - }); + // 校验成功状态增加失去焦点 + $popup.find('form').find('.am-field-valid').each(function () { + $(this).blur(); + }); - // 多选插件事件更新 - if($('select.chosen-select').length > 0) - { - $('select.chosen-select').trigger('chosen:updated'); - } + // 多选插件事件更新 + if ($('select.chosen-select').length > 0) { + $('select.chosen-select').trigger('chosen:updated'); + } } /** @@ -1895,206 +1673,190 @@ function TreeFormInit() * @param {[boolean]} is_dragend [标注是否可拖拽] * @param {[string]} mapid [地图id(默认 map)] */ -function MapInit(lng, lat, level, is_dragend, mapid) -{ - // 地图容器 - if((mapid || null) == null) - { - mapid = 'map'; - } - $('#'+mapid).html(''); +function MapInit (lng, lat, level, is_dragend, mapid) { + // 地图容器 + if ((mapid || null) == null) { + mapid = 'map'; + } + $('#' + mapid).html(''); - // 默认16级 - level = level || $('#'+mapid).data('level') || 16; + // 默认16级 + level = level || $('#' + mapid).data('level') || 16; - // 标点是否可以拖动 - if(is_dragend == undefined || is_dragend == true) - { - is_dragend = true; - } + // 标点是否可以拖动 + if (is_dragend == undefined || is_dragend == true) { + is_dragend = true; + } - // 经纬度 - lng = lng || 116.400244; - lat = lat || 39.92556 + // 经纬度 + lng = lng || 116.400244; + lat = lat || 39.92556 - // 地图类型 - switch(__load_map_type__) - { - // 百度 - case 'baidu' : - var map = new BMap.Map(mapid, {enableMapClick:false}); - var point = new BMap.Point(lng, lat); - map.centerAndZoom(point, level); + // 地图类型 + switch (__load_map_type__) { + // 百度 + case 'baidu': + var map = new BMap.Map(mapid, { enableMapClick: false }); + var point = new BMap.Point(lng, lat); + map.centerAndZoom(point, level); - // 添加控件 - var navigationControl = new BMap.NavigationControl({ - // 靠左上角位置 - anchor: BMAP_ANCHOR_TOP_LEFT, - // LARGE类型 - type: BMAP_NAVIGATION_CONTROL_LARGE, - }); - map.addControl(navigationControl); + // 添加控件 + var navigationControl = new BMap.NavigationControl({ + // 靠左上角位置 + anchor: BMAP_ANCHOR_TOP_LEFT, + // LARGE类型 + type: BMAP_NAVIGATION_CONTROL_LARGE, + }); + map.addControl(navigationControl); - // 创建标注 - // 将标注添加到地图中 - var marker = new BMap.Marker(point); - map.addOverlay(marker); + // 创建标注 + // 将标注添加到地图中 + var marker = new BMap.Marker(point); + map.addOverlay(marker); - // 标注是否可拖拽 - if(is_dragend) - { - marker.enableDragging(); - marker.addEventListener('dragend', function(e) { - map.panTo(e.point); - if($('#form-lng').length > 0 && $('#form-lat').length > 0) - { - $('#form-lng').val(e.point.lng); - $('#form-lat').val(e.point.lat); - } - }); + // 标注是否可拖拽 + if (is_dragend) { + marker.enableDragging(); + marker.addEventListener('dragend', function (e) { + map.panTo(e.point); + if ($('#form-lng').length > 0 && $('#form-lat').length > 0) { + $('#form-lng').val(e.point.lng); + $('#form-lat').val(e.point.lat); + } + }); - // 设置标注提示信息 - var cr = new BMap.CopyrightControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT}); - map.addControl(cr); //添加版权控件 - var bs = map.getBounds(); //返回地图可视区域 - cr.addCopyright({id: 1, content: '
    '+(window['lang_map_dragging_icon_tips'] || '拖动红色图标直接定位')+'
    ', bounds:bs}); - } - break; + // 设置标注提示信息 + var cr = new BMap.CopyrightControl({ anchor: BMAP_ANCHOR_BOTTOM_RIGHT }); + map.addControl(cr); //添加版权控件 + var bs = map.getBounds(); //返回地图可视区域 + cr.addCopyright({ id: 1, content: '
    ' + (window['lang_map_dragging_icon_tips'] || '拖动红色图标直接定位') + '
    ', bounds: bs }); + } + break; - // 高德地图 - case 'amap' : - var map = new AMap.Map(mapid, {zoomEnable:true,resizeEnable:false,scrollWheel:false,zoom:level,center: [lng, lat]}); - // 插件控件 - AMap.plugin([ - 'AMap.ToolBar', - ], function(){ - // 在图面添加工具条控件, 工具条控件只有缩放功能 - map.addControl(new AMap.ToolBar()); - }); + // 高德地图 + case 'amap': + var map = new AMap.Map(mapid, { zoomEnable: true, resizeEnable: false, scrollWheel: false, zoom: level, center: [lng, lat] }); + // 插件控件 + AMap.plugin([ + 'AMap.ToolBar', + ], function () { + // 在图面添加工具条控件, 工具条控件只有缩放功能 + map.addControl(new AMap.ToolBar()); + }); - // 创建标注 - var marker_config = { - position: map.getCenter(), - offset: new AMap.Pixel(-13, -30) - }; - // 标注是否可拖拽 - if(is_dragend) - { - marker_config['draggable'] = true; - } - var marker = new AMap.Marker(marker_config); - marker.setMap(map); + // 创建标注 + var marker_config = { + position: map.getCenter(), + offset: new AMap.Pixel(-13, -30) + }; + // 标注是否可拖拽 + if (is_dragend) { + marker_config['draggable'] = true; + } + var marker = new AMap.Marker(marker_config); + marker.setMap(map); - // 标注可拖拽回调 - if(is_dragend) - { - marker.on('dragend', function(e) - { - map.panTo(e.lnglat); - if($('#form-lng').length > 0 && $('#form-lat').length > 0) - { - $('#form-lng').val(e.lnglat.lng); - $('#form-lat').val(e.lnglat.lat); - } - }); - } - break; + // 标注可拖拽回调 + if (is_dragend) { + marker.on('dragend', function (e) { + map.panTo(e.lnglat); + if ($('#form-lng').length > 0 && $('#form-lat').length > 0) { + $('#form-lng').val(e.lnglat.lng); + $('#form-lat').val(e.lnglat.lat); + } + }); + } + break; - // 腾讯地图 - case 'tencent' : - // v2版本 - var point = new qq.maps.LatLng(lat, lng); - var map = new qq.maps.Map(mapid, { - center: point, - zoom: level - }); - var marker = new qq.maps.Marker({ - position: point, - draggable: is_dragend, - map: map - }); - qq.maps.event.addListener(marker, 'dragend', function(e) - { - map.panTo(e.latLng); - if($('#form-lng').length > 0 && $('#form-lat').length > 0) - { - $('#form-lng').val(e.latLng.lng); - $('#form-lat').val(e.latLng.lat); - } - }); + // 腾讯地图 + case 'tencent': + // v2版本 + var point = new qq.maps.LatLng(lat, lng); + var map = new qq.maps.Map(mapid, { + center: point, + zoom: level + }); + var marker = new qq.maps.Marker({ + position: point, + draggable: is_dragend, + map: map + }); + qq.maps.event.addListener(marker, 'dragend', function (e) { + map.panTo(e.latLng); + if ($('#form-lng').length > 0 && $('#form-lat').length > 0) { + $('#form-lng').val(e.latLng.lng); + $('#form-lat').val(e.latLng.lat); + } + }); - // // GL v1版本 - // var point = new TMap.LatLng(lat, lng); - // //初始化地图 - // var map = new TMap.Map(mapid, { - // zoom: level,//设置地图缩放级别 - // center: point//设置地图中心点坐标 - // }); - // var marker = new TMap.MultiMarker({ - // map: map, - // geometries: [ - // { - // position: point, - // id: 'marker', - // } - // ], - // }); - // //监听marker点击事件 - // marker.on('click', function(e) - // { - // console.log(e); - // }); - break; + // // GL v1版本 + // var point = new TMap.LatLng(lat, lng); + // //初始化地图 + // var map = new TMap.Map(mapid, { + // zoom: level,//设置地图缩放级别 + // center: point//设置地图中心点坐标 + // }); + // var marker = new TMap.MultiMarker({ + // map: map, + // geometries: [ + // { + // position: point, + // id: 'marker', + // } + // ], + // }); + // //监听marker点击事件 + // marker.on('click', function(e) + // { + // console.log(e); + // }); + break; - // 天地图 - case 'tianditu' : - // 初始化地图对象 - var map = new T.Map(mapid); - // 设置显示地图的中心点和级别 - var point = new T.LngLat(lng, lat); - map.centerAndZoom(point, level); - // 禁止鼠标滚动缩小放大 - map.disableScrollWheelZoom(); + // 天地图 + case 'tianditu': + // 初始化地图对象 + var map = new T.Map(mapid); + // 设置显示地图的中心点和级别 + var point = new T.LngLat(lng, lat); + map.centerAndZoom(point, level); + // 禁止鼠标滚动缩小放大 + map.disableScrollWheelZoom(); - // 添加控件 - //创建缩放平移控件对象 - var control = new T.Control.Zoom(); - control.setPosition(T_ANCHOR_TOP_RIGHT); - //添加缩放平移控件 - map.addControl(control); + // 添加控件 + //创建缩放平移控件对象 + var control = new T.Control.Zoom(); + control.setPosition(T_ANCHOR_TOP_RIGHT); + //添加缩放平移控件 + map.addControl(control); - // 创建标注对象 - // 向地图上添加标注 - var marker = new T.Marker(point); - map.addOverLay(marker); + // 创建标注对象 + // 向地图上添加标注 + var marker = new T.Marker(point); + map.addOverLay(marker); - // 标注是否可拖拽 - if(is_dragend) - { - marker.enableDragging(); - marker.addEventListener('dragend', function(e) - { - map.panTo(new T.LngLat(e.lnglat.lng, e.lnglat.lat)); - if($('#form-lng').length > 0 && $('#form-lat').length > 0) - { - $('#form-lng').val(e.lnglat.lng); - $('#form-lat').val(e.lnglat.lat); - } - }); - } - break; + // 标注是否可拖拽 + if (is_dragend) { + marker.enableDragging(); + marker.addEventListener('dragend', function (e) { + map.panTo(new T.LngLat(e.lnglat.lng, e.lnglat.lat)); + if ($('#form-lng').length > 0 && $('#form-lat').length > 0) { + $('#form-lng').val(e.lnglat.lng); + $('#form-lat').val(e.lnglat.lat); + } + }); + } + break; - // 默认 - default : - Prompt((window['lang_map_type_not_exist_tips'] || '该地图功能未定义')+'('+__load_map_type__+')'); - } + // 默认 + default: + Prompt((window['lang_map_type_not_exist_tips'] || '该地图功能未定义') + '(' + __load_map_type__ + ')'); + } - //获取地址坐标 - if($('#form-lng').length > 0 && $('#form-lat').length > 0 && lng != 0 && lat != 0) - { - $('#form-lng').val(lng); - $('#form-lat').val(lat); + //获取地址坐标 + if ($('#form-lng').length > 0 && $('#form-lat').length > 0 && lng != 0 && lat != 0) { + $('#form-lng').val(lng); + $('#form-lat').val(lat); } } @@ -2106,69 +1868,54 @@ function MapInit(lng, lat, level, is_dragend, mapid) * @date 2020-02-29 * @desc description */ -function FormTableContainerInit() -{ - if($('.am-table-scrollable-horizontal').length > 0) - { - // 表格容器距离计算 - var $obj = $('.am-table-scrollable-horizontal'); - var document_width = $(window).width(); - var parent_left = $obj.offset().left; - var parent_width = $obj[0].scrollWidth; - var parent_right = document_width-parent_width-parent_left-2; +function FormTableContainerInit () { + if ($('.am-table-scrollable-horizontal').length > 0) { + // 表格容器 + var $obj = $('.am-table-scrollable-horizontal'); - // 左固定 - $('.am-table-scrollable-horizontal > table .am-grid-fixed-left').each(function(k, v) - { - var width = parseInt($(this).attr('data-width') || $(this).innerWidth()); - var left = parseInt($(this).attr('data-left') || $(this).position().left); - $(this).attr('data-width', width); - $(this).attr('data-left', left); - $(this).css({"width":width+"px", "left":left+"px"}); - }); + // 左固定 + $obj.find('> table > thead > tr, > table > tbody > tr').each(function (k, v) { + var left = 0; + $(this).find('.am-grid-fixed-left').each(function (ks, vs) { + var width = parseInt($(this).attr('data-width') || $(this).innerWidth()); + $(this).css({ width: width + 'px', left: left + 'px' }); + left += width; + }); + }); - // 右固定 - $('.am-table-scrollable-horizontal > table .am-grid-fixed-right').each(function(k, v) - { - var width = parseInt($(this).attr('data-width') || $(this).innerWidth()); - var right = $(this).attr('data-right') || undefined; - if(right == undefined) - { - var left = $(this).offset().left; - right = parent_width-left-width+parent_left; - if(right < 0) - { - right = 0; - } - } else { - right = parseInt(right); - } - $(this).attr('data-width', width); - $(this).attr('data-right', right); - $(this).css({"width":width+"px", "right":right+"px"}); - }); + // 右固定 + $obj.find('> table > thead > tr, > table > tbody > tr').each(function (k, v) { + var fixed_right_arr = []; + $(this).find('.am-grid-fixed-right').each(function (ks, vs) { + fixed_right_arr.push($(this)); + }); + if (fixed_right_arr.length > 0) { + var right = 0; + fixed_right_arr.reverse().forEach((item) => { + var width = parseInt(item.attr('data-width') || item.innerWidth()); + item.css({ width: width + 'px', right: right + 'px' }); + right += width; + }); + } + }); - // 左边最后一列、右边第一列设置阴影样式 - $('.am-table-scrollable-horizontal > table tr').each(function(k, v) - { - $(this).find('.am-grid-fixed-left').last().addClass('am-grid-fixed-left-shadow'); - $(this).find('.am-grid-fixed-right').first().addClass('am-grid-fixed-right-shadow'); - }); + // 左边最后一列、右边第一列设置阴影样式 + $obj.find('> table tr').each(function (k, v) { + $(this).find('.am-grid-fixed-left').last().addClass('am-grid-fixed-left-shadow'); + $(this).find('.am-grid-fixed-right').first().addClass('am-grid-fixed-right-shadow'); + }); - // 右侧操作栏更多按钮显示容器宽度处理点击事件、鼠标进入和移除事件 - $('.am-table-scrollable-horizontal .am-table tr .am-operate-grid-more-list button.am-dropdown-toggle').on('click', function() - { - FormTableContainerOperateGridMoreListInit($(this)); - }); - $('.am-table-scrollable-horizontal .am-table tr .am-operate-grid-more-list button.am-dropdown-toggle').on('mouseenter', function() - { - FormTableContainerOperateGridMoreListInit($(this)); - }); - $('.am-table-scrollable-horizontal .am-table tr .am-operate-grid-more-list button.am-dropdown-toggle').on('mouseleave', function() - { - FormTableContainerOperateGridMoreListInit($(this)); - }); - } + // 右侧操作栏更多按钮显示容器宽度处理点击事件、鼠标进入和移除事件 + $obj.find('.am-table tr .am-operate-grid-more-list button.am-dropdown-toggle').on('click', function () { + FormTableContainerOperateGridMoreListInit($(this)); + }); + $obj.find('.am-table tr .am-operate-grid-more-list button.am-dropdown-toggle').on('mouseenter', function () { + FormTableContainerOperateGridMoreListInit($(this)); + }); + $obj.find('.am-table tr .am-operate-grid-more-list button.am-dropdown-toggle').on('mouseleave', function () { + FormTableContainerOperateGridMoreListInit($(this)); + }); + } } /** @@ -2180,31 +1927,27 @@ function FormTableContainerInit() * @desc description * @param {[object]} e [当前对象] */ -function FormTableContainerOperateGridMoreListInit(e) -{ - var $parent = e.parent(); - var length = $parent.find('.am-dropdown-content .am-badge').length; - if(length == 0) - { - Prompt(window['lang_not_operate_error'] || '没有相关操作', 'warning'); - $parent.removeClass('am-active'); - $parent.find('.am-dropdown-content').remove(); - } else { - if(length > 0) - { - // 隐藏的元素无法获取宽度,使用一个浮动元素临时存放按钮获取宽度 - var key = 'temp-operate-more-item-width-container'; - $('body').append('
    '); - var width = (length*10)+20; - $parent.find('.am-dropdown-content .am-badge').each(function(k, v) - { - width += $('.'+key).html($(this).prop('outerHTML')).outerWidth(true); - }); - $('.'+key).remove(); - $parent.find('.am-dropdown-content').css('width', width+'px'); - } - $parent.addClass('am-dropdown-flip'); - } +function FormTableContainerOperateGridMoreListInit (e) { + var $parent = e.parent(); + var length = $parent.find('.am-dropdown-content .am-badge').length; + if (length == 0) { + Prompt(window['lang_not_operate_error'] || '没有相关操作', 'warning'); + $parent.removeClass('am-active'); + $parent.find('.am-dropdown-content').remove(); + } else { + if (length > 0) { + // 隐藏的元素无法获取宽度,使用一个浮动元素临时存放按钮获取宽度 + var key = 'temp-operate-more-item-width-container'; + $('body').append('
    '); + var width = (length * 10) + 20; + $parent.find('.am-dropdown-content .am-badge').each(function (k, v) { + width += $('.' + key).html($(this).prop('outerHTML')).outerWidth(true); + }); + $('.' + key).remove(); + $parent.find('.am-dropdown-content').css('width', width + 'px'); + } + $parent.addClass('am-dropdown-flip'); + } } /** @@ -2217,28 +1960,23 @@ function FormTableContainerOperateGridMoreListInit(e) * @param {[string]} form [表单名称] * @param {[string]} tag [表单父级标签class或id] */ -function FromTableCheckedValues(form, tag) -{ - // 获取复选框选中的值 - var values = []; - $(tag).find('input[name="'+form+'"]').each(function(key, tmp) - { - if($(this).is(':checked')) - { - values.push(tmp.value); - } - }); +function FromTableCheckedValues (form, tag) { + // 获取复选框选中的值 + var values = []; + $(tag).find('input[name="' + form + '"]').each(function (key, tmp) { + if ($(this).is(':checked')) { + values.push(tmp.value); + } + }); - // 获取单选选中的值 - if(values.length <= 0) - { - var val = $(tag).find('input[name="'+form+'"]:checked').val(); - if(val != undefined) - { - values.push(val); - } - } - return values; + // 获取单选选中的值 + if (values.length <= 0) { + var val = $(tag).find('input[name="' + form + '"]:checked').val(); + if (val != undefined) { + values.push(val); + } + } + return values; } /** @@ -2250,9 +1988,8 @@ function FromTableCheckedValues(form, tag) * @desc description * @param {[mixed]} value [变量值] */ -function IsArray(value) -{ - return Object.prototype.toString.call(value) == '[object Array]'; +function IsArray (value) { + return Object.prototype.toString.call(value) == '[object Array]'; } /** @@ -2264,41 +2001,39 @@ function IsArray(value) * @desc description * @param {[string]} html_str [html代码] */ -function HtmlToString(html_str) -{ - function ToTxt(str) - { - var rex = /\<|\>|\"|\'|\&| | /g; - str = str.replace(rex, function(match_str) - { - switch(match_str) - { - case '<' : - return '<'; - break; - case '>' : - return '>'; - break; - case '"' : - return '"'; - break; - case '\'' : - return '''; - break; - case '&' : - return '&'; - break; - case ' ' : - return ' '; - break; - case ' ' : - return ' '; - break; - } - }); - return str; - } - return ToTxt(html_str).replace(/\<\;br[\&ensp\;|\&emsp\;]*[\/]?\>\;|\r\n|\n/g, '
    '); +function HtmlToString (html_str) { + if ((html_str || null) != null) { + function ToTxt (str) { + var rex = /\<|\>|\"|\'|\&| | /g; + str = str.replace(rex, function (match_str) { + switch (match_str) { + case '<': + return '<'; + break; + case '>': + return '>'; + break; + case '"': + return '"'; + break; + case '\'': + return '''; + break; + case '&': + return '&'; + break; + case ' ': + return ' '; + break; + case ' ': + return ' '; + break; + } + }); + return str; + } + return ToTxt(html_str).replace(/\<\;br[\&ensp\;|\&emsp\;]*[\/]?\>\;|\r\n|\n/g, '
    '); + } } /** @@ -2310,92 +2045,76 @@ function HtmlToString(html_str) * @desc description * @param {[string]} field [参数字段名称、null则返回全部参数] */ -function GetQueryValue(field = null) -{ - // 路径参数值 - var path = window.location.pathname || null; - var query = (path == null || path == '/') ? '' : path +function GetQueryValue (field = null) { + // 路径参数值 + var path = window.location.pathname || null; + var query = (path == null || path == '/') ? '' : path - // 问号后面的参数值 - var search = window.location.search || null; - if(search != null) - { - if(query != '') - { - query += '&'; - } - query += search.substring(1); - } + // 问号后面的参数值 + var search = window.location.search || null; + if (search != null) { + if (query != '') { + query += '&'; + } + query += search.substring(1); + } - // 首两个是否为s=字符,存在则去除 - if(query.substr(0, 2) == 's=') - { - query = query.substr(2); - } - // 第一个字符为斜杠,存在则去除 - if(query.substr(0, 1) == '/') - { - query = query.substr(1); - } + // 首两个是否为s=字符,存在则去除 + if (query.substr(0, 2) == 's=') { + query = query.substr(2); + } + // 第一个字符为斜杠,存在则去除 + if (query.substr(0, 1) == '/') { + query = query.substr(1); + } - // 是否存在参数 - var vars = []; - if(query != null) - { - var temp = query.split('&'); - if(temp.length > 0) - { - for(var i in temp) - { - // 参数是否为斜杠参数、仅首条记录处理 - if(i == 0 && temp[i].indexOf('/') != -1) - { - var temp_field = null; - var temp_ds = temp[i].split('/'); - var temp_count = temp_ds.length; - for(var x in temp_ds) - { - // 奇数则忽略第一个参数(为系统路由名称) - if(temp_count%2 != 0 && x == 0) - { - continue; - } + // 是否存在参数 + var vars = []; + if (query != null) { + var temp = query.split('&'); + if (temp.length > 0) { + for (var i in temp) { + // 参数是否为斜杠参数、仅首条记录处理 + if (i == 0 && temp[i].indexOf('/') != -1) { + var temp_field = null; + var temp_ds = temp[i].split('/'); + var temp_count = temp_ds.length; + for (var x in temp_ds) { + // 奇数则忽略第一个参数(为系统路由名称) + if (temp_count % 2 != 0 && x == 0) { + continue; + } - // 参数组合 - if(temp_field == null) - { - temp_field = temp_ds[x]; - } else { - vars[temp_field] = temp_ds[x].replace('.'+__seo_url_suffix__, ''); - temp_field = null; - } - } - } else { - var pair = temp[i].split('='); - if(pair.length == 2) - { - vars[pair[0]] = pair[1]; - } - } - } - } - } + // 参数组合 + if (temp_field == null) { + temp_field = temp_ds[x]; + } else { + vars[temp_field] = temp_ds[x].replace('.' + __seo_url_suffix__, ''); + temp_field = null; + } + } + } else { + var pair = temp[i].split('='); + if (pair.length == 2) { + vars[pair[0]] = pair[1]; + } + } + } + } + } - // 是否指定字段 - if(field === null) - { - return vars; - } else { - // 是否存在该字段数据 - for(var i in vars) - { - if(i == field) - { - return vars[i]; - } - } - } - return false; + // 是否指定字段 + if (field === null) { + return vars; + } else { + // 是否存在该字段数据 + for (var i in vars) { + if (i == field) { + return vars[i]; + } + } + } + return false; } /** @@ -2406,10 +2125,9 @@ function GetQueryValue(field = null) * @date 2022-03-13 * @desc description */ -function UUId() -{ +function UUId () { var d = new Date().getTime(); - return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { + return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { var r = (d + Math.random() * 16) % 16 | 0; d = Math.floor(d / 16); return (c == 'x' ? r : r & 0x3 | 0x8).toString(16); @@ -2428,15 +2146,14 @@ function UUId() * @param {Number} width [宽度] * @param {Number} height [高度] */ -function OpenWindow(url, name = '', width = 850, height = 600) -{ +function OpenWindow (url, name = '', width = 850, height = 600) { // window.screen.height获得屏幕的高 // window.screen.width获得屏幕的宽 // 获得窗口的垂直位置; - var top = (window.screen.height-30-height)/2; + var top = (window.screen.height - 30 - height) / 2; // 获得窗口的水平位置; - var left = (window.screen.width-10-width)/2; - window.open(url, name, 'height='+height+',innerHeight='+height+',width='+width+',innerWidth='+width+',top='+top+',left='+left+',toolbar=no,menubar=no,scrollbars=auto,resizeable=no,location=no,status=no'); + var left = (window.screen.width - 10 - width) / 2; + window.open(url, name, 'height=' + height + ',innerHeight=' + height + ',width=' + width + ',innerWidth=' + width + ',top=' + top + ',left=' + left + ',toolbar=no,menubar=no,scrollbars=auto,resizeable=no,location=no,status=no'); } /** @@ -2447,27 +2164,23 @@ function OpenWindow(url, name = '', width = 850, height = 600) * @date 2022-04-11 * @desc description */ -function RegionLinkageInit() -{ - if($('.region-linkage select').length > 0) - { - // 省初始化 - RegionNodeData(0, 'province', 'province'); +function RegionLinkageInit () { + if ($('.region-linkage select').length > 0) { + // 省初始化 + RegionNodeData(0, 'province', 'province'); - // 市初始化 - var value = $('.region-linkage select[name=province]').attr('data-value') || 0; - if(value != 0) - { - RegionNodeData(value, 'city', 'city'); - } + // 市初始化 + var value = $('.region-linkage select[name=province]').attr('data-value') || 0; + if (value != 0) { + RegionNodeData(value, 'city', 'city'); + } - // 区/县初始化 - var value = $('.region-linkage select[name=city]').attr('data-value') || 0; - if(value != 0) - { - RegionNodeData(value, 'county', 'county'); - } - } + // 区/县初始化 + var value = $('.region-linkage select[name=city]').attr('data-value') || 0; + if (value != 0) { + RegionNodeData(value, 'county', 'county'); + } + } } /** @@ -2479,10 +2192,9 @@ function RegionLinkageInit() * @desc description * @param {string} url [请求url地址] */ -function RequestUrlHandle(url) -{ - // 增加系统参数 - return UrlFieldReplace('system_type', __system_type__, url); +function RequestUrlHandle (url) { + // 增加系统参数 + return UrlFieldReplace('system_type', __system_type__, url); } /** @@ -2494,15 +2206,12 @@ function RequestUrlHandle(url) * @desc description * @param {string} url [url地址] */ -function UrlUseCurrentHostHandle(url) -{ +function UrlUseCurrentHostHandle (url) { var location = url.replace('://', '').indexOf('/'); - if(location != -1) - { - var first = url.substr(0, location+4); - if(__my_url__ != first) - { - url = __my_url__+url.substr(location+4); + if (location != -1) { + var first = url.substr(0, location + 4); + if (__my_url__ != first) { + url = __my_url__ + url.substr(location + 4); } } return url; @@ -2516,18 +2225,28 @@ function UrlUseCurrentHostHandle(url) * @date 2022-10-02 * @desc description */ -function SelectChosenInit() -{ - if($('select.chosen-select').length > 0) - { - $('select.chosen-select').chosen({ - inherit_select_classes: true, - enable_split_word_search: true, - search_contains: true, - no_results_text: window['lang_chosen_select_no_results_text'], - disable_search_threshold: 10 - }); - } +function SelectChosenInit () { + if ($('select.chosen-select').length > 0) { + $('select.chosen-select').chosen({ + inherit_select_classes: true, + enable_split_word_search: true, + search_contains: true, + no_results_text: window['lang_chosen_select_no_results_text'], + disable_search_threshold: 10 + }); + } +} + +/** + * 状态切换组件初始化 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2023-07-23 + * @desc description + */ +function SwitchInit () { + $('.switch-checkbox').bootstrapSwitch(); } /** @@ -2539,17 +2258,13 @@ function SelectChosenInit() * @desc description * @param {[object]} e [元素对象] */ -function CursorPos(e) -{ +function CursorPos (e) { var pos = 0; - if(typeof(e) == 'object') - { + if (typeof (e) == 'object') { var el = e.get(0); - if('selectionStart' in el) - { + if ('selectionStart' in el) { pos = el.selectionStart; - } else if('selection' in document) - { + } else if ('selection' in document) { el.focus(); var sel = document.selection.createRange(); var sel_len = document.selection.createRange().text.length; @@ -2569,10 +2284,8 @@ function CursorPos(e) * @desc description * @param {[string]} value [json字符串] */ -function JsonStringToJsonObject(value) -{ - if((value || null) != null && typeof(value) == 'string') - { +function JsonStringToJsonObject (value) { + if ((value || null) != null && typeof (value) == 'string') { value = eval('(' + value + ')'); } return value; @@ -2587,10 +2300,8 @@ function JsonStringToJsonObject(value) * @desc description * @param {[object]} value [json对象] */ -function JsonObjectToJsonString(value) -{ - if((value || null) != null && typeof(value) == 'object') - { +function JsonObjectToJsonString (value) { + if ((value || null) != null && typeof (value) == 'object') { value = JSON.stringify(value); } return value; @@ -2605,9 +2316,8 @@ function JsonObjectToJsonString(value) * @desc description * @param [string] content [展示的内容] */ -function PopoverContentHandle(content) -{ - return content.replace(new RegExp("\n", 'g'), '
    ').replace(new RegExp("\r", 'g'), '').replace(new RegExp("'", 'g'), '').replace(new RegExp('"', 'g'), ''); +function PopoverContentHandle (content) { + return content.replace(new RegExp("\n", 'g'), '
    ').replace(new RegExp("\r", 'g'), '').replace(new RegExp("'", 'g'), '').replace(new RegExp('"', 'g'), ''); } /** @@ -2619,28 +2329,24 @@ function PopoverContentHandle(content) * @desc description * @param {int} is_pdf [是否导出PDF(0否、1是)] */ -function DataPrintHandle(is_pdf = 0) -{ - // 打印和模板数据 - var print_data = window['print_data'] || null; - var print_template = window['print_template'] || null; - if(print_data == null || print_template == null) - { - Prompt(window['lang_operate_params_error'] || '操作参数有误'); - return false; - } +function DataPrintHandle (is_pdf = 0) { + // 打印和模板数据 + var print_data = window['print_data'] || null; + var print_template = window['print_template'] || null; + if (print_data == null || print_template == null) { + Prompt(window['lang_operate_params_error'] || '操作参数有误'); + return false; + } - // 需要打印的数据 + // 需要打印的数据 var result = []; - // 是否列表选择多选 - var print_is_list_choice = parseInt(window['print_is_list_choice'] || 0); - if(print_is_list_choice == 1) - { - // 获取数据id + // 是否列表选择多选 + var print_is_list_choice = parseInt(window['print_is_list_choice'] || 0); + if (print_is_list_choice == 1) { + // 获取数据id var values = FromTableCheckedValues('form_checkbox_value', '.am-table-scrollable-horizontal'); - if(values.length <= 0) - { + if (values.length <= 0) { Prompt(window['lang_before_choice_data_tips'] || '请先选择数据'); return false; } @@ -2648,42 +2354,37 @@ function DataPrintHandle(is_pdf = 0) // 获取需要打印的数据 var field = window['print_data_list_key'] || 'id'; print_data = JsonStringToJsonObject(print_data); - for(var i in print_data) - { - if((print_data[i][field] || null) != null && values.indexOf(print_data[i][field]) != -1) - { + for (var i in print_data) { + if ((print_data[i][field] || null) != null && values.indexOf(print_data[i][field]) != -1) { result.push(print_data[i]); } } - if(result.length == 0) - { - Prompt(window['lang_not_operate_error'] || '没有相关数据'); - return false; + if (result.length == 0) { + Prompt(window['lang_not_operate_error'] || '没有相关数据'); + return false; } - } else { - result = print_data; - } + } else { + result = print_data; + } - // 是否已引入hiprint库 - if((window['hiprint'] || null) == null) - { - Prompt(window['lang_not_load_lib_hiprint_error'] || '请先引入hiprint组件库'); - return false; - } + // 是否已引入hiprint库 + if ((window['hiprint'] || null) == null) { + Prompt(window['lang_not_load_lib_hiprint_error'] || '请先引入hiprint组件库'); + return false; + } // 初始化模板 - var ht = new hiprint.PrintTemplate({template: JsonStringToJsonObject(print_template)}); + var ht = new hiprint.PrintTemplate({ template: JsonStringToJsonObject(print_template) }); - // 是否导出pdf - if(is_pdf == 1) - { - // 导出pdf - var filename = $(this).data('file-name') || 'file-'+(new Date().getTime()); - ht.toPdf(result, filename); - } else { - // 调用打印组件 - ht.print(result, {}); - } + // 是否导出pdf + if (is_pdf == 1) { + // 导出pdf + var filename = $(this).data('file-name') || 'file-' + (new Date().getTime()); + ht.toPdf(result, filename); + } else { + // 调用打印组件 + ht.print(result, {}); + } } /** @@ -2695,86 +2396,73 @@ function DataPrintHandle(is_pdf = 0) * @desc description * @param {[object]} e [当前元素对象] */ -function InputClearOutHandle(e) -{ - var value = ''; - // input/textarea、排除非下拉搜索的input - if((e.is('input') || e.is('textarea')) && !e.parent().hasClass('chosen-search') && !e.parent().hasClass('search-field') && !e.parent().hasClass('am-selected-search')) - { - var status = e.attr('data-is-clearout'); - if(status == undefined || parseInt(status) == 1) - { - value = e.val(); - } - } - // 插件下拉选择组件 - if(e.parents('.chosen-container').length > 0 && !e.is('input')) - { - var status = e.parents('.chosen-container').prev().attr('data-is-clearout'); - if(status == undefined || parseInt(status) == 1) - { - value = e.parents('.chosen-container').prev().val(); - } - } - // 框架下拉选择组件 - if(e.parents('.am-selected').length > 0 && !e.is('input')) - { - var status = e.parents('.am-selected').prev().attr('data-is-clearout'); - if(status == undefined || parseInt(status) == 1) - { - value = e.parents('.am-selected').prev().val(); - } - } - // 值不为空或undefined - if(value !== '' && value !== undefined && value !== null) - { - if( - ((e.is('input') || e.is('textarea')) && e.attr('disabled') != 'disabled' && e.attr('readonly') != 'readonly') || - (e.parents('.chosen-container').length > 0 && !e.is('input')) || - (e.parents('.am-selected').length > 0 && !e.is('input')) - ) - { - // 添加清除按钮 - if(!e.next().is('a.input-clearout-submit')) - { - e.after('×'); - } - // 清除按钮位置处理 - var scroll_top = $(document).scrollTop(); - var top = e.offset().top-scroll_top; - var left = e.offset().left; - var width = e.innerWidth(); - var height = e.innerHeight(); +function InputClearOutHandle (e) { + var value = ''; + // input/textarea、排除非下拉搜索的input + if ((e.is('input') || e.is('textarea')) && !e.parent().hasClass('chosen-search') && !e.parent().hasClass('search-field') && !e.parent().hasClass('am-selected-search')) { + var status = e.attr('data-is-clearout'); + if (status == undefined || parseInt(status) == 1) { + value = e.val(); + } + } + // 插件下拉选择组件 + if (e.parents('.chosen-container').length > 0 && !e.is('input')) { + var status = e.parents('.chosen-container').prev().attr('data-is-clearout'); + if (status == undefined || parseInt(status) == 1) { + value = e.parents('.chosen-container').prev().val(); + } + } + // 框架下拉选择组件 + if (e.parents('.am-selected').length > 0 && !e.is('input')) { + var status = e.parents('.am-selected').prev().attr('data-is-clearout'); + if (status == undefined || parseInt(status) == 1) { + value = e.parents('.am-selected').prev().val(); + } + } + // 值不为空或undefined + if (value !== '' && value !== undefined && value !== null) { + if ( + ((e.is('input') || e.is('textarea')) && e.attr('disabled') != 'disabled' && e.attr('readonly') != 'readonly') || + (e.parents('.chosen-container').length > 0 && !e.is('input')) || + (e.parents('.am-selected').length > 0 && !e.is('input')) + ) { + // 添加清除按钮 + if (!e.next().is('a.input-clearout-submit')) { + e.after('×'); + } + // 清除按钮位置处理 + var scroll_top = $(document).scrollTop(); + var top = e.offset().top - scroll_top - 3; // 解决清除按钮位置偏下的问题 + var left = e.offset().left; + var width = e.innerWidth(); + var height = e.innerHeight(); - // 存在弹窗则减去弹窗的外边距 - if(e.parents('.am-popup').length > 0) - { - var offset = e.parents('.am-popup').offset(); - top -= offset.top; - left -= offset.left; - } - // 存在tabs - if(e.parents('.am-tab-panel').length > 0) - { - var offset = e.parents('.am-tab-panel').offset(); - left -= offset.left; - top = (scroll_top > 0) ? (scroll_top+top)-offset.top : top-offset.top; - } + // 存在弹窗则减去弹窗的外边距 + if (e.parents('.am-popup').length > 0) { + var offset = e.parents('.am-popup').offset(); + top -= offset.top; + left -= offset.left; + } + // 存在tabs + if (e.parents('.am-tab-panel').length > 0) { + var offset = e.parents('.am-tab-panel').offset(); + left -= offset.left; + top = (scroll_top > 0) ? (scroll_top + top) - offset.top : top - offset.top; + } - // 设置位置 - e.next().css({'left':(left+width-23)+'px', 'top':(top+1)+'px', 'padding': (((height-14)/2)-0.1)+'px 5px'}); - e.addClass('input-clearout-element'); + // 设置位置 + e.next().css({ 'left': (left + width - 23) + 'px', 'top': (top + 4) + 'px', 'padding': (((height - 14) / 2) - 0.1) + 'px 5px' }); + e.addClass('input-clearout-element'); - return false; - } - } else { - // 无数据、存在清除按钮则移除 - if(e.next().is('a.input-clearout-submit')) - { - e.next().remove(); - e.removeClass('input-clearout-element'); - } - } + return false; + } + } else { + // 无数据、存在清除按钮则移除 + if (e.next().is('a.input-clearout-submit')) { + e.next().remove(); + e.removeClass('input-clearout-element'); + } + } } /** @@ -2785,49 +2473,41 @@ function InputClearOutHandle(e) * @date 2022-11-23 * @desc description */ -function ColorPickerInit() -{ - // 颜色选择器 - if($('.colorpicker-submit').length > 0) - { - $('.colorpicker-submit').each(function(k, v) - { - if(parseInt($(this).attr('data-is-init') || 0) == 0) - { - $(this).colorpicker( - { - target: $(this), - fillcolor: true, - success: function(o, color) - { - var style_arr = (o.context.dataset.colorStyle || 'color').split('|'); - var style_value = {}; - for(var i in style_arr) - { - style_value[style_arr[i]] = color; - } - $(o.context.dataset.inputTag).css(style_value); - $(o.context.dataset.colorTag).val(color); - $(o.context.dataset.colorTag).trigger('change'); - }, - reset: function(o) - { - var color = ''; - var style_arr = (o.context.dataset.colorStyle || 'color').split('|'); - var style_value = {}; - for(var i in style_arr) - { - style_value[style_arr[i]] = color; - } - $(o.context.dataset.inputTag).css(style_value); - $(o.context.dataset.colorTag).val(color); - $(o.context.dataset.colorTag).trigger('change'); - } - }); - $(this).attr('data-is-init', 1); - } - }); - } +function ColorPickerInit () { + // 颜色选择器 + if ($('.colorpicker-submit').length > 0) { + $('.colorpicker-submit').each(function (k, v) { + if (parseInt($(this).attr('data-is-init') || 0) == 0) { + $(this).colorpicker( + { + target: $(this), + fillcolor: true, + success: function (o, color) { + var style_arr = (o.context.dataset.colorStyle || 'color').split('|'); + var style_value = {}; + for (var i in style_arr) { + style_value[style_arr[i]] = color; + } + $(o.context.dataset.inputTag).css(style_value); + $(o.context.dataset.colorTag).val(color); + $(o.context.dataset.colorTag).trigger('change'); + }, + reset: function (o) { + var color = ''; + var style_arr = (o.context.dataset.colorStyle || 'color').split('|'); + var style_value = {}; + for (var i in style_arr) { + style_value[style_arr[i]] = color; + } + $(o.context.dataset.inputTag).css(style_value); + $(o.context.dataset.colorTag).val(color); + $(o.context.dataset.colorTag).trigger('change'); + } + }); + $(this).attr('data-is-init', 1); + } + }); + } } /** @@ -2838,22 +2518,19 @@ function ColorPickerInit() * @date 2018-12-14 * @desc description */ -function CommonGoodsChoiceSpecDetail() -{ +function CommonGoodsChoiceSpecDetail () { // 是否全部选中 var $spec = $('.common-goods-spec-choice-content'); var sku_count = $spec.find('.sku-items').length; var active_count = $spec.find('.sku-items li.selected').length; - if(active_count < sku_count) - { + if (active_count < sku_count) { return false; } // 获取规格值 var spec = []; - $spec.find('.sku-items li.selected').each(function(k, v) - { - spec.push({"type": $(this).data('type-value'), "value": $(this).data('value')}) + $spec.find('.sku-items li.selected').each(function (k, v) { + spec.push({ "type": $(this).data('type-value'), "value": $(this).data('value') }) }); // ajax请求 @@ -2863,17 +2540,14 @@ function CommonGoodsChoiceSpecDetail() type: 'post', dataType: 'json', timeout: 10000, - data: {"id": $spec.data('id'), "spec": spec}, - success: function(result) - { + data: { "id": $spec.data('id'), "spec": spec }, + success: function (result) { $.AMUI.progress.done(); - if(result.code != 0) - { + if (result.code != 0) { Prompt(result.msg); } }, - error: function(xhr, type) - { + error: function (xhr, type) { $.AMUI.progress.done(); Prompt(HtmlToString(xhr.responseText) || '异常错误', null, 30); } @@ -2888,22 +2562,19 @@ function CommonGoodsChoiceSpecDetail() * @date 2018-12-14 * @desc description */ -function CommonGoodsChoiceSpecType() -{ +function CommonGoodsChoiceSpecType () { // 是否全部选中 var $spec = $('.common-goods-spec-choice-content'); var sku_count = $spec.find('.sku-items').length; var active_count = $spec.find('.sku-items li.selected').length; - if(active_count <= 0 || active_count >= sku_count) - { + if (active_count <= 0 || active_count >= sku_count) { return false; } // 获取规格值 var spec = []; - $spec.find('.sku-items li.selected').each(function(k, v) - { - spec.push({"type": $(this).data('type-value'), "value": $(this).data('value')}) + $spec.find('.sku-items li.selected').each(function (k, v) { + spec.push({ "type": $(this).data('type-value'), "value": $(this).data('value') }) }); // ajax请求 @@ -2913,22 +2584,17 @@ function CommonGoodsChoiceSpecType() type: 'post', dataType: 'json', timeout: 10000, - data: {"id": $spec.data('id'), "spec": spec}, - success: function(result) - { + data: { "id": $spec.data('id'), "spec": spec }, + success: function (result) { $.AMUI.progress.done(); - if(result.code == 0) - { + if (result.code == 0) { var spec_count = spec.length; var index = (spec_count > 0) ? spec_count : 0; - if(index < sku_count) - { - $spec.find('.sku-items').eq(index).find('li').each(function(k, v) - { + if (index < sku_count) { + $spec.find('.sku-items').eq(index).find('li').each(function (k, v) { $(this).removeClass('sku-dont-choose'); var value = $(this).data('value').toString(); - if(result.data.spec_type.indexOf(value) == -1) - { + if (result.data.spec_type.indexOf(value) == -1) { $(this).addClass('sku-items-disabled'); } else { $(this).removeClass('sku-items-disabled'); @@ -2939,8 +2605,7 @@ function CommonGoodsChoiceSpecType() Prompt(result.msg); } }, - error: function(xhr, type) - { + error: function (xhr, type) { $.AMUI.progress.done(); Prompt(HtmlToString(xhr.responseText) || '异常错误', null, 30); } @@ -2955,20 +2620,39 @@ function CommonGoodsChoiceSpecType() * @date 2023-01-09 * @desc description */ -function ViewQrCodeInit() -{ - $('.view-qrcode-init').each(function() - { - var text = $(this).text(); - if(text !== '') - { - $(this).empty().qrcode({ - text: text, - width: parseInt($(this).data('width') || 100), - height: parseInt($(this).data('height') || 100) - }); - } - }); +function ViewQrCodeInit () { + $('.view-qrcode-init').each(function () { + var text = $(this).text(); + if (text !== '') { + $(this).empty().qrcode({ + text: text, + width: parseInt($(this).data('width') || 100), + height: parseInt($(this).data('height') || 100) + }); + } + }); +} + +/** + * 标签title属性初始化 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2023-07-22 + * @desc description + */ +function ViewDocumentTitleInit () { + $('*').each(function (k, v) { + var title = $(this).attr('title') || null; + if (title !== null) { + $(this).popover({ + content: title, + trigger: 'hover focus', + theme: 'sm' + }); + $(this).removeAttr('title'); + } + }); } /** @@ -2980,17 +2664,15 @@ function ViewQrCodeInit() * @desc description * @param {[object]} e [弹窗头对象] */ -function PopupWindowSizeHandle(e) -{ - var $parent = e.parents('.am-popup'); - if($parent.hasClass('popup-full')) - { - $parent.removeClass('popup-full').css({left: $parent.attr('data-original-left') || 0, top: $parent.attr('data-original-top') || 0}); - } else { - $parent.attr('data-original-left', $parent.css('left')); - $parent.attr('data-original-top', $parent.css('top')); - $parent.addClass('popup-full').css({left: 0, top: 0}); - } +function PopupWindowSizeHandle (e) { + var $parent = e.parents('.am-popup'); + if ($parent.hasClass('popup-full')) { + $parent.removeClass('popup-full').css({ left: $parent.attr('data-original-left') || 0, top: $parent.attr('data-original-top') || 0 }); + } else { + $parent.attr('data-original-left', $parent.css('left')); + $parent.attr('data-original-top', $parent.css('top')); + $parent.addClass('popup-full').css({ left: 0, top: 0 }); + } } /** @@ -3002,36 +2684,75 @@ function PopupWindowSizeHandle(e) * @desc description * @param {[string]} value [自定义url信息] */ -function CustomUrlOpenHandle(value) -{ - if((value || null) != null) - { - // 地图协议 - if(value.substr(0, 6) == 'map://') - { - var values = value.substr(6).split('|'); - if (values.length == 4) - { - // 拼接地图地址、并调用弹窗方法 - ModalLoad(UrlFieldReplace('lat', values[3], UrlFieldReplace('lng', values[2], __map_view_url__))); - } +function CustomUrlOpenHandle (value) { + if ((value || null) != null) { + // 地图协议 + if (value.substr(0, 6) == 'map://') { + var values = value.substr(6).split('|'); + if (values.length == 4) { + // 拼接地图地址、并调用弹窗方法 + ModalLoad(UrlFieldReplace('lat', values[3], UrlFieldReplace('lng', values[2], __map_view_url__))); + } - // 电话协议 - } else if(value.substr(0, 6) == 'tel://') - { - window.location.href = value; + // 电话协议 + } else if (value.substr(0, 6) == 'tel://') { + window.location.href = value; - // 默认新标签跳转页面 + // 默认新标签跳转页面 } else { - window.open(value, '_blank'); + window.open(value, '_blank'); } } } +/** + * 表格数据模块初始化 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2023-07-04 + * @desc description + */ +function FormTableContentModuleInit () { + // 列表数据容器 + var $obj = $('.am-table-scrollable-horizontal'); + + // 动态列表数据初始化 + FormTableContainerInit(); + + // 二维码初始化 + ViewQrCodeInit(); + + // 标签title属性初始化 + ViewDocumentTitleInit(); + + // 图片预览初始化 + $.AMUI.figure.init(); + // 图片画廊初始化 + $.AMUI.gallery.init(); + + // 其他模块 + $obj.find('*').each(function (k, v) { + // 单选、多选组建初始化 + if ($(this).attr('data-am-ucheck') !== undefined) { + $(this).uCheck(); + } + + // 弹窗提示框 + if ($(this).attr('data-am-popover') !== undefined) { + $(this).popover(); + } + + // 下拉组建 + if ($(this).attr('data-am-dropdown') !== undefined) { + $(this).dropdown(); + } + }); +} + // 公共数据操作 -$(function() -{ +$(function () { // 表格初始化 FormTableContainerInit(); @@ -3041,94 +2762,89 @@ $(function() // 二维码初始化 ViewQrCodeInit(); - // 表格字段数据排序 - $('.form-sort-container .sort-icon').on('click', function() - { - var key = $(this).data('key') || null; - var val = $(this).data('val') || null; - if(key == null || val == null) - { - Prompt(window['lang_operate_params_error'] || '排序数据值有误'); - return false; - } + // 标签title属性初始化 + ViewDocumentTitleInit(); - // 赋值并搜索 - var $parent = $(this).parents('form.form-validation-search'); - $parent.find('input[name="fp_order_by_key"]').val(key); - $parent.find('input[name="fp_order_by_val"]').val(val); - $parent.find('button[type="submit"]').trigger('click'); + // 表格字段数据排序 + $('.form-sort-container .sort-icon').on('click', function () { + var key = $(this).data('key') || null; + var val = $(this).data('val') || null; + if (key == null || val == null) { + Prompt(window['lang_operate_params_error'] || '排序数据值有误'); + return false; + } + + // 选中 + $(this).addClass('sort-active').siblings('a').removeClass('sort-active'); + + // 赋值并搜索 + var $parent = $(this).parents('form.form-validation-search'); + $parent.find('input[name="fp_order_by_key"]').val(key); + $parent.find('input[name="fp_order_by_val"]').val(val); + $parent.find('button[type="submit"]').trigger('click'); }); // 表格字显示段拖拽排序 - if($('ul.form-table-fields-content-container').length > 0) - { - $('ul.form-table-fields-content-container').dragsort({ dragSelector: 'li', placeHolderTemplate: '
  • '}); + if ($('ul.form-table-fields-content-container').length > 0) { + $('ul.form-table-fields-content-container').dragsort({ dragSelector: 'li', placeHolderTemplate: '
  • ' }); } // 表格字段选择确认 - $('.form-table-field-confirm-submit').on('click', function() - { - // 获取复选框选中的值 - var fields = []; - $('.form-table-fields-list-container').find('input[name="form_field_checkbox_value"]').each(function(key, tmp) - { - fields.push({ - "label": tmp.value, - "checked": $(this).is(':checked') ? 1 : 0 - }); - }); + $('.form-table-field-confirm-submit').on('click', function () { + // 获取复选框选中的值 + var fields = []; + $('.form-table-fields-list-container').find('input[name="form_field_checkbox_value"]').each(function (key, tmp) { + fields.push({ + label: $(this).data('original-name'), + key: $(this).val(), + checked: $(this).is(':checked') ? 1 : 0 + }); + }); - // 是否有选择的数据 - if(fields.length <= 0) - { - Prompt(window['lang_before_choice_data_tips'] || '请先选择数据'); - return false; - } + // 是否有选择的数据 + if (fields.length <= 0) { + Prompt(window['lang_before_choice_data_tips'] || '请先选择数据'); + return false; + } - // 表单唯一md5key - var md5_key = $('.am-table-scrollable-horizontal').data('md5-key') || ''; + // 表单唯一md5key + var md5_key = $('.am-table-scrollable-horizontal').data('md5-key') || ''; - // ajax请求操作 - var $button = $(this); - $button.button('loading'); - $.AMUI.progress.start(); - $.ajax({ - url: RequestUrlHandle($button.data('url')), - type: 'POST', - dataType: 'json', - data: {"fields": fields, "md5_key": md5_key}, - success: function(result) - { - $.AMUI.progress.done(); - if(result.code == 0) - { - Prompt(result.msg, 'success'); - setTimeout(function() - { - window.location.reload(); - }, 1500); - - } else { - $button.button('reset'); - Prompt(result.msg); - } - }, - error: function(xhr, type) - { - $.AMUI.progress.done(); - $button.button('reset'); - Prompt(HtmlToString(xhr.responseText) || (window['lang_error_text'] || '异常错误'), null, 30); - } - }); + // ajax请求操作 + var $button = $(this); + $button.button('loading'); + $.AMUI.progress.start(); + $.ajax({ + url: RequestUrlHandle($button.data('url')), + type: 'POST', + dataType: 'json', + data: { "fields": fields, "md5_key": md5_key }, + success: function (result) { + $.AMUI.progress.done(); + if (result.code == 0) { + Prompt(result.msg, 'success'); + setTimeout(function () { + window.location.reload(); + }, 1500); + + } else { + $button.button('reset'); + Prompt(result.msg); + } + }, + error: function (xhr, type) { + $.AMUI.progress.done(); + $button.button('reset'); + Prompt(HtmlToString(xhr.responseText) || (window['lang_error_text'] || '异常错误'), null, 30); + } + }); }); // 表格字段复选框操作 全选/反选 - $('.form-table-field-checkbox-submit').on('click', function() - { - var value = parseInt($(this).attr('data-value')) || 0; - if(value == 1) - { - var not_checked_text = $(this).data('not-checked-text') || window['lang_select_all_name'] || '全选'; + $('.form-table-field-checkbox-submit').on('click', function () { + var value = parseInt($(this).attr('data-value')) || 0; + if (value == 1) { + var not_checked_text = $(this).data('not-checked-text') || window['lang_select_all_name'] || '全选'; $(this).text(not_checked_text); $('.form-table-fields-list-container ul li').find('input[type="checkbox"]').uCheck('uncheck'); } else { @@ -3140,12 +2856,10 @@ $(function() }); // 表格复选框操作 全选/反选 - $('.form-table-operate-checkbox-submit').on('click', function() - { - var value = parseInt($(this).attr('data-value')) || 0; - if(value == 1) - { - var not_checked_text = $(this).data('not-checked-text') || window['lang_select_all_name'] || '全选'; + $('.form-table-operate-checkbox-submit').on('click', function () { + var value = parseInt($(this).attr('data-value')) || 0; + if (value == 1) { + var not_checked_text = $(this).data('not-checked-text') || window['lang_select_all_name'] || '全选'; $(this).text(not_checked_text); $('.form-table-operate-checkbox').find('input[type="checkbox"]').uCheck('uncheck'); } else { @@ -3156,899 +2870,840 @@ $(function() $(this).attr('data-value', value == 1 ? 0 : 1); }); + // 表格公共搜索操作 + $('.form-table-operate-top-search-submit').on('click', function () { + // 表单数据 + var element = 'form.form-validation-search'; + var $form = $(element); + var action = $form.attr('action'); + var data = GetFormVal(element, true); + + // 改变浏览器url地址 + var browser_url = action; + var pv = ''; + for (var i in data) { + if (data[i] != undefined && data[i] != '') { + pv += i + '=' + encodeURIComponent(data[i]) + '&'; + } + } + if (pv != '') { + var join = (browser_url.indexOf('?') >= 0) ? '&' : '?'; + browser_url += join + pv.substr(0, pv.length - 1); + } + history.pushState({}, '', browser_url); + + // ajax请求操作 + $.AMUI.progress.start(); + $.ajax({ + url: RequestUrlHandle(action), + type: 'POST', + dataType: "json", + timeout: $form.data('timeout') || 60000, + data: data, + success: function (result) { + $.AMUI.progress.done(); + // 截取数据并渲染 + var arr = [ + { + start: '', + end: '', + element: '.form-table-content .am-table-scrollable-horizontal > .am-table > tbody' + }, + { + start: '', + end: '', + element: '.form-table-content .am-table-scrollable-horizontal > .form-table-no-data' + }, + { + start: '', + end: '', + element: '.form-table-content > .form-table-operate-page' + } + ]; + arr.forEach((v) => { + var start_number = result.indexOf(v.start); + var end_number = result.indexOf(v.end); + $(v.element).html(result.substring(start_number, end_number + v.end.length)); + }); + + // 表格数据模块初始化 + FormTableContentModuleInit(); + }, + error: function (xhr, type) { + $.AMUI.progress.done(); + Prompt(HtmlToString(xhr.responseText) || (window['lang_error_text'] || '异常错误'), null, 30); + } + }); + + return false; + }); + // 表格公共删除操作 - $('.form-table-operate-top-delete-submit').on('click', function() - { - // 请求 url - var url = $(this).data('url') || null; - if(url == null) - { - Prompt(window['lang_operate_params_error'] || 'url参数有误'); - return false; - } + $('.form-table-operate-top-delete-submit').on('click', function () { + // 请求 url + var url = $(this).data('url') || null; + if (url == null) { + Prompt(window['lang_operate_params_error'] || 'url参数有误'); + return false; + } - // form name 名称 - var form = $(this).data('form') || null; - if(form == null) - { - Prompt(window['lang_operate_params_error'] || 'form参数有误'); - return false; - } + // form name 名称 + var form = $(this).data('form') || null; + if (form == null) { + Prompt(window['lang_operate_params_error'] || 'form参数有误'); + return false; + } - // 是否有选择的数据 - var values = FromTableCheckedValues(form, '.am-table-scrollable-horizontal'); - if(values.length <= 0) - { - Prompt(window['lang_before_choice_data_tips'] || '请先选中数据'); - return false; - } + // 是否有选择的数据 + var values = FromTableCheckedValues(form, '.am-table-scrollable-horizontal'); + if (values.length <= 0) { + Prompt(window['lang_before_choice_data_tips'] || '请先选中数据'); + return false; + } - // 提交字段名称|超时时间|标题|描述 - var key = $(this).data('key') || form; - var timeout = $(this).data('timeout') || 60000; - var title = $(this).data('confirm-title') || window['lang_reminder_title'] || '温馨提示'; - var msg = $(this).data('confirm-msg') || window['lang_delete_confirm_tips'] || '删除后不可恢复、确认操作吗?'; + // 提交字段名称|超时时间|标题|描述 + var key = $(this).data('key') || form; + var timeout = $(this).data('timeout') || 60000; + var title = $(this).data('confirm-title') || window['lang_reminder_title'] || '温馨提示'; + var msg = $(this).data('confirm-msg') || window['lang_delete_confirm_tips'] || '删除后不可恢复、确认操作吗?'; - // 再次确认 - AMUI.dialog.confirm({ - title: title, - content: msg, - onConfirm: function(result) - { - // 数组转对象 - var data = {}; - data[key] = {}; - for(var i in values) - { - data[key][i] = values[i]; - } + // 再次确认 + AMUI.dialog.confirm({ + title: title, + content: msg, + onConfirm: function (result) { + // 数组转对象 + var data = {}; + data[key] = {}; + for (var i in values) { + data[key][i] = values[i]; + } - // ajax请求操作 - $.AMUI.progress.start(); - $.ajax({ - url: RequestUrlHandle(url), - type: 'POST', - dataType: "json", - timeout: timeout, - data: data, - success: function(result) - { - $.AMUI.progress.done(); - if(result.code == 0) - { - // 成功则删除数据列表 - Prompt(result.msg, 'success'); - for(var i in values) - { - $('#data-list-'+values[i]).remove(); - } - } else { - Prompt(result.msg); - } - }, - error: function(xhr, type) - { - $.AMUI.progress.done(); - Prompt(HtmlToString(xhr.responseText) || (window['lang_error_text'] || '异常错误'), null, 30); - } - }); - }, - onCancel: function(){} - }); + // ajax请求操作 + $.AMUI.progress.start(); + $.ajax({ + url: RequestUrlHandle(url), + type: 'POST', + dataType: "json", + timeout: timeout, + data: data, + success: function (result) { + $.AMUI.progress.done(); + if (result.code == 0) { + // 成功则删除数据列表 + Prompt(result.msg, 'success'); + for (var i in values) { + $('#data-list-' + values[i]).remove(); + } + } else { + Prompt(result.msg); + } + }, + error: function (xhr, type) { + $.AMUI.progress.done(); + Prompt(HtmlToString(xhr.responseText) || (window['lang_error_text'] || '异常错误'), null, 30); + } + }); + }, + onCancel: function () { } + }); }); // 表格公共excel导出操作 - $('.form-table-operate-top-export-excel-submit').on('click', function() - { - // 表单基础 - var form_name = 'form.form-validation-search'; - var $form = $(form_name); - var request_value = $form.attr('request-value') || null; - if(request_value == null) - { - // 不存在表单则直接使用当前地址 - request_value = window.open(UrlFieldReplace('form_table_is_export_excel', 1)); - } else { - // 拼接参数 - var params = GetFormVal(form_name, true); - var pv = 'form_table_is_export_excel=1&'; - for(var i in params) - { - if(params[i] != undefined && params[i] != '') - { - pv += i+'='+encodeURIComponent(params[i])+'&'; - } - } - var join = (request_value.indexOf('?') >= 0) ? '&' : '?'; - request_value += join+pv.substr(0, pv.length-1); - } - window.open(request_value); + $('.form-table-operate-top-export-excel-submit').on('click', function () { + // 表单基础 + var form_name = 'form.form-validation-search'; + var $form = $(form_name); + var request_value = $form.attr('request-value') || null; + if (request_value == null) { + // 不存在表单则直接使用当前地址 + request_value = window.open(UrlFieldReplace('form_table_is_export_excel', 1)); + } else { + // 拼接参数 + var params = GetFormVal(form_name, true); + var pv = 'form_table_is_export_excel=1&'; + for (var i in params) { + if (params[i] != undefined && params[i] != '') { + pv += i + '=' + encodeURIComponent(params[i]) + '&'; + } + } + var join = (request_value.indexOf('?') >= 0) ? '&' : '?'; + request_value += join + pv.substr(0, pv.length - 1); + } + window.open(request_value); }); // 表格公共excel导出操作 - $(document).on('click', '.form-table-operate-top-data-print-submit,.common-print-submit', function() - { - DataPrintHandle($(this).data('is-pdf')); + $(document).on('click', '.form-table-operate-top-data-print-submit,.common-print-submit', function () { + DataPrintHandle($(this).data('is-pdf')); }); // 表格内部表格伸缩事件 - $(document).on('click', '.form-inside-stretch-submit > a', function() - { - var $container = $(this).parents('.form-inside-table-container'); - var $layer = $container.find('.form-inside-table-layer'); - var open_text = $(this).data('open-text') || null; - var close_text = $(this).data('close-text') || null; - if($layer.hasClass('form-inside-table-layer-auto')) - { - $layer.removeClass('form-inside-table-layer-auto'); - $(this).removeClass('am-icon-angle-double-up').addClass('am-icon-angle-double-down'); - if(open_text != null) - { - $(this).text(' '+open_text); - } - } else { - $layer.addClass('form-inside-table-layer-auto'); - $(this).addClass('am-icon-angle-double-up').removeClass('am-icon-angle-double-down'); - if(close_text != null) - { - $(this).text(' '+close_text); - } - } + $(document).on('click', '.form-inside-stretch-submit > a', function () { + var $container = $(this).parents('.form-inside-table-container'); + var $layer = $container.find('.form-inside-table-layer'); + var open_text = $(this).data('open-text') || null; + var close_text = $(this).data('close-text') || null; + if ($layer.hasClass('form-inside-table-layer-auto')) { + $layer.removeClass('form-inside-table-layer-auto'); + $(this).removeClass('am-icon-angle-double-up').addClass('am-icon-angle-double-down'); + if (open_text != null) { + $(this).text(' ' + open_text); + } + } else { + $layer.addClass('form-inside-table-layer-auto'); + $(this).addClass('am-icon-angle-double-up').removeClass('am-icon-angle-double-down'); + if (close_text != null) { + $(this).text(' ' + close_text); + } + } }); // 页面加载loading - if($('.am-page-loading').length > 0) - { - $('.am-page-loading').fadeOut(800); - } + if ($('.am-page-loading').length > 0) { + $('.am-page-loading').fadeOut(800); + } - // 全屏操作 - $('.fullscreen-event').on('click', function() - { - var status = $(this).attr('data-status') || 0; - if(status == 0) - { - if(FullscreenOpen()) - { - $(this).find('.fullscreen-text').text($(this).attr('data-fulltext-exit') || window['lang_fullscreen_exit_name'] || '退出全屏'); - } - } else { - if(FullscreenExit()) - { - $(this).find('.fullscreen-text').text($(this).attr('data-fulltext-open') || window['lang_fullscreen_open_name'] || '开启全屏'); - } - } - $(this).attr('data-status', status == 0 ? 1 : 0); - $(this).attr('data-status-y', status); - }); - - // esc退出全屏事件 - document.addEventListener("fullscreenchange", function(e) { - FullscreenEscEvent(); - }); - document.addEventListener("mozfullscreenchange", function(e) { - FullscreenEscEvent(); - }); - document.addEventListener("webkitfullscreenchange", function(e) { - FullscreenEscEvent(); - }); - document.addEventListener("msfullscreenchange", function(e) { - FullscreenEscEvent(); - }); + // 全屏操作 + $('.fullscreen-event').on('click', function () { + var status = $(this).attr('data-status') || 0; + if (status == 0) { + if (FullscreenOpen()) { + $(this).find('.fullscreen-text').text($(this).attr('data-fulltext-exit') || window['lang_fullscreen_exit_name'] || '退出全屏'); + } + } else { + if (FullscreenExit()) { + $(this).find('.fullscreen-text').text($(this).attr('data-fulltext-open') || window['lang_fullscreen_open_name'] || '开启全屏'); + } + } + $(this).attr('data-status', status == 0 ? 1 : 0); + $(this).attr('data-status-y', status); + }); + + // esc退出全屏事件 + document.addEventListener("fullscreenchange", function (e) { + FullscreenEscEvent(); + }); + document.addEventListener("mozfullscreenchange", function (e) { + FullscreenEscEvent(); + }); + document.addEventListener("webkitfullscreenchange", function (e) { + FullscreenEscEvent(); + }); + document.addEventListener("msfullscreenchange", function (e) { + FullscreenEscEvent(); + }); - // 下拉选择组件初始化 - SelectChosenInit(); + // 下拉选择组件初始化 + SelectChosenInit(); - // 多选插件 空内容失去焦点验证bug兼容处理 - $(document).on('blur', 'ul.chosen-choices .search-field, div.chosen-select .chosen-search', function() - { - if($(this).parent().find('li').length <= 1 || $(this).parent().parent().find('.chosen-default').length >= 1) - { - $(this).parent().parent().prev().trigger('blur'); - } - }); - // 多选插件分组支持组单选 - $(document).on('click', '.chosen-container-multi .chosen-results li', function() - { - var $chosen = $(this).parents('.chosen-container'); - var is_group_single = parseInt($chosen.prev().data('group-single') || 0); - if(is_group_single == 1 && !$(this).hasClass('group-result')) - { - var index = $(this).index(); - var $parent = $(this).parent(); - var count = $parent.find('li').length; - var arr = []; - // 获取前面选中的数据 - var temp_index = index-1; - while(temp_index != 0) - { - var $li = $parent.find('li').eq(temp_index); - if($li.hasClass('group-result')) - { - break; - } - if($li.hasClass('result-selected')) - { - var value = $li.attr('data-option-array-index') || null; - if(value != null) - { - arr.push(value); - } - } - temp_index--; - } - // 获取后面选中的数据 - temp_index = index+1; - while(temp_index < count) - { - var $li = $parent.find('li').eq(temp_index); - if($li.hasClass('group-result')) - { - break; - } - if($li.hasClass('result-selected')) - { - var value = $li.attr('data-option-array-index') || null; - if(value != null) - { - arr.push(value); - } - } - temp_index++; - } - if(arr.length > 0) - { - $chosen.find('.chosen-choices li').each(function(k, v) - { - var $a = $(this).find('a.search-choice-close'); - var value = $a.attr('data-option-array-index'); - if(arr.indexOf(value) != -1) - { - $a.trigger('click'); - } - }); - } - } - }); - - /** - * 删除数据列表 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-10T14:22:39+0800 - * @param {[int] [data-id] [数据id]} - * @param {[string] [data-url] [请求地址]} - */ - $(document).on('click', '.submit-delete', function() - { - ConfirmDataDelete($(this)); - }); + // 多选插件 空内容失去焦点验证bug兼容处理 + $(document).on('blur', 'ul.chosen-choices .search-field, div.chosen-select .chosen-search', function () { + if ($(this).parent().find('li').length <= 1 || $(this).parent().parent().find('.chosen-default').length >= 1) { + $(this).parent().parent().prev().trigger('blur'); + } + }); + // 多选插件分组支持组单选 + $(document).on('click', '.chosen-container-multi .chosen-results li', function () { + var $chosen = $(this).parents('.chosen-container'); + var is_group_single = parseInt($chosen.prev().data('group-single') || 0); + if (is_group_single == 1 && !$(this).hasClass('group-result')) { + var index = $(this).index(); + var $parent = $(this).parent(); + var count = $parent.find('li').length; + var arr = []; + // 获取前面选中的数据 + var temp_index = index - 1; + while (temp_index != 0) { + var $li = $parent.find('li').eq(temp_index); + if ($li.hasClass('group-result')) { + break; + } + if ($li.hasClass('result-selected')) { + var value = $li.attr('data-option-array-index') || null; + if (value != null) { + arr.push(value); + } + } + temp_index--; + } + // 获取后面选中的数据 + temp_index = index + 1; + while (temp_index < count) { + var $li = $parent.find('li').eq(temp_index); + if ($li.hasClass('group-result')) { + break; + } + if ($li.hasClass('result-selected')) { + var value = $li.attr('data-option-array-index') || null; + if (value != null) { + arr.push(value); + } + } + temp_index++; + } + if (arr.length > 0) { + $chosen.find('.chosen-choices li').each(function (k, v) { + var $a = $(this).find('a.search-choice-close'); + var value = $a.attr('data-option-array-index'); + if (arr.indexOf(value) != -1) { + $a.trigger('click'); + } + }); + } + } + }); - /** - * 公共数据状态操作 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-10T14:22:39+0800 - * @param {[int] [data-id] [数据id]} - * @param {[int] [data-state][状态值]} - * @param {[string] [data-url] [请求地址]} - */ - $(document).on('click', '.submit-state', function() - { - // 获取参数 - var $this = $(this); - var id = $this.attr('data-id'); - var state = ($this.attr('data-state') == 1) ? 0 : 1; - var url = $this.attr('data-url'); - var field = $this.attr('data-field') || ''; - var is_update_status = $this.attr('data-is-update-status') || 0; - var is_loading = parseInt($this.attr('data-is-loading') || 0); - var loading_msg = $this.attr('data-loading-msg') || window['lang_request_handle_loading_tips'] || '正在处理中、请稍候...'; - if(id == undefined || url == undefined) - { - Prompt(window['lang_params_error_tips'] || '参数配置有误'); - return false; - } + /** + * 删除数据列表 + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-10T14:22:39+0800 + * @param {[int] [data-id] [数据id]} + * @param {[string] [data-url] [请求地址]} + */ + $(document).on('click', '.submit-delete', function () { + ConfirmDataDelete($(this)); + }); - // 弹层加载 - if(is_loading == 1) - { - AMUI.dialog.loading({title: loading_msg}); - } + /** + * 公共数据状态操作 + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-10T14:22:39+0800 + * @param {[int] [data-id] [数据id]} + * @param {[int] [data-state][状态值]} + * @param {[string] [data-url] [请求地址]} + */ + $(document).on('click', '.submit-state', function () { + // 获取参数 + var $this = $(this); + var id = $this.attr('data-id'); + var state = ($this.attr('data-state') == 1) ? 0 : 1; + var url = $this.attr('data-url'); + var field = $this.attr('data-field') || ''; + var is_update_status = $this.attr('data-is-update-status') || 0; + var is_loading = parseInt($this.attr('data-is-loading') || 0); + var loading_msg = $this.attr('data-loading-msg') || window['lang_request_handle_loading_tips'] || '正在处理中、请稍候...'; + if (id == undefined || url == undefined) { + Prompt(window['lang_params_error_tips'] || '参数配置有误'); + return false; + } - // 请求更新数据 - $.AMUI.progress.start(); - $.ajax({ - url: RequestUrlHandle(url), - type: 'POST', - dataType: 'json', - timeout: $this.attr('data-timeout') || 60000, - data:{"id":id, "state":state, "field":field}, - success: function(result) - { - if(is_loading == 1) - { - AMUI.dialog.loading('close'); - } - $.AMUI.progress.done(); - if(result.code == 0) - { - Prompt(result.msg, 'success'); + // 弹层加载 + if (is_loading == 1) { + AMUI.dialog.loading({ title: loading_msg }); + } - // 成功则更新数据样式 - if($this.hasClass('am-success')) - { - $this.removeClass('am-success'); - $this.addClass('am-default'); - if(is_update_status == 1) - { - if($('#data-list-'+id).length > 0) - { - $('#data-list-'+id).addClass('am-active'); - } - } - } else { - $this.removeClass('am-default'); - $this.addClass('am-success'); - if(is_update_status == 1) - { - if($('#data-list-'+id).length > 0) - { - $('#data-list-'+id).removeClass('am-active'); - } - } - } - $this.attr('data-state', state); - } else { - Prompt(result.msg); - } - }, - error: function(xhr, type) - { - if(is_loading == 1) - { - AMUI.dialog.loading('close'); - } - $.AMUI.progress.done(); - Prompt(HtmlToString(xhr.responseText) || (window['lang_error_text'] || '异常错误'), null, 30); - } - }); - }); + // 请求更新数据 + $.AMUI.progress.start(); + $.ajax({ + url: RequestUrlHandle(url), + type: 'POST', + dataType: 'json', + timeout: $this.attr('data-timeout') || 60000, + data: { "id": id, "state": state, "field": field }, + success: function (result) { + if (is_loading == 1) { + AMUI.dialog.loading('close'); + } + $.AMUI.progress.done(); + if (result.code == 0) { + Prompt(result.msg, 'success'); - /** - * 公共编辑 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-14T13:53:13+0800 - */ - $(document).on('click', '.submit-edit', function() - { - // 窗口标签 - var tag = $(this).attr('data-tag') || 'data-save-win'; + // 成功则更新数据样式 + if ($this.hasClass('am-success')) { + $this.removeClass('am-success'); + $this.addClass('am-default'); + if (is_update_status == 1) { + if ($('#data-list-' + id).length > 0) { + $('#data-list-' + id).addClass('am-active'); + } + } + } else { + $this.removeClass('am-default'); + $this.addClass('am-success'); + if (is_update_status == 1) { + if ($('#data-list-' + id).length > 0) { + $('#data-list-' + id).removeClass('am-active'); + } + } + } + $this.attr('data-state', state); + } else { + Prompt(result.msg); + } + }, + error: function (xhr, type) { + if (is_loading == 1) { + AMUI.dialog.loading('close'); + } + $.AMUI.progress.done(); + Prompt(HtmlToString(xhr.responseText) || (window['lang_error_text'] || '异常错误'), null, 30); + } + }); + }); - // 更改窗口名称 - if($('#'+tag).length > 0) - { - $title = $('#'+tag).find('.am-popup-title'); - $title.text($title.attr('data-edit-title')); - } + /** + * 公共编辑 + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-14T13:53:13+0800 + */ + $(document).on('click', '.submit-edit', function () { + // 窗口标签 + var tag = $(this).attr('data-tag') || 'data-save-win'; - // 填充数据 - var json = JSON.parse(decodeURIComponent($(this).attr('data-json'))); - var data = FunSaveWinAdditional(json, 'edit'); + // 更改窗口名称 + if ($('#' + tag).length > 0) { + $title = $('#' + tag).find('.am-popup-title'); + $title.text($title.attr('data-edit-title')); + } - // 开始填充数据 - FormDataFill(data, '#'+tag); - }); + // 填充数据 + var json = JSON.parse(decodeURIComponent($(this).attr('data-json'))); + var data = FunSaveWinAdditional(json, 'edit'); - /** - * 公共无限节点 - 双击编辑 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2022-10-16 - * @desc description - */ - $(document).on('dblclick', '#tree table.am-table td', function() - { - if($(this).find('.submit-edit').length > 0) - { - $(this).find('.submit-edit').trigger('click'); - } - }); + // 开始填充数据 + FormDataFill(data, '#' + tag); + }); - /** - * 公共无限节点 - 新子节点 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-25T22:12:10+0800 - */ - $(document).on('click', '#tree .tree-submit-add-node', function() - { - // 清空表单数据 - TreeFormInit(); + /** + * 公共无限节点 - 双击编辑 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2022-10-16 + * @desc description + */ + $(document).on('dblclick', '#tree table.am-table td', function () { + if ($(this).find('.submit-edit').length > 0) { + $(this).find('.submit-edit').trigger('click'); + } + }); - // 父节点赋值 - var id = parseInt($(this).attr('data-id')) || 0; - $($(this).parents('#tree').data('popup-tag') || ''+popup_tag+'').find('input[name="pid"], select[name="pid"]').val(id); + /** + * 公共无限节点 - 新子节点 + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-25T22:12:10+0800 + */ + $(document).on('click', '#tree .tree-submit-add-node', function () { + // 清空表单数据 + TreeFormInit(); - // 多选插件事件更新 - if($('select.chosen-select').length > 0) - { - $('select.chosen-select').trigger('chosen:updated'); - } - }); + // 父节点赋值 + var id = parseInt($(this).attr('data-id')) || 0; + $($(this).parents('#tree').data('popup-tag') || '' + popup_tag + '').find('input[name="pid"], select[name="pid"]').val(id); - /** - * 公共无限节点 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-25T22:12:10+0800 - */ - $(document).on('click', '#tree .tree-submit', function() - { - var id = parseInt($(this).attr('data-id')) || 0; - // 状态 - if($('.tree-pid-'+id).length > 0) - { - if($(this).hasClass('am-icon-plus')) - { - $(this).removeClass('am-icon-plus'); - $(this).addClass('am-icon-minus-square'); - $('.tree-pid-'+id).css('display', 'grid'); - $('.tree-pid-'+id).each(function(k, v) - { - if($('.tree-pid-'+$(this).attr('data-value')).length > 0) - { - $(this).find('td .tree-submit').removeClass('am-icon-plus'); - $(this).find('td .tree-submit').addClass('am-icon-minus-square'); - } - }); - } else { - $(this).removeClass('am-icon-minus-square'); - $(this).addClass('am-icon-plus'); - $('.tree-pid-'+id).css('display', 'none'); - $('.tree-pid-'+id).each(function(k, v) - { - if($('.tree-pid-'+$(this).attr('data-value')).length > 0) - { - $(this).find('td .tree-submit').removeClass('am-icon-minus-square'); - $(this).find('td .tree-submit').addClass('am-icon-plus'); - } - }); - } - } else { - var url = $(this).parents('#tree').data('node-url') || ''; - var level = parseInt($(this).parents('tr').attr('data-level') || 0)+1; - var is_delete_all = parseInt($(this).attr('data-is-delete-all')) || 0; - if(id > 0 && url != '') - { - Tree(id, url, level, is_delete_all); - } else { - Prompt(window['lang_operate_params_error'] || '参数有误'); - } - } - }); + // 多选插件事件更新 + if ($('select.chosen-select').length > 0) { + $('select.chosen-select').trigger('chosen:updated'); + } + }); - /** - * 公共无限节点新增按钮处理 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-25T22:11:34+0800 - */ - $('.tree-submit-add').on('click', function() - { - TreeFormInit(); - }); + /** + * 公共无限节点 + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-25T22:12:10+0800 + */ + $(document).on('click', '#tree .tree-submit', function () { + var id = parseInt($(this).attr('data-id')) || 0; + // 状态 + if ($('.tree-pid-' + id).length > 0) { + if ($(this).hasClass('am-icon-plus')) { + $(this).removeClass('am-icon-plus'); + $(this).addClass('am-icon-minus-square'); + $('.tree-pid-' + id).css('display', 'grid'); + $('.tree-pid-' + id).each(function (k, v) { + if ($('.tree-pid-' + $(this).attr('data-value')).length > 0) { + $(this).find('td .tree-submit').removeClass('am-icon-plus'); + $(this).find('td .tree-submit').addClass('am-icon-minus-square'); + } + }); + } else { + $(this).removeClass('am-icon-minus-square'); + $(this).addClass('am-icon-plus'); + $('.tree-pid-' + id).css('display', 'none'); + $('.tree-pid-' + id).each(function (k, v) { + if ($('.tree-pid-' + $(this).attr('data-value')).length > 0) { + $(this).find('td .tree-submit').removeClass('am-icon-minus-square'); + $(this).find('td .tree-submit').addClass('am-icon-plus'); + } + }); + } + } else { + var url = $(this).parents('#tree').data('node-url') || ''; + var level = parseInt($(this).parents('tr').attr('data-level') || 0) + 1; + var is_delete_all = parseInt($(this).attr('data-is-delete-all')) || 0; + if (id > 0 && url != '') { + Tree(id, url, level, is_delete_all); + } else { + Prompt(window['lang_operate_params_error'] || '参数有误'); + } + } + }); - /** - * 公共数据ajax操作 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-10T14:22:39+0800 - * @param {[int] [data-id] [数据id]} - * @param {[int] [data-view] [完成操作(delete删除数据, reload刷新页面, fun方法回调(data-value)]} - * @param {[string] [data-url] [请求地址]} - */ - $(document).on('click', '.submit-ajax', function() - { - var is_confirm = $(this).attr('data-is-confirm'); - if(is_confirm == undefined || is_confirm == 1) - { - ConfirmNetworkAjax($(this)); - } else { - AjaxRequest($(this)); - } - }); + /** + * 公共无限节点新增按钮处理 + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-25T22:11:34+0800 + */ + $('.tree-submit-add').on('click', function () { + TreeFormInit(); + }); - // 地区联动 - $('.region-linkage select').on('change', function() - { - var name = $(this).attr('name') || null; - var next_name = (name == 'province') ? 'city' : ((name == 'city') ? 'county' : null); - var value = $(this).val() || null; - if(next_name != null) - { - RegionNodeData(value, name, next_name); - } - }); - // 地址初始化 - RegionLinkageInit(); + /** + * 公共数据ajax操作 + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-10T14:22:39+0800 + * @param {[int] [data-id] [数据id]} + * @param {[int] [data-view] [完成操作(delete删除数据, reload刷新页面, fun方法回调(data-value)]} + * @param {[string] [data-url] [请求地址]} + */ + $(document).on('click', '.submit-ajax', function () { + var is_confirm = $(this).attr('data-is-confirm'); + if (is_confirm == undefined || is_confirm == 1) { + ConfirmNetworkAjax($(this)); + } else { + AjaxRequest($(this)); + } + }); - // 地址编号搜索 - $('.region-linkage-code button').on('click', function() - { - var code = $(this).parents('.region-linkage-code').find('input').val() || null; - if(code == null) - { - Prompt(window['lang_input_empty_tips'] || '请输入数据'); - return false; - } - var $this = $(this); - var $parent = $this.parents('.region-linkage'); - $this.attr('disabled', true); + // 地区联动 + $('.region-linkage select').on('change', function () { + var name = $(this).attr('name') || null; + var next_name = (name == 'province') ? 'city' : ((name == 'city') ? 'county' : null); + var value = $(this).val() || null; + if (next_name != null) { + RegionNodeData(value, name, next_name); + } + }); + // 地址初始化 + RegionLinkageInit(); + + // 地址编号搜索 + $('.region-linkage-code button').on('click', function () { + var code = $(this).parents('.region-linkage-code').find('input').val() || null; + if (code == null) { + Prompt(window['lang_input_empty_tips'] || '请输入数据'); + return false; + } + var $this = $(this); + var $parent = $this.parents('.region-linkage'); + $this.attr('disabled', true); $.ajax({ url: RequestUrlHandle($parent.data('code-url')), type: 'POST', dataType: 'json', timeout: 30000, - data: {code: code}, - success: function(result) - { + data: { code: code }, + success: function (result) { $this.attr('disabled', false); - if(result.code == 0) - { - // 更新选中值 - $parent.find('select[name="province"]').attr('data-value', result.data.province); - $parent.find('select[name="city"]').attr('data-value', result.data.city); - $parent.find('select[name="county"]').attr('data-value', result.data.county); - // 地址初始化 - RegionLinkageInit(); - Prompt(result.msg, 'success'); + if (result.code == 0) { + // 更新选中值 + $parent.find('select[name="province"]').attr('data-value', result.data.province); + $parent.find('select[name="city"]').attr('data-value', result.data.city); + $parent.find('select[name="county"]').attr('data-value', result.data.county); + // 地址初始化 + RegionLinkageInit(); + Prompt(result.msg, 'success'); } else { Prompt(result.msg); } }, - error: function(xhr, type) - { + error: function (xhr, type) { $this.attr('disabled', false); Prompt(HtmlToString(xhr.responseText) || (window['lang_error_text'] || '异常错误')); } }); - }); - $('.region-linkage-code input').on('keydown', function() - { - if(event.keyCode == 13) - { - $(this).parents('.region-linkage-code').find('button').trigger('click'); + }); + $('.region-linkage-code input').on('keydown', function () { + if (event.keyCode == 13) { + $(this).parents('.region-linkage-code').find('button').trigger('click'); return false; } - }); + }); - // 根据字符串地址获取坐标位置 - $('#map-location-submit').on('click', function() - { - var region = ["province", "city", "county"]; - var province = ''; - var address = ''; - for(var i in region) - { - var $temp_obj = $('.region-linkage select[name='+region[i]+']'); - var v = $temp_obj.find('option:selected').val() || null; - if(v != null) - { - if(i == 0) - { - province = $temp_obj.find('option:selected').text() || ''; - } - temp_value = $temp_obj.find('option:selected').text() || ''; - if(address.indexOf(temp_value) == -1) - { - address += temp_value; - } - } - } - address += $('#form-address').val(); - if(province.length <= 0 && address.length <= 0) - { - Prompt(window['lang_address_data_empty_tips'] || '地址为空'); - return false; - } + // 根据字符串地址获取坐标位置 + $('#map-location-submit').on('click', function () { + var region = ["province", "city", "county"]; + var province = ''; + var address = ''; + for (var i in region) { + var $temp_obj = $('.region-linkage select[name=' + region[i] + ']'); + var v = $temp_obj.find('option:selected').val() || null; + if (v != null) { + if (i == 0) { + province = $temp_obj.find('option:selected').text() || ''; + } + temp_value = $temp_obj.find('option:selected').text() || ''; + if (address.indexOf(temp_value) == -1) { + address += temp_value; + } + } + } + address += $('#form-address').val(); + if (province.length <= 0 && address.length <= 0) { + Prompt(window['lang_address_data_empty_tips'] || '地址为空'); + return false; + } - // 地图类型 - switch(__load_map_type__) - { - // 百度地图 - case 'baidu' : - // 创建地址解析器实例 - var geo = new BMap.Geocoder(); - // 将地址解析结果显示在地图上,并调整地图视野 - geo.getPoint(address, function(point) - { - if(point) - { - MapInit(point.lng, point.lat); - } else { - Prompt(window['lang_map_address_analysis_tips'] || '您选择地址没有解析到结果!'); - } - }, province); - break; + // 地图类型 + switch (__load_map_type__) { + // 百度地图 + case 'baidu': + // 创建地址解析器实例 + var geo = new BMap.Geocoder(); + // 将地址解析结果显示在地图上,并调整地图视野 + geo.getPoint(address, function (point) { + if (point) { + MapInit(point.lng, point.lat); + } else { + Prompt(window['lang_map_address_analysis_tips'] || '您选择地址没有解析到结果!'); + } + }, province); + break; - // 高德地图 - case 'amap' : - AMap.plugin('AMap.Geocoder',function() - { - var geo = new AMap.Geocoder() - geo.getLocation(address, function(status, result) - { - if(status === 'complete' && result.geocodes.length) - { - var lnglat = result.geocodes[0].location; - MapInit(lnglat.lng, lnglat.lat); - } else { - Prompt(window['lang_map_address_analysis_tips'] || '您选择地址没有解析到结果!'); - } - }); - }); - break; + // 高德地图 + case 'amap': + AMap.plugin('AMap.Geocoder', function () { + var geo = new AMap.Geocoder() + geo.getLocation(address, function (status, result) { + if (status === 'complete' && result.geocodes.length) { + var lnglat = result.geocodes[0].location; + MapInit(lnglat.lng, lnglat.lat); + } else { + Prompt(window['lang_map_address_analysis_tips'] || '您选择地址没有解析到结果!'); + } + }); + }); + break; - // 腾讯地图 - case 'tencent' : - var geo = new TMap.service.Geocoder(); - geo.getLocation({ address: address }).then((result) => { - var lnglat = result.result.location; - MapInit(lnglat.lng, lnglat.lat); - }); - break; + // 腾讯地图 + case 'tencent': + var geo = new TMap.service.Geocoder(); + geo.getLocation({ address: address }).then((result) => { + var lnglat = result.result.location; + MapInit(lnglat.lng, lnglat.lat); + }); + break; - // 天地图 - case 'tianditu' : - var geo = new T.Geocoder(); - geo.getPoint(address, function(result) - { - if(result.getStatus() == 0) - { - var point = result.getLocationPoint(); - MapInit(point.lng, point.lat); - } else { - Prompt(point.getMsg()); - } - }); - break; + // 天地图 + case 'tianditu': + var geo = new T.Geocoder(); + geo.getPoint(address, function (result) { + if (result.getStatus() == 0) { + var point = result.getLocationPoint(); + MapInit(point.lng, point.lat); + } else { + Prompt(point.getMsg()); + } + }); + break; - // 默认 - default : - Prompt((window['lang_map_type_not_exist_tips'] || '该地图功能未定义')+'('+__load_map_type__+')'); - } - }); + // 默认 + default: + Prompt((window['lang_map_type_not_exist_tips'] || '该地图功能未定义') + '(' + __load_map_type__ + ')'); + } + }); - // 图片上传 - $(document).on('change', '.images-file-event, .file-event', function() - { - // 显示选择的图片名称 + // 图片上传 + $(document).on('change', '.images-file-event, .file-event', function () { + // 显示选择的图片名称 var fileNames = ''; - $.each(this.files, function() - { + $.each(this.files, function () { fileNames += '' + this.name + ' '; }); $($(this).attr('data-tips-tag')).html(fileNames); // 触发配合显示input地址事件 var input_tag = $(this).attr('data-choice-one-to') || null; - if(input_tag != null) - { - $(input_tag).trigger('blur'); + if (input_tag != null) { + $(input_tag).trigger('blur'); } }); // 图片预览 - if($('.images-file-event').length > 0) - { - ImageFileUploadShow('.images-file-event'); + if ($('.images-file-event').length > 0) { + ImageFileUploadShow('.images-file-event'); } // 视频上传 - $(document).on('change', '.video-file-event', function() - { - // 显示选择的图片名称 + $(document).on('change', '.video-file-event', function () { + // 显示选择的图片名称 var fileNames = ''; - $.each(this.files, function() - { + $.each(this.files, function () { fileNames += '' + this.name + ' '; }); $($(this).attr('data-tips-tag')).html(fileNames); // 触发配合显示input地址事件 var input_tag = $(this).attr('data-choice-one-to') || null; - if(input_tag != null) - { - $(input_tag).trigger('blur'); + if (input_tag != null) { + $(input_tag).trigger('blur'); } }); // 视频预览 - if($('.video-file-event').length > 0) - { - VideoFileUploadShow('.video-file-event'); + if ($('.video-file-event').length > 0) { + VideoFileUploadShow('.video-file-event'); } // 监听多图上传和上传附件组件的插入动作 - if(typeof(upload_editor) == 'object') - { - upload_editor.ready(function() - { - // 图片上传动作 - upload_editor.addListener("beforeInsertImage", function(t, result) - { - if(result.length > 0) - { - var $tag = $($('body').attr('view-tag')); - var max_number = $tag.attr('data-max-number') || 0; - var is_delete = ($tag.attr('data-delete') == undefined) ? 1 : $tag.attr('data-delete'); - var form_name = $tag.attr('data-form-name') || ''; - var is_attr = $tag.attr('data-is-attr') || null; + if (typeof (upload_editor) == 'object') { + upload_editor.ready(function () { + // 图片上传动作 + upload_editor.addListener("beforeInsertImage", function (t, result) { + if (result.length > 0) { + var $tag = $($('body').attr('view-tag')); + var max_number = $tag.attr('data-max-number') || 0; + var is_delete = ($tag.attr('data-delete') == undefined) ? 1 : $tag.attr('data-delete'); + var form_name = $tag.attr('data-form-name') || ''; + var is_attr = $tag.attr('data-is-attr') || null; - // 只限制一条 - if(max_number <= 1) - { - $tag.find('li').remove(); - } + // 只限制一条 + if (max_number <= 1) { + $tag.find('li').remove(); + } - // 循环处理 - for(var i in result) - { - // 是否直接赋值属性 - if(i == 0 && is_attr != null) - { - $('form [name="'+form_name+'"]').val(result[i].src); - $tag.attr(is_attr, result[i].src); - break; - } + // 循环处理 + for (var i in result) { + // 是否直接赋值属性 + if (i == 0 && is_attr != null) { + $('form [name="' + form_name + '"]').val(result[i].src); + $tag.attr(is_attr, result[i].src); + break; + } - // 是否限制数量 - if(max_number > 0 && $tag.find('li').length >= max_number) - { - var temp_msg = window['lang_upload_images_max_tips'] || '最多上传{value}张图片'; - Prompt(temp_msg.replace('{value}', max_number)); - break; - } + // 是否限制数量 + if (max_number > 0 && $tag.find('li').length >= max_number) { + var temp_msg = window['lang_upload_images_max_tips'] || '最多上传{value}张图片'; + Prompt(temp_msg.replace('{value}', max_number)); + break; + } - var html = '
  • '; - html += ''; - html += ''; - if(is_delete == 1) - { - html += '×'; - } - html += '
  • '; - $tag.append(html); - } - } - }); + var html = '
  • '; + html += ''; + html += ''; + if (is_delete == 1) { + html += '×'; + } + html += '
  • '; + $tag.append(html); + } + } + }); - // 视频上传 - upload_editor.addListener("beforeInsertVideo", function(t, result) - { - if(result.length > 0) - { - var $tag = $($('body').attr('view-tag')); - var max_number = $tag.attr('data-max-number') || 0; - var is_delete = ($tag.attr('data-delete') == undefined) ? 1 : $tag.attr('data-delete'); - var form_name = $tag.attr('data-form-name') || ''; - var is_attr = $tag.attr('data-is-attr') || null; + // 视频上传 + upload_editor.addListener("beforeInsertVideo", function (t, result) { + if (result.length > 0) { + var $tag = $($('body').attr('view-tag')); + var max_number = $tag.attr('data-max-number') || 0; + var is_delete = ($tag.attr('data-delete') == undefined) ? 1 : $tag.attr('data-delete'); + var form_name = $tag.attr('data-form-name') || ''; + var is_attr = $tag.attr('data-is-attr') || null; - // 只限制一条 - if(max_number <= 1) - { - $tag.find('li').remove(); - } + // 只限制一条 + if (max_number <= 1) { + $tag.find('li').remove(); + } - // 循环处理 - for(var i in result) - { - // 是否直接赋值属性 - if(i == 0 && is_attr != null) - { - $('form [name="'+form_name+'"]').val(result[i].src); - $tag.attr(is_attr, result[i].src); - break; - } + // 循环处理 + for (var i in result) { + // 是否直接赋值属性 + if (i == 0 && is_attr != null) { + $('form [name="' + form_name + '"]').val(result[i].src); + $tag.attr(is_attr, result[i].src); + break; + } - // 是否限制数量 - if(max_number > 0 && $tag.find('li').length >= max_number) - { - var temp_msg = window['lang_upload_video_max_tips'] || '最多上传{value}个视频'; - Prompt(temp_msg.replace('{value}', max_number)); - break; - } + // 是否限制数量 + if (max_number > 0 && $tag.find('li').length >= max_number) { + var temp_msg = window['lang_upload_video_max_tips'] || '最多上传{value}个视频'; + Prompt(temp_msg.replace('{value}', max_number)); + break; + } - var html = '
  • '; - html += ''; - html += ''; - if(is_delete == 1) - { - html += '×'; - } - html += '
  • '; - $tag.append(html); - } - } - }); + var html = '
  • '; + html += ''; + html += ''; + if (is_delete == 1) { + html += '×'; + } + html += '
  • '; + $tag.append(html); + } + } + }); - // 文件上传 - upload_editor.addListener("beforeInsertFile", function(t, result) - { - if(result.length > 0) - { - var $tag = $($('body').attr('view-tag')); - var max_number = $tag.attr('data-max-number') || 0; - var is_delete = ($tag.attr('data-delete') == undefined) ? 1 : $tag.attr('data-delete'); - var form_name = $tag.attr('data-form-name') || ''; - var is_attr = $tag.attr('data-is-attr') || null; + // 文件上传 + upload_editor.addListener("beforeInsertFile", function (t, result) { + if (result.length > 0) { + var $tag = $($('body').attr('view-tag')); + var max_number = $tag.attr('data-max-number') || 0; + var is_delete = ($tag.attr('data-delete') == undefined) ? 1 : $tag.attr('data-delete'); + var form_name = $tag.attr('data-form-name') || ''; + var is_attr = $tag.attr('data-is-attr') || null; - // 只限制一条 - if(max_number <= 1) - { - $tag.find('li').remove(); - } + // 只限制一条 + if (max_number <= 1) { + $tag.find('li').remove(); + } - // 循环处理 - for(var i in result) - { - // 是否直接赋值属性 - if(i == 0 && is_attr != null) - { - $('form [name="'+form_name+'"]').val(result[i].url); - $tag.attr(is_attr, result[i].url); - break; - } + // 循环处理 + for (var i in result) { + // 是否直接赋值属性 + if (i == 0 && is_attr != null) { + $('form [name="' + form_name + '"]').val(result[i].url); + $tag.attr(is_attr, result[i].url); + break; + } - // 是否限制数量 - if(max_number > 0 && $tag.find('li').length >= max_number) - { - var temp_msg = window['lang_upload_annex_max_tips'] || '最多上传{value}个附件'; - Prompt(temp_msg.replace('{value}', max_number)); - break; - } + // 是否限制数量 + if (max_number > 0 && $tag.find('li').length >= max_number) { + var temp_msg = window['lang_upload_annex_max_tips'] || '最多上传{value}个附件'; + Prompt(temp_msg.replace('{value}', max_number)); + break; + } - var index = parseInt($tag.find('li').length) || 0; - var html = '
  • '; - html += ''; - html += ''; - html += ''+result[i].title+''; - if(is_delete == 1) - { - html += '×'; - } - html += '
  • '; - $tag.append(html); - } - } - }); - }); - } + var index = parseInt($tag.find('li').length) || 0; + var html = '
  • '; + html += ''; + html += ''; + html += '' + result[i].title + ''; + if (is_delete == 1) { + html += '×'; + } + html += '
  • '; + $tag.append(html); + } + } + }); + }); + } // 打开编辑器插件 - $(document).on('click', '.plug-file-upload-submit', function() - { - // 组件是否初始化 - if(typeof(upload_editor) != 'object') - { - Prompt(window['lang_assembly_not_init_tips'] || '组件未初始化'); + $(document).on('click', '.plug-file-upload-submit', function () { + // 组件是否初始化 + if (typeof (upload_editor) != 'object') { + Prompt(window['lang_assembly_not_init_tips'] || '组件未初始化'); return false; - } + } - // 容器是否指定 - if(($(this).attr('data-view-tag') || null) == null) - { + // 容器是否指定 + if (($(this).attr('data-view-tag') || null) == null) { Prompt(window['lang_not_specified_container_tips'] || '未指定容器'); return false; } @@ -4058,32 +3713,29 @@ $(function() // 加载组件类型 var dialog_type = null; - switch($view_tag.attr('data-dialog-type')) - { + switch ($view_tag.attr('data-dialog-type')) { // 视频 - case 'video' : + case 'video': dialog_type = 'insertvideo'; break; // 图片 - case 'images' : + case 'images': dialog_type = 'insertimage'; break; // 文件 - case 'file' : + case 'file': dialog_type = 'attachment'; break; } - if(dialog_type == null) - { + if (dialog_type == null) { Prompt(window['lang_not_specified_assembly_tips'] || '未指定加载组件'); return false; } // 是否指定form名称 - if(($view_tag.attr('data-form-name') || null) == null) - { + if (($view_tag.attr('data-form-name') || null) == null) { Prompt(window['lang_not_specified_form_name_tips'] || '未指定表单name名称'); return false; } @@ -4094,12 +3746,11 @@ $(function() dialog.open(); // 赋值参数 - $('body').attr('view-tag',$(this).attr('data-view-tag')); + $('body').attr('view-tag', $(this).attr('data-view-tag')); }); // 删除容器中的内容 - $(document).on('click', '.plug-file-upload-view li i', function() - { + $(document).on('click', '.plug-file-upload-view li i', function () { // 容器 var $tag = $(this).parents('ul.plug-file-upload-view'); @@ -4108,10 +3759,8 @@ $(function() // 数据处理 var max_number = $tag.attr('data-max-number') || 0; - if(max_number > 0) - { - if($tag.find('li').length < max_number) - { + if (max_number > 0) { + if ($tag.find('li').length < max_number) { $('.plug-file-upload-submit').show(); } } @@ -4119,382 +3768,319 @@ $(function() /* 搜索切换 */ - var $more_where = $('.more-where'); - $more_submit = $('.more-submit'); - $more_submit.find('input[name="is_more"]').change(function() - { - if($more_submit.find('i').hasClass('am-icon-angle-down')) - { - $more_submit.find('i').removeClass('am-icon-angle-down'); - $more_submit.find('i').addClass('am-icon-angle-up'); - } else { - $more_submit.find('i').addClass('am-icon-angle-down'); - $more_submit.find('i').removeClass('am-icon-angle-up'); - } - - if($more_submit.find('input[name="is_more"]:checked').val() == undefined) - { - $more_where.addClass('none'); - } else { - $more_where.removeClass('none'); - } - }); + var $more_where = $('.more-where'); + $more_submit = $('.more-submit'); + $more_submit.find('input[name="is_more"]').change(function () { + if ($more_submit.find('i').hasClass('am-icon-angle-down')) { + $more_submit.find('i').removeClass('am-icon-angle-down'); + $more_submit.find('i').addClass('am-icon-angle-up'); + } else { + $more_submit.find('i').addClass('am-icon-angle-down'); + $more_submit.find('i').removeClass('am-icon-angle-up'); + } - // 加载 loading popup 弹层 - $(document).on('click', '.submit-popup', function() - { - var url = $(this).data('url') || null; - if(url == null) - { - Prompt(window['lang_operate_params_error'] || 'url未配置'); - return false; - } + if ($more_submit.find('input[name="is_more"]:checked').val() == undefined) { + $more_where.addClass('none'); + } else { + $more_where.removeClass('none'); + } + }); - // 基础参数 - var title = $(this).data('title') || ''; - var class_tag = $(this).data('class') || ''; - var full = parseInt($(this).data('full')) || 0; - var full_max = parseInt($(this).data('full-max')) || 0; - var full_max_size = $(this).data('full-max-size') || ''; + // 加载 loading popup 弹层 + $(document).on('click', '.submit-popup', function () { + var url = $(this).data('url') || null; + if (url == null) { + Prompt(window['lang_operate_params_error'] || 'url未配置'); + return false; + } - // 调用弹窗方法 + // 基础参数 + var title = $(this).data('title') || ''; + var class_tag = $(this).data('class') || ''; + var full = parseInt($(this).data('full')) || 0; + var full_max = parseInt($(this).data('full-max')) || 0; + var full_max_size = $(this).data('full-max-size') || ''; + + // 调用弹窗方法 ModalLoad(url, title, class_tag, full, full_max, full_max_size); }); // 加载 loading modal 弹层 - $(document).on('click', '.submit-modal', function() - { - var url = $(this).data('url') || null; - if(url == null) - { - Prompt(window['lang_operate_params_error'] || 'url未配置'); - return false; - } + $(document).on('click', '.submit-modal', function () { + var url = $(this).data('url') || null; + if (url == null) { + Prompt(window['lang_operate_params_error'] || 'url未配置'); + return false; + } - // 宽高 - var config = {}; - var width = parseInt($(this).data('width') || 0); - if(width > 0) - { - config['width'] = width; - } - var height = parseInt($(this).data('height') || 0); - if(height > 0) - { - config['height'] = height; - } + // 宽高 + var config = {}; + var width = parseInt($(this).data('width') || 0); + if (width > 0) { + config['width'] = width; + } + var height = parseInt($(this).data('height') || 0); + if (height > 0) { + config['height'] = height; + } - // 调用类库方法 - AMUI.dialog.alert({ - isClose: true, - config: config, - url: url, - }); + // 调用类库方法 + AMUI.dialog.alert({ + isClose: true, + config: config, + url: url, + }); }); // 地图弹窗 - $(document).on('click', '.submit-map-popup', function() - { - // 参数 - var lng = $(this).data('lng') || null; - var lat = $(this).data('lat') || null; - if(lng == null || lat == null) - { - Prompt(window['lang_map_coordinate_tips'] || '坐标有误'); - return false; - } + $(document).on('click', '.submit-map-popup', function () { + // 参数 + var lng = $(this).data('lng') || null; + var lat = $(this).data('lat') || null; + if (lng == null || lat == null) { + Prompt(window['lang_map_coordinate_tips'] || '坐标有误'); + return false; + } - // 基础参数 - var title = $(this).data('title') || ''; - var class_tag = $(this).data('class') || ''; - var full = parseInt($(this).data('full')) || 0; - var full_max = parseInt($(this).data('full-max')) || 0; - var full_max_size = $(this).data('full-max-size') || ''; + // 基础参数 + var title = $(this).data('title') || ''; + var class_tag = $(this).data('class') || ''; + var full = parseInt($(this).data('full')) || 0; + var full_max = parseInt($(this).data('full-max')) || 0; + var full_max_size = $(this).data('full-max-size') || ''; - // 调用弹窗方法 - var url = UrlFieldReplace('lat', lat, UrlFieldReplace('lng', lng, __map_view_url__)); + // 调用弹窗方法 + var url = UrlFieldReplace('lat', lat, UrlFieldReplace('lng', lng, __map_view_url__)); ModalLoad(url, title, class_tag, full, full_max, full_max_size); }); // 弹窗全屏 - $(document).on('click', '.am-popup-hd .am-full', function() - { - PopupWindowSizeHandle($(this)); + $(document).on('click', '.am-popup-hd .am-full', function () { + PopupWindowSizeHandle($(this)); }); // 弹窗双击全屏及缩小 - $(document).on('dblclick', '.am-popup-hd', function() - { - PopupWindowSizeHandle($(this)); + $(document).on('dblclick', '.am-popup-hd', function () { + PopupWindowSizeHandle($(this)); }); // 弹窗拖拽 - $(document).on('mousedown', '.am-popup .am-popup-hd', function(event) - { - var is_move = true; - var $popup = $(this).parents('.am-popup'); - var width = $popup.width(); - var win_width = $(window).width(); - var win_height = $(window).height(); - var abs_x = event.pageX - $popup.offset().left; + $(document).on('mousedown', '.am-popup .am-popup-hd', function (event) { + var is_move = true; + var $popup = $(this).parents('.am-popup'); + var width = $popup.width(); + var win_width = $(window).width(); + var win_height = $(window).height(); + var abs_x = event.pageX - $popup.offset().left; var abs_y = event.pageY - $popup.offset().top; - $(document).mousemove(function(event) - { - if(is_move) - { - var scroll_top = $(document).scrollTop(); - var left = event.pageX - abs_x; - var left_max = (0-width); - if(left < left_max) - { - left = left_max+20; - } - if(left > win_width) - { - left = win_width-20; - } - var top = event.pageY - abs_y; - if(top > win_height+scroll_top) - { - top = (win_height+scroll_top)-20; - } - top -= scroll_top; - if(top < 0) - { - top = 0; - } - $popup.css({'left':left, 'top':top, 'margin': 0}); - }; - }).mouseup(function(event) - { - is_move = false; - }).mouseleave(function() - { + $(document).mousemove(function (event) { + if (is_move) { + var scroll_top = $(document).scrollTop(); + var left = event.pageX - abs_x; + var left_max = (0 - width); + if (left < left_max) { + left = left_max + 20; + } + if (left > win_width) { + left = win_width - 20; + } + var top = event.pageY - abs_y; + if (top > win_height + scroll_top) { + top = (win_height + scroll_top) - 20; + } + top -= scroll_top; + if (top < 0) { + top = 0; + } + $popup.css({ 'left': left, 'top': top, 'margin': 0 }); + }; + }).mouseup(function (event) { + is_move = false; + }).mouseleave(function () { is_move = false; }); - }); + }); // 关闭窗口 - $(document).on('click', '.window-close-event', function() - { - if(confirm($(this).data('msg') || window['lang_window_close_confirm_tips'] || '您确定要关闭本页吗?')) - { - var user_agent = navigator.userAgent; - if(user_agent.indexOf('Firefox') != -1 || user_agent.indexOf('Chrome') != -1) - { - location.href = 'about:blank'; - } else { - window.opener = null; - window.open('', '_self'); - } - window.close(); - } + $(document).on('click', '.window-close-event', function () { + if (confirm($(this).data('msg') || window['lang_window_close_confirm_tips'] || '您确定要关闭本页吗?')) { + var user_agent = navigator.userAgent; + if (user_agent.indexOf('Firefox') != -1 || user_agent.indexOf('Chrome') != -1) { + location.href = 'about:blank'; + } else { + window.opener = null; + window.open('', '_self'); + } + window.close(); + } }); // dropdown组件hover显示 - $(document).on('mouseenter', '.am-dropdown .am-dropdown-toggle', function() - { - $('body .am-dropdown').each(function(k, v) - { + $(document).on('mouseenter', '.am-dropdown .am-dropdown-toggle', function () { + $('body .am-dropdown').each(function (k, v) { var config = JsonStringToJsonObject($(this).attr('data-am-dropdown')) || null; - if(config != null && (config.trigger || null) == 'hover') - { + if (config != null && (config.trigger || null) == 'hover') { $(this).dropdown('close'); } }); var $parent = $(this).parent(); var config = JsonStringToJsonObject($parent.attr('data-am-dropdown')) || null; - if(config != null && (config.trigger || null) == 'hover') - { - if($parent.find('.am-dropdown-content').css('display') != 'block') - { - $parent.find('.am-dropdown-content').attr('data-is-stay', 1); + if (config != null && (config.trigger || null) == 'hover') { + if ($parent.find('.am-dropdown-content').css('display') != 'block') { + $parent.find('.am-dropdown-content').attr('data-is-stay', 1); $parent.dropdown('open'); } } }); - $(document).on('mouseleave', '.am-dropdown .am-dropdown-toggle', function() - { + $(document).on('mouseleave', '.am-dropdown .am-dropdown-toggle', function () { var $parent = $(this).parent(); var config = JsonStringToJsonObject($parent.attr('data-am-dropdown')) || null; - if(config != null && (config.trigger || null) == 'hover') - { - $parent.find('.am-dropdown-content').attr('data-is-stay', 0); - setTimeout(function() - { - if((parseInt($parent.find('.am-dropdown-content').attr('data-is-stay') || 0)) == 0) - { + if (config != null && (config.trigger || null) == 'hover') { + $parent.find('.am-dropdown-content').attr('data-is-stay', 0); + setTimeout(function () { + if ((parseInt($parent.find('.am-dropdown-content').attr('data-is-stay') || 0)) == 0) { $parent.dropdown('close'); } }, 1000); } }); - $(document).on('mouseenter', '.am-dropdown .am-dropdown-content', function() - { + $(document).on('mouseenter', '.am-dropdown .am-dropdown-content', function () { var $parent = $(this).parent(); var config = JsonStringToJsonObject($parent.attr('data-am-dropdown')) || null; - if(config != null && (config.trigger || null) == 'hover') - { + if (config != null && (config.trigger || null) == 'hover') { $(this).attr('data-is-stay', 1); } }); - $(document).on('mouseleave', '.am-dropdown .am-dropdown-content', function() - { + $(document).on('mouseleave', '.am-dropdown .am-dropdown-content', function () { var $parent = $(this).parent(); var config = JsonStringToJsonObject($parent.attr('data-am-dropdown')) || null; - if(config != null && (config.trigger || null) == 'hover') - { + if (config != null && (config.trigger || null) == 'hover') { $(this).attr('data-is-stay', 0); $parent.dropdown('close'); } }); // 返回上一页、默认-1 - $(document).on('click', '.back-submit-event', function() - { - var number = $(this).data('number') || '-1'; - window.history.go(number); + $(document).on('click', '.back-submit-event', function () { + var number = $(this).data('number') || '-1'; + window.history.go(number); }); // 页面切换 var temp_scroll_original_index = 0; - $(document).on('click', '.tabs-switch-horizontal-container ul li', function() - { + $(document).on('click', '.tabs-switch-horizontal-container ul li', function () { var $scroll_obj = $(this).parents('.tabs-switch-horizontal-container'); var parent_width = $scroll_obj.width(); var current_width = $(this).outerWidth(true); var current_index = $(this).index(); - if(current_index != temp_scroll_original_index) - { - // 计算当前元素前面的元素宽度(含padding、margin、border) - var scroll = 0; - for(var i=0;i<=current_index;i++) - { - scroll += $scroll_obj.find('ul li:eq('+i+')').outerWidth(true); + if (current_index != temp_scroll_original_index) { + // 计算当前元素前面的元素宽度(含padding、margin、border) + var scroll = 0; + for (var i = 0; i <= current_index; i++) { + scroll += $scroll_obj.find('ul li:eq(' + i + ')').outerWidth(true); } // 减去父元素宽度一半 - scroll -= parent_width/2; + scroll -= parent_width / 2; // 减去当前元素宽度一半 - scroll -= current_width/2; - $scroll_obj.animate({'scrollLeft': scroll}); + scroll -= current_width / 2; + $scroll_obj.animate({ 'scrollLeft': scroll }); } temp_scroll_original_index = current_index; }); // 混合业务列表选择 - $(document).on('click', '.business-list ul li', function() - { + $(document).on('click', '.business-list ul li', function () { var $business = ($(this).parents('form').length == 1) ? $(this).parents('form') : $(this).parents('.business-list'); var $parent = $(this).parent(); var type = $parent.data('type'); - var $input = $business.find('input[name='+type+']').length == 0 ? $business.find('input[name='+type+'_id]') : $business.find('input[name='+type+']'); + var $input = $business.find('input[name=' + type + ']').length == 0 ? $business.find('input[name=' + type + '_id]') : $business.find('input[name=' + type + ']'); var value = $input.val(); - if($(this).hasClass('selected')) - { - if(parseInt($parent.data('is-required') || 0) == 0) - { - $input.val(''); - if(value != '') - { - $input.trigger('change'); - } - $(this).removeClass('selected'); + if ($(this).hasClass('selected')) { + if (parseInt($parent.data('is-required') || 0) == 0) { + $input.val(''); + if (value != '') { + $input.trigger('change'); + } + $(this).removeClass('selected'); } } else { $input.val($(this).data('value')); - if(value != $(this).data('value')) - { - $input.trigger('change'); + if (value != $(this).data('value')) { + $input.trigger('change'); } $(this).addClass('selected').siblings('li').removeClass('selected'); } }); // 输入数据框添加清除按钮 - 鼠标进入事件 - $(document).on('mouseenter', 'select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"]', function() - { - InputClearOutHandle($(this)); + $(document).on('mouseenter', 'select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"]', function () { + InputClearOutHandle($(this)); }); // 输入数据框添加清除按钮 - 输入事件 - $(document).on('keyup', 'select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"]', function() - { - InputClearOutHandle($(this)); + $(document).on('keyup', 'select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"]', function () { + InputClearOutHandle($(this)); }); // 输入数据框添加清除按钮 - 获取焦点事件 - $(document).on('focus', 'select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"]', function() - { - InputClearOutHandle($(this)); + $(document).on('focus', 'select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"]', function () { + InputClearOutHandle($(this)); }); // 下拉选择组件 - $(document).on('mouseenter', '.chosen-container .chosen-single, .am-selected .am-selected-btn', function() - { - InputClearOutHandle($(this)); + $(document).on('mouseenter', '.chosen-container .chosen-single, .am-selected .am-selected-btn', function () { + InputClearOutHandle($(this)); }); - $(document).on('mouseleave', '.chosen-container .chosen-single, .am-selected .am-selected-btn', function() - { - $(this).removeClass('input-clearout-element'); + $(document).on('mouseleave', '.chosen-container .chosen-single, .am-selected .am-selected-btn', function () { + $(this).removeClass('input-clearout-element'); }); // 鼠标进入清除按钮 - 增加元素class - $(document).on('mouseenter', 'a.input-clearout-submit', function() - { - $(this).prev().addClass('input-clearout-element'); - }); - // 鼠标移开清除按钮 - 移除元素class - $(document).on('mouseleave', 'a.input-clearout-submit', function() - { - $(this).prev().removeClass('input-clearout-element'); - }); - // 输入数据框清除 - $(document).on('click', 'a.input-clearout-submit', function() - { - // 文本框则清空数据 - if($(this).prev().is('input') || $(this).prev().is('textarea')) - { - $(this).prev().val('').trigger('change'); - } - // 插件下拉选择组件 - if($(this).parents('.chosen-container').length > 0) - { - var $select = $(this).parents('.chosen-container').prev(); - $select.val(''); - $select.trigger('chosen:updated'); - $select.trigger('change'); - } - // 框架下拉选择组件 - if($(this).parents('.am-selected').length > 0) - { - var $select = $(this).parents('.am-selected'); - $select.prev().val(''); - $select.find('.am-selected-btn .am-selected-status').text($select.prev().attr('placeholder') || $select.data('placeholder')); - $select.find('.am-selected-list li.am-checked').removeClass('am-checked'); - } - // 移除class - $(this).prev().removeClass('input-clearout-element'); - // 删除清除按钮 - $(this).remove(); + $(document).on('mouseenter', 'a.input-clearout-submit', function () { + $(this).prev().addClass('input-clearout-element'); + }); + // 鼠标移开清除按钮 - 移除元素class + $(document).on('mouseleave', 'a.input-clearout-submit', function () { + $(this).prev().removeClass('input-clearout-element'); + }); + // 输入数据框清除 + $(document).on('click', 'a.input-clearout-submit', function () { + // 文本框则清空数据 + if ($(this).prev().is('input') || $(this).prev().is('textarea')) { + $(this).prev().val('').trigger('change'); + } + // 插件下拉选择组件 + if ($(this).parents('.chosen-container').length > 0) { + var $select = $(this).parents('.chosen-container').prev(); + $select.val(''); + $select.trigger('chosen:updated'); + $select.trigger('change'); + } + // 框架下拉选择组件 + if ($(this).parents('.am-selected').length > 0) { + var $select = $(this).parents('.am-selected'); + $select.prev().val(''); + $select.find('.am-selected-btn .am-selected-status').text($select.prev().attr('placeholder') || $select.data('placeholder')); + $select.find('.am-selected-list li.am-checked').removeClass('am-checked'); + } + // 移除class + $(this).prev().removeClass('input-clearout-element'); + // 删除清除按钮 + $(this).remove(); }); // 页面滚动则移除input删除按钮 - $(window).on('scroll', function() - { - $('*').removeClass('input-clearout-element'); - $('.input-clearout-submit').remove(); - }); - $('*').on('scroll', function() - { - $('*').removeClass('input-clearout-element'); - $('.input-clearout-submit').remove(); - }); + $(window).on('scroll', function () { + $('*').removeClass('input-clearout-element'); + $('.input-clearout-submit').remove(); + }); + $('*').on('scroll', function () { + $('*').removeClass('input-clearout-element'); + $('.input-clearout-submit').remove(); + }); // 下拉组件输入框快捷添加则不触发失去焦点事件 - $(document).on('blur', '.chosen-container > .chosen-drop > .chosen-search > input', function() - { - if(parseInt($(this).parents('.chosen-container').prev().data('no-results-operate-button') || 0) == 1) - { + $(document).on('blur', '.chosen-container > .chosen-drop > .chosen-search > input', function () { + if (parseInt($(this).parents('.chosen-container').prev().data('no-results-operate-button') || 0) == 1) { return false; } }); // 下拉组件快捷添加 - $(document).on('click', '.chosen-container > .chosen-drop > .chosen-results > .no-results > .chosen-select-quick-add-submit', function() - { + $(document).on('click', '.chosen-container > .chosen-drop > .chosen-results > .no-results > .chosen-select-quick-add-submit', function () { var $this = $(this); var $parent = $this.parents('.chosen-container'); var $select = $parent.prev(); @@ -4511,13 +4097,11 @@ $(function() dataType: 'json', timeout: 30000, data: json, - success: function(result) - { + success: function (result) { $this.button('reset'); - if(result.code == 0) - { + if (result.code == 0) { // 添加数据到列表 - $select.append(''); + $select.append(''); // 选中并更新列表数据 $select.val(result.data); $select.trigger('chosen:updated').trigger('change'); @@ -4527,212 +4111,27 @@ $(function() Prompt(result.msg); } }, - error: function(xhr, type) - { + error: function (xhr, type) { $this.button('reset'); Prompt(HtmlToString(xhr.responseText) || (window['lang_error_text'] || '异常错误')); } }); }); - // 加入购物车 - $(document).on('click', '.common-goods-cart-submit-event', function() - { - var goods_id = $(this).data('gid'); - if(parseInt($(this).data('is-many-spec') || 0) == 0) - { - $.AMUI.progress.start(); - $.ajax({ - url: RequestUrlHandle(__goods_cart_save_url__), - type: 'post', - dataType: "json", - timeout: 10000, - data: { - goods_id: goods_id, - stock: 1 - }, - success: function(res) - { - $.AMUI.progress.done(); - if(res.code == 0) - { - HomeCartNumberTotalUpdate(parseInt(res.data.buy_number)); - Prompt(res.msg, 'success'); - } else { - Prompt(res.msg); - } - }, - error: function(xhr, type) - { - $.AMUI.progress.done(); - Prompt(HtmlToString(xhr.responseText) || (window['lang_error_text'] || '异常错误'), null, 30); - } - }); - } else { - // 开启规格选择弹窗 - ModalLoad(UrlFieldReplace('id', goods_id, __goods_cart_info_url__), '', 'common-goods-cart-popup'); - } - }); - - // 商品规格选择 - var $common_goods_spec_choice_submit_event_obj = null; - $(document).on('click', '.common-goods-spec-choice-submit-event', function() - { - // 基础参数 - var goods_id = $(this).data('goods-id') || null; - if(goods_id == null) - { - Prompt(window['lang_goods_id_empty_tips'] || '商品ID数据'); - return false; - } - var spec = $(this).data('spec') || null; - if(spec == null) - { - Prompt(window['lang_goods_spec_empty_tips'] || '无规格数据'); - return false; - } - spec = JSON.parse(CryptoJS.enc.Base64.parse(decodeURIComponent(spec)).toString(CryptoJS.enc.Utf8)); - - // 规格处理 - var html = `
    `; - html += `
    `; - for(var i in spec) - { - html += `
    -
    `+spec[i]['name']+`
    -
      `; - for(var t in spec[i]['value']) - { - var temp = spec[i]['value'][t]; - html += `
    • `; - if((temp['images'] || null) != null) - { - html += ``; - } - html += temp['name']+` -
    • `; - } - html += `
    `; - html += `
    `; - } - html += '
    '; - html += ''; - html += '
    '; - - // 调用弹窗组件 - AMUI.dialog.alert({ - isClose: true, - content: html - }); - // 当前对象赋值 - $common_goods_spec_choice_submit_event_obj = $(this); - }); - // 商品规格选择 - $(document).on('click', '.common-goods-spec-choice-content .spec-options ul>li', function() - { - // 规格处理 - var $parent = $(this).parents('.common-goods-spec-choice-content'); - var length = $parent.find('.sku-items').length; - var index = $(this).parents('.sku-items').index(); - if($(this).hasClass('selected')) - { - $(this).removeClass('selected'); - - // 去掉元素之后的禁止 - $parent.find('.sku-items').each(function(k, v) - { - if(k > index) - { - $(this).find('li').removeClass('sku-items-disabled').removeClass('selected').addClass('sku-dont-choose'); - } - }); - } else { - if($(this).hasClass('sku-items-disabled') || $(this).hasClass('sku-dont-choose')) - { - return false; - } - $(this).addClass('selected').siblings('li').removeClass('selected'); - $(this).parents('.sku-items').removeClass('sku-not-active'); - - // 去掉元素之后的禁止 - if(index < length) - { - $parent.find('.sku-items').each(function(k, v) - { - if(k > index) - { - $(this).find('li').removeClass('sku-items-disabled').removeClass('selected').addClass('sku-dont-choose'); - } - }); - } - - // 获取下一个规格类型 - CommonGoodsChoiceSpecType(); - - // 获取规格详情 - CommonGoodsChoiceSpecDetail(); - } - }); - // 商品规格选择确认 - $(document).on('click', '.common-goods-spec-choice-confirm-submit', function() - { - var $parent = $(this).parents('.common-goods-spec-choice-container'); - // 是否存在规格数据 - var sku_count = $parent.find('.sku-items').length; - if(sku_count <= 0) - { - Prompt(window['lang_goods_spec_empty_tips'] || '无规格数据'); - return false; - } - - // 是否已选择处理 - var spec_count = $('.sku-line.selected').length; - if(spec_count < sku_count) - { - $parent.find('.sku-items').each(function(k, v) - { - if($(this).find('.sku-line.selected').length == 0) - { - $(this).addClass('sku-not-active'); - } - }); - Prompt(window['lang_goods_no_choice_spec_tips'] || '请选择规格'); - return false; - } - - // 已选规格 - var spec = []; - var value = []; - $('.sku-items li.selected').each(function(k, v) - { - spec.push({"type": $(this).data('type-value'), "value": $(this).data('value')}); - value.push($(this).data('value')); - }); - - // 赋值已选 - $common_goods_spec_choice_submit_event_obj.attr('data-value', encodeURIComponent(CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(JSON.stringify(spec))))).text(value.join(' / ')); - // 关闭弹窗 - $(this).parents('.am-modal-dialog').find('.am-modal-hd .am-close').trigger('click'); - }); - // 文本信息复制 - if($('.text-copy-submit').length > 0) - { - var text_copy_clipboard = new ClipboardJS('.text-copy-submit', - { - text: function(e) - { - return $(e).data('value'); - } - }); - text_copy_clipboard.on('success', function(e) - { - Prompt(window['lang_copy_success'] || '复制成功', 'success'); - }); - text_copy_clipboard.on('error', function(e) - { - Prompt(window['lang_copy_fail'] || '复制失败'); - }); + if ($('.text-copy-submit').length > 0) { + var text_copy_clipboard = new ClipboardJS('.text-copy-submit', + { + text: function (e) { + return $(e).data('value') || $(e).text().trim(); + } + }); + text_copy_clipboard.on('success', function (e) { + Prompt(window['lang_copy_success'] || '复制成功', 'success'); + }); + text_copy_clipboard.on('error', function (e) { + Prompt(window['lang_copy_fail'] || '复制失败'); + }); } // 调起视频扫码、持续扫码 @@ -4745,127 +4144,229 @@ $(function() var video_scan_source_select = []; var video_scan_back_function = null; var video_scan_is_close_popup = 1; - $(document).on('click', '.common-scan-submit,.video-scan-continue-submit', function() - { - // 关闭摄像头 - if(video_scan_code_reader != null) - { - video_scan_code_reader.reset(); - } + $(document).on('click', '.common-scan-submit,.video-scan-continue-submit', function () { + // 关闭摄像头 + if (video_scan_code_reader != null) { + video_scan_code_reader.reset(); + } - // 关闭继续按钮 - $continue_submit.addClass('am-hide'); + // 关闭继续按钮 + $continue_submit.addClass('am-hide'); - // 主开启事件配置信息 - if(!$(this).hasClass('video-scan-continue-submit')) - { - // 回调方法 - video_scan_back_function = $(this).data('back-fun'); - // 是否关闭弹窗 - video_scan_is_close_popup = ($(this).data('auto-close-popup') == undefined) ? 1 : parseInt($(this).data('auto-close-popup') || 0); - } + // 主开启事件配置信息 + if (!$(this).hasClass('video-scan-continue-submit')) { + // 回调方法 + video_scan_back_function = $(this).data('back-fun'); + // 是否关闭弹窗 + video_scan_is_close_popup = ($(this).data('auto-close-popup') == undefined) ? 1 : parseInt($(this).data('auto-close-popup') || 0); + } - // 开启弹窗 - $video_scan_popup.modal('open'); + // 开启弹窗 + $video_scan_popup.modal('open'); - // 初始化组件 - video_scan_code_reader = new ZXing.BrowserMultiFormatReader() + // 初始化组件 + video_scan_code_reader = new ZXing.BrowserMultiFormatReader() - // 摄像头列表 - video_scan_code_reader.listVideoInputDevices().then((videoInputDevices) => { - // 初始最后一个摄像头 - if(video_scan_selected_deviceid == null) - { - // 默认取最后一个摄像头 - video_scan_selected_deviceid = videoInputDevices[videoInputDevices.length-1].deviceId; - // PC模式下默认画像翻转 - if(parseInt(__is_mobile__) != 1) - { - $video_scan.addClass('picture-reverse'); - } - } - // 大于一个则增加列表切换 - if(videoInputDevices.length > 1) - { - // 摄像头加到容器 - videoInputDevices.forEach((element) => { - if(video_scan_source_select.indexOf(element.deviceId) == -1) - { - video_scan_source_select.push(element.deviceId); - } - }); - // 展示切换摄像头按钮 - $switch_submit.removeClass('am-hide'); - } else { - $switch_submit.addClass('am-hide'); - } + // 摄像头列表 + video_scan_code_reader.listVideoInputDevices().then((videoInputDevices) => { + // 初始最后一个摄像头 + if (video_scan_selected_deviceid == null) { + // 默认取最后一个摄像头 + video_scan_selected_deviceid = videoInputDevices[videoInputDevices.length - 1].deviceId; + // PC模式下默认画像翻转 + if (parseInt(__is_mobile__) != 1) { + $video_scan.addClass('picture-reverse'); + } + } + // 大于一个则增加列表切换 + if (videoInputDevices.length > 1) { + // 摄像头加到容器 + videoInputDevices.forEach((element) => { + if (video_scan_source_select.indexOf(element.deviceId) == -1) { + video_scan_source_select.push(element.deviceId); + } + }); + // 展示切换摄像头按钮 + $switch_submit.removeClass('am-hide'); + } else { + $switch_submit.addClass('am-hide'); + } - // 调起摄像头 - video_scan_code_reader.decodeFromVideoDevice(video_scan_selected_deviceid, 'video', (res, err) => { - // 识别成功 - if(res) - { - // 语音提示 - $('.video-scan-audio-container').html(''); - // 调用回调方法 - if(IsExitsFunction(video_scan_back_function)) - { - window[video_scan_back_function](res.text); - } else { - Prompt((window['lang_config_fun_not_exist_tips'] || '配置方法未定义')+'['+video_scan_back_function+']'); - } - // 关闭摄像头 - video_scan_code_reader.reset(); - // 打开继续按钮 - $continue_submit.removeClass('am-hide'); - // 是否需要关闭弹窗 - if(video_scan_is_close_popup == 1) - { - $video_scan_popup.modal('close'); - } - } - // 调起失败 - if(err && !(err instanceof ZXing.NotFoundException)) - { - Prompt(err); - // 打开继续按钮 - $continue_submit.removeClass('am-hide'); - } - }); - }).catch((err) => { - Prompt(err); - }); + // 调起摄像头 + video_scan_code_reader.decodeFromVideoDevice(video_scan_selected_deviceid, 'video', (res, err) => { + // 识别成功 + if (res) { + // 语音提示 + $('.video-scan-audio-container').html(''); + // 调用回调方法 + if (IsExitsFunction(video_scan_back_function)) { + window[video_scan_back_function](res.text); + } else { + Prompt((window['lang_config_fun_not_exist_tips'] || '配置方法未定义') + '[' + video_scan_back_function + ']'); + } + // 关闭摄像头 + video_scan_code_reader.reset(); + // 打开继续按钮 + $continue_submit.removeClass('am-hide'); + // 是否需要关闭弹窗 + if (video_scan_is_close_popup == 1) { + $video_scan_popup.modal('close'); + } + } + // 调起失败 + if (err && !(err instanceof ZXing.NotFoundException)) { + Prompt(err); + // 打开继续按钮 + $continue_submit.removeClass('am-hide'); + } + }); + }).catch((err) => { + Prompt(err); + }); }); // 切换摄像头 - $switch_submit.on('click', function() - { - var index = $(this).attr('data-index'); - if(index == undefined) - { - video_scan_source_select.length-1; - } - index = parseInt(index)+1; - if(video_scan_source_select[index] == undefined) - { - index = 0; - } - video_scan_selected_deviceid = video_scan_source_select[index]; - $switch_submit.attr('data-index', index); - $continue_submit.trigger('click'); - // 画像翻转 - if(index == 0 || video_scan_source_select.length == 1) - { - $video_scan.addClass('picture-reverse'); - } else { - $video_scan.removeClass('picture-reverse'); - } - }); + $switch_submit.on('click', function () { + var index = $(this).attr('data-index'); + if (index == undefined) { + video_scan_source_select.length - 1; + } + index = parseInt(index) + 1; + if (video_scan_source_select[index] == undefined) { + index = 0; + } + video_scan_selected_deviceid = video_scan_source_select[index]; + $switch_submit.attr('data-index', index); + $continue_submit.trigger('click'); + // 画像翻转 + if (index == 0 || video_scan_source_select.length == 1) { + $video_scan.addClass('picture-reverse'); + } else { + $video_scan.removeClass('picture-reverse'); + } + }); // 弹窗关闭则关闭摄像头 - $video_scan_popup.on('close.modal.amui', function() - { - // 关闭摄像头组件 - video_scan_code_reader.reset(); - // 打开继续按钮 - $continue_submit.removeClass('am-hide'); - }); -}); \ No newline at end of file + $video_scan_popup.on('close.modal.amui', function () { + // 关闭摄像头组件 + video_scan_code_reader.reset(); + // 打开继续按钮 + $continue_submit.removeClass('am-hide'); + }); + // 地址下拉框关闭按钮 + var $dropdown = $('#doc-dropdown-js'), data = $dropdown.data('amui.dropdown'); + $('#doc-dropdown-close').on('click', function (e) { + data.active ? $dropdown.dropdown('close') : alert('没有开哪有关,没有失哪有得!'); + return false; + }); + $dropdown.on('open.dropdown.amui', function (e) { + console.log('open event triggered'); + }); + + // 分页点击事件 + $(document).on('click', '.am-pagination-container a', function () { + var url = $(this).data('url') || null; + if (url != null) { + // 是否在动态数据列表表单中 + var $form_table = $(this).parents('.form-table-content'); + if ($form_table.length > 0) { + $form_table.find('input[name="page"]').val($(this).data('value')); + $form_table.find('.form-table-operate-top-search-submit').trigger('click'); + } else { + window.location.href = url; + } + } + }); + // 分页输入事件 + $(document).on('change', '.am-pagination-container input', function () { + // 基础数据 + var type = $(this).data('type'); + var value = parseInt($(this).val() || $(this).data('default-value') || 0); + if (isNaN(value)) { + value = 1; + } + // 分页则处理最大分页数 + if (type == 'page') { + var value_max = parseInt($(this).data('value-max')); + if (value > value_max) { + value = value_max; + } + } + + // 是否在动态数据列表表单中 + var $form_table = $(this).parents('.form-table-content'); + if ($form_table.length > 0) { + $form_table.find('input[name="page' + ((type == 'size') ? '_size' : '') + '"]').val(value); + $form_table.find('.form-table-operate-top-search-submit').trigger('click'); + } else { + window.location.href = $(this).data('url') + value; + } + }); + + // 表单底部浮动导航取消按钮事件 + $(document).on('click', '.am-form-popup-submit button', function () { + // 1. 已指定 data-am-modal-close 弹窗关闭属性 + // 2. 为父级iframe载入的弹窗(则调用父级定义的关闭方法、当前窗口则不用) + if ($(this).attr('data-am-modal-close') !== undefined && $(this).parents('.am-popup').length == 0) { + parent.CommonPopupClose(); + } + }); + // 评论舰艇 + // 监听textarea是否有值-----改变btn评论按钮的颜色状态 + $(document).bind('input propertychange', '.addEventListener-textarea', function (obj) { + if ($(obj.target).val().length > 0) { + $(obj.target).parent().find('.textarea-btn').addClass('am-background-main') + } else { + $(obj.target).parent().find('.textarea-btn').removeClass('am-background-main') + } + }) + + $(window).resize(function () { + // 动态监听 初始化生成滚动箭头 + initScroll(); + }); + // 生成滚动箭头 + initScroll(); +}); +/** + * 初始化生成滚动箭头 ----- 只可以放在循环的子元素的上两级,或ul的上一级 例如
    + */ +function initScroll () { + if ($('body').find('.am-slider-horizontal').length > 0) { + $('.am-slider-horizontal').each(function () { + // 判断长度 =》 是否生成滚动箭头 + var parentWidth = $(this).width(); + var childrenWidthLi = 0; + $(this).find('li').each(function (index, item) { + childrenWidthLi += $(item).width(); + }) + // 判断是否需要生成右侧按钮 + if (parentWidth >= childrenWidthLi) { + // 判断是否已生成过右侧箭头按钮 + if ($(this).find('.tabs-right').length > 0) { + $(this).find('.tabs-right').remove(); + } + } else { + // 判断是否已生成过右侧箭头按钮 + if ($(this).find('.tabs-right').length < 1) { + var sliderHtml = + '
    ' + + '' + + '
    '; + $(this).append(sliderHtml); + } + } + }) + } +} + +function tabsEvent (obj, parentW, childrenW) { + var pratntObj = $(obj).parent(); + var num = $(obj).attr('data-num'); + console.log('num:' + num); + if (num * parentW >= childrenW) { + pratntObj.animate({ scrollLeft: 0 }, 500); + $(obj).attr('data-num', 1) + } else { + pratntObj.animate({ scrollLeft: parentW * num }, 500); + $(obj).attr('data-num', Number($(obj).attr('data-num')) + 1); + } +} \ No newline at end of file diff --git a/public/static/common/js/layout.admin.js b/public/static/common/js/layout.admin.js index d611f2ed8..c5b3a9e4d 100644 --- a/public/static/common/js/layout.admin.js +++ b/public/static/common/js/layout.admin.js @@ -283,7 +283,9 @@ function StyleBaseHandle(data, key, replace_rules, exclude) { type: "margin", css: "margin", unit: "px" }, { type: "padding", css: "padding", unit: "px" }, { type: "height", css: "height", unit: "px" }, - { type: "width", css: "width", unit: "px" } + { type: "width", css: "width", unit: "px" }, + { type: "max_height", css: "max-height", unit: "px" }, + { type: "max_width", css: "max-width", unit: "px" } ]; for(var i in arr2) { @@ -373,11 +375,17 @@ function MediaFixedHandle(data) { // 文件容器 var media_container_ent = ''; + // 文件容器样式 var media_container_style = StyleBaseHandle(data, 'style_media_fixed_'); if((media_container_style || null) != null) { media_container_ent += 'module-fixed-doc '; } + // 文件容器加上居中、避免容器没居中导致内容居中无效 + if((data['style_media_fixed_is_auto'] || 0) == 1) + { + media_container_ent += 'module-fixed-doc-ent-auto '; + } // 文件 var media_ent = ''; diff --git a/public/static/common/lib/My97DatePicker/WdatePicker.js b/public/static/common/lib/My97DatePicker/WdatePicker.js index 9a38890df..3ef2f850b 100644 --- a/public/static/common/lib/My97DatePicker/WdatePicker.js +++ b/public/static/common/lib/My97DatePicker/WdatePicker.js @@ -3,11 +3,12 @@ * License: http://www.my97.net/license.asp */ // 默认语言 -var lang = (window['lang_multilingual_default_code'] || 'auto') == 'en' ? 'en' : 'zh-cn'; +var lang = window['lang_multilingual_default_code'] || 'auto'; var $dp,WdatePicker;(function(){var Config={ $langList:[{name:'en',charset:'UTF-8'}, - {name:'zh-cn',charset:'gb2312'}, - {name:'zh-tw',charset:'GBK'}], + {name:'zh',charset:'UTF-8'}, + {name:'cht',charset:'UTF-8'}, + {name:'spa',charset:'UTF-8'}], $skinList:[ {name:'default',charset:'gb2312'}, {name:'whyGreen',charset:'gb2312'}, diff --git a/public/static/common/lib/My97DatePicker/lang/cht.js b/public/static/common/lib/My97DatePicker/lang/cht.js new file mode 100644 index 000000000..66b5eaf87 --- /dev/null +++ b/public/static/common/lib/My97DatePicker/lang/cht.js @@ -0,0 +1,58 @@ +var $lang={ + "errAlertMsg": "不合法的日期格式或者日期超出限定範圍,需要撤銷嗎?", + "aWeekStr": [ + "周", + "日", + "一", + "二", + "三", + "四", + "五", + "六" + ], + "aLongWeekStr": [ + "周", + "星期日", + "星期一", + "星期二", + "星期三", + "星期四", + "星期五", + "星期六" + ], + "aMonStr": [ + "一月", + "二月", + "三月", + "四月", + "五月", + "六月", + "七月", + "八月", + "九月", + "十月", + "十一", + "十二" + ], + "aLongMonStr": [ + "一月", + "二月", + "三月", + "四月", + "五月", + "六月", + "七月", + "八月", + "九月", + "十月", + "十一月", + "十二月" + ], + "clearStr": "清空", + "todayStr": "今天", + "okStr": "確定", + "updateStr": "確定", + "timeStr": "時間", + "quickStr": "快速選擇", + "err_1": "最小日期不能大於最大日期!" +} \ No newline at end of file diff --git a/public/static/common/lib/My97DatePicker/lang/en.js b/public/static/common/lib/My97DatePicker/lang/en.js index e3ff1102f..8573b6d13 100644 --- a/public/static/common/lib/My97DatePicker/lang/en.js +++ b/public/static/common/lib/My97DatePicker/lang/en.js @@ -1,14 +1,59 @@ var $lang={ -errAlertMsg: "Invalid date or the date out of range,redo or not?", -aWeekStr: ["wk", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], -aLongWeekStr:["wk","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"], -aMonStr: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], -aLongMonStr: ["January","February","March","April","May","June","July","August","September","October","November","December"], -clearStr: "Clear", -todayStr: "Today", -okStr: "OK", -updateStr: "OK", -timeStr: "Time", -quickStr: "Quick Selection", -err_1: 'MinDate Cannot be bigger than MaxDate!' + "errAlertMsg": "Invalid date or the date out of range,redo or not?", + "aWeekStr": [ + "wk", + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "aLongWeekStr": [ + "wk", + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "aMonStr": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "aLongMonStr": [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + "clearStr": "Clear", + "todayStr": "Today", + "okStr": "OK", + "updateStr": "OK", + "timeStr": "Time", + "quickStr": "Quick Selection", + "err_1": "MinDate Cannot be bigger than MaxDate!" } \ No newline at end of file diff --git a/public/static/common/lib/My97DatePicker/lang/spa.js b/public/static/common/lib/My97DatePicker/lang/spa.js new file mode 100644 index 000000000..bf2bfb66c --- /dev/null +++ b/public/static/common/lib/My97DatePicker/lang/spa.js @@ -0,0 +1,58 @@ +var $lang={ + "errAlertMsg": "¿Deseas revertir la fecha debido a un formato de fecha no válido o una fecha que excede el rango permitido?", + "aWeekStr": [ + "Semana", + "D", + "L", + "M", + "MI", + "J", + "V", + "S" + ], + "aLongWeekStr": [ + "Semana", + "Domingo", + "Lunes", + "Martes", + "Miércoles", + "Jueves", + "Vidernes", + "Sábado" + ], + "aMonStr": [ + "Ene", + "Feb", + "Mar", + "Abr", + "May", + "Jun", + "Jul", + "Ago", + "Sep", + "Oct", + "Nov", + "Dic" + ], + "aLongMonStr": [ + "Ene", + "Feb", + "Mar", + "Abr", + "May", + "Jun", + "Jul", + "Ago", + "Sep", + "Oct", + "Nov", + "Dic" + ], + "clearStr": "Borrar", + "todayStr": "Hoy", + "okStr": "Confirmar", + "updateStr": "Confirmar", + "timeStr": "Tiempo", + "quickStr": "Elegir rápidamente", + "err_1": "La fecha mínima no puede ser mayor que la fecha máxima!" +} \ No newline at end of file diff --git a/public/static/common/lib/My97DatePicker/lang/zh-cn.js b/public/static/common/lib/My97DatePicker/lang/zh-cn.js deleted file mode 100644 index 125278566..000000000 --- a/public/static/common/lib/My97DatePicker/lang/zh-cn.js +++ /dev/null @@ -1,14 +0,0 @@ -var $lang={ -errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u8303\u56F4,\u9700\u8981\u64A4\u9500\u5417?", -aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"], -aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"], -aMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00","\u5341\u4E8C"], -aLongMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"], -clearStr: "\u6E05\u7A7A", -todayStr: "\u4ECA\u5929", -okStr: "\u786E\u5B9A", -updateStr: "\u786E\u5B9A", -timeStr: "\u65F6\u95F4", -quickStr: "\u5FEB\u901F\u9009\u62E9", -err_1: '\u6700\u5C0F\u65E5\u671F\u4E0D\u80FD\u5927\u4E8E\u6700\u5927\u65E5\u671F!' -} \ No newline at end of file diff --git a/public/static/common/lib/My97DatePicker/lang/zh-tw.js b/public/static/common/lib/My97DatePicker/lang/zh-tw.js deleted file mode 100644 index 32c04e013..000000000 --- a/public/static/common/lib/My97DatePicker/lang/zh-tw.js +++ /dev/null @@ -1,14 +0,0 @@ -var $lang={ -errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u7BC4\u570D,\u9700\u8981\u64A4\u92B7\u55CE?", -aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"], -aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"], -aMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00","\u5341\u4E8C"], -aLongMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"], -clearStr: "\u6E05\u7A7A", -todayStr: "\u4ECA\u5929", -okStr: "\u78BA\u5B9A", -updateStr: "\u78BA\u5B9A", -timeStr: "\u6642\u9593", -quickStr: "\u5FEB\u901F\u9078\u64C7", -err_1: '\u6700\u5C0F\u65E5\u671F\u4E0D\u80FD\u5927\u65BC\u6700\u5927\u65E5\u671F!' -} \ No newline at end of file diff --git a/public/static/common/lib/My97DatePicker/lang/zh.js b/public/static/common/lib/My97DatePicker/lang/zh.js new file mode 100644 index 000000000..aa57b0326 --- /dev/null +++ b/public/static/common/lib/My97DatePicker/lang/zh.js @@ -0,0 +1,58 @@ +var $lang={ + "errAlertMsg": "不合法的日期格式或者日期超出限定范围,需要撤销吗?", + "aWeekStr": [ + "周", + "日", + "一", + "二", + "三", + "四", + "五", + "六" + ], + "aLongWeekStr": [ + "周", + "星期日", + "星期一", + "星期二", + "星期三", + "星期四", + "星期五", + "星期六" + ], + "aMonStr": [ + "一月", + "二月", + "三月", + "四月", + "五月", + "六月", + "七月", + "八月", + "九月", + "十月", + "十一", + "十二" + ], + "aLongMonStr": [ + "一月", + "二月", + "三月", + "四月", + "五月", + "六月", + "七月", + "八月", + "九月", + "十月", + "十一月", + "十二月" + ], + "clearStr": "清空", + "todayStr": "今天", + "okStr": "确定", + "updateStr": "确定", + "timeStr": "时间", + "quickStr": "快速选择", + "err_1": "最小日期不能大于最大日期!" +} \ No newline at end of file diff --git a/public/static/common/lib/My97DatePicker/skin/default/datepicker.css b/public/static/common/lib/My97DatePicker/skin/default/datepicker.css index 5e7d43d55..bca8cf9b1 100644 --- a/public/static/common/lib/My97DatePicker/skin/default/datepicker.css +++ b/public/static/common/lib/My97DatePicker/skin/default/datepicker.css @@ -318,11 +318,15 @@ -webkit-appearance: none; padding-top: 0; height: 1.75em; - width: 2.8125em; + width: 4em; border: 0; margin-top: 0.1875em; - margin-right: 0.1875em; background: #35baf6; color: #fff; - border-radius: 0; + border-radius: 0.2em; + cursor: pointer; +} + +.WdateDiv .dpButton:not(:last-child) { + margin-right: 0.5em; } diff --git a/public/static/common/lib/amazeui-chosen/amazeui.chosen.css b/public/static/common/lib/amazeui-chosen/amazeui.chosen.css index a55e0cc85..e03982495 100755 --- a/public/static/common/lib/amazeui-chosen/amazeui.chosen.css +++ b/public/static/common/lib/amazeui-chosen/amazeui.chosen.css @@ -2,7 +2,7 @@ position: relative; display: inline-block; vertical-align: middle; - font-size: 12px; + font-size: 1.2rem; zoom: 1; -webkit-user-select: none; -moz-user-select: none; @@ -16,11 +16,14 @@ display: none; z-index: 1010; width: 100%; - border: 1px solid #bbb; + border: 0.1rem solid #eee; border-top: 0; background: #fff; - -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15); - box-shadow: 0 4px 5px rgba(0, 0, 0, .15) + -webkit-box-shadow: 0 0.4rem 0.5rem rgba(0, 0, 0, .15); + box-shadow: 0 0.4rem 0.5rem rgba(0, 0, 0, .15); + border-bottom-left-radius: 0.4rem; + border-bottom-right-radius: 0.4rem; + overflow: hidden; } .chosen-container.chosen-with-drop .chosen-drop { display: block; @@ -30,7 +33,7 @@ } .chosen-container .search-choice .group-name, .chosen-container .chosen-single .group-name { - margin-right: 4px; + margin-right: 0.4rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; @@ -40,21 +43,21 @@ .chosen-container .search-choice .group-name:after, .chosen-container .chosen-single .group-name:after { content: ":"; - padding-left: 2px; + padding-left: 0.2rem; vertical-align: top } .chosen-container-single .chosen-single { position: relative; display: block; overflow: hidden; - padding: 0 0 0 8px; - height: 36px; - border: 1px solid #ddd; + padding: 0 0 0 0.8rem; + height: 3.6rem; + border: 0.1rem solid #f0f0f0; background-color: #fff; color: #444; text-decoration: none; white-space: nowrap; - line-height: 35px + line-height: 3.5rem; } .chosen-container-single .chosen-default { color: #999 @@ -62,20 +65,20 @@ .chosen-container-single .chosen-single span { display: block; overflow: hidden; - margin-right: 26px; + margin-right: 2.6rem; text-overflow: ellipsis; white-space: nowrap } .chosen-container-single .chosen-single-with-deselect span { - margin-right: 38px + margin-right: 3.8rem; } .chosen-container-single .chosen-single abbr { position: absolute; - top: 10px; - right: 26px; + top: 1rem; + right: 2.6rem; display: block; - width: 12px; - height: 12px; + width: 1.2rem; + height: 1.2rem; color: #999 } .chosen-container-single .chosen-single abbr:before { @@ -100,7 +103,7 @@ top: 0; right: 0; display: block; - width: 18px; + width: 1.8rem; height: 100% } .chosen-container-single .chosen-single div:before { @@ -119,13 +122,13 @@ position: relative; z-index: 1010; margin: 0; - padding: 5px; + padding: 0.5rem; white-space: nowrap } .chosen-container-single .chosen-search:after { position: absolute; - right: 10px; - top: 15px; + right: 1rem; + top: 1.5rem; color: #aaa; display: inline-block; font-family: "FontAwesome", sans-serif; @@ -138,18 +141,18 @@ content: "\f002" } .chosen-container-single .chosen-search input[type="text"] { - margin: 1px 0; - padding: 5px 20px 5px 5px; + margin: 0.1rem 0; + padding: 0.5rem 2rem 0.5rem 0.5rem; width: 100%; height: auto; outline: 0; - border: 1px solid #ccc; - font-size: 1em; + border: 0.1rem solid #f0f0f0; + font-size: 1rem; line-height: normal; - border-radius: 2px + border-radius: 0.2rem } .chosen-container-single .chosen-drop { - margin-top: -1px; + margin-top: -0.1rem; -webkit-background-clip: padding-box; background-clip: padding-box } @@ -161,17 +164,17 @@ position: relative; overflow-x: hidden; overflow-y: auto; - margin: 0 4px 4px 0; - padding: 0 0 0 4px; - max-height: 240px; + margin: 0 0.4rem 0.4rem 0; + padding: 0 0 0 0.4rem; + max-height: 24rem; -webkit-overflow-scrolling: touch } .chosen-container .chosen-results li { display: none; margin: 0; - padding: 5px 6px; + padding: 0.5rem 0.6rem; list-style: none; - line-height: 15px; + line-height: 1.5rem; word-wrap: break-word; -webkit-touch-callout: none } @@ -203,10 +206,10 @@ color: #888 } .chosen-container .chosen-results li.group-option { - padding-left: 18px + padding-left: 1.8rem } .chosen-container .chosen-results li.group-option+.group-result { - margin-top: 10px + margin-top: 1rem } .chosen-container .chosen-results li em { font-style: normal; @@ -216,11 +219,11 @@ position: relative; overflow: hidden; margin: 0; - padding: 3px 5px; + padding: 0.3rem 0.5rem; width: 100%; height: auto !important; height: 1%; - border: 1px solid #ddd; + border: 0.1rem solid #f0f0f0; background-color: #fff; cursor: text } @@ -236,7 +239,7 @@ .chosen-container-multi .chosen-choices li.search-field input[type="text"] { margin: 0; padding: 0; - height: 25px; + height: 2.5rem; outline: 0; border: 0 !important; background: transparent !important; @@ -250,19 +253,19 @@ } .chosen-container-multi .chosen-choices li.search-choice { position: relative; - margin: 5px 5px 5px 0; - padding: 2px 13px 1px 2px; - border: 1px solid #ccc; + margin: 0.5rem 0.5rem 0.5rem 0; + padding: 0.2rem 1.3rem 0.1rem 0.2rem; + border: 0.1rem solid #ccc; max-width: 100%; background-color: #f2f2f2; background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f2f2f2)); background-image: -webkit-linear-gradient(top, #fff, #f2f2f2); background-image: linear-gradient(to bottom, #fff, #f2f2f2); - -webkit-box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, .05); - box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, .05); - border-radius: 1px; + -webkit-box-shadow: 0 0 0.2rem #fff inset, 0 0.1rem 0 rgba(0, 0, 0, .05); + box-shadow: 0 0 0.2rem #fff inset, 0 0.1rem 0 rgba(0, 0, 0, .05); + border-radius: 0.1rem; color: #333; - line-height: 16px; + line-height: 1.6rem; cursor: default } .chosen-container-multi .chosen-choices li.search-choice span { @@ -270,11 +273,11 @@ } .chosen-container-multi .chosen-choices li.search-choice .search-choice-close { position: absolute; - top: 2px; - right: 0px; + top: 0.2rem; + right: 0rem; display: block; - width: 12px; - height: 12px + width: 1.2rem; + height: 1.2rem } .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:before { display: inline-block; @@ -292,8 +295,8 @@ color: #666 } .chosen-container-multi .chosen-choices li.search-choice-disabled { - padding-right: 5px; - border: 1px solid #ccc; + padding-right: 0.5rem; + border: 0.1rem solid #ccc; background-color: #e4e4e4; color: #666 } @@ -301,7 +304,7 @@ background: #d4d4d4 } .chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close { - background-position: -42px -10px + background-position: -4.2rem -1rem } .chosen-container-multi .chosen-results { margin: 0; @@ -313,14 +316,14 @@ cursor: default } .chosen-container-active .chosen-single { - border: 1px solid #3bb4f2; - -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .3); - box-shadow: 0 0 5px rgba(0, 0, 0, .3) + border: 0.1rem solid #3bb4f2; } .chosen-container-active.chosen-with-drop .chosen-single { - border: 1px solid #bbb; - -webkit-box-shadow: 0 1px 0 #fff inset; - box-shadow: 0 1px 0 #fff inset + border: 0.1rem solid #eee; + -webkit-box-shadow: 0 0.1rem 0 #fff inset; + box-shadow: 0 0.1rem 0 #fff inset; + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; } .chosen-container-active.chosen-with-drop .chosen-single div { border-left: none; @@ -330,9 +333,11 @@ content: "\f0d8" } .chosen-container-active .chosen-choices { - border: 1px solid #3bb4f2; - -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .3); - box-shadow: 0 0 5px rgba(0, 0, 0, .3) + border: 0.1rem solid #3bb4f2; + -webkit-box-shadow: inset 0 0.1rem 0.1rem rgba(0,0,0,.075), 0 0 0.5rem rgba(59, 180, 242, 0.3); + box-shadow: inset 0 0.1rem 0.1rem rgba(0,0,0,.075), 0 0 0.5rem rgba(59, 180, 242, 0.3); + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; } .chosen-container-active .chosen-choices li.search-field input[type="text"] { color: #222 !important @@ -344,4 +349,8 @@ .chosen-disabled .chosen-single, .chosen-disabled .chosen-choices .search-choice .search-choice-close { cursor: default +} +select.am-field-error + .chosen-container-single .chosen-single, +select.am-field-error + .chosen-container-multi .chosen-choices { + border-color: #dd514c !important; } \ No newline at end of file diff --git a/public/static/common/lib/amazeui-chosen/amazeui.chosen.js b/public/static/common/lib/amazeui-chosen/amazeui.chosen.js index a5e52b408..49cc86ed1 100755 --- a/public/static/common/lib/amazeui-chosen/amazeui.chosen.js +++ b/public/static/common/lib/amazeui-chosen/amazeui.chosen.js @@ -464,7 +464,7 @@ This file is generated by `grunt build`, do not edit it by hand. if (this.options.width != null) { return this.options.width; } else { - return "" + this.form_field.offsetWidth + "px"; + return "" + this.form_field.offsetWidth/10 + "rem"; } }; @@ -586,7 +586,7 @@ This file is generated by `grunt build`, do not edit it by hand. } this.container = $("
    ", container_props); if (this.is_multiple) { - this.container.html('
      '); + this.container.html('
        '); } else { this.container.html('' + this.default_text + '
          '); } @@ -1231,10 +1231,10 @@ This file is generated by `grunt build`, do not edit it by hand. w = f_width - 10; } return this.search_field.css({ - 'width': w + 'px' + 'width': w/10 + 'rem' }); } }; return Chosen; })(AbstractChosen); -}).call(this); +}).call(this); \ No newline at end of file diff --git a/public/static/common/lib/amazeui-dialog/amazeui.dialog.js b/public/static/common/lib/amazeui-dialog/amazeui.dialog.js index ea7dcac4a..eee16829e 100755 --- a/public/static/common/lib/amazeui-dialog/amazeui.dialog.js +++ b/public/static/common/lib/amazeui-dialog/amazeui.dialog.js @@ -191,7 +191,7 @@ dialog.popup = function(options) { } else { html.push('');e.attr("id",t);var i=new o({render:"canvas",correctLevel:0,text:a.location.href,width:180,height:180,background:"#fff",foreground:"#000"});e.find(".am-share-wx-qr").html(i),e.appendTo(n("body")),this.$wechatQr=n("#"+t)}this.$wechatQr.modal("open")};var c=new l;r.on("click.share.amui.data-api",'[data-am-toggle="share"]',function(t){t.preventDefault(),c.toggle()}),t.exports=s.share=c},function(t,e,i){function n(t){return t<128?[t]:t<2048?(c0=192+(t>>6),c1=128+(63&t),[c0,c1]):(c0=224+(t>>12),c1=128+(t>>6&63),c2=128+(63&t),[c0,c1,c2])}function s(t){for(var e=[],i=0;i>6),c1=128+(63&t),[c0,c1]):(c0=224+(t>>12),c1=128+(t>>6&63),c2=128+(63&t),[c0,c1,c2])}function s(t){for(var e=[],i=0;i');var i=-1,n=-1,s=-1,o=-1;i=s=Math.floor(this.options.width/t.getModuleCount()),n=o=Math.floor(this.options.height/t.getModuleCount()),s<=0&&(i=t.getModuleCount()<80?2:1),o<=0&&(n=t.getModuleCount()<80?2:1),foreTd='',backTd='',l=t.getModuleCount();for(var a=0;a');for(var r=0;r")}e.push("");var c=document.createElement("span");return c.innerHTML=e.join(""),c.firstChild},d.prototype.createSVG=function(t){for(var e,i,n,s,o=t.getModuleCount(),a=this.options.height/this.options.width,r='',l="',h=' style="stroke-width:0.5;stroke:'+this.options.background+";fill:"+this.options.background+';">',d=0;d=7&&this.setupTypeNumber(!0),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(t,e){for(var i=-1;i<=7;i++)if(!(t+i<=-1||this.moduleCount<=t+i))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(0<=i&&i<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==i||6==i)||2<=i&&i<=4&&2<=n&&n<=4?this.modules[t+i][e+n]=!0:this.modules[t+i][e+n]=!1)},createQrcode:function(){for(var t=0,e=0,i=null,n=0;n<8;n++){this.makeImpl(n);var s=f.getLostPoint(this);(0==n||t>s)&&(t=s,e=n,i=this.modules)}this.modules=i,this.setupTypeInfo(!1,e),this.typeNumber>=7&&this.setupTypeNumber(!1)},setupTimingPattern:function(){for(var t=8;t>i&1);this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3]=n,this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)]=n}},setupTypeInfo:function(t,e){for(var i=p[this.errorCorrectLevel]<<3|e,n=f.getBCHTypeInfo(i),s=0;s<15;s++){var o=!t&&1==(n>>s&1);s<6?this.modules[s][8]=o:s<8?this.modules[s+1][8]=o:this.modules[this.moduleCount-15+s][8]=o;var o=!t&&1==(n>>s&1);s<8?this.modules[8][this.moduleCount-s-1]=o:s<9?this.modules[8][15-s-1+1]=o:this.modules[8][15-s-1]=o}this.modules[this.moduleCount-8][8]=!t},createData:function(){var t=new r,e=this.typeNumber>9?16:8;t.put(4,4),t.put(this.utf8bytes.length,e);for(var i=0,n=this.utf8bytes.length;i=8*this.totalDataCount)break;if(t.put(o.PAD0,8),t.length>=8*this.totalDataCount)break;t.put(o.PAD1,8)}return this.createBytes(t)},createBytes:function(t){for(var e=0,i=0,n=0,s=this.rsBlock.length/3,o=new Array,r=0;r=0?b.get(T):0}}for(var x=new Array(this.totalDataCount),C=0,r=0;r0;a-=2)for(6==a&&a--;;){for(var r=0;r<2;r++)if(null==this.modules[n][a-r]){var l=!1;o>>s&1));var c=f.getMask(e,n,a-r);c&&(l=!l),this.modules[n][a-r]=l,s--,s==-1&&(o++,s=7)}if(n+=i,n<0||this.moduleCount<=n){n-=i,i=-i;break}}}},o.PAD0=236,o.PAD1=17;for(var p=[1,0,3,2],m={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},f={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;f.getBCHDigit(e)-f.getBCHDigit(f.G15)>=0;)e^=f.G15<=0;)e^=f.G18<>>=1;return e},getPatternPosition:function(t){return f.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,i){switch(t){case m.PATTERN000:return(e+i)%2==0;case m.PATTERN001:return e%2==0;case m.PATTERN010:return i%3==0;case m.PATTERN011:return(e+i)%3==0;case m.PATTERN100:return(Math.floor(e/2)+Math.floor(i/3))%2==0;case m.PATTERN101:return e*i%2+e*i%3==0;case m.PATTERN110:return(e*i%2+e*i%3)%2==0;case m.PATTERN111:return(e*i%3+(e+i)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new a([1],0),i=0;i3&&t.modules[s][r-1]&&t.modules[s][r-2]&&t.modules[s][r-3]&&t.modules[s][r-4]&&(i+=40)),s=5&&(i+=3+o-5),o=1),l&&n++}for(var r=0;r3&&t.modules[s-1][r]&&t.modules[s-2][r]&&t.modules[s-3][r]&&t.modules[s-4][r]&&(i+=40)), +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?exports.AMUI=e(require("jquery")):t.AMUI=e(t.jQuery)}(this,function(t){return function(t){function e(n){if(i[n])return i[n].exports;var s=i[n]={exports:{},id:n,loaded:!1};return t[n].call(s.exports,s,s.exports,e),s.loaded=!0,s.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){"use strict";var n=i(1),s=i(2);i(3),i(4),i(5),i(6),i(7),i(8),i(9),i(10),i(11),i(14),i(15),i(16),i(17),i(18),i(19),i(20),i(21),i(22),i(24),i(25),i(23),i(27),i(28),i(29),i(30),i(31),i(32),i(33),i(26),i(34),i(35),i(36),i(37),i(38),i(39),i(40),i(41),i(42),i(43),i(44),i(45),i(46),i(47),i(48),i(49),i(50),i(51),i(52),i(53),i(54),t.exports=n.AMUI=s},function(e,i){e.exports=t},function(t,e,i){"use strict";var n=i(1);if("undefined"==typeof n)throw new Error("Amaze UI 2.x requires jQuery :-(\n\u7231\u4e0a\u4e00\u5339\u91ce\u9a6c\uff0c\u53ef\u4f60\u7684\u5bb6\u91cc\u6ca1\u6709\u8349\u539f\u2026");var s=n.AMUI||{},o=n(window),a=window.document,r=n("html");s.VERSION="2.7.2",s.support={},s.support.transition=function(){var t=function(){var t=a.body||a.documentElement,e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return e[i]}();return t&&{end:t}}(),s.support.animation=function(){var t=function(){var t=a.body||a.documentElement,e={WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var i in e)if(void 0!==t.style[i])return e[i]}();return t&&{end:t}}(),s.support.touch="ontouchstart"in window&&navigator.userAgent.toLowerCase().match(/mobile|tablet/)||window.DocumentTouch&&document instanceof window.DocumentTouch||window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>0||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>0||!1,s.support.mutationobserver=window.MutationObserver||window.WebKitMutationObserver||null,s.support.formValidation="function"==typeof document.createElement("form").checkValidity,s.utils={},s.utils.debounce=function(t,e,i){var n;return function(){var s=this,o=arguments,a=function(){n=null,i||t.apply(s,o)},r=i&&!n;clearTimeout(n),n=setTimeout(a,e),r&&t.apply(s,o)}},s.utils.isInView=function(t,e){var i=n(t),s=!(!i.width()&&!i.height())&&"none"!==i.css("display");if(!s)return!1;var a=o.scrollLeft(),r=o.scrollTop(),l=i.offset(),c=l.left,u=l.top;return e=n.extend({topOffset:0,leftOffset:0},e),u+i.height()>=r&&u-e.topOffset<=r+o.height()&&c+i.width()>=a&&c-e.leftOffset<=a+o.width()},s.utils.parseOptions=s.utils.options=function(t){if(n.isPlainObject(t))return t;var e=t?t.indexOf("{"):-1,i={};if(e!=-1)try{i=new Function("","var json = "+t.substr(e)+"; return JSON.parse(JSON.stringify(json));")()}catch(s){}return i},s.utils.generateGUID=function(t){var e=t+"-"||"am-";do e+=Math.random().toString(36).substring(2,7);while(document.getElementById(e));return e},s.utils.getAbsoluteUrl=function(){var t;return function(e){return t||(t=document.createElement("a")),t.href=e,t.href}}(),s.plugin=function(t,e,i){var o=n.fn[t];i=i||{},n.fn[t]=function(o){var a,r=Array.prototype.slice.call(arguments,0),l=r.slice(1),c=this.each(function(){var c=n(this),u="amui."+t,h=i.dataOptions||"data-am-"+t,d=c.data(u),p=n.extend({},s.utils.parseOptions(c.attr(h)),"object"==typeof o&&o);(d||"destroy"!==o)&&(d||c.data(u,d=new e(this,p)),i.methodCall?i.methodCall.call(c,r,d):(i.before&&i.before.call(c,r,d),"string"==typeof o&&(a="function"==typeof d[o]?d[o].apply(d,l):d[o]),i.after&&i.after.call(c,r,d)))});return void 0===a?c:a},n.fn[t].Constructor=e,n.fn[t].noConflict=function(){return n.fn[t]=o,this},s[t]=e},n.fn.emulateTransitionEnd=function(t){var e=!1,i=this;n(this).one(s.support.transition.end,function(){e=!0});var o=function(){e||n(i).trigger(s.support.transition.end),i.transitionEndTimmer=void 0};return this.transitionEndTimmer=setTimeout(o,t),this},n.fn.redraw=function(){return this.each(function(){this.offsetHeight})},n.fn.transitionEnd=function(t){function e(s){t.call(this,s),i&&n.off(i,e)}var i=s.support.transition.end,n=this;return t&&i&&n.on(i,e),this},n.fn.removeClassRegEx=function(){return this.each(function(t){var e=n(this).attr("class");if(!e||!t)return!1;var i=[];e=e.split(" ");for(var s=0,o=e.length;s=window.innerWidth)return 0;var t=n('
          ');n(document.body).append(t);var e=t[0].offsetWidth-t[0].clientWidth;return t.remove(),e},s.utils.imageLoader=function(t,e){function i(){e(t[0])}function n(){if(this.one("load",i),/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var t=this.attr("src"),e=t.match(/\?/)?"&":"?";e+="random="+(new Date).getTime(),this.attr("src",t+e)}}return t.attr("src")?void(t[0].complete||4===t[0].readyState?i():n.call(t)):void i()},s.template=function(t,e){var i=s.template;return i.cache[t]||(i.cache[t]=function(){var e=t,n=/^[\w\-]+$/.test(t)?i.get(t):(e="template(string)",t),s=1,o=("try { "+(i.variable?"var "+i.variable+" = this.stash;":"with (this.stash) { ")+"this.ret += '"+n.replace(/<%/g,"\x11").replace(/%>/g,"\x13").replace(/'(?![^\x11\x13]+?\x13)/g,"\\x27").replace(/^\s*|\s*$/g,"").replace(/\n/g,function(){return"';\nthis.line = "+ ++s+"; this.ret += '\\n"}).replace(/\x11-(.+?)\x13/g,"' + ($1) + '").replace(/\x11=(.+?)\x13/g,"' + this.escapeHTML($1) + '").replace(/\x11(.+?)\x13/g,"'; $1; this.ret += '")+"'; "+(i.variable?"":"}")+"return this.ret;} catch (e) { throw 'TemplateError: ' + e + ' (on "+e+"' + ' line ' + this.line + ')'; } //@ sourceURL="+e+"\n").replace(/this\.ret \+= '';/g,""),a=new Function(o),r={"&":"&","<":"<",">":">",'"':""","'":"'"},l=function(t){return(""+t).replace(/[&<>\'\"]/g,function(t){return r[t]})};return function(t){return a.call(i.context={escapeHTML:l,line:1,ret:"",stash:t})}}()),e?i.cache[t](e):i.cache[t]},s.template.cache={},s.template.get=function(t){if(t){var e=document.getElementById(t);return e&&e.innerHTML||""}},s.DOMWatchers=[],s.DOMReady=!1,s.ready=function(t){s.DOMWatchers.push(t),s.DOMReady&&t(document)},s.DOMObserve=function(t,e,i){var o=s.support.mutationobserver;o&&(e=n.isPlainObject(e)?e:{childList:!0,subtree:!0},i="function"==typeof i&&i||function(){},n(t).each(function(){var t=this,a=n(t);if(!a.data("am.observer"))try{var r=new o(s.utils.debounce(function(e,n){i.call(t,e,n),a.trigger("changed.dom.amui")},50));r.observe(t,e),a.data("am.observer",r)}catch(l){}}))},n.fn.DOMObserve=function(t,e){return this.each(function(){s.DOMObserve(this,t,e)})},s.support.touch&&r.addClass("am-touch"),n(document).on("changed.dom.amui",function(t){var e=t.target;n.each(s.DOMWatchers,function(t,i){i(e)})}),n(function(){var t=n(document.body);s.DOMReady=!0,n.each(s.DOMWatchers,function(t,e){e(document)}),s.DOMObserve("[data-am-observe]"),r.removeClass("no-js").addClass("js"),s.support.animation&&r.addClass("cssanimations"),window.navigator.standalone&&r.addClass("am-standalone"),n(".am-topbar-fixed-top").length&&t.addClass("am-with-topbar-fixed-top"),n(".am-topbar-fixed-bottom").length&&t.addClass("am-with-topbar-fixed-bottom");var e=n(".am-layout");e.find('[class*="md-block-grid"]').alterClass("md-block-grid-*"),e.find('[class*="lg-block-grid"]').alterClass("lg-block-grid"),n("[data-am-widget]").each(function(){var t=n(this);0===t.parents(".am-layout").length&&t.addClass("am-no-layout")})}),t.exports=s},function(t,e,i){"use strict";function n(t,e,i){return setTimeout(l(t,i),e)}function s(t,e,i){return!!Array.isArray(t)&&(o(t,i[e],i),!0)}function o(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(void 0!==t.length)for(n=0;n\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=window.console&&(window.console.warn||window.console.log);return s&&s.call(window.console,n,i),t.apply(this,arguments)}}function r(t,e,i){var n,s=e.prototype;n=t.prototype=Object.create(s),n.constructor=t,n._super=s,i&&ut(n,i)}function l(t,e){return function(){return t.apply(e,arguments)}}function c(t,e){return typeof t==ft?t.apply(e?e[0]||void 0:void 0,e):t}function u(t,e){return void 0===t?e:t}function h(t,e,i){o(f(e),function(e){t.addEventListener(e,i,!1)})}function d(t,e,i){o(f(e),function(e){t.removeEventListener(e,i,!1)})}function p(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function m(t,e){return t.indexOf(e)>-1}function f(t){return t.trim().split(/\s+/g)}function v(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;ni[e]}):n.sort()),n}function w(t,e){for(var i,n,s=e[0].toUpperCase()+e.slice(1),o=0;o1&&!i.firstMultiple?i.firstMultiple=F(e):1===s&&(i.firstMultiple=!1);var o=i.firstInput,a=i.firstMultiple,r=a?a.center:o.center,l=e.center=A(n);e.timeStamp=yt(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=N(r,l),e.distance=P(r,l),k(i,e),e.offsetDirection=M(e.deltaX,e.deltaY);var c=$(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=gt(c.x)>gt(c.y)?c.x:c.y,e.scale=a?O(a.pointers,n):1,e.rotation=a?I(a.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,D(i,e);var u=t.element;p(e.srcEvent.target,u)&&(u=e.srcEvent.target),e.target=u}function k(t,e){var i=e.center,n=t.offsetDelta||{},s=t.prevDelta||{},o=t.prevInput||{};e.eventType!==Mt&&o.eventType!==Nt||(s=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=s.x+(i.x-n.x),e.deltaY=s.y+(i.y-n.y)}function D(t,e){var i,n,s,o,a=t.lastInterval||e,r=e.timeStamp-a.timeStamp;if(e.eventType!=It&&(r>$t||void 0===a.velocity)){var l=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,u=$(r,l,c);n=u.x,s=u.y,i=gt(u.x)>gt(u.y)?u.x:u.y,o=M(l,c),t.lastInterval=e}else i=a.velocity,n=a.velocityX,s=a.velocityY,o=a.direction;e.velocity=i,e.velocityX=n,e.velocityY=s,e.direction=o}function F(t){for(var e=[],i=0;i=gt(e)?t<0?Lt:_t:e<0?zt:Rt}function P(t,e,i){i||(i=Bt);var n=e[i[0]]-t[i[0]],s=e[i[1]]-t[i[1]];return Math.sqrt(n*n+s*s)}function N(t,e,i){i||(i=Bt);var n=e[i[0]]-t[i[0]],s=e[i[1]]-t[i[1]];return 180*Math.atan2(s,n)/Math.PI}function I(t,e){return N(e[1],e[0],Ut)+N(t[1],t[0],Ut)}function O(t,e){return P(e[0],e[1],Ut)/P(t[0],t[1],Ut)}function L(){this.evEl=Xt,this.evWin=Yt,this.pressed=!1,x.apply(this,arguments)}function _(){this.evEl=Gt,this.evWin=Kt,x.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function z(){this.evTarget=Qt,this.evWin=te,this.started=!1,x.apply(this,arguments)}function R(t,e){var i=g(t.touches),n=g(t.changedTouches);return e&(Nt|It)&&(i=y(i.concat(n),"identifier",!0)),[i,n]}function q(){this.evTarget=ie,this.targetIds={},x.apply(this,arguments)}function W(t,e){var i=g(t.touches),n=this.targetIds;if(e&(Mt|Pt)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var s,o,a=g(t.changedTouches),r=[],l=this.target;if(o=i.filter(function(t){return p(t.target,l)}),e===Mt)for(s=0;s-1&&n.splice(t,1)};setTimeout(s,ne)}}function V(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){i.manager.emit(e,t)}var i=this,n=this.state;n=ge&&e(i.options.event+G(n))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=be)},canEmit:function(){for(var t=0;te.threshold&&s&e.direction},attrTest:function(t){return Q.prototype.attrTest.call(this,t)&&(this.state&fe||!(this.state&fe)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=K(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),r(et,Q,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ue]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&fe)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),r(it,Z,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[le]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,s=t.distancee.time;if(this._input=t,!s||!i||t.eventType&(Nt|It)&&!o)this.reset();else if(t.eventType&Mt)this.reset(),this._timer=n(function(){this.state=ye,this.tryEmit()},e.time,this);else if(t.eventType&Nt)return ye;return be},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ye&&(t&&t.eventType&Nt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=yt(),this.manager.emit(this.options.event,this._input)))}}),r(nt,Q,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ue]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&fe)}}),r(st,Q,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:qt|Wt,pointers:1},getTouchAction:function(){return tt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(qt|Wt)?e=t.overallVelocity:i&qt?e=t.overallVelocityX:i&Wt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&>(e)>this.options.velocity&&t.eventType&Nt},emit:function(t){var e=K(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),r(ot,Z,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ce]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,s=t.distanceAdd to Home Screen.",android:'To add this web app to the home screen open the browser option menu and tap on Add to homescreen. The menu can be accessed by pressing the menu hardware button if your device has one, or by tapping the top right menu icon icon.'},zh_cn:{ios:"\u5982\u8981\u628a\u5e94\u7528\u7a0b\u5f0f\u52a0\u81f3\u4e3b\u5c4f\u5e55,\u8bf7\u70b9\u51fb%icon, \u7136\u540e\u52a0\u81f3\u4e3b\u5c4f\u5e55",android:'To add this web app to the home screen open the browser option menu and tap on Add to homescreen. The menu can be accessed by pressing the menu hardware button if your device has one, or by tapping the top right menu icon icon.'},zh_tw:{ios:"\u5982\u8981\u628a\u61c9\u7528\u7a0b\u5f0f\u52a0\u81f3\u4e3b\u5c4f\u5e55, \u8acb\u9ede\u64ca%icon, \u7136\u5f8c\u52a0\u81f3\u4e3b\u5c4f\u5e55.",android:'To add this web app to the home screen open the browser option menu and tap on Add to homescreen. The menu can be accessed by pressing the menu hardware button if your device has one, or by tapping the top right menu icon icon.'}};for(var p in s.intl)s.intl[p.substr(0,2)]=s.intl[p];s.defaults={appID:"org.cubiq.addtohome",fontSize:15,debug:!1,logging:!1,modal:!1,mandatory:!1,autostart:!0,skipFirstVisit:!1,startDelay:1,lifespan:15,displayPace:1440,maxDisplayCount:0,icon:!0,message:"",validLocation:[],onInit:null,onShow:null,onRemove:null,onAdd:null,onPrivate:null,privateModeOverride:!1,detectHomescreen:!1};var m=window.navigator.userAgent,f=window.navigator;o(s,{hasToken:"#ath"==document.location.hash||h.test(document.location.href)||d.test(document.location.search),isRetina:window.devicePixelRatio&&window.devicePixelRatio>1,isIDevice:/iphone|ipod|ipad/i.test(m), +isMobileChrome:m.indexOf("Android")>-1&&/Chrome\/[.0-9]*/.test(m)&&m.indexOf("Version")==-1,isMobileIE:m.indexOf("Windows Phone")>-1,language:f.language&&f.language.toLowerCase().replace("-","_")||""}),s.language=s.language&&s.language in s.intl?s.language:"en_us",s.isMobileSafari=s.isIDevice&&m.indexOf("Safari")>-1&&m.indexOf("CriOS")<0,s.OS=s.isIDevice?"ios":s.isMobileChrome?"android":s.isMobileIE?"windows":"unsupported",s.OSVersion=m.match(/(OS|Android) (\d+[_\.]\d+)/),s.OSVersion=s.OSVersion&&s.OSVersion[2]?+s.OSVersion[2].replace("_","."):0,s.isStandalone="standalone"in window.navigator&&window.navigator.standalone,s.isTablet=s.isMobileSafari&&m.indexOf("iPad")>-1||s.isMobileChrome&&m.indexOf("Mobile")<0,s.isCompatible=s.isMobileSafari&&s.OSVersion>=6||s.isMobileChrome;var v={lastDisplayTime:0,returningVisitor:!1,displayCount:0,optedout:!1,added:!1};s.removeSession=function(t){try{if(!localStorage)throw new Error("localStorage is not defined");localStorage.removeItem(t||s.defaults.appID)}catch(e){}},s.doLog=function(t){this.options.logging&&console.log(t)},s.Class=function(t){if(this.doLog=s.doLog,this.options=o({},s.defaults),o(this.options,t),this.options.debug&&(this.options.logging=!0),l){if(this.options.mandatory=this.options.mandatory&&("standalone"in window.navigator||this.options.debug),this.options.modal=this.options.modal||this.options.mandatory,this.options.mandatory&&(this.options.startDelay=-.5),this.options.detectHomescreen=this.options.detectHomescreen===!0?"hash":this.options.detectHomescreen,this.options.debug&&(s.isCompatible=!0,s.OS="string"==typeof this.options.debug?this.options.debug:"unsupported"==s.OS?"android":s.OS,s.OSVersion="ios"==s.OS?"8":"4"),this.container=document.documentElement,this.session=this.getItem(this.options.appID),this.session=this.session?JSON.parse(this.session):void 0,!s.hasToken||s.isCompatible&&this.session||(s.hasToken=!1,a()),!s.isCompatible)return void this.doLog("Add to homescreen: not displaying callout because device not supported");this.session=this.session||v;try{if(!localStorage)throw new Error("localStorage is not defined");localStorage.setItem(this.options.appID,JSON.stringify(this.session)),s.hasLocalStorage=!0}catch(e){s.hasLocalStorage=!1,this.options.onPrivate&&this.options.onPrivate.call(this)}for(var i=!this.options.validLocation.length,n=this.options.validLocation.length;n--;)if(this.options.validLocation[n].test(document.location.href)){i=!0;break}if(this.getItem("addToHome")&&this.optOut(),this.session.optedout)return void this.doLog("Add to homescreen: not displaying callout because user opted out");if(this.session.added)return void this.doLog("Add to homescreen: not displaying callout because already added to the homescreen");if(!i)return void this.doLog("Add to homescreen: not displaying callout because not a valid location");if(s.isStandalone)return this.session.added||(this.session.added=!0,this.updateSession(),this.options.onAdd&&s.hasLocalStorage&&this.options.onAdd.call(this)),void this.doLog("Add to homescreen: not displaying callout because in standalone mode");if(this.options.detectHomescreen){if(s.hasToken)return a(),this.session.added||(this.session.added=!0,this.updateSession(),this.options.onAdd&&s.hasLocalStorage&&this.options.onAdd.call(this)),void this.doLog("Add to homescreen: not displaying callout because URL has token, so we are likely coming from homescreen");"hash"==this.options.detectHomescreen?history.replaceState("",window.document.title,document.location.href+"#ath"):"smartURL"==this.options.detectHomescreen?history.replaceState("",window.document.title,document.location.href.replace(/(\/)?$/,"/ath$1")):history.replaceState("",window.document.title,document.location.href+(document.location.search?"&":"?")+"ath=")}if(!this.session.returningVisitor&&(this.session.returningVisitor=!0,this.updateSession(),this.options.skipFirstVisit))return void this.doLog("Add to homescreen: not displaying callout because skipping first visit");if(!this.options.privateModeOverride&&!s.hasLocalStorage)return void this.doLog("Add to homescreen: not displaying callout because browser is in private mode");this.ready=!0,this.options.onInit&&this.options.onInit.call(this),this.options.autostart&&(this.doLog("Add to homescreen: autostart displaying callout"),this.show())}},s.Class.prototype={events:{load:"_delayedShow",error:"_delayedShow",orientationchange:"resize",resize:"resize",scroll:"resize",click:"remove",touchmove:"_preventDefault",transitionend:"_removeElements",webkitTransitionEnd:"_removeElements",MSTransitionEnd:"_removeElements"},handleEvent:function(t){var e=this.events[t.type];e&&this[e](t)},show:function(t){if(this.options.autostart&&!c)return void setTimeout(this.show.bind(this),50);if(this.shown)return void this.doLog("Add to homescreen: not displaying callout because already shown on screen");var e=Date.now(),i=this.session.lastDisplayTime;if(t!==!0){if(!this.ready)return void this.doLog("Add to homescreen: not displaying callout because not ready");if(e-i<6e4*this.options.displayPace)return void this.doLog("Add to homescreen: not displaying callout because displayed recently");if(this.options.maxDisplayCount&&this.session.displayCount>=this.options.maxDisplayCount)return void this.doLog("Add to homescreen: not displaying callout because displayed too many times already")}this.shown=!0,this.session.lastDisplayTime=e,this.session.displayCount++,this.updateSession(),this.applicationIcon||("ios"==s.OS?this.applicationIcon=document.querySelector('head link[rel^=apple-touch-icon][sizes="152x152"],head link[rel^=apple-touch-icon][sizes="144x144"],head link[rel^=apple-touch-icon][sizes="120x120"],head link[rel^=apple-touch-icon][sizes="114x114"],head link[rel^=apple-touch-icon]'):this.applicationIcon=document.querySelector('head link[rel^="shortcut icon"][sizes="196x196"],head link[rel^=apple-touch-icon]'));var n="";"object"==typeof this.options.message&&s.language in this.options.message?n=this.options.message[s.language][s.OS]:"object"==typeof this.options.message&&s.OS in this.options.message?n=this.options.message[s.OS]:this.options.message in s.intl?n=s.intl[this.options.message][s.OS]:""!==this.options.message?n=this.options.message:s.OS in s.intl[s.language]&&(n=s.intl[s.language][s.OS]),n="

          "+n.replace("%icon",'icon')+"

          ",this.viewport=document.createElement("div"),this.viewport.className="ath-viewport",this.options.modal&&(this.viewport.className+=" ath-modal"),this.options.mandatory&&(this.viewport.className+=" ath-mandatory"),this.viewport.style.position="absolute",this.element=document.createElement("div"),this.element.className="ath-container ath-"+s.OS+" ath-"+s.OS+(s.OSVersion+"").substr(0,1)+" ath-"+(s.isTablet?"tablet":"phone"),this.element.style.cssText="-webkit-transition-property:-webkit-transform,opacity;-webkit-transition-duration:0s;-webkit-transition-timing-function:ease-out;transition-property:transform,opacity;transition-duration:0s;transition-timing-function:ease-out;",this.element.style.webkitTransform="translate3d(0,-"+window.innerHeight+"rem,0)",this.element.style.transform="translate3d(0,-"+window.innerHeight+"rem,0)",this.options.icon&&this.applicationIcon&&(this.element.className+=" ath-icon",this.img=document.createElement("img"),this.img.className="ath-application-icon",this.img.addEventListener("load",this,!1),this.img.addEventListener("error",this,!1),this.img.src=this.applicationIcon.href,this.element.appendChild(this.img)),this.element.innerHTML+=n,this.viewport.style.left="-99999em",this.viewport.appendChild(this.element),this.container.appendChild(this.viewport),this.img?this.doLog("Add to homescreen: not displaying callout because waiting for img to load"):this._delayedShow()},_delayedShow:function(t){setTimeout(this._show.bind(this),1e3*this.options.startDelay+500)},_show:function(){var t=this;this.updateViewport(),window.addEventListener("resize",this,!1),window.addEventListener("scroll",this,!1),window.addEventListener("orientationchange",this,!1),this.options.modal&&document.addEventListener("touchmove",this,!0),this.options.mandatory||setTimeout(function(){t.element.addEventListener("click",t,!0)},1e3),setTimeout(function(){t.element.style.webkitTransitionDuration="1.2s",t.element.style.transitionDuration="1.2s",t.element.style.webkitTransform="translate3d(0,0,0)",t.element.style.transform="translate3d(0,0,0)"},0),this.options.lifespan&&(this.removeTimer=setTimeout(this.remove.bind(this),1e3*this.options.lifespan)),this.options.onShow&&this.options.onShow.call(this)},remove:function(){clearTimeout(this.removeTimer),this.img&&(this.img.removeEventListener("load",this,!1),this.img.removeEventListener("error",this,!1)),window.removeEventListener("resize",this,!1),window.removeEventListener("scroll",this,!1),window.removeEventListener("orientationchange",this,!1),document.removeEventListener("touchmove",this,!0),this.element.removeEventListener("click",this,!0),this.element.addEventListener("transitionend",this,!1),this.element.addEventListener("webkitTransitionEnd",this,!1),this.element.addEventListener("MSTransitionEnd",this,!1),this.element.style.webkitTransitionDuration="0.3s",this.element.style.opacity="0"},_removeElements:function(){this.element.removeEventListener("transitionend",this,!1),this.element.removeEventListener("webkitTransitionEnd",this,!1),this.element.removeEventListener("MSTransitionEnd",this,!1),this.container.removeChild(this.viewport),this.shown=!1,this.options.onRemove&&this.options.onRemove.call(this)},updateViewport:function(){if(this.shown){this.viewport.style.width=window.innerWidth+"rem",this.viewport.style.height=window.innerHeight+"rem",this.viewport.style.left=window.scrollX+"rem",this.viewport.style.top=window.scrollY+"rem";var t=document.documentElement.clientWidth;this.orientation=t>document.documentElement.clientHeight?"landscape":"portrait";var e="ios"==s.OS?"portrait"==this.orientation?screen.width:screen.height:screen.width;this.scale=screen.width>t?1:e/window.innerWidth,this.element.style.fontSize=this.options.fontSize/this.scale+"rem"}},resize:function(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(this.updateViewport.bind(this),100)},updateSession:function(){s.hasLocalStorage!==!1&&localStorage&&localStorage.setItem(this.options.appID,JSON.stringify(this.session))},clearSession:function(){this.session=v,this.updateSession()},getItem:function(t){try{if(!localStorage)throw new Error("localStorage is not defined");return localStorage.getItem(t)}catch(e){s.hasLocalStorage=!1}},optOut:function(){this.session.optedout=!0,this.updateSession()},optIn:function(){this.session.optedout=!1,this.updateSession()},clearDisplayCount:function(){this.session.displayCount=0,this.updateSession()},_preventDefault:function(t){t.preventDefault(),t.stopPropagation()}},s.VERSION="3.2.2",t.exports=r.addToHomescreen=s},function(t,e,i){"use strict";var n=i(1),s=i(2),o=function(t,e){var i=this;this.options=n.extend({},o.DEFAULTS,e),this.$element=n(t),this.$element.addClass("am-fade am-in").on("click.alert.amui",".am-close",function(){i.close()})};o.DEFAULTS={removeElement:!0},o.prototype.close=function(){function t(){e.trigger("closed.alert.amui").remove()}var e=this.$element;e.trigger("close.alert.amui").removeClass("am-in"),s.support.transition&&e.hasClass("am-fade")?e.one(s.support.transition.end,t).emulateTransitionEnd(200):t()},s.plugin("alert",o),n(document).on("click.alert.amui.data-api","[data-am-alert]",function(t){var e=n(t.target);e.is(".am-close")&&n(this).alert("close")}),t.exports=o},function(t,e,i){"use strict";var n=i(1),s=i(2),o=function(t,e){this.$element=n(t),this.options=n.extend({},o.DEFAULTS,e),this.isLoading=!1,this.hasSpinner=!1};o.DEFAULTS={loadingText:"loading...",disabledClassName:"am-disabled",activeClassName:"am-active",spinner:void 0},o.prototype.setState=function(t,e){var i=this.$element,o="disabled",a=i.data(),r=this.options,l=i.is("input")?"val":"html",c="am-btn-"+t+" "+r.disabledClassName;t+="Text",r.resetText||(r.resetText=i[l]()),s.support.animation&&r.spinner&&"html"===l&&!this.hasSpinner&&(r.loadingText=''+r.loadingText,this.hasSpinner=!0),e=e||(void 0===a[t]?r[t]:a[t]),i[l](e),setTimeout(n.proxy(function(){"loadingText"===t?(i.addClass(c).attr(o,o),this.isLoading=!0):this.isLoading&&(i.removeClass(c).removeAttr(o),this.isLoading=!1)},this),0)},o.prototype.toggle=function(){var t=!0,e=this.$element,i=this.$element.parent('[class*="am-btn-group"]'),n=o.DEFAULTS.activeClassName;if(i.length){var s=this.$element.find("input");"radio"==s.prop("type")&&(s.prop("checked")&&e.hasClass(n)?t=!1:i.find("."+n).removeClass(n)),t&&s.prop("checked",!e.hasClass(n)).trigger("change")}t&&(e.toggleClass(n),e.hasClass(n)||e.blur())},s.plugin("button",o,{dataOptions:"data-am-loading",methodCall:function(t,e){"toggle"===t[0]?e.toggle():"string"==typeof t[0]&&e.setState.apply(e,t)}}),n(document).on("click.button.amui.data-api","[data-am-button]",function(t){t.preventDefault();var e=n(t.target);e.hasClass("am-btn")||(e=e.closest(".am-btn")),e.button("toggle")}),s.ready(function(t){n("[data-am-loading]",t).button(),n("[data-am-button]",t).find("input:checked").each(function(){n(this).parent("label").addClass(o.DEFAULTS.activeClassName)})}),t.exports=s.button=o},function(t,e,i){"use strict";function n(t){return this.each(function(){var e=s(this),i=e.data("amui.collapse"),n=s.extend({},a.DEFAULTS,o.utils.options(e.attr("data-am-collapse")),"object"==typeof t&&t);!i&&n.toggle&&"open"===t&&(t=!t),i||e.data("amui.collapse",i=new a(this,n)),"string"==typeof t&&i[t]()})}var s=i(1),o=i(2),a=function(t,e){this.$element=s(t),this.options=s.extend({},a.DEFAULTS,e),this.transitioning=null,this.options.parent&&(this.$parent=s(this.options.parent)),this.options.toggle&&this.toggle()};a.DEFAULTS={toggle:!0},a.prototype.open=function(){if(!this.transitioning&&!this.$element.hasClass("am-in")){var t=s.Event("open.collapse.amui");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.$parent&&this.$parent.find("> .am-panel > .am-in");if(e&&e.length){var i=e.data("amui.collapse");if(i&&i.transitioning)return;n.call(e,"close"),i||e.data("amui.collapse",null)}this.$element.removeClass("am-collapse").addClass("am-collapsing").height(0),this.transitioning=1;var a=function(){this.$element.removeClass("am-collapsing").addClass("am-collapse am-in").height("").trigger("opened.collapse.amui"),this.transitioning=0};if(!o.support.transition)return a.call(this);var r=this.$element[0].scrollHeight;this.$element.one(o.support.transition.end,s.proxy(a,this)).emulateTransitionEnd(300).css({height:r})}}},a.prototype.close=function(){if(!this.transitioning&&this.$element.hasClass("am-in")){var t=s.Event("close.collapse.amui");if(this.$element.trigger(t),!t.isDefaultPrevented()){this.$element.height(this.$element.height()).redraw(),this.$element.addClass("am-collapsing").removeClass("am-collapse am-in"),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.trigger("closed.collapse.amui").removeClass("am-collapsing").addClass("am-collapse")};return o.support.transition?void this.$element.height(0).one(o.support.transition.end,s.proxy(e,this)).emulateTransitionEnd(300):e.call(this)}}},a.prototype.toggle=function(){this[this.$element.hasClass("am-in")?"close":"open"]()},s.fn.collapse=n,s(document).on("click.collapse.amui.data-api","[data-am-collapse]",function(t){var e,i=s(this),a=o.utils.options(i.attr("data-am-collapse")),r=a.target||t.preventDefault()||(e=i.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""),l=s(r),c=l.data("amui.collapse"),u=c?"toggle":a,h=a.parent,d=h&&s(h);c&&c.transitioning||(d&&d.find("[data-am-collapse]").not(i).addClass("am-collapsed"),i[l.hasClass("am-in")?"addClass":"removeClass"]("am-collapsed")),n.call(l,u)}),t.exports=o.collapse=a},function(t,e,i){"use strict";var n=i(1),s=i(2),o=n(document),a=function(t,e){if(this.$element=n(t),this.options=n.extend({},a.DEFAULTS,e),this.format=r.parseFormat(this.options.format),this.$element.data("date",this.options.date),this.language=this.getLocale(this.options.locale),this.theme=this.options.theme,this.$picker=n(r.template).appendTo("body").on({click:n.proxy(this.click,this)}),this.isInput=this.$element.is("input"),this.component=!!this.$element.is(".am-datepicker-date")&&this.$element.find(".am-datepicker-add-on"),this.isInput?this.$element.on({"click.datepicker.amui":n.proxy(this.open,this),"keyup.datepicker.amui":n.proxy(this.update,this)}):this.component?this.component.on("click.datepicker.amui",n.proxy(this.open,this)):this.$element.on("click.datepicker.amui",n.proxy(this.open,this)),this.minViewMode=this.options.minViewMode,"string"==typeof this.minViewMode)switch(this.minViewMode){case"months":this.minViewMode=1;break;case"years":this.minViewMode=2;break;default:this.minViewMode=0}if(this.viewMode=this.options.viewMode,"string"==typeof this.viewMode)switch(this.viewMode){case"months":this.viewMode=1;break;case"years":this.viewMode=2;break;default:this.viewMode=0}this.startViewMode=this.viewMode,this.weekStart=(this.options.weekStart||a.locales[this.language].weekStart||0)%7,this.weekEnd=(this.weekStart+6)%7,this.onRender=this.options.onRender,this.setTheme(),this.fillDow(),this.fillMonths(),this.update(),this.showMode()};a.DEFAULTS={locale:"zh_CN",format:"yyyy-mm-dd",weekStart:void 0,viewMode:0,minViewMode:0,date:"",theme:"",autoClose:1,onRender:function(t){return""}},a.prototype.open=function(t){this.$picker.show(),this.height=this.component?this.component.outerHeight():this.$element.outerHeight(),this.place(),n(window).on("resize.datepicker.amui",n.proxy(this.place,this)),t&&(t.stopPropagation(),t.preventDefault());var e=this;o.on("mousedown.datapicker.amui touchstart.datepicker.amui",function(t){0===n(t.target).closest(".am-datepicker").length&&e.close()}),this.$element.trigger({type:"open.datepicker.amui",date:this.date})},a.prototype.close=function(){this.$picker.hide(),n(window).off("resize.datepicker.amui",this.place),this.viewMode=this.startViewMode,this.showMode(),this.isInput||n(document).off("mousedown.datapicker.amui touchstart.datepicker.amui",this.close),this.$element.trigger({type:"close.datepicker.amui",date:this.date})},a.prototype.set=function(){var t,e=r.formatDate(this.date,this.format);this.isInput?t=this.$element.attr("value",e):(this.component&&(t=this.$element.find("input").attr("value",e)),this.$element.data("date",e)),t&&t.trigger("change")},a.prototype.setValue=function(t){"string"==typeof t?this.date=r.parseDate(t,this.format):this.date=new Date(t),this.set(),this.viewDate=new Date(this.date.getFullYear(),this.date.getMonth(),1,0,0,0,0),this.fill()},a.prototype.place=function(){var t=this.component?this.component.offset():this.$element.offset(),e=this.component?this.component.width():this.$element.width(),i=t.top+this.height,n=t.left,s=o.width()-t.left-e,a=this.isOutView();if(this.$picker.removeClass("am-datepicker-right"),this.$picker.removeClass("am-datepicker-up"),o.width()>640){if(a.outRight)return this.$picker.addClass("am-datepicker-right"),void this.$picker.css({top:i,left:"auto",right:s});a.outBottom&&(this.$picker.addClass("am-datepicker-up"),i=t.top-this.$picker.outerHeight(!0))}else n=0;this.$picker.css({top:i,left:n})},a.prototype.update=function(t){this.date=r.parseDate("string"==typeof t?t:this.isInput?this.$element.prop("value"):this.$element.data("date"),this.format),this.viewDate=new Date(this.date.getFullYear(),this.date.getMonth(),1,0,0,0,0),this.fill()},a.prototype.fillDow=function(){for(var t=this.weekStart,e="";t'+a.locales[this.language].daysMin[t++%7]+"";e+="",this.$picker.find(".am-datepicker-days thead").append(e)},a.prototype.fillMonths=function(){for(var t="",e=0;e<12;)t+=''+a.locales[this.language].monthsShort[e++]+"";this.$picker.find(".am-datepicker-months td").append(t)},a.prototype.fill=function(){var t=new Date(this.viewDate),e=t.getFullYear(),i=t.getMonth(),n=this.date.valueOf(),s=new Date(e,i-1,28,0,0,0,0),o=r.getDaysInMonth(s.getFullYear(),s.getMonth()),l=this.$picker.find(".am-datepicker-days .am-datepicker-select");"zh_CN"===this.language?l.text(e+a.locales[this.language].year[0]+" "+a.locales[this.language].months[i]):l.text(a.locales[this.language].months[i]+" "+e),s.setDate(o),s.setDate(o-(s.getDay()-this.weekStart+7)%7);var c=new Date(s);c.setDate(c.getDate()+42),c=c.valueOf();for(var u,h,d,p=[];s.valueOf()"),u=this.onRender(s,0),h=s.getFullYear(),d=s.getMonth(),di&&h===e||h>e)&&(u+=" am-datepicker-new"),s.valueOf()===n&&(u+=" am-active"),p.push(''+s.getDate()+""),s.getDay()===this.weekEnd&&p.push(""),s.setDate(s.getDate()+1);this.$picker.find(".am-datepicker-days tbody").empty().append(p.join(""));var m=this.date.getFullYear(),f=this.$picker.find(".am-datepicker-months").find(".am-datepicker-select").text(e);f=f.end().find("span").removeClass("am-active").removeClass("am-disabled");for(var v=0;v<12;)this.onRender(t.setFullYear(e,v),1)&&f.eq(v).addClass("am-disabled"),v++;m===e&&f.eq(this.date.getMonth()).removeClass("am-disabled").addClass("am-active"),p="",e=10*parseInt(e/10,10);var g,y=this.$picker.find(".am-datepicker-years").find(".am-datepicker-select").text(e+"-"+(e+9)).end().find("td"),w=new Date(this.viewDate);e-=1;for(var b=-1;b<11;b++)g=this.onRender(w.setFullYear(e),2),p+=''+e+"",e+=1;y.html(p)},a.prototype.click=function(t){t.stopPropagation(),t.preventDefault();var e,i,s=this.$picker.find(".am-datepicker-days").find(".am-active"),o=this.$picker.find(".am-datepicker-months"),a=o.find(".am-active").index(),l=n(t.target).closest("span, td, th");if(1===l.length)switch(l[0].nodeName.toLowerCase()){case"th":switch(l[0].className){case"am-datepicker-switch":this.showMode(1);break;case"am-datepicker-prev":case"am-datepicker-next":this.viewDate["set"+r.modes[this.viewMode].navFnc].call(this.viewDate,this.viewDate["get"+r.modes[this.viewMode].navFnc].call(this.viewDate)+r.modes[this.viewMode].navStep*("am-datepicker-prev"===l[0].className?-1:1)),this.fill(),this.set()}break;case"span":if(l.is(".am-disabled"))return;l.is(".am-datepicker-month")?(e=l.parent().find("span").index(l),l.is(".am-active")?this.viewDate.setMonth(e,s.text()):this.viewDate.setMonth(e)):(i=parseInt(l.text(),10)||0,l.is(".am-active")?this.viewDate.setFullYear(i,a,s.text()):this.viewDate.setFullYear(i)),0!==this.viewMode&&(this.date=new Date(this.viewDate),this.$element.trigger({type:"changeDate.datepicker.amui",date:this.date,viewMode:r.modes[this.viewMode].clsName})),this.showMode(-1),this.fill(),this.set();break;case"td":if(l.is(".am-datepicker-day")&&!l.is(".am-disabled")){var c=parseInt(l.text(),10)||1;e=this.viewDate.getMonth(),l.is(".am-datepicker-old")?e-=1:l.is(".am-datepicker-new")&&(e+=1),i=this.viewDate.getFullYear(),this.date=new Date(i,e,c,0,0,0,0),this.viewDate=new Date(i,e,Math.min(28,c),0,0,0,0),this.fill(),this.set(),this.$element.trigger({type:"changeDate.datepicker.amui",date:this.date,viewMode:r.modes[this.viewMode].clsName}),this.options.autoClose&&this.close()}}},a.prototype.mousedown=function(t){t.stopPropagation(),t.preventDefault()},a.prototype.showMode=function(t){t&&(this.viewMode=Math.max(this.minViewMode,Math.min(2,this.viewMode+t))),this.$picker.find(">div").hide().filter(".am-datepicker-"+r.modes[this.viewMode].clsName).show()},a.prototype.isOutView=function(){var t=this.component?this.component.offset():this.$element.offset(),e={outRight:!1,outBottom:!1},i=this.$picker,n=t.left+i.outerWidth(!0),s=t.top+i.outerHeight(!0)+this.$element.innerHeight();return n>o.width()&&(e.outRight=!0),s>o.height()&&(e.outBottom=!0),e},a.prototype.getLocale=function(t){return t||(t=navigator.language&&navigator.language.split("-"),t[1]=t[1].toUpperCase(),t=t.join("_")),a.locales[t]||(t="en_US"),t},a.prototype.setTheme=function(){this.theme&&this.$picker.addClass("am-datepicker-"+this.theme)},a.locales={en_US:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekStart:0},zh_CN:{days:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],daysShort:["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],daysMin:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],months:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],monthsShort:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],weekStart:1,year:["\u5e74"]}};var r={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(t){return t%4===0&&t%100!==0||t%400===0},getDaysInMonth:function(t,e){return[31,r.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},parseFormat:function(t){var e=t.match(/[.\/\-\s].*?/),i=t.split(/\W+/);if(!e||!i||0===i.length)throw new Error("Invalid date format.");return{separator:e,parts:i}},parseDate:function(t,e){var i,n=t.split(e.separator);if(t=new Date,t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0),n.length===e.parts.length){for(var s=t.getFullYear(),o=t.getDate(),a=t.getMonth(),r=0,l=e.parts.length;r
          ',contTemplate:''};r.template='
          '+r.headTemplate+'
          '+r.headTemplate+r.contTemplate+'
          '+r.headTemplate+r.contTemplate+"
          ",s.plugin("datepicker",a),s.ready(function(t){n("[data-am-datepicker]").datepicker()}),t.exports=s.datepicker=a},function(t,e,i){"use strict";var n=i(1),s=i(2),o=n(document),a=s.support.transition,r=function(){this.id=s.utils.generateGUID("am-dimmer"),this.$element=n(r.DEFAULTS.tpl,{id:this.id}),this.inited=!1,this.scrollbarWidth=0,this.$used=n([])};r.DEFAULTS={tpl:'
          '},r.prototype.init=function(){return this.inited||(n(document.body).append(this.$element),this.inited=!0,o.trigger("init.dimmer.amui"),this.$element.on("touchmove.dimmer.amui",function(t){t.preventDefault()})),this},r.prototype.open=function(t){this.inited||this.init();var e=this.$element;return t&&(this.$used=this.$used.add(n(t))),this.checkScrollbar().setScrollbar(),e.show().trigger("open.dimmer.amui"),a&&e.off(a.end),setTimeout(function(){e.addClass("am-active")},0),this},r.prototype.close=function(t,e){function i(){s.hide(),this.resetScrollbar()}if(this.$used=this.$used.not(n(t)),!e&&this.$used.length)return this;var s=this.$element;return s.removeClass("am-active").trigger("close.dimmer.amui"),i.call(this),this},r.prototype.checkScrollbar=function(){return this.scrollbarWidth=s.utils.measureScrollbar(),this},r.prototype.setScrollbar=function(){var t=n(document.body),e=parseInt(t.css("padding-right")||0,10);return this.scrollbarWidth&&t.css("padding-right",e+this.scrollbarWidth),t.addClass("am-dimmer-active"),this},r.prototype.resetScrollbar=function(){return n(document.body).css("padding-right","").removeClass("am-dimmer-active"),this},t.exports=s.dimmer=new r},function(t,e,i){"use strict";var n=i(1),s=i(2),o=s.support.animation,a=function(t,e){this.options=n.extend({},a.DEFAULTS,e),e=this.options,this.$element=n(t),this.$toggle=this.$element.find(e.selector.toggle),this.$dropdown=this.$element.find(e.selector.dropdown),this.$boundary=e.boundary===window?n(window):this.$element.closest(e.boundary),this.$justify=e.justify&&n(e.justify).length&&n(e.justify)||void 0,!this.$boundary.length&&(this.$boundary=n(window)),this.active=!!this.$element.hasClass("am-active"),this.animating=null,this.events()};a.DEFAULTS={animation:"am-animation-slide-top-fixed",boundary:window,justify:void 0,selector:{dropdown:".am-dropdown-content",toggle:".am-dropdown-toggle"},trigger:"click"},a.prototype.toggle=function(){this.clear(),this.animating||this[this.active?"close":"open"]()},a.prototype.open=function(t){var e=this.$toggle,i=this.$element,s=this.$dropdown;if(!e.is(".am-disabled, :disabled")&&!this.active){i.trigger("open.dropdown.amui").addClass("am-active"),e.trigger("focus"),this.checkDimensions(t);var a=n.proxy(function(){i.trigger("opened.dropdown.amui"),this.active=!0,this.animating=0},this);o?(this.animating=1,s.addClass(this.options.animation).on(o.end+".open.dropdown.amui",n.proxy(function(){a(),s.removeClass(this.options.animation)},this))):a()}},a.prototype.close=function(){if(this.active){var t="am-dropdown-animation",e=this.$element,i=this.$dropdown;e.trigger("close.dropdown.amui");var s=n.proxy(function(){e.removeClass("am-active").trigger("closed.dropdown.amui"),this.active=!1,this.animating=0,this.$toggle.blur()},this);o?(i.removeClass(this.options.animation),i.addClass(t),this.animating=1,i.one(o.end+".close.dropdown.amui",function(){i.removeClass(t),s()})):s()}},a.prototype.enable=function(){this.$toggle.prop("disabled",!1)},a.prototype.disable=function(){this.$toggle.prop("disabled",!0)},a.prototype.checkDimensions=function(t){if(this.$dropdown.length){var e=this.$dropdown;t&&t.offset&&e.offset(t.offset);var i=e.offset(),s=e.outerWidth(),o=this.$boundary.width(),a=n.isWindow(this.boundary)&&this.$boundary.offset()?this.$boundary.offset().left:0;this.$justify&&e.css({"min-width":this.$justify.css("width")}),s+(i.left-a)>o&&this.$element.addClass("am-dropdown-flip")}},a.prototype.clear=function(){n("[data-am-dropdown]").not(this.$element).each(function(){var t=n(this).data("amui.dropdown");t&&t.close()})},a.prototype.events=function(){var t="dropdown.amui",e=this.$toggle;e.on("click."+t,n.proxy(function(t){t.preventDefault(),this.toggle()},this)),n(document).on("keydown.dropdown.amui",n.proxy(function(t){27===t.keyCode&&this.active&&this.close()},this)).on("click.outer.dropdown.amui",n.proxy(function(t){!this.active||this.$element[0]!==t.target&&this.$element.find(t.target).length||this.close()},this))},s.plugin("dropdown",a),s.ready(function(t){n("[data-am-dropdown]",t).dropdown()}),n(document).on("click.dropdown.amui.data-api",".am-dropdown form",function(t){ +t.stopPropagation()}),t.exports=s.dropdown=a},function(t,e,i){(function(e){var n=i(1),s=i(2),o=!0;n.flexslider=function(t,i){var s=n(t);s.vars=n.extend({},n.flexslider.defaults,i);var a,r=s.vars.namespace,l=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,c=("ontouchstart"in window||l||window.DocumentTouch&&document instanceof DocumentTouch)&&s.vars.touch,u="click touchend MSPointerUp keyup",h="",d="vertical"===s.vars.direction,p=s.vars.reverse,m=s.vars.itemWidth>0,f="fade"===s.vars.animation,v=""!==s.vars.asNavFor,g={};n.data(t,"flexslider",s),g={init:function(){s.animating=!1,s.currentSlide=parseInt(s.vars.startAt?s.vars.startAt:0,10),isNaN(s.currentSlide)&&(s.currentSlide=0),s.animatingTo=s.currentSlide,s.atEnd=0===s.currentSlide||s.currentSlide===s.last,s.containerSelector=s.vars.selector.substr(0,s.vars.selector.search(" ")),s.slides=n(s.vars.selector,s),s.container=n(s.containerSelector,s),s.count=s.slides.length,s.syncExists=n(s.vars.sync).length>0,"slide"===s.vars.animation&&(s.vars.animation="swing"),s.prop=d?"top":"marginLeft",s.args={},s.manualPause=!1,s.stopped=!1,s.started=!1,s.startTimeout=null,s.transitions=!s.vars.video&&!f&&s.vars.useCSS&&function(){var t=document.createElement("div"),e=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var i in e)if(void 0!==t.style[e[i]])return s.pfx=e[i].replace("Perspective","").toLowerCase(),s.prop="-"+s.pfx+"-transform",!0;return!1}(),s.ensureAnimationEnd="",""!==s.vars.controlsContainer&&(s.controlsContainer=n(s.vars.controlsContainer).length>0&&n(s.vars.controlsContainer)),""!==s.vars.manualControls&&(s.manualControls=n(s.vars.manualControls).length>0&&n(s.vars.manualControls)),""!==s.vars.customDirectionNav&&(s.customDirectionNav=2===n(s.vars.customDirectionNav).length&&n(s.vars.customDirectionNav)),s.vars.randomize&&(s.slides.sort(function(){return Math.round(Math.random())-.5}),s.container.empty().append(s.slides)),s.doMath(),s.setup("init"),s.vars.controlNav&&g.controlNav.setup(),s.vars.directionNav&&g.directionNav.setup(),s.vars.keyboard&&(1===n(s.containerSelector).length||s.vars.multipleKeyboard)&&n(document).bind("keyup",function(t){var e=t.keyCode;if(!s.animating&&(39===e||37===e)){var i=39===e?s.getTarget("next"):37===e&&s.getTarget("prev");s.flexAnimate(i,s.vars.pauseOnAction)}}),s.vars.mousewheel&&s.bind("mousewheel",function(t,e,i,n){t.preventDefault();var o=e<0?s.getTarget("next"):s.getTarget("prev");s.flexAnimate(o,s.vars.pauseOnAction)}),s.vars.pausePlay&&g.pausePlay.setup(),s.vars.slideshow&&s.vars.pauseInvisible&&g.pauseInvisible.init(),s.vars.slideshow&&(s.vars.pauseOnHover&&s.hover(function(){s.manualPlay||s.manualPause||s.pause()},function(){s.manualPause||s.manualPlay||s.stopped||s.play()}),s.vars.pauseInvisible&&g.pauseInvisible.isHidden()||(s.vars.initDelay>0?s.startTimeout=setTimeout(s.play,s.vars.initDelay):s.play())),v&&g.asNav.setup(),c&&s.vars.touch&&g.touch(),(!f||f&&s.vars.smoothHeight)&&n(window).bind("resize orientationchange focus",g.resize),s.find("img").attr("draggable","false"),setTimeout(function(){s.vars.start(s)},200)},asNav:{setup:function(){s.asNav=!0,s.animatingTo=Math.floor(s.currentSlide/s.move),s.currentItem=s.currentSlide,s.slides.removeClass(r+"active-slide").eq(s.currentItem).addClass(r+"active-slide"),l?(t._slider=s,s.slides.each(function(){var t=this;t._gesture=new MSGesture,t._gesture.target=t,t.addEventListener("MSPointerDown",function(t){t.preventDefault(),t.currentTarget._gesture&&t.currentTarget._gesture.addPointer(t.pointerId)},!1),t.addEventListener("MSGestureTap",function(t){t.preventDefault();var e=n(this),i=e.index();n(s.vars.asNavFor).data("flexslider").animating||e.hasClass("active")||(s.direction=s.currentItem'),s.pagingCount>1)for(var a=0;a":''+o+"","thumbnails"===s.vars.controlNav&&!0===s.vars.thumbCaptions){var c=e.attr("data-thumbcaption");""!==c&&void 0!==c&&(t+=''+c+"")}s.controlNavScaffold.append("
        • "+t+"
        • "),o++}s.controlsContainer?n(s.controlsContainer).append(s.controlNavScaffold):s.append(s.controlNavScaffold),g.controlNav.set(),g.controlNav.active(),s.controlNavScaffold.delegate("a, img",u,function(t){if(t.preventDefault(),""===h||h===t.type){var e=n(this),i=s.controlNav.index(e);e.hasClass(r+"active")||(s.direction=i>s.currentSlide?"next":"prev",s.flexAnimate(i,s.vars.pauseOnAction))}""===h&&(h=t.type),g.setToClearWatchedEvent()})},setupManual:function(){s.controlNav=s.manualControls,g.controlNav.active(),s.controlNav.bind(u,function(t){if(t.preventDefault(),""===h||h===t.type){var e=n(this),i=s.controlNav.index(e);e.hasClass(r+"active")||(i>s.currentSlide?s.direction="next":s.direction="prev",s.flexAnimate(i,s.vars.pauseOnAction))}""===h&&(h=t.type),g.setToClearWatchedEvent()})},set:function(){var t="thumbnails"===s.vars.controlNav?"img":"a";s.controlNav=n("."+r+"control-nav li "+t,s.controlsContainer?s.controlsContainer:s)},active:function(){s.controlNav.removeClass(r+"active").eq(s.animatingTo).addClass(r+"active")},update:function(t,e){s.pagingCount>1&&"add"===t?s.controlNavScaffold.append(n('
        • '+s.count+"
        • ")):1===s.pagingCount?s.controlNavScaffold.find("li").remove():s.controlNav.eq(e).closest("li").remove(),g.controlNav.set(),s.pagingCount>1&&s.pagingCount!==s.controlNav.length?s.update(e,t):g.controlNav.active()}},directionNav:{setup:function(){var t=n('");s.customDirectionNav?s.directionNav=s.customDirectionNav:s.controlsContainer?(n(s.controlsContainer).append(t),s.directionNav=n("."+r+"direction-nav li a",s.controlsContainer)):(s.append(t),s.directionNav=n("."+r+"direction-nav li a",s)),g.directionNav.update(),s.directionNav.bind(u,function(t){t.preventDefault();var e;""!==h&&h!==t.type||(e=n(this).hasClass(r+"next")?s.getTarget("next"):s.getTarget("prev"),s.flexAnimate(e,s.vars.pauseOnAction)),""===h&&(h=t.type),g.setToClearWatchedEvent()})},update:function(){var t=r+"disabled";1===s.pagingCount?s.directionNav.addClass(t).attr("tabindex","-1"):s.vars.animationLoop?s.directionNav.removeClass(t).removeAttr("tabindex"):0===s.animatingTo?s.directionNav.removeClass(t).filter("."+r+"prev").addClass(t).attr("tabindex","-1"):s.animatingTo===s.last?s.directionNav.removeClass(t).filter("."+r+"next").addClass(t).attr("tabindex","-1"):s.directionNav.removeClass(t).removeAttr("tabindex")}},pausePlay:{setup:function(){var t=n('
          ');s.controlsContainer?(s.controlsContainer.append(t),s.pausePlay=n("."+r+"pauseplay a",s.controlsContainer)):(s.append(t),s.pausePlay=n("."+r+"pauseplay a",s)),g.pausePlay.update(s.vars.slideshow?r+"pause":r+"play"),s.pausePlay.bind(u,function(t){t.preventDefault(),""!==h&&h!==t.type||(n(this).hasClass(r+"pause")?(s.manualPause=!0,s.manualPlay=!1,s.pause()):(s.manualPause=!1,s.manualPlay=!0,s.play())),""===h&&(h=t.type),g.setToClearWatchedEvent()})},update:function(t){"play"===t?s.pausePlay.removeClass(r+"pause").addClass(r+"play").html(s.vars.playText):s.pausePlay.removeClass(r+"play").addClass(r+"pause").html(s.vars.pauseText)}},touch:function(){function i(e){e.stopPropagation(),s.animating?e.preventDefault():(s.pause(),t._gesture.addPointer(e.pointerId),C=0,u=d?s.h:s.w,v=Number(new Date),c=m&&p&&s.animatingTo===s.last?0:m&&p?s.limit-(s.itemW+s.vars.itemMargin)*s.move*s.animatingTo:m&&s.currentSlide===s.last?s.limit:m?(s.itemW+s.vars.itemMargin)*s.move*s.currentSlide:p?(s.last-s.currentSlide+s.cloneOffset)*u:(s.currentSlide+s.cloneOffset)*u)}function n(i){i.stopPropagation();var n=i.target._slider;if(n){var s=-i.translationX,o=-i.translationY;return C+=d?o:s,h=C,b=d?Math.abs(C)500)&&(i.preventDefault(),!f&&n.transitions&&(n.vars.animationLoop||(h=C/(0===n.currentSlide&&C<0||n.currentSlide===n.last&&C>0?Math.abs(C)/u+2:1)),n.setProps(c+h,"setTouch"))))}}function o(t){t.stopPropagation();var e=t.target._slider;if(e){if(e.animatingTo===e.currentSlide&&!b&&null!==h){var i=p?-h:h,n=i>0?e.getTarget("next"):e.getTarget("prev");e.canAdvance(n)&&(Number(new Date)-v<550&&Math.abs(i)>50||Math.abs(i)>u/2)?e.flexAnimate(n,e.vars.pauseOnAction):f||e.flexAnimate(e.currentSlide,e.vars.pauseOnAction,!0)}a=null,r=null,h=null,c=null,C=0}}var a,r,c,u,h,v,g,y,w,b=!1,T=0,x=0,C=0;l?(t.style.msTouchAction="none",t._gesture=new MSGesture,t._gesture.target=t,t.addEventListener("MSPointerDown",i,!1),t._slider=s,t.addEventListener("MSGestureChange",n,!1),t.addEventListener("MSGestureEnd",o,!1)):(g=function(e){s.animating?e.preventDefault():(window.navigator.msPointerEnabled||1===e.touches.length)&&(s.pause(),u=d?s.h:s.w,v=Number(new Date),T=e.touches[0].pageX,x=e.touches[0].pageY,c=m&&p&&s.animatingTo===s.last?0:m&&p?s.limit-(s.itemW+s.vars.itemMargin)*s.move*s.animatingTo:m&&s.currentSlide===s.last?s.limit:m?(s.itemW+s.vars.itemMargin)*s.move*s.currentSlide:p?(s.last-s.currentSlide+s.cloneOffset)*u:(s.currentSlide+s.cloneOffset)*u,a=d?x:T,r=d?T:x,t.addEventListener("touchmove",y,!1),t.addEventListener("touchend",w,!1))},y=function(t){T=t.touches[0].pageX,x=t.touches[0].pageY,h=d?a-x:a-T,b=d?Math.abs(h)e)&&(t.preventDefault(),!f&&s.transitions&&(s.vars.animationLoop||(h/=0===s.currentSlide&&h<0||s.currentSlide===s.last&&h>0?Math.abs(h)/u+2:1),s.setProps(c+h,"setTouch")))},w=function(e){if(t.removeEventListener("touchmove",y,!1),s.animatingTo===s.currentSlide&&!b&&null!==h){var i=p?-h:h,n=i>0?s.getTarget("next"):s.getTarget("prev");s.canAdvance(n)&&(Number(new Date)-v<550&&Math.abs(i)>50||Math.abs(i)>u/2)?s.flexAnimate(n,s.vars.pauseOnAction):f||s.flexAnimate(s.currentSlide,s.vars.pauseOnAction,!0)}t.removeEventListener("touchend",w,!1),a=null,r=null,h=null,c=null},t.addEventListener("touchstart",g,!1))},resize:function(){!s.animating&&s.is(":visible")&&(m||s.doMath(),f?g.smoothHeight():m?(s.slides.width(s.computedW),s.update(s.pagingCount),s.setProps()):d?(s.viewport.height(s.h),s.setProps(s.h,"setTotal")):(s.vars.smoothHeight&&g.smoothHeight(),s.newSlides.width(s.computedW),s.setProps(s.computedW,"setTotal")))},smoothHeight:function(t){if(!d||f){var e=f?s:s.viewport;t?e.animate({height:s.slides.eq(s.animatingTo).innerHeight()},t):e.innerHeight(s.slides.eq(s.animatingTo).innerHeight())}},sync:function(t){var e=n(s.vars.sync).data("flexslider"),i=s.animatingTo;switch(t){case"animate":e.flexAnimate(i,s.vars.pauseOnAction,!1,!0);break;case"play":e.playing||e.asNav||e.play();break;case"pause":e.pause()}},uniqueID:function(t){return t.filter("[id]").add(t.find("[id]")).each(function(){var t=n(this);t.attr("id",t.attr("id")+"_clone")}),t},pauseInvisible:{visProp:null,init:function(){var t=g.pauseInvisible.getHiddenProp();if(t){var e=t.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(e,function(){g.pauseInvisible.isHidden()?s.startTimeout?clearTimeout(s.startTimeout):s.pause():s.started?s.play():s.vars.initDelay>0?setTimeout(s.play,s.vars.initDelay):s.play()})}},isHidden:function(){var t=g.pauseInvisible.getHiddenProp();return!!t&&document[t]},getHiddenProp:function(){var t=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var e=0;es.currentSlide?"next":"prev"),v&&1===s.pagingCount&&(s.direction=s.currentItems.limit&&1!==s.visible?s.limit:y):h=0===s.currentSlide&&t===s.count-1&&s.vars.animationLoop&&"next"!==s.direction?p?(s.count+s.cloneOffset)*w:0:s.currentSlide===s.last&&0===t&&s.vars.animationLoop&&"prev"!==s.direction?p?0:(s.count+1)*w:p?(s.count-1-t+s.cloneOffset)*w:(t+s.cloneOffset)*w,s.setProps(h,"",s.vars.animationSpeed),s.transitions?(s.vars.animationLoop&&s.atEnd||(s.animating=!1,s.currentSlide=s.animatingTo),s.container.unbind("webkitTransitionEnd transitionend"),s.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(s.ensureAnimationEnd),s.wrapup(w)}),clearTimeout(s.ensureAnimationEnd),s.ensureAnimationEnd=setTimeout(function(){s.wrapup(w)},s.vars.animationSpeed+100)):s.container.animate(s.args,s.vars.animationSpeed,s.vars.easing,function(){s.wrapup(w)})}s.vars.smoothHeight&&g.smoothHeight(s.vars.animationSpeed)}},s.wrapup=function(t){f||m||(0===s.currentSlide&&s.animatingTo===s.last&&s.vars.animationLoop?s.setProps(t,"jumpEnd"):s.currentSlide===s.last&&0===s.animatingTo&&s.vars.animationLoop&&s.setProps(t,"jumpStart")),s.animating=!1,s.currentSlide=s.animatingTo,s.vars.after(s)},s.animateSlides=function(){!s.animating&&o&&s.flexAnimate(s.getTarget("next"))},s.pause=function(){clearInterval(s.animatedSlides),s.animatedSlides=null,s.playing=!1,s.vars.pausePlay&&g.pausePlay.update("play"),s.syncExists&&g.sync("pause")},s.play=function(){s.playing&&clearInterval(s.animatedSlides),s.animatedSlides=s.animatedSlides||setInterval(s.animateSlides,s.vars.slideshowSpeed),s.started=s.playing=!0,s.vars.pausePlay&&g.pausePlay.update("pause"),s.syncExists&&g.sync("play")},s.stop=function(){s.pause(),s.stopped=!0},s.canAdvance=function(t,e){var i=v?s.pagingCount-1:s.last;return!!e||(!(!v||s.currentItem!==s.count-1||0!==t||"prev"!==s.direction)||(!v||0!==s.currentItem||t!==s.pagingCount-1||"next"===s.direction)&&(!(t===s.currentSlide&&!v)&&(!!s.vars.animationLoop||(!s.atEnd||0!==s.currentSlide||t!==i||"next"===s.direction)&&(!s.atEnd||s.currentSlide!==i||0!==t||"next"!==s.direction))))},s.getTarget=function(t){return s.direction=t,"next"===t?s.currentSlide===s.last?0:s.currentSlide+1:0===s.currentSlide?s.last:s.currentSlide-1},s.setProps=function(t,e,i){var n=function(){var i=t?t:(s.itemW+s.vars.itemMargin)*s.move*s.animatingTo,n=function(){if(m)return"setTouch"===e?t:p&&s.animatingTo===s.last?0:p?s.limit-(s.itemW+s.vars.itemMargin)*s.move*s.animatingTo:s.animatingTo===s.last?s.limit:i;switch(e){case"setTotal":return p?(s.count-1-s.currentSlide+s.cloneOffset)*t:(s.currentSlide+s.cloneOffset)*t;case"setTouch":return p?t:t;case"jumpEnd":return p?t:s.count*t;case"jumpStart":return p?s.count*t:t;default:return t}}();return n*-1+"rem"}();s.transitions&&(n=d?"translate3d(0,"+n+",0)":"translate3d("+n+",0,0)",i=void 0!==i?i/1e3+"s":"0s",s.container.css("-"+s.pfx+"-transition-duration",i),s.container.css("transition-duration",i)),s.args[s.prop]=n,(s.transitions||void 0===i)&&s.container.css(s.args),s.container.css("transform",n)},s.setup=function(t){if(f)s.slides.css({width:"100%","float":"left",marginRight:"-100%",position:"relative"}),"init"===t&&(c?s.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+s.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(s.currentSlide).css({opacity:1,zIndex:2}):0==s.vars.fadeFirstSlide?s.slides.css({opacity:0,display:"block",zIndex:1}).eq(s.currentSlide).css({zIndex:2}).css({opacity:1}):s.slides.css({opacity:0,display:"block",zIndex:1}).eq(s.currentSlide).css({zIndex:2}).animate({opacity:1},s.vars.animationSpeed,s.vars.easing)),s.vars.smoothHeight&&g.smoothHeight();else{var e,i;"init"===t&&(s.viewport=n('
          ').css({overflow:"hidden",position:"relative"}).appendTo(s).append(s.container),s.cloneCount=0,s.cloneOffset=0,p&&(i=n.makeArray(s.slides).reverse(),s.slides=n(i),s.container.empty().append(s.slides))),s.vars.animationLoop&&!m&&(s.cloneCount=2,s.cloneOffset=1,"init"!==t&&s.container.find(".clone").remove(),s.container.append(g.uniqueID(s.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(g.uniqueID(s.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),s.newSlides=n(s.vars.selector,s),e=p?s.count-1-s.currentSlide+s.cloneOffset:s.currentSlide+s.cloneOffset,d&&!m?(s.container.height(200*(s.count+s.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){s.newSlides.css({display:"block"}),s.doMath(),s.viewport.height(s.h),s.setProps(e*s.h,"init")},"init"===t?100:0)):(s.container.width(200*(s.count+s.cloneCount)+"%"),s.setProps(e*s.computedW,"init"),setTimeout(function(){s.doMath(),s.newSlides.css({width:s.computedW,marginRight:s.computedM,"float":"left",display:"block"}),s.vars.smoothHeight&&g.smoothHeight()},"init"===t?100:0))}m||s.slides.removeClass(r+"active-slide").eq(s.currentSlide).addClass(r+"active-slide"),s.vars.init(s)},s.doMath=function(){var t=s.slides.first(),e=s.vars.itemMargin,i=s.vars.minItems,n=s.vars.maxItems;s.w=void 0===s.viewport?s.width():s.viewport.width(),s.h=t.height(),s.boxPadding=t.outerWidth()-t.width(),m?(s.itemT=s.vars.itemWidth+e,s.itemM=e,s.minW=i?i*s.itemT:s.w,s.maxW=n?n*s.itemT-e:s.w,s.itemW=s.minW>s.w?(s.w-e*(i-1))/i:s.maxWs.w?s.w:s.vars.itemWidth,s.visible=Math.floor(s.w/s.itemW),s.move=s.vars.move>0&&s.vars.moves.w?s.itemW*(s.count-1)+e*(s.count-1):(s.itemW+e)*s.count-s.w-e):(s.itemW=s.w,s.itemM=e,s.pagingCount=s.count,s.last=s.count-1),s.computedW=s.itemW-s.boxPadding,s.computedM=s.itemM},s.update=function(t,e){s.doMath(),m||(ts.controlNav.length?g.controlNav.update("add"):("remove"===e&&!m||s.pagingCounts.last&&(s.currentSlide-=1,s.animatingTo-=1),g.controlNav.update("remove",s.last))),s.vars.directionNav&&g.directionNav.update()},s.addSlide=function(t,e){var i=n(t);s.count+=1,s.last=s.count-1,d&&p?void 0!==e?s.slides.eq(s.count-e).after(i):s.container.prepend(i):void 0!==e?s.slides.eq(e).before(i):s.container.append(i),s.update(e,"add"),s.slides=n(s.vars.selector+":not(.clone)",s),s.setup(),s.vars.added(s)},s.removeSlide=function(t){var e=isNaN(t)?s.slides.index(n(t)):t;s.count-=1,s.last=s.count-1,isNaN(t)?n(t,s.slides).remove():d&&p?s.slides.eq(s.last).remove():s.slides.eq(t).remove(),s.doMath(),s.update(e,"remove"),s.slides=n(s.vars.selector+":not(.clone)",s),s.setup(),s.vars.removed(s)},g.init()},n(window).blur(function(t){o=!1}).focus(function(t){o=!0}),n.flexslider.defaults={namespace:"am-",selector:".am-slides > li",animation:"slide",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:5e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:" ",nextText:" ",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},n.fn.flexslider=function(t){var e=Array.prototype.slice.call(arguments,1);if(void 0===t&&(t={}),"object"==typeof t)return this.each(function(){var e=n(this),i=t.selector?t.selector:".am-slides > li",s=e.find(i);1===s.length&&t.allowOneSlide===!1||0===s.length?(s.fadeIn(400),t.start&&t.start(e)):void 0===e.data("flexslider")&&new n.flexslider(this,t)});var i,s=n(this).data("flexslider");switch(t){case"next":s.flexAnimate(s.getTarget("next"),!0);break;case"prev":case"previous":s.flexAnimate(s.getTarget("prev"),!0);break;default:"number"==typeof t?s.flexAnimate(t,!0):"string"==typeof t&&(i="function"==typeof s[t]?s[t].apply(s,e):s[t])}return void 0===i?this:i},s.ready(function(t){n("[data-am-flexslider]",t).each(function(t,e){var i=n(e),o=s.utils.parseOptions(i.data("amFlexslider"));o.before=function(t){t._pausedTimer&&(window.clearTimeout(t._pausedTimer),t._pausedTimer=null)},o.after=function(t){var e=t.vars.playAfterPaused;!e||isNaN(e)||t.playing||t.manualPause||t.manualPlay||t.stopped||(t._pausedTimer=window.setTimeout(function(){t.play()},e))},i.flexslider(o)})}),t.exports=n.flexslider}).call(e,i(12).setImmediate)},function(t,e,i){(function(t,n){function s(t,e){this._id=t,this._clearFn=e}var o=i(13).nextTick,a=Function.prototype.apply,r=Array.prototype.slice,l={},c=0;e.setTimeout=function(){return new s(a.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new s(a.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},e.setImmediate="function"==typeof t?t:function(t){var i=c++,n=!(arguments.length<2)&&r.call(arguments,1);return l[i]=!0,o(function(){l[i]&&(n?t.apply(null,n):t.call(null),e.clearImmediate(i))}),i},e.clearImmediate="function"==typeof n?n:function(t){delete l[t]}}).call(e,i(12).setImmediate,i(12).clearImmediate)},function(t,e){function i(t){if(l===setTimeout)return setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function n(t){if(c===clearTimeout)return clearTimeout(t);try{return c(t)}catch(e){try{return c.call(null,t)}catch(e){return c.call(this,t)}}}function s(){p&&h&&(p=!1,h.length?d=h.concat(d):m=-1,d.length&&o())}function o(){if(!p){var t=i(s);p=!0;for(var e=d.length;e;){for(h=d,d=[];++m1)for(var n=1;n0&&(a=s?s/2.5*(c/8):0,l=Math.abs(t)+a,r=l/c),{destination:Math.round(a),duration:r}};var s=t("transform");return e.extend(e,{hasTransform:s!==!1,hasPerspective:t("perspective")in i,hasTouch:"ontouchstart"in window,hasPointer:!(!window.PointerEvent&&!window.MSPointerEvent),hasTransition:t("transition")in i}),e.isBadAndroid=function(){var t=window.navigator.appVersion;if(/Android/.test(t)&&!/Chrome\/\d/.test(t)){var e=t.match(/Safari\/(\d+.\d)/);return!(e&&"object"==typeof e&&e.length>=2)||parseFloat(e[1])<535.19}return!1}(),e.extend(e.style={},{transform:s,transitionTimingFunction:t("transitionTimingFunction"),transitionDuration:t("transitionDuration"),transitionDelay:t("transitionDelay"),transformOrigin:t("transformOrigin")}),e.hasClass=function(t,e){var i=new RegExp("(^|\\s)"+e+"(\\s|$)");return i.test(t.className)},e.addClass=function(t,i){if(!e.hasClass(t,i)){var n=t.className.split(" ");n.push(i),t.className=n.join(" ")}},e.removeClass=function(t,i){if(e.hasClass(t,i)){var n=new RegExp("(^|\\s)"+i+"(\\s|$)","g");t.className=t.className.replace(n," ")}},e.offset=function(t){for(var e=-t.offsetLeft,i=-t.offsetTop;t=t.offsetParent;)e-=t.offsetLeft,i-=t.offsetTop;return{left:e,top:i}},e.preventDefaultException=function(t,e){for(var i in e)if(e[i].test(t[i]))return!0;return!1},e.extend(e.eventType={},{touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2,pointerdown:3,pointermove:3,pointerup:3,MSPointerDown:3,MSPointerMove:3,MSPointerUp:3}),e.extend(e.ease={},{quadratic:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},circular:{style:"cubic-bezier(0.1, 0.57, 0.1, 1)",fn:function(t){return Math.sqrt(1- --t*t)}},back:{style:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",fn:function(t){var e=4;return(t-=1)*t*((e+1)*t+e)+1}},bounce:{style:"",fn:function(t){return(t/=1)<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}},elastic:{style:"",fn:function(t){var e=.22,i=.4;return 0===t?0:1==t?1:i*Math.pow(2,-10*t)*Math.sin((t-e/4)*(2*Math.PI)/e)+1}}}),e.tap=function(t,e){var i=document.createEvent("Event");i.initEvent(e,!0,!0),i.pageX=t.pageX,i.pageY=t.pageY,t.target.dispatchEvent(i)},e.click=function(t){var e,i=t.target;/(SELECT|INPUT|TEXTAREA)/i.test(i.tagName)||(e=document.createEvent(window.MouseEvent?"MouseEvents":"Event"),e.initEvent("click",!0,!0),e.view=t.view||window,e.detail=1,e.screenX=i.screenX||0,e.screenY=i.screenY||0,e.clientX=i.clientX||0,e.clientY=i.clientY||0,e.ctrlKey=!!t.ctrlKey,e.altKey=!!t.altKey,e.shiftKey=!!t.shiftKey,e.metaKey=!!t.metaKey,e.button=0,e.relatedTarget=null,e._constructed=!0,i.dispatchEvent(e))},e}();n.prototype={version:"5.2.0",_init:function(){this._initEvents()},destroy:function(){this._initEvents(!0),clearTimeout(this.resizeTimeout),this.resizeTimeout=null,this._execEvent("destroy")},_transitionEnd:function(t){t.target==this.scroller&&this.isInTransition&&(this._transitionTime(),this.resetPosition(this.options.bounceTime)||(this.isInTransition=!1,this._execEvent("scrollEnd")))},_start:function(t){if(1!=a.eventType[t.type]){var e;if(e=t.which?t.button:t.button<2?0:4==t.button?1:2,0!==e)return}if(this.enabled&&(!this.initiated||a.eventType[t.type]===this.initiated)){!this.options.preventDefault||a.isBadAndroid||a.preventDefaultException(t.target,this.options.preventDefaultException)||t.preventDefault();var i,n=t.touches?t.touches[0]:t;this.initiated=a.eventType[t.type],this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.directionLocked=0,this.startTime=a.getTime(),this.options.useTransition&&this.isInTransition?(this._transitionTime(),this.isInTransition=!1,i=this.getComputedPosition(),this._translate(Math.round(i.x),Math.round(i.y)),this._execEvent("scrollEnd")):!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1, +this._execEvent("scrollEnd")),this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=n.pageX,this.pointY=n.pageY,this._execEvent("beforeScrollStart")}},_move:function(t){if(this.enabled&&a.eventType[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault();var e,i,n,s,o=t.touches?t.touches[0]:t,r=o.pageX-this.pointX,l=o.pageY-this.pointY,c=a.getTime();if(this.pointX=o.pageX,this.pointY=o.pageY,this.distX+=r,this.distY+=l,n=Math.abs(this.distX),s=Math.abs(this.distY),!(c-this.endTime>300&&n<10&&s<10)){if(this.directionLocked||this.options.freeScroll||(n>s+this.options.directionLockThreshold?this.directionLocked="h":s>=n+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"==this.directionLocked){if("vertical"==this.options.eventPassthrough)t.preventDefault();else if("horizontal"==this.options.eventPassthrough)return void(this.initiated=!1);l=0}else if("v"==this.directionLocked){if("horizontal"==this.options.eventPassthrough)t.preventDefault();else if("vertical"==this.options.eventPassthrough)return void(this.initiated=!1);r=0}r=this.hasHorizontalScroll?r:0,l=this.hasVerticalScroll?l:0,e=this.x+r,i=this.y+l,(e>0||e0?0:this.maxScrollX),(i>0||i0?0:this.maxScrollY),this.directionX=r>0?-1:r<0?1:0,this.directionY=l>0?-1:l<0?1:0,this.moved||this._execEvent("scrollStart"),this.moved=!0,this._translate(e,i),c-this.startTime>300&&(this.startTime=c,this.startX=this.x,this.startY=this.y)}}},_end:function(t){if(this.enabled&&a.eventType[t.type]===this.initiated){this.options.preventDefault&&!a.preventDefaultException(t.target,this.options.preventDefaultException)&&t.preventDefault();var e,i,n=(t.changedTouches?t.changedTouches[0]:t,a.getTime()-this.startTime),s=Math.round(this.x),o=Math.round(this.y),r=Math.abs(s-this.startX),l=Math.abs(o-this.startY),c=0,u="";if(this.isInTransition=0,this.initiated=0,this.endTime=a.getTime(),!this.resetPosition(this.options.bounceTime))return this.scrollTo(s,o),this.moved?this._events.flick&&n<200&&r<100&&l<100?void this._execEvent("flick"):(this.options.momentum&&n<300&&(e=this.hasHorizontalScroll?a.momentum(this.x,this.startX,n,this.maxScrollX,this.options.bounce?this.wrapperWidth:0,this.options.deceleration):{destination:s,duration:0},i=this.hasVerticalScroll?a.momentum(this.y,this.startY,n,this.maxScrollY,this.options.bounce?this.wrapperHeight:0,this.options.deceleration):{destination:o,duration:0},s=e.destination,o=i.destination,c=Math.max(e.duration,i.duration),this.isInTransition=1),s!=this.x||o!=this.y?((s>0||s0||o0?e=0:this.x0?i=0:this.y-1&&this._events[t].splice(i,1)}},_execEvent:function(t){if(this._events[t]){var e=0,i=this._events[t].length;if(i)for(;e0;var s=this.options.useTransition&&n.style;!i||s?(s&&(this._transitionTimingFunction(n.style),this._transitionTime(i)),this._translate(t,e)):this._animate(t,e,i,n.fn)},scrollToElement:function(t,e,i,n,s){if(t=t.nodeType?t:this.scroller.querySelector(t)){var o=a.offset(t);o.left-=this.wrapperOffset.left,o.top-=this.wrapperOffset.top,i===!0&&(i=Math.round(t.offsetWidth/2-this.wrapper.offsetWidth/2)),n===!0&&(n=Math.round(t.offsetHeight/2-this.wrapper.offsetHeight/2)),o.left-=i||0,o.top-=n||0,o.left=o.left>0?0:o.left0?0:o.top=h?(r.isAnimating=!1,r._translate(t,e),void(r.resetPosition(r.options.bounceTime)||r._execEvent("scrollEnd"))):(f=(f-u)/i,m=n(f),d=(t-l)*m+l,p=(e-c)*m+c,r._translate(d,p),void(r.isAnimating&&o(s)))}var r=this,l=this.x,c=this.y,u=a.getTime(),h=u+i;this.isAnimating=!0,s()},handleEvent:function(t){switch(t.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(t);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(t);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(t);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(t);break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._wheel(t);break;case"keydown":this._key(t);break;case"click":this.enabled&&!t._constructed&&(t.preventDefault(),t.stopPropagation())}}},n.utils=a,t.exports=s.iScroll=n},function(t,e,i){"use strict";function n(t,e){return this.each(function(){var i=s(this),n=i.data("amui.modal"),o="object"==typeof t&&t;n||i.data("amui.modal",n=new c(this,o)),"string"==typeof t?n[t]&&n[t](e):n.toggle(t&&t.relatedTarget||void 0)})}var s=i(1),o=i(2),a=i(9),r=s(document),l=o.support.transition,c=function(t,e){this.options=s.extend({},c.DEFAULTS,e||{}),this.$element=s(t),this.$dialog=this.$element.find(".am-modal-dialog"),this.$element.attr("id")||this.$element.attr("id",o.utils.generateGUID("am-modal")),this.isPopup=this.$element.hasClass("am-popup"),this.isActions=this.$element.hasClass("am-modal-actions"),this.isPrompt=this.$element.hasClass("am-modal-prompt"),this.isLoading=this.$element.hasClass("am-modal-loading"),this.active=this.transitioning=this.relatedTarget=null,this.dimmer=this.options.dimmer?a:{open:function(){},close:function(){}},this.events()};c.DEFAULTS={className:{active:"am-modal-active",out:"am-modal-out"},selector:{modal:".am-modal",active:".am-modal-active"},closeViaDimmer:!0,cancelable:!0,onConfirm:function(){},onCancel:function(){},closeOnCancel:!0,closeOnConfirm:!0,dimmer:!0,height:void 0,width:void 0,duration:300,transitionEnd:l&&l.end+".modal.amui"},c.prototype.toggle=function(t){return this.active?this.close():this.open(t)},c.prototype.open=function(t){var e=this.$element,i=this.options,n=this.isPopup,o=i.width,a=i.height,r={};if(!this.active&&this.$element.length){t&&(this.relatedTarget=t),this.transitioning&&(clearTimeout(e.transitionEndTimmer),e.transitionEndTimmer=null,e.trigger(i.transitionEnd).off(i.transitionEnd)),n&&this.$element.show(),this.active=!0,e.trigger(s.Event("open.modal.amui",{relatedTarget:t})),this.dimmer.open(e),e.show().redraw(),n||this.isActions||(o&&(r.width=parseInt(o,10)+"rem"),a&&(r.height=parseInt(a,10)+"rem"),this.$dialog.css(r)),e.removeClass(i.className.out).addClass(i.className.active),this.transitioning=1;var c=function(){e.trigger(s.Event("opened.modal.amui",{relatedTarget:t})),this.transitioning=0,this.isPrompt&&this.$dialog.find("input").eq(0).focus()};return l?void e.one(i.transitionEnd,s.proxy(c,this)).emulateTransitionEnd(i.duration):c.call(this)}},c.prototype.close=function(t){if(this.active){var e=this.$element,i=this.options,n=this.isPopup;this.transitioning&&(clearTimeout(e.transitionEndTimmer),e.transitionEndTimmer=null,e.trigger(i.transitionEnd).off(i.transitionEnd),this.dimmer.close(e,!0)),this.$element.trigger(s.Event("close.modal.amui",{relatedTarget:t})),this.transitioning=1;var o=function(){e.trigger("closed.modal.amui"),n&&e.removeClass(i.className.out),e.hide(),this.transitioning=0,this.dimmer.close(e,!1),this.active=!1};return e.removeClass(i.className.active).addClass(i.className.out),l?void e.one(i.transitionEnd,s.proxy(o,this)).emulateTransitionEnd(i.duration):o.call(this)}},c.prototype.events=function(){var t=this,e=this.options,i=this.$element,n=this.dimmer.$element,o=i.find(".am-modal-prompt-input"),a=i.find("[data-am-modal-confirm]"),r=i.find("[data-am-modal-cancel]"),l=function(){var t=[];return o.each(function(){t.push(s(this).val())}),0===t.length?void 0:1===t.length?t[0]:t};this.options.cancelable&&i.on("keyup.modal.amui",function(e){t.active&&27===e.which&&(i.trigger("cancel.modal.amui"),t.close())}),this.options.dimmer&&this.options.closeViaDimmer&&!this.isLoading&&n.on("click.dimmer.modal.amui",function(){t.close()}),i.on("click.close.modal.amui","[data-am-modal-close], .am-modal-btn",function(i){i.preventDefault();var n=s(this);n.is(a)?e.closeOnConfirm&&t.close():n.is(r)?e.closeOnCancel&&t.close():t.close()}).on("click",function(t){s(t.target).is(i)&&n.trigger("click.dimmer.modal.amui")}),a.on("click.confirm.modal.amui",function(){i.trigger(s.Event("confirm.modal.amui",{trigger:this}))}),r.on("click.cancel.modal.amui",function(){i.trigger(s.Event("cancel.modal.amui",{trigger:this}))}),i.on("confirm.modal.amui",function(e){e.data=l(),t.options.onConfirm.call(t,e)}).on("cancel.modal.amui",function(e){e.data=l(),t.options.onCancel.call(t,e)})},s.fn.modal=n,r.on("click.modal.amui.data-api","[data-am-modal]",function(){var t=s(this),e=o.utils.parseOptions(t.attr("data-am-modal")),i=s(e.target||this.href&&this.href.replace(/.*(?=#[^\s]+$)/,"")),a=i.data("amui.modal")?"toggle":e;n.call(i,a,this)}),t.exports=o.modal=c},function(t,e,i){"use strict";function n(t,e){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var n=s(this),o=n.data("amui.offcanvas"),a=s.extend({},"object"==typeof t&&t);o||(n.data("amui.offcanvas",o=new c(this,a)),(!t||"object"==typeof t)&&o.open(e)),"string"==typeof t&&o[t]&&o[t].apply(o,i)})}var s=i(1),o=i(2);i(3);var a,r=s(window),l=s(document),c=function(t,e){this.$element=s(t),this.options=s.extend({},c.DEFAULTS,e),this.active=null,this.bindEvents()};c.DEFAULTS={duration:300,effect:"overlay"},c.prototype.open=function(t){var e=this,i=this.$element;if(i.length&&!i.hasClass("am-active")){var n=this.options.effect,o=s("html"),l=s("body"),c=i.find(".am-offcanvas-bar").first(),u=c.hasClass("am-offcanvas-bar-flip")?-1:1;c.addClass("am-offcanvas-bar-"+n),a={x:window.scrollX,y:window.scrollY},i.addClass("am-active"),l.css({width:window.innerWidth,height:r.height()}).addClass("am-offcanvas-page"),"overlay"!==n&&l.css({"margin-left":c.outerWidth()*u}).width(),o.css("margin-top",a.y*-1),setTimeout(function(){c.addClass("am-offcanvas-bar-active").width()},0),i.trigger("open.offcanvas.amui"),this.active=1,i.on("click.offcanvas.amui",function(t){var i=s(t.target);i.hasClass("am-offcanvas-bar")||i.parents(".am-offcanvas-bar").first().length||(t.stopImmediatePropagation(),e.close())}),o.on("keydown.offcanvas.amui",function(t){27===t.keyCode&&e.close()})}},c.prototype.close=function(t){function e(){r.removeClass("am-offcanvas-page").css({width:"",height:"","margin-left":"","margin-right":""}),l.removeClass("am-active"),c.removeClass("am-offcanvas-bar-active"),n.css("margin-top",""),window.scrollTo(a.x,a.y),l.trigger("closed.offcanvas.amui"),i.active=0}var i=this,n=s("html"),r=s("body"),l=this.$element,c=l.find(".am-offcanvas-bar").first();l.length&&this.active&&l.hasClass("am-active")&&(l.trigger("close.offcanvas.amui"),o.support.transition?(setTimeout(function(){c.removeClass("am-offcanvas-bar-active")},0),r.css("margin-left","").one(o.support.transition.end,function(){e()}).emulateTransitionEnd(this.options.duration)):e(),l.off("click.offcanvas.amui"),n.off(".offcanvas.amui"))},c.prototype.bindEvents=function(){var t=this;return l.on("click.offcanvas.amui",'[data-am-dismiss="offcanvas"]',function(e){e.preventDefault(),t.close()}),r.on("resize.offcanvas.amui orientationchange.offcanvas.amui",function(){t.active&&t.close()}),this.$element.hammer().on("swipeleft swipeleft",function(e){e.preventDefault(),t.close()}),this},s.fn.offCanvas=n,l.on("click.offcanvas.amui","[data-am-offcanvas]",function(t){t.preventDefault();var e=s(this),i=o.utils.parseOptions(e.data("amOffcanvas")),a=s(i.target||this.href&&this.href.replace(/.*(?=#[^\s]+$)/,"")),r=a.data("amui.offcanvas")?"open":i;n.call(a,r,this)}),t.exports=o.offcanvas=c},function(t,e,i){"use strict";var n=i(1),s=i(2),o=s.utils.rAF,a=function(t){var e=function(e,i){this.el=t(e),this.zoomFactor=1,this.lastScale=1,this.offset={x:0,y:0},this.options=t.extend({},this.defaults,i),this.setupMarkup(),this.bindEvents(),this.update(),this.enable()},i=function(t,e){return t+e},n=function(t,e){return t>e-.01&&t1){var e=this.getTouches(t)[0];this.drag(e,this.lastDragPosition),this.offset=this.sanitizeOffset(this.offset),this.lastDragPosition=e}},handleDragEnd:function(){this.el.trigger(this.options.dragEndEventName),this.end()},handleZoomStart:function(t){this.el.trigger(this.options.zoomStartEventName),this.stopAnimation(),this.lastScale=1,this.nthZoom=0,this.lastZoomCenter=!1,this.hasInteraction=!0},handleZoom:function(t,e){var i=this.getTouchCenter(this.getTouches(t)),n=e/this.lastScale;this.lastScale=e,this.nthZoom+=1,this.nthZoom>3&&(this.scale(n,i),this.drag(i,this.lastZoomCenter)),this.lastZoomCenter=i},handleZoomEnd:function(){this.el.trigger(this.options.zoomEndEventName),this.end()},handleDoubleTap:function(t){var e=this.getTouches(t)[0],i=this.zoomFactor>1?1:this.options.tapZoomFactor,n=this.zoomFactor,s=function(t){this.scaleTo(n+t*(i-n),e)}.bind(this);this.hasInteraction||(n>i&&(e=this.getCurrentZoomCenter()),this.animate(this.options.animationDuration,s,this.swing),this.el.trigger(this.options.doubleTapEventName))},sanitizeOffset:function(t){var e=(this.zoomFactor-1)*this.getContainerX(),i=(this.zoomFactor-1)*this.getContainerY(),n=Math.max(e,0),s=Math.max(i,0),o=Math.min(e,0),a=Math.min(i,0);return{x:Math.min(Math.max(t.x,o),n),y:Math.min(Math.max(t.y,a),s)}},scaleTo:function(t,e){this.scale(t/this.zoomFactor,e)},scale:function(t,e){t=this.scaleZoomFactor(t),this.addOffset({x:(t-1)*(e.x+this.offset.x),y:(t-1)*(e.y+this.offset.y)})},scaleZoomFactor:function(t){var e=this.zoomFactor;return this.zoomFactor*=t,this.zoomFactor=Math.min(this.options.maxZoom,Math.max(this.zoomFactor,this.options.minZoom)),this.zoomFactor/e},drag:function(t,e){e&&(this.options.lockDragAxis?Math.abs(t.x-e.x)>Math.abs(t.y-e.y)?this.addOffset({x:-(t.x-e.x),y:0}):this.addOffset({y:-(t.y-e.y),x:0}):this.addOffset({y:-(t.y-e.y),x:-(t.x-e.x)}))},getTouchCenter:function(t){return this.getVectorAvg(t)},getVectorAvg:function(t){return{x:t.map(function(t){return t.x}).reduce(i)/t.length,y:t.map(function(t){return t.y}).reduce(i)/t.length}},addOffset:function(t){this.offset={x:this.offset.x+t.x,y:this.offset.y+t.y}},sanitize:function(){this.zoomFactor=t?(e(1),n&&n(),this.update(),this.stopAnimation(),this.update()):(i&&(l=i(l)),e(l),this.update(),o(a))}}.bind(this);this.inAnimation=!0,o(a)},stopAnimation:function(){this.inAnimation=!1},swing:function(t){return-Math.cos(t*Math.PI)/2+.5},getContainerX:function(){return this.container[0].offsetWidth},getContainerY:function(){return this.container[0].offsetHeight},setContainerY:function(t){return this.container.height(t)},setupMarkup:function(){this.container=t('
          '),this.el.before(this.container),this.container.append(this.el),this.container.css({overflow:"hidden",position:"relative"}),this.el.css({"-webkit-transform-origin":"0% 0%","-moz-transform-origin":"0% 0%","-ms-transform-origin":"0% 0%","-o-transform-origin":"0% 0%","transform-origin":"0% 0%",position:"absolute"})},end:function(){this.hasInteraction=!1,this.sanitize(),this.update()},bindEvents:function(){s(this.container.get(0),this),t(window).on("resize",this.update.bind(this)),t(this.el).find("img").on("load",this.update.bind(this))},update:function(){this.updatePlaned||(this.updatePlaned=!0,setTimeout(function(){this.updatePlaned=!1,this.updateAspectRatio();var t=this.getInitialZoomFactor()*this.zoomFactor,e=-this.offset.x/t,i=-this.offset.y/t,n="scale3d("+t+", "+t+",1) translate3d("+e+"rem,"+i+"rem,0rem)",s="scale("+t+", "+t+") translate("+e+"rem,"+i+"rem)",o=function(){this.clone&&(this.clone.remove(),delete this.clone)}.bind(this);!this.options.use2d||this.hasInteraction||this.inAnimation?(this.is3d=!0,o(),this.el.css({"-webkit-transform":n,"-o-transform":s,"-ms-transform":s,"-moz-transform":s,transform:n})):(this.is3d&&(this.clone=this.el.clone(),this.clone.css("pointer-events","none"),this.clone.appendTo(this.container),setTimeout(o,200)),this.el.css({"-webkit-transform":s,"-o-transform":s,"-ms-transform":s,"-moz-transform":s,transform:s}),this.is3d=!1)}.bind(this),0))},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1}};var s=function(t,e){var i=null,n=0,s=null,o=null,a=function(t,n){if(i!==t){if(i&&!t)switch(i){case"zoom":e.handleZoomEnd(n);break;case"drag":e.handleDragEnd(n)}switch(t){case"zoom":e.handleZoomStart(n);break;case"drag":e.handleDragStart(n)}}i=t},r=function(t){2===n?a("zoom"):1===n&&e.canDrag()?a("drag",t):a(null,t)},l=function(t){return Array.prototype.slice.call(t).map(function(t){return{x:t.pageX,y:t.pageY}})},c=function(t,e){var i,n;return i=t.x-e.x,n=t.y-e.y,Math.sqrt(i*i+n*n)},u=function(t,e){var i=c(t[0],t[1]),n=c(e[0],e[1]);return n/i},h=function(t){t.stopPropagation(),t.preventDefault()},d=function(t){var o=(new Date).getTime();if(n>1&&(s=null),o-s<300)switch(h(t),e.handleDoubleTap(t),i){case"zoom":e.handleZoomEnd(t);break;case"drag":e.handleDragEnd(t)}1===n&&(s=o)},p=!0;t.addEventListener("touchstart",function(t){e.enabled&&(p=!0,n=t.touches.length,d(t))}),t.addEventListener("touchmove",function(t){if(e.enabled){if(p)r(t),i&&h(t),o=l(t.touches);else{switch(i){case"zoom":e.handleZoom(t,u(o,l(t.touches)));break;case"drag":e.handleDrag(t)}i&&(h(t),e.update())}p=!1}}),t.addEventListener("touchend",function(t){e.enabled&&(n=t.touches.length,r(t))})};return e};t.exports=s.pichzoom=a(n)},function(t,e,i){"use strict";var n=i(1),s=i(2),o=n(window),a=function(t,e){this.options=n.extend({},a.DEFAULTS,e),this.$element=n(t),this.active=null,this.$popover=this.options.target&&n(this.options.target)||null,this.init(),this._bindEvents()};a.DEFAULTS={theme:null,trigger:"click",content:"",open:!1,target:null,tpl:'
          '},a.prototype.init=function(){function t(){i.sizePopover()}var e,i=this,o=this.$element;this.options.target||(this.$popover=this.getPopover(),this.setContent()),e=this.$popover,e.appendTo(n("body")),this.sizePopover(),o.on("open.popover.amui",function(){n(window).on("resize.popover.amui",s.utils.debounce(t,50))}),o.on("close.popover.amui",function(){n(window).off("resize.popover.amui",t)}),this.options.open&&this.open()},a.prototype.sizePopover=function(){var t=this.$element,e=this.$popover;if(e&&e.length){var i=e.outerWidth(),n=e.outerHeight(),s=e.find(".am-popover-caret"),a=s.outerWidth()/2||8,r=n+8,l=t.outerWidth(),c=t.outerHeight(),u=t.offset(),h=t[0].getBoundingClientRect(),d=o.height(),p=o.width(),m=0,f=0,v=0,g=2,y="top";e.css({left:"",top:""}).removeClass("am-popover-left am-popover-right am-popover-top am-popover-bottom"),r-gp&&(f=p-i-20),"top"===y&&e.addClass("am-popover-top"),"bottom"===y&&e.addClass("am-popover-bottom"),v-=f):"middle"===y&&(f=u.left-i-a,e.addClass("am-popover-left"),f<5&&(f=u.left+l+a,e.removeClass("am-popover-left").addClass("am-popover-right")),f+i>p&&(f=p-i-5,e.removeClass("am-popover-left").addClass("am-popover-right"))),e.css({top:m+"rem",left:f+"rem"})}},a.prototype.toggle=function(){return this[this.active?"close":"open"]()},a.prototype.open=function(){var t=this.$popover;this.$element.trigger("open.popover.amui"),this.sizePopover(),t.show().addClass("am-active"),this.active=!0},a.prototype.close=function(){var t=this.$popover;this.$element.trigger("close.popover.amui"),t.removeClass("am-active").trigger("closed.popover.amui").hide(),this.active=!1},a.prototype.getPopover=function(){var t=s.utils.generateGUID("am-popover"),e=[];return this.options.theme&&n.each(this.options.theme.split(" "),function(t,i){e.push("am-popover-"+n.trim(i))}),n(this.options.tpl).attr("id",t).addClass(e.join(" "))},a.prototype.setContent=function(t){t=t||this.options.content,this.$popover&&this.$popover.find(".am-popover-inner").empty().html(t)},a.prototype._bindEvents=function(){for(var t="popover.amui",e=this.options.trigger.split(" "),i=e.length;i--;){var s=e[i];if("click"===s)this.$element.on("click."+t,n.proxy(this.toggle,this));else{var o="hover"==s?"mouseenter":"focusin",a="hover"==s?"mouseleave":"focusout";this.$element.on(o+"."+t,n.proxy(this.open,this)),this.$element.on(a+"."+t,n.proxy(this.close,this))}}},a.prototype.destroy=function(){this.$element.off(".popover.amui").removeData("amui.popover"),this.$popover.remove()},s.plugin("popover",a),s.ready(function(t){n("[data-am-popover]",t).popover()}),t.exports=a},function(t,e,i){"use strict";var n=i(2),s=function(){function t(t,e,i){return ti?i:t}function e(t){return 100*(-1+t)}function i(t,i,n){var s;return s="translate3d"===c.positionUsing?{transform:"translate3d("+e(t)+"%,0,0)"}:"translate"===c.positionUsing?{transform:"translate("+e(t)+"%,0)"}:{"margin-left":e(t)+"%"},s.transition="all "+i+"ms "+n,s}function n(t,e){var i="string"==typeof t?t:a(t);return i.indexOf(" "+e+" ")>=0}function s(t,e){var i=a(t),s=i+e;n(i,e)||(t.className=s.substring(1))}function o(t,e){var i,s=a(t);n(t,e)&&(i=s.replace(" "+e+" "," "),t.className=i.substring(1,i.length-1))}function a(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function r(t){t&&t.parentNode&&t.parentNode.removeChild(t)}var l={};l.version="0.2.0";var c=l.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,parent:"body",barSelector:'[role="nprogress-bar"]',spinnerSelector:'[role="nprogress-spinner"]',template:'
          '};l.configure=function(t){var e,i;for(e in t)i=t[e],void 0!==i&&t.hasOwnProperty(e)&&(c[e]=i);return this},l.status=null,l.set=function(e){var n=l.isStarted();e=t(e,c.minimum,1),l.status=1===e?null:e;var s=l.render(!n),o=s.querySelector(c.barSelector),a=c.speed,r=c.easing;return s.offsetWidth,u(function(t){""===c.positionUsing&&(c.positionUsing=l.getPositioningCSS()),h(o,i(e,a,r)),1===e?(h(s,{transition:"none",opacity:1}),s.offsetWidth,setTimeout(function(){h(s,{transition:"all "+a+"ms linear",opacity:0}),setTimeout(function(){l.remove(),t()},a)},a)):setTimeout(t,a)}),this},l.isStarted=function(){return"number"==typeof l.status},l.start=function(){l.status||l.set(0);var t=function(){setTimeout(function(){l.status&&(l.trickle(),t())},c.trickleSpeed)};return c.trickle&&t(),this},l.done=function(t){return t||l.status?l.inc(.3+.5*Math.random()).set(1):this},l.inc=function(e){var i=l.status;return i?("number"!=typeof e&&(e=(1-i)*t(Math.random()*i,.1,.95)),i=t(i+e,0,.994),l.set(i)):l.start()},l.trickle=function(){return l.inc(Math.random()*c.trickleRate)},function(){var t=0,e=0;l.promise=function(i){return i&&"resolved"!==i.state()?(0===e&&l.start(),t++,e++,i.always(function(){e--,0===e?(t=0,l.done()):l.set((t-e)/t)}),this):this}}(),l.render=function(t){if(l.isRendered())return document.getElementById("nprogress");s(document.documentElement,"nprogress-busy");var i=document.createElement("div");i.id="nprogress",i.innerHTML=c.template;var n,o=i.querySelector(c.barSelector),a=t?"-100":e(l.status||0),u=document.querySelector(c.parent);return h(o,{transition:"all 0 linear",transform:"translate3d("+a+"%,0,0)"}),c.showSpinner||(n=i.querySelector(c.spinnerSelector),n&&r(n)),u!=document.body&&s(u,"nprogress-custom-parent"),u.appendChild(i),i},l.remove=function(){o(document.documentElement,"nprogress-busy"),o(document.querySelector(c.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&r(t)},l.isRendered=function(){return!!document.getElementById("nprogress")},l.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var u=function(){function t(){var i=e.shift();i&&i(t)}var e=[];return function(i){e.push(i),1==e.length&&t()}}(),h=function(){function t(t){return t.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})}function e(t){var e=document.body.style;if(t in e)return t;for(var i,n=s.length,o=t.charAt(0).toUpperCase()+t.slice(1);n--;)if(i=s[n]+o,i in e)return i;return t}function i(i){return i=t(i),o[i]||(o[i]=e(i))}function n(t,e,n){e=i(e),t.style[e]=n}var s=["Webkit","O","Moz","ms"],o={};return function(t,e){var i,s,o=arguments;if(2==o.length)for(i in e)s=e[i],void 0!==s&&e.hasOwnProperty(i)&&n(t,i,s);else n(t,o[1],o[2])}}();return l}();t.exports=n.progress=s},function(t,e,i){"use strict";var n=i(1),s=i(2),o=i(17),a=i(3),r=s.support.animation,l=s.support.transition,c=function(t,e){this.$element=n(t),this.$body=n(document.body),this.options=n.extend({},c.DEFAULTS,e),this.$pureview=n(this.options.tpl).attr("id",s.utils.generateGUID("am-pureview")),this.$slides=null,this.transitioning=null,this.scrollbarWidth=0,this.init()};c.DEFAULTS={tpl:'
              /
              ',className:{prevSlide:"am-pureview-slide-prev",nextSlide:"am-pureview-slide-next",onlyOne:"am-pureview-only",active:"am-active",barActive:"am-pureview-bar-active",activeBody:"am-pureview-active"},selector:{slider:".am-pureview-slider",close:'[data-am-close="pureview"]',total:".am-pureview-total",current:".am-pureview-current",title:".am-pureview-title",actions:".am-pureview-actions", +bar:".am-pureview-bar",pinchZoom:".am-pinch-zoom",nav:".am-pureview-nav"},shareBtn:!1,toggleToolbar:!0,target:"img",weChatImagePreview:!0},c.prototype.init=function(){var t=this,e=this.options,i=this.$element,s=this.$pureview;this.refreshSlides(),n("body").append(s),this.$title=s.find(e.selector.title),this.$current=s.find(e.selector.current),this.$bar=s.find(e.selector.bar),this.$actions=s.find(e.selector.actions),e.shareBtn&&this.$actions.append(''),this.$element.on("click.pureview.amui",e.target,function(i){i.preventDefault();var n=t.$images.index(this);e.weChatImagePreview&&window.WeixinJSBridge?window.WeixinJSBridge.invoke("imagePreview",{current:t.imgUrls[n],urls:t.imgUrls}):t.open(n)}),s.find(".am-pureview-direction").on("click.direction.pureview.amui","li",function(e){e.preventDefault(),n(this).is(".am-pureview-prev")?t.prevSlide():t.nextSlide()}),s.find(e.selector.nav).on("click.nav.pureview.amui","li",function(){var e=t.$navItems.index(n(this));t.activate(t.$slides.eq(e))}),s.find(e.selector.close).on("click.close.pureview.amui",function(e){if(e.target.tagName != 'IMG'&&!$(e.target).hasClass('am-img-loaded')){e.preventDefault(),t.close()}}),this.$slider.hammer().on("swipeleft.pureview.amui",function(e){e.preventDefault(),t.nextSlide()}).on("swiperight.pureview.amui",function(e){e.preventDefault(),t.prevSlide()}).on("press.pureview.amui",function(i){i.preventDefault(),e.toggleToolbar&&t.toggleToolBar()}),this.$slider.data("hammer").get("swipe").set({direction:a.DIRECTION_HORIZONTAL,velocity:.35}),i.DOMObserve({childList:!0,subtree:!0},function(t,e){}),i.on("changed.dom.amui",function(e){e.stopPropagation(),t.refreshSlides()}),n(document).on("keydown.pureview.amui",n.proxy(function(t){var e=t.keyCode;37==e?this.prevSlide():39==e?this.nextSlide():27==e&&this.close()},this))},c.prototype.refreshSlides=function(){this.$images=this.$element.find(this.options.target);var t=this,e=this.options,i=this.$pureview,o=n([]),a=n([]),r=this.$images,l=r.length;this.$slider=i.find(e.selector.slider),this.$nav=i.find(e.selector.nav);var c="data-am-pureviewed";this.imgUrls=this.imgUrls||[],l&&(1===l&&i.addClass(e.className.onlyOne),r.not("["+c+"]").each(function(e,i){var r,l;"A"===i.nodeName?(r=i.href,l=i.title||""):(r=n(i).data("rel")||i.src,r=s.utils.getAbsoluteUrl(r),l=n(i).attr("alt")||""),i.setAttribute(c,"1"),t.imgUrls.push(r),o=o.add(n('
            1. ')),a=a.add(n("
            2. "+(e+1)+"
            3. "))}),i.find(e.selector.total).text(l),this.$slider.append(o),this.$nav.append(a),this.$navItems=this.$nav.find("li"),this.$slides=this.$slider.find("li"))},c.prototype.loadImage=function(t,e){var i="image-appended";if(!t.data(i)){var s=n("",{src:t.data("src"),alt:t.data("title")});t.html(s).wrapInner('
              ').redraw();var a=t.find(this.options.selector.pinchZoom);a.data("amui.pinchzoom",new o(a[0],{})),t.data("image-appended",!0)}e&&e.call(this)},c.prototype.activate=function(t){var e=this.options,i=this.$slides,o=i.index(t),a=t.data("title")||"",r=e.className.active;i.find("."+r).is(t)||this.transitioning||(this.loadImage(t,function(){s.utils.imageLoader(t.find("img"),function(e){t.find(".am-pinch-zoom").addClass("am-pureview-loaded"),n(e).addClass("am-img-loaded")})}),this.transitioning=1,this.$title.text(a),this.$current.text(o+1),i.removeClass(),t.addClass(r),i.eq(o-1).addClass(e.className.prevSlide),i.eq(o+1).addClass(e.className.nextSlide),this.$navItems.removeClass().eq(o).addClass(e.className.active),l?t.one(l.end,n.proxy(function(){this.transitioning=0},this)).emulateTransitionEnd(300):this.transitioning=0)},c.prototype.nextSlide=function(){if(1!==this.$slides.length){var t=this.$slides,e=t.filter(".am-active"),i=t.index(e),n="am-animation-right-spring";i+1>=t.length?r&&e.addClass(n).on(r.end,function(){e.removeClass(n)}):this.activate(t.eq(i+1))}},c.prototype.prevSlide=function(){if(1!==this.$slides.length){var t=this.$slides,e=t.filter(".am-active"),i=this.$slides.index(e),n="am-animation-left-spring";0===i?r&&e.addClass(n).on(r.end,function(){e.removeClass(n)}):this.activate(t.eq(i-1))}},c.prototype.toggleToolBar=function(){this.$pureview.toggleClass(this.options.className.barActive)},c.prototype.open=function(t){var e=t||0;this.checkScrollbar(),this.setScrollbar(),this.activate(this.$slides.eq(e)),this.$pureview.show().redraw().addClass(this.options.className.active),this.$body.addClass(this.options.className.activeBody)},c.prototype.close=function(){function t(){this.$pureview.hide(),this.$body.removeClass(e.className.activeBody),this.resetScrollbar()}var e=this.options;this.$pureview.removeClass(e.className.active),this.$slides.removeClass(),l?this.$pureview.one(l.end,n.proxy(t,this)).emulateTransitionEnd(300):t.call(this)},c.prototype.checkScrollbar=function(){this.scrollbarWidth=s.utils.measureScrollbar()},c.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",t+this.scrollbarWidth)},c.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},s.plugin("pureview",c),s.ready(function(t){n("[data-am-pureview]",t).pureview()}),t.exports=c},function(t,e,i){"use strict";var n=i(1),s=i(2),o=function(t,e){if(s.support.animation){this.options=n.extend({},o.DEFAULTS,e),this.$element=n(t);var i=function(){s.utils.rAF.call(window,n.proxy(this.checkView,this))}.bind(this);this.$window=n(window).on("scroll.scrollspy.amui",i).on("resize.scrollspy.amui orientationchange.scrollspy.amui",s.utils.debounce(i,50)),this.timer=this.inViewState=this.initInView=null,i()}};o.DEFAULTS={animation:"fade",className:{inView:"am-scrollspy-inview",init:"am-scrollspy-init"},repeat:!0,delay:0,topOffset:0,leftOffset:0},o.prototype.checkView=function(){var t=this.$element,e=this.options,i=s.utils.isInView(t,e),n=e.animation?" am-animation-"+e.animation:"";i&&!this.inViewState&&(this.timer&&clearTimeout(this.timer),this.initInView||(t.addClass(e.className.init),this.offset=t.offset(),this.initInView=!0,t.trigger("init.scrollspy.amui")),this.timer=setTimeout(function(){i&&t.addClass(e.className.inView+n).width()},e.delay),this.inViewState=!0,t.trigger("inview.scrollspy.amui")),!i&&this.inViewState&&e.repeat&&(t.removeClass(e.className.inView+n),this.inViewState=!1,t.trigger("outview.scrollspy.amui"))},o.prototype.check=function(){s.utils.rAF.call(window,n.proxy(this.checkView,this))},s.plugin("scrollspy",o),s.ready(function(t){n("[data-am-scrollspy]",t).scrollspy()}),t.exports=o},function(t,e,i){"use strict";var n=i(1),s=i(2);i(23);var o=function(t,e){this.options=n.extend({},o.DEFAULTS,e),this.$element=n(t),this.anchors=[],this.$links=this.$element.find('a[href^="#"]').each(function(t,e){this.anchors.push(n(e).attr("href"))}.bind(this)),this.$targets=n(this.anchors.join(", "));var i=function(){s.utils.rAF.call(window,n.proxy(this.process,this))}.bind(this);this.$window=n(window).on("scroll.scrollspynav.amui",i).on("resize.scrollspynav.amui orientationchange.scrollspynav.amui",s.utils.debounce(i,50)),i(),this.scrollProcess()};o.DEFAULTS={className:{active:"am-active"},closest:!1,smooth:!0,offsetTop:0},o.prototype.process=function(){var t=this.$window.scrollTop(),e=this.options,i=[],o=this.$links,a=this.$targets;if(a.each(function(t,n){s.utils.isInView(n,e)&&i.push(n)}),i.length){var r;if(n.each(i,function(e,i){if(n(i).offset().top>=t)return r=n(i),!1}),!r)return;e.closest?(o.closest(e.closest).removeClass(e.className.active),o.filter('a[href="#'+r.attr("id")+'"]').closest(e.closest).addClass(e.className.active)):o.removeClass(e.className.active).filter('a[href="#'+r.attr("id")+'"]').addClass(e.className.active)}},o.prototype.scrollProcess=function(){var t=this.$links,e=this.options;e.smooth&&n.fn.smoothScroll&&t.on("click",function(t){t.preventDefault();var i=n(this),s=n(i.attr("href"));if(s){var o=e.offsetTop&&!isNaN(parseInt(e.offsetTop))&&parseInt(e.offsetTop)||0;n(window).smoothScroll({position:s.offset().top-o})}})},s.plugin("scrollspynav",o),s.ready(function(t){n("[data-am-scrollspynav]",t).scrollspynav()}),t.exports=o},function(t,e,i){"use strict";var n=i(1),s=i(2),o=s.utils.rAF,a=s.utils.cancelAF,r=!1,l=function(t,e){function i(t){return(t/=.5)<1?.5*Math.pow(t,5):.5*(Math.pow(t-2,5)+2)}function s(){p.off("touchstart.smoothscroll.amui",w),r=!1}function c(t){r&&(u||(u=t),h=Math.min(1,Math.max((t-u)/y,0)),d=Math.round(f+g*i(h)),g>0&&d>m&&(d=m),g<0&&d=0};var o=function(t,e){this.$element=n(t),this.options=n.extend({},o.DEFAULTS,{placeholder:t.getAttribute("placeholder")||o.DEFAULTS.placeholder},e),this.$originalOptions=this.$element.find("option"),this.multiple=t.multiple,this.$selector=null,this.initialized=!1,this.init()};var placeholder = '点击选择...';o.DEFAULTS={btnWidth:null,btnSize:null,btnStyle:"default",dropUp:0,maxHeight:null,maxChecked:null,placeholder:placeholder,selectedClass:"am-checked",disabledClass:"am-disabled",searchBox:!1,tpl:'

              \u8fd4\u56de

              <% if (searchBox) { %> <% } %>
                <% for (var i = 0; i < options.length; i++) { %> <% var option = options[i] %> <% if (option.header) { %>
              • <%= option.text %>
              • <% } else { %>
              • <%= option.text %>
              • <% } %> <% } %>
              ',listTpl:'<% for (var i = 0; i < options.length; i++) { %> <% var option = options[i] %> <% if (option.header) { %>
            4. <%= option.text %>
            5. <% } else { %>
            6. <%= option.text %>
            7. <% } %> <% } %>'},o.prototype.init=function(){var t=this,e=this.$element,i=this.options;e.hide();var o={id:s.utils.generateGUID("am-selected"),multiple:this.multiple,options:[],searchBox:i.searchBox,dropUp:i.dropUp,placeholder:i.placeholder};this.$selector=n(s.template(this.options.tpl,o)),this.$selector.css({width:this.options.btnWidth}),this.$list=this.$selector.find(".am-selected-list"),this.$searchField=this.$selector.find(".am-selected-search input"),this.$hint=this.$selector.find(".am-selected-hint");var a=this.$selector.find(".am-selected-btn"),r=[];i.btnSize&&r.push("am-btn-"+i.btnSize),i.btnStyle&&r.push("am-btn-"+i.btnStyle),a.addClass(r.join(" ")),this.$selector.dropdown({justify:a}),e[0].disabled&&this.disable(),i.maxHeight&&this.$selector.find(".am-selected-list").css({"max-height":i.maxHeight,"overflow-y":"scroll"});var l=[],c=e.attr("minchecked"),u=e.attr("maxchecked")||i.maxChecked;this.maxChecked=u||1/0,e[0].required&&l.push("\u5fc5\u9009"),(c||u)&&(c&&l.push("\u81f3\u5c11\u9009\u62e9 "+c+" \u9879"),u&&l.push("\u81f3\u591a\u9009\u62e9 "+u+" \u9879")),this.$hint.text(l.join("\uff0c")),this.renderOptions(),this.$element.after(this.$selector),this.dropdown=this.$selector.data("amui.dropdown"),this.$status=this.$selector.find(".am-selected-status"),setTimeout(function(){t.syncData(),t.initialized=!0},0),this.bindEvents()},o.prototype.renderOptions=function(){function t(t,e,s){if(""===e.value)return!0;var o="";e.disabled&&(o+=i.disabledClass),!e.disabled&&e.selected&&(o+=i.selectedClass),n.push({group:s,index:t,classNames:o,text:e.text,value:e.value})}var e=this.$element,i=this.options,n=[],o=e.find("optgroup");this.$originalOptions=this.$element.find("option"),this.multiple||null!==e.val()||this.$originalOptions.length&&(this.$originalOptions.get(0).selected=!0),o.length?o.each(function(e){n.push({header:!0,group:e+1,text:this.label}),o.eq(e).find("option").each(function(i,n){t(i,n,e)})}):this.$originalOptions.each(function(e,i){t(e,i,null)}),this.$list.html(s.template(i.listTpl,{options:n})),this.$shadowOptions=this.$list.find("> li").not(".am-selected-list-header")},o.prototype.setChecked=function(t){var e=this.options,i=n(t),s=i.hasClass(e.selectedClass);if(this.multiple){var o=this.$list.find("."+e.selectedClass).length;if(!s&&this.maxChecked<=o)return this.$element.trigger("checkedOverflow.selected.amui",{selected:this}),!1}else{if(this.dropdown.close(),s)return!1;this.$shadowOptions.not(i).removeClass(e.selectedClass)}i.toggleClass(e.selectedClass),this.syncData(t)},o.prototype.syncData=function(t){var e=this,i=this.options,s=[],o=n([]);if(this.$shadowOptions.filter("."+i.selectedClass).each(function(){var i=n(this);s.push(i.find(".am-selected-text").text()),t||(o=o.add(e.$originalOptions.filter('[value="'+i.data("value")+'"]').prop("selected",!0)))}),t){var a=n(t);this.$originalOptions.filter('[value="'+a.data("value")+'"]').prop("selected",a.hasClass(i.selectedClass))}else this.$originalOptions.not(o).prop("selected",!1);this.$element.val()||(s=[i.placeholder]),this.$status.text(s.join(", ")),this.initialized&&this.$element.trigger("change")},o.prototype.bindEvents=function(){var t=this,e="am-selected-list-header",i=s.utils.debounce(function(i){t.$shadowOptions.not("."+e).hide().filter(':containsNC("'+i.target.value+'")').show()},100);this.$list.on("click","> li",function(i){var s=n(this);!s.hasClass(t.options.disabledClass)&&!s.hasClass(e)&&t.setChecked(this)}),this.$searchField.on("keyup.selected.amui",i),this.$selector.on("closed.dropdown.amui",function(){t.$searchField.val(""),t.$shadowOptions.css({display:""})}),this.$element.on("validated.field.validator.amui",function(e){if(e.validity){var i=e.validity.valid,n="am-invalid";t.$selector[(i?"remove":"add")+"Class"](n)}}),s.support.mutationobserver&&(this.observer=new s.support.mutationobserver(function(){t.$element.trigger("changed.selected.amui")}),this.observer.observe(this.$element[0],{childList:!0,subtree:!0,characterData:!0})),this.$element.on("changed.selected.amui",function(){t.renderOptions(),t.syncData()})},o.prototype.select=function(t){var e;e="number"==typeof t?this.$list.find("> li").not(".am-selected-list-header").eq(t):"string"==typeof t?this.$list.find(t):n(t),e.trigger("click")},o.prototype.enable=function(){this.$element.prop("disable",!1),this.$selector.dropdown("enable")},o.prototype.disable=function(){this.$element.prop("disable",!0),this.$selector.dropdown("disable")},o.prototype.destroy=function(){this.$element.removeData("amui.selected").show(),this.$selector.remove()},s.plugin("selected",o),s.ready(function(t){n("[data-am-selected]",t).selected()}),t.exports=o},function(t,e,i){"use strict";i(15);var n=i(1),s=i(2),o=i(26),a=document,r=n(a),l=function(t){this.options=n.extend({},l.DEFAULTS,t||{}),this.$element=null,this.$wechatQr=null,this.pics=null,this.inited=!1,this.active=!1};l.DEFAULTS={sns:["weibo","qq","qzone","tqq","wechat","renren"],title:"\u5206\u4eab\u5230",cancel:"\u53d6\u6d88",closeOnShare:!0,id:s.utils.generateGUID("am-share"),desc:"Hi\uff0c\u5b64\u591c\u89c2\u5929\u8c61\uff0c\u53d1\u73b0\u4e00\u4e2a\u4e0d\u9519\u7684\u897f\u897f\uff0c\u5206\u4eab\u4e00\u4e0b\u4e0b ;-)",via:"Amaze UI",tpl:''},l.SNS={weibo:{title:"\u65b0\u6d6a\u5fae\u535a",url:"http://service.weibo.com/share/share.php",width:620,height:450,icon:"weibo"},qq:{title:"QQ \u597d\u53cb",url:"http://connect.qq.com/widget/shareqq/index.html",icon:"qq"},qzone:{title:"QQ \u7a7a\u95f4",url:"http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey",icon:"star"},tqq:{title:"\u817e\u8baf\u5fae\u535a",url:"http://v.t.qq.com/share/share.php",icon:"tencent-weibo"},wechat:{title:"\u5fae\u4fe1",url:"[qrcode]",icon:"wechat"},renren:{title:"\u4eba\u4eba\u7f51",url:"http://widget.renren.com/dialog/share",icon:"renren"},douban:{title:"\u8c46\u74e3",url:"http://www.douban.com/recommend/",icon:"share-alt"},mail:{title:"\u90ae\u4ef6\u5206\u4eab",url:"mailto:",icon:"envelope-o"},sms:{title:"\u77ed\u4fe1\u5206\u4eab",url:"sms:",icon:"comment"}},l.prototype.render=function(){var t=this.options,e=[],i=encodeURIComponent(a.title),o=encodeURIComponent(a.location),r="?body="+i+o;return t.sns.forEach(function(n,s){if(l.SNS[n]){var a,c=l.SNS[n];c.id=n,a="mail"===n?r+"&subject="+t.desc:"sms"===n?r:"?url="+o+"&title="+i,c.shareUrl=c.url+a,e.push(c)}}),s.template(t.tpl,n.extend({},t,{sns:e}))},l.prototype.init=function(){if(!this.inited){var t=this,e="[data-am-share-to]";r.ready(n.proxy(function(){n("body").append(this.render()),this.$element=n("#"+this.options.id),this.$element.find("[data-am-share-close]").on("click.share.amui",function(){t.close()})},this)),r.on("click.share.amui",e,n.proxy(function(t){var i=n(t.target),s=i.is(e)&&i||i.parent(e),o=s.attr("data-am-share-to");"mail"!==o&&"sms"!==o&&(t.preventDefault(),this.shareTo(o,this.setData(o))),this.close()},this)),this.inited=!0}},l.prototype.open=function(){!this.inited&&this.init(),this.$element&&this.$element.modal("open"),this.$element.trigger("open.share.amui"),this.active=!0},l.prototype.close=function(){this.$element&&this.$element.modal("close"),this.$element.trigger("close.share.amui"),this.active=!1},l.prototype.toggle=function(){this.active?this.close():this.open()},l.prototype.setData=function(t){if(t){var e={url:a.location,title:a.title},i=this.options.desc,n=this.pics||[],s=/^(qzone|qq|tqq)$/;if(s.test(t)&&!n.length){for(var o=a.images,r=0;r
              ');e.attr("id",t);var i=new o({render:"canvas",correctLevel:0,text:a.location.href,width:180,height:180,background:"#fff",foreground:"#000"});e.find(".am-share-wx-qr").html(i),e.appendTo(n("body")),this.$wechatQr=n("#"+t)}this.$wechatQr.modal("open")};var c=new l;r.on("click.share.amui.data-api",'[data-am-toggle="share"]',function(t){t.preventDefault(),c.toggle()}),t.exports=s.share=c},function(t,e,i){function n(t){return t<128?[t]:t<2048?(c0=192+(t>>6),c1=128+(63&t),[c0,c1]):(c0=224+(t>>12),c1=128+(t>>6&63),c2=128+(63&t),[c0,c1,c2])}function s(t){for(var e=[],i=0;i>6),c1=128+(63&t),[c0,c1]):(c0=224+(t>>12),c1=128+(t>>6&63),c2=128+(63&t),[c0,c1,c2])}function s(t){for(var e=[],i=0;i');var i=-1,n=-1,s=-1,o=-1;i=s=Math.floor(this.options.width/t.getModuleCount()),n=o=Math.floor(this.options.height/t.getModuleCount()),s<=0&&(i=t.getModuleCount()<80?2:1),o<=0&&(n=t.getModuleCount()<80?2:1),foreTd='',backTd='',l=t.getModuleCount();for(var a=0;a');for(var r=0;r")}e.push("");var c=document.createElement("span");return c.innerHTML=e.join(""),c.firstChild},d.prototype.createSVG=function(t){for(var e,i,n,s,o=t.getModuleCount(),a=this.options.height/this.options.width,r='',l="',h=' style="stroke-width:0.5;stroke:'+this.options.background+";fill:"+this.options.background+';">',d=0;d=7&&this.setupTypeNumber(!0),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(t,e){for(var i=-1;i<=7;i++)if(!(t+i<=-1||this.moduleCount<=t+i))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(0<=i&&i<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==i||6==i)||2<=i&&i<=4&&2<=n&&n<=4?this.modules[t+i][e+n]=!0:this.modules[t+i][e+n]=!1)},createQrcode:function(){for(var t=0,e=0,i=null,n=0;n<8;n++){this.makeImpl(n);var s=f.getLostPoint(this);(0==n||t>s)&&(t=s,e=n,i=this.modules)}this.modules=i,this.setupTypeInfo(!1,e),this.typeNumber>=7&&this.setupTypeNumber(!1)},setupTimingPattern:function(){for(var t=8;t>i&1);this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3]=n,this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)]=n}},setupTypeInfo:function(t,e){for(var i=p[this.errorCorrectLevel]<<3|e,n=f.getBCHTypeInfo(i),s=0;s<15;s++){var o=!t&&1==(n>>s&1);s<6?this.modules[s][8]=o:s<8?this.modules[s+1][8]=o:this.modules[this.moduleCount-15+s][8]=o;var o=!t&&1==(n>>s&1);s<8?this.modules[8][this.moduleCount-s-1]=o:s<9?this.modules[8][15-s-1+1]=o:this.modules[8][15-s-1]=o}this.modules[this.moduleCount-8][8]=!t},createData:function(){var t=new r,e=this.typeNumber>9?16:8;t.put(4,4),t.put(this.utf8bytes.length,e);for(var i=0,n=this.utf8bytes.length;i=8*this.totalDataCount)break;if(t.put(o.PAD0,8),t.length>=8*this.totalDataCount)break;t.put(o.PAD1,8)}return this.createBytes(t)},createBytes:function(t){for(var e=0,i=0,n=0,s=this.rsBlock.length/3,o=new Array,r=0;r=0?b.get(T):0}}for(var x=new Array(this.totalDataCount),C=0,r=0;r0;a-=2)for(6==a&&a--;;){for(var r=0;r<2;r++)if(null==this.modules[n][a-r]){var l=!1;o>>s&1));var c=f.getMask(e,n,a-r);c&&(l=!l),this.modules[n][a-r]=l,s--,s==-1&&(o++,s=7)}if(n+=i,n<0||this.moduleCount<=n){n-=i,i=-i;break}}}},o.PAD0=236,o.PAD1=17;for(var p=[1,0,3,2],m={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},f={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;f.getBCHDigit(e)-f.getBCHDigit(f.G15)>=0;)e^=f.G15<=0;)e^=f.G18<>>=1;return e},getPatternPosition:function(t){return f.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,i){switch(t){case m.PATTERN000:return(e+i)%2==0;case m.PATTERN001:return e%2==0;case m.PATTERN010:return i%3==0;case m.PATTERN011:return(e+i)%3==0;case m.PATTERN100:return(Math.floor(e/2)+Math.floor(i/3))%2==0;case m.PATTERN101:return e*i%2+e*i%3==0;case m.PATTERN110:return(e*i%2+e*i%3)%2==0;case m.PATTERN111:return(e*i%3+(e+i)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new a([1],0),i=0;i3&&t.modules[s][r-1]&&t.modules[s][r-2]&&t.modules[s][r-3]&&t.modules[s][r-4]&&(i+=40)),s=5&&(i+=3+o-5),o=1),l&&n++}for(var r=0;r3&&t.modules[s-1][r]&&t.modules[s-2][r]&&t.modules[s-3][r]&&t.modules[s-4][r]&&(i+=40)), a^l?o++:(a=l,o>=5&&(i+=3+o-5),o=1)}var u=Math.abs(100*n/e/e-50)/5;return i+=10*u}},v={glog:function(t){if(t<1)throw new Error("glog("+t+")");return v.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return v.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},g=0;g<8;g++)v.EXP_TABLE[g]=1<=i;){for(var o=v.glog(n[0])-v.glog(t.get(0)),s=0;s9?2:1;if(this.utf8bytes.length+r>>7-t%8&1},put:function(t,e){for(var i=0;i>>e-i-1&1)},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},o.prototype={constructor:o,getModuleCount:function(){return this.moduleCount},make:function(){this.getRightType(),this.dataCache=this.createData(),this.createQrcode()},makeImpl:function(t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var e=0;e=7&&this.setupTypeNumber(!0),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(t,e){for(var i=-1;i<=7;i++)if(!(t+i<=-1||this.moduleCount<=t+i))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(0<=i&&i<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==i||6==i)||2<=i&&i<=4&&2<=n&&n<=4?this.modules[t+i][e+n]=!0:this.modules[t+i][e+n]=!1)},createQrcode:function(){for(var t=0,e=0,i=null,n=0;n<8;n++){this.makeImpl(n);var s=f.getLostPoint(this);(0==n||t>s)&&(t=s,e=n,i=this.modules)}this.modules=i,this.setupTypeInfo(!1,e),this.typeNumber>=7&&this.setupTypeNumber(!1)},setupTimingPattern:function(){for(var t=8;t>i&1);this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3]=n,this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)]=n}},setupTypeInfo:function(t,e){for(var i=p[this.errorCorrectLevel]<<3|e,n=f.getBCHTypeInfo(i),s=0;s<15;s++){var o=!t&&1==(n>>s&1);s<6?this.modules[s][8]=o:s<8?this.modules[s+1][8]=o:this.modules[this.moduleCount-15+s][8]=o;var o=!t&&1==(n>>s&1);s<8?this.modules[8][this.moduleCount-s-1]=o:s<9?this.modules[8][15-s-1+1]=o:this.modules[8][15-s-1]=o}this.modules[this.moduleCount-8][8]=!t},createData:function(){var t=new r,e=this.typeNumber>9?16:8;t.put(4,4),t.put(this.utf8bytes.length,e);for(var i=0,n=this.utf8bytes.length;i=8*this.totalDataCount)break;if(t.put(o.PAD0,8),t.length>=8*this.totalDataCount)break;t.put(o.PAD1,8)}return this.createBytes(t)},createBytes:function(t){for(var e=0,i=0,n=0,s=this.rsBlock.length/3,o=new Array,r=0;r=0?b.get(T):0}}for(var x=new Array(this.totalDataCount),C=0,r=0;r0;a-=2)for(6==a&&a--;;){for(var r=0;r<2;r++)if(null==this.modules[n][a-r]){var l=!1;o>>s&1));var c=f.getMask(e,n,a-r);c&&(l=!l),this.modules[n][a-r]=l,s--,s==-1&&(o++,s=7)}if(n+=i,n<0||this.moduleCount<=n){n-=i,i=-i;break}}}},o.PAD0=236,o.PAD1=17;for(var p=[1,0,3,2],m={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},f={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;f.getBCHDigit(e)-f.getBCHDigit(f.G15)>=0;)e^=f.G15<=0;)e^=f.G18<>>=1;return e},getPatternPosition:function(t){return f.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,i){switch(t){case m.PATTERN000:return(e+i)%2==0;case m.PATTERN001:return e%2==0;case m.PATTERN010:return i%3==0;case m.PATTERN011:return(e+i)%3==0;case m.PATTERN100:return(Math.floor(e/2)+Math.floor(i/3))%2==0;case m.PATTERN101:return e*i%2+e*i%3==0;case m.PATTERN110:return(e*i%2+e*i%3)%2==0;case m.PATTERN111:return(e*i%3+(e+i)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new a([1],0),i=0;i3&&t.modules[s][r-1]&&t.modules[s][r-2]&&t.modules[s][r-3]&&t.modules[s][r-4]&&(i+=40)),s=5&&(i+=3+o-5),o=1),l&&n++}for(var r=0;r3&&t.modules[s-1][r]&&t.modules[s-2][r]&&t.modules[s-3][r]&&t.modules[s-4][r]&&(i+=40)),a^l?o++:(a=l,o>=5&&(i+=3+o-5),o=1)}var u=Math.abs(100*n/e/e-50)/5;return i+=10*u}},v={glog:function(t){if(t<1)throw new Error("glog("+t+")");return v.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return v.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},g=0;g<8;g++)v.EXP_TABLE[g]=1<=i;){for(var o=v.glog(n[0])-v.glog(t.get(0)),s=0;s9?2:1;if(this.utf8bytes.length+r>>7-t%8&1},put:function(t,e){for(var i=0;i>>e-i-1&1)},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},c.fn.qrcode=function(t){return this.each(function(){c(this).append(new d(t))})},t.exports=u.qrcode=d},function(t,e,i){"use strict";var n=i(1),s=i(2),o=function(t,e){var i=this;this.options=n.extend({},o.DEFAULTS,e),this.$element=n(t),this.sticked=null,this.inited=null,this.$holder=void 0,this.$window=n(window).on("scroll.sticky.amui",s.utils.debounce(n.proxy(this.checkPosition,this),10)).on("resize.sticky.amui orientationchange.sticky.amui",s.utils.debounce(function(){i.reset(!0,function(){i.checkPosition()})},50)).on("load.sticky.amui",n.proxy(this.checkPosition,this)),this.offset=this.$element.offset(),this.init()};o.DEFAULTS={top:0,bottom:0,animation:"",className:{sticky:"am-sticky",resetting:"am-sticky-resetting",stickyBtm:"am-sticky-bottom",animationRev:"am-animation-reverse"}},o.prototype.init=function(){var t=this.check();if(!t)return!1;var e=this.$element,i="";n.each(e.css(["marginTop","marginRight","marginBottom","marginLeft"]),function(t,e){return i+=" "+e});var s=n('
              ').css({height:"absolute"!==e.css("position")?e.outerHeight():"","float":"none"!=e.css("float")?e.css("float"):"",margin:i});return this.$holder=e.css("margin",0).wrap(s).parent(),this.inited=1,!0},o.prototype.reset=function(t,e){var i=this.options,n=this.$element,o=i.animation?" am-animation-"+i.animation:"",a=function(){n.css({position:"",top:"",width:"",left:"",margin:0}),n.removeClass([o,i.className.animationRev,i.className.sticky,i.className.resetting].join(" ")),this.animating=!1,this.sticked=!1,this.offset=n.offset(),e&&e()}.bind(this);n.addClass(i.className.resetting),!t&&i.animation&&s.support.animation?(this.animating=!0,n.removeClass(o).one(s.support.animation.end,function(){a()}).width(),n.addClass(o+" "+i.className.animationRev)):a()},o.prototype.check=function(){if(!this.$element.is(":visible"))return!1;var t=this.options.media;if(t)switch(typeof t){case"number":if(window.innerWidththis.$holder.offset().top;!this.sticked&&l?o.addClass(r):this.sticked&&!l&&this.reset(),this.$holder.css({height:o.is(":visible")&&"absolute"!==o.css("position")?o.outerHeight():""}),l&&o.css({top:n,left:this.$holder.offset().left,width:this.$holder.width()}),this.sticked=l},s.plugin("sticky",o),n(window).on("load",function(){n("[data-am-sticky]").sticky()}),t.exports=o},function(t,e,i){"use strict";function n(t){var e,i=Array.prototype.slice.call(arguments,1);return this.each(function(){var n=s(this),a=n.is(".am-tabs")&&n||n.closest(".am-tabs"),r=a.data("amui.tabs"),l=s.extend({},o.utils.parseOptions(n.data("amTabs")),s.isPlainObject(t)&&t);r||a.data("amui.tabs",r=new c(a[0],l)),"string"==typeof t&&("open"===t&&n.is(".am-tabs-nav a")?r.open(n):e="function"==typeof r[t]?r[t].apply(r,i):r[t])}),void 0===e?this:e}var s=i(1),o=i(2),a=i(3),r=o.support.transition,l=o.support.animation,c=function(t,e){this.$element=s(t),this.options=s.extend({},c.DEFAULTS,e||{}),this.transitioning=this.activeIndex=null,this.refresh(),this.init()};c.DEFAULTS={selector:{nav:"> .am-tabs-nav",content:"> .am-tabs-bd",panel:"> .am-tab-panel"},activeClass:"am-active"},c.prototype.refresh=function(){var t=this.options.selector;this.$tabNav=this.$element.find(t.nav),this.$navs=this.$tabNav.find("a"),this.$content=this.$element.find(t.content),this.$tabPanels=this.$content.find(t.panel);var e=this.$tabNav.find("> ."+this.options.activeClass);1!==e.length?this.open(0):this.activeIndex=this.$navs.index(e.children("a"))},c.prototype.init=function(){var t=this,e=this.options;if(this.$element.on("click.tabs.amui",e.selector.nav+" a",function(e){e.preventDefault(),t.open(s(this))}),!e.noSwipe){if(!this.$content.length)return this;var i=new a.Manager(this.$content[0]),n=new a.Swipe({direction:a.DIRECTION_HORIZONTAL});i.add(n),i.on("swipeleft",o.utils.debounce(function(e){e.preventDefault(),t.goTo("next")},100)),i.on("swiperight",o.utils.debounce(function(e){e.preventDefault(),t.goTo("prev")},100)),this._hammer=i}},c.prototype.open=function(t){var e=this.options.activeClass,i="number"==typeof t?t:this.$navs.index(s(t));if(t="number"==typeof t?this.$navs.eq(i):s(t),t&&t.length&&!this.transitioning&&!t.parent("li").hasClass(e)){var n=this.$tabNav,o=t.attr("href"),a=/^#.+$/,r=a.test(o)&&this.$content.find(o)||this.$tabPanels.eq(i),l=n.find("."+e+" a")[0],c=s.Event("open.tabs.amui",{relatedTarget:l});t.trigger(c),c.isDefaultPrevented()||(this.activate(t.closest("li"),n),this.activate(r,this.$content,function(){t.trigger({type:"opened.tabs.amui",relatedTarget:l})}),this.activeIndex=i)}},c.prototype.activate=function(t,e,i){this.transitioning=!0;var n=this.options.activeClass,o=e.find("> ."+n),a=i&&r&&!!o.length;o.removeClass(n+" am-in"),t.addClass(n),a?(t.redraw(),t.addClass("am-in")):t.removeClass("am-fade");var l=s.proxy(function(){i&&i(),this.transitioning=!1},this);a&&!this.$content.is(".am-tabs-bd-ofv")?o.one(r.end,l):l()},c.prototype.goTo=function(t){var e=this.activeIndex,i="next"===t,n=i?"am-animation-right-spring":"am-animation-left-spring";if(i&&e+1>=this.$navs.length||!i&&0===e){var s=this.$tabPanels.eq(e);l&&s.addClass(n).on(l.end,function(){s.removeClass(n)})}else this.open(i?e+1:e-1)},c.prototype.destroy=function(){this.$element.off(".tabs.amui"),a.off(this.$content[0],"swipeleft swiperight"),this._hammer&&this._hammer.destroy(),s.removeData(this.$element,"amui.tabs")},s.fn.tabs=n,o.ready(function(t){s("[data-am-tabs]",t).tabs()}),s(document).on("click.tabs.amui.data-api","[data-am-tabs] .am-tabs-nav a",function(t){t.preventDefault(),n.call(s(this),"open")}),t.exports=o.tabs=c},function(t,e,i){"use strict";var n=i(1),s=i(2),o=function(t,e){this.options=n.extend({},o.DEFAULTS,e),this.$element=n(t),this.init()};o.DEFAULTS={checkboxClass:"am-ucheck-checkbox",radioClass:"am-ucheck-radio",checkboxTpl:'',radioTpl:''},o.prototype.init=function(){var t=this.$element,e=t[0],i=this.options;"checkbox"===e.type?t.addClass(i.checkboxClass).after(i.checkboxTpl):"radio"===e.type&&t.addClass(i.radioClass).after(i.radioTpl)},o.prototype.check=function(){this.$element.prop("checked",!0).trigger("change.ucheck.amui").trigger("checked.ucheck.amui")},o.prototype.uncheck=function(){this.$element.prop("checked",!1).trigger("change").trigger("unchecked.ucheck.amui")},o.prototype.toggle=function(){this.$element.prop("checked",function(t,e){return!e}).trigger("change.ucheck.amui").trigger("toggled.ucheck.amui")},o.prototype.disable=function(){this.$element.prop("disabled",!0).trigger("change.ucheck.amui").trigger("disabled.ucheck.amui")},o.prototype.enable=function(){this.$element.prop("disabled",!1),this.$element.trigger("change.ucheck.amui").trigger("enabled.ucheck.amui")},o.prototype.destroy=function(){this.$element.removeData("amui.ucheck").removeClass(this.options.checkboxClass+" "+this.options.radioClass).next(".am-ucheck-icons").remove().end().trigger("destroyed.ucheck.amui")},s.plugin("uCheck",o,{after:function(){s.support.touch&&this.parent().hover(function(){n(this).addClass("am-nohover")},function(){n(this).removeClass("am-nohover")})}}),s.ready(function(t){n("[data-am-ucheck]",t).uCheck()}),t.exports=o},function(t,e,i){"use strict";var n=i(1),s=i(2),o=function(t,e){this.options=n.extend({},o.DEFAULTS,e),this.options.patterns=n.extend({},o.patterns,this.options.patterns);var i=this.options.locales;!o.validationMessages[i]&&(this.options.locales="zh_CN"),this.$element=n(t),this.init()};o.DEFAULTS={debug:!1,locales:"zh_CN",H5validation:!1,H5inputType:["email","url","number"],patterns:{},patternClassPrefix:"js-pattern-",activeClass:"am-active",inValidClass:"am-field-error",validClass:"am-field-valid",validateOnSubmit:!0,alwaysRevalidate:!1,allFields:":input:not(:submit, :button, :disabled, .am-novalidate)",ignore:":hidden:not([data-am-selected], .am-validate)",customEvents:"validate",keyboardFields:":input:not(:submit, :button, :disabled, .am-novalidate)",keyboardEvents:"focusout, change",activeKeyup:!1,textareaMaxlenthKeyup:!0,pointerFields:'input[type="range"]:not(:disabled, .am-novalidate), input[type="radio"]:not(:disabled, .am-novalidate), input[type="checkbox"]:not(:disabled, .am-novalidate), select:not(:disabled, .am-novalidate), option:not(:disabled, .am-novalidate)',pointerEvents:"click",onValid:function(t){},onInValid:function(t){},markValid:function(t){var e=this.options,i=n(t.field),s=i.closest(".am-form-group");i.addClass(e.validClass).removeClass(e.inValidClass),s.addClass("am-form-success").removeClass("am-form-error"),e.onValid.call(this,t)},markInValid:function(t){var e=this.options,i=n(t.field),s=i.closest(".am-form-group");i.addClass(e.inValidClass+" "+e.activeClass).removeClass(e.validClass),s.addClass("am-form-error").removeClass("am-form-success"),e.onInValid.call(this,t)},validate:function(t){},submit:null},o.VERSION="2.7.2",o.patterns={email:/^((([a-zA-Z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-zA-Z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/,url:/^(https?|ftp):\/\/(((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/,number:/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/,dateISO:/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/,integer:/^-?\d+$/},o.validationMessages={zh_CN:{valueMissing:"\u8bf7\u586b\u5199\uff08\u9009\u62e9\uff09\u6b64\u5b57\u6bb5",customError:{tooShort:"\u81f3\u5c11\u586b\u5199 %s \u4e2a\u5b57\u7b26",checkedOverflow:"\u81f3\u591a\u9009\u62e9 %s \u9879",checkedUnderflow:"\u81f3\u5c11\u9009\u62e9 %s \u9879"},patternMismatch:"\u8bf7\u6309\u7167\u8981\u6c42\u7684\u683c\u5f0f\u586b\u5199",rangeOverflow:"\u8bf7\u586b\u5199\u5c0f\u4e8e\u7b49\u4e8e %s \u7684\u503c",rangeUnderflow:"\u8bf7\u586b\u5199\u5927\u4e8e\u7b49\u4e8e %s \u7684\u503c",stepMismatch:"",tooLong:"\u81f3\u591a\u586b\u5199 %s \u4e2a\u5b57\u7b26",typeMismatch:"\u8bf7\u6309\u7167\u8981\u6c42\u7684\u7c7b\u578b\u586b\u5199"}},o.ERROR_MAP={tooShort:"minlength",checkedOverflow:"maxchecked",checkedUnderflow:"minchecked",rangeOverflow:"max",rangeUnderflow:"min",tooLong:"maxlength"},o.prototype.init=function(){function t(t){var e=t.toString();return e.substring(1,e.length-1)}function e(t,e,a){var r=e.split(","),l=function(t){i.validate(this)};a&&(l=s.utils.debounce(l,a)),n.each(r,function(e,i){o.on(i+".validator.amui",t,l)})}var i=this,o=this.$element,a=this.options;return(!a.H5validation||!s.support.formValidation)&&(o.attr("novalidate","novalidate"),n.each(a.H5inputType,function(e,i){var n=o.find("input[type="+i+"]");n.attr("pattern")||n.is("[class*="+a.patternClassPrefix+"]")||n.attr("pattern",t(a.patterns[i]))}),n.each(a.patterns,function(e,i){var n=o.find("."+a.patternClassPrefix+e);!n.attr("pattern")&&n.attr("pattern",t(i))}),o.on("submit.validator.amui",function(t){if("function"==typeof a.submit)return a.submit.call(i,t);if(a.validateOnSubmit){var e=i.isFormValid();return"boolean"===n.type(e)?e:!!o.data("amui.checked")||(n.when(e).then(function(){o.data("amui.checked",!0).submit()},function(){o.data("amui.checked",!1).find("."+a.inValidClass).eq(0).focus()}),!1)}}),e(":input",a.customEvents),e(a.keyboardFields,a.keyboardEvents),e(a.pointerFields,a.pointerEvents),a.textareaMaxlenthKeyup&&e("textarea[maxlength]","keyup",50),void(a.activeKeyup&&e(".am-active","keyup",50)))},o.prototype.isValid=function(t){var e=n(t),i=this.options;return(void 0===e.data("validity")||i.alwaysRevalidate)&&this.validate(t),e.data("validity")&&e.data("validity").valid},o.prototype.validate=function(t){var e=this,i=this.$element,s=this.options,o=n(t),a=o.data("equalTo");a&&o.attr("pattern","^"+i.find(a).val()+"$");var r=o.attr("pattern")||!1,l=new RegExp(r),c=null,u=null,h=o.is("[type=checkbox]")?(u=i.find('input[name="'+t.name+'"]')).filter(":checked").length:o.is("[type=radio]")?(c=this.$element.find('input[name="'+t.name+'"]')).filter(":checked").length>0:o.val();o=u&&u.length?u.first():o;var d=void 0!==o.attr("required")&&"false"!==o.attr("required"),p=parseInt(o.attr("maxlength"),10),m=parseInt(o.attr("minlength"),10),f=Number(o.attr("min")),v=Number(o.attr("max")),g=this.createValidity({field:o[0],valid:!0});if(s.debug&&window.console&&(console.log("Validate: value -> ["+h+", regex -> ["+l+"], required -> "+d),console.log("Regex test: "+l.test(h)+", Pattern: "+r)),!isNaN(p)&&h.length>p&&(g.valid=!1,g.tooLong=!0),!isNaN(m)&&h.lengthv&&(g.valid=!1,g.rangeOverflow=!0),d&&!h)g.valid=!1,g.valueMissing=!0;else if((u||o.is('select[multiple="multiple"]'))&&h){h=u?h:h.length;var y=parseInt(o.attr("minchecked"),10),w=parseInt(o.attr("maxchecked"),10);!isNaN(y)&&hw&&(g.valid=!1,g.customError="checkedOverflow")}else r&&!l.test(h)&&h&&(g.valid=!1,g.patternMismatch=!0);var b,T=function(t){this.markField(t);var i=n.Event("validated.field.validator.amui");i.validity=t,o.trigger(i).data("validity",t);var s=c||u;return s&&s.not(o).data("validity",t).each(function(){t.field=this,e.markField(t)}),t};if("function"==typeof s.validate&&(b=s.validate.call(this,g)),b){var x=new n.Deferred;return o.data("amui.dfdValidity",x.promise()),n.when(b).always(function(t){x[t.valid?"resolve":"reject"](t),T.call(e,t)})}T.call(this,g)},o.prototype.markField=function(t){var e=this.options,i="mark"+(t.valid?"":"In")+"Valid";e[i]&&e[i].call(this,t)},o.prototype.validateForm=function(){var t=this,e=this.$element,i=this.options,s=e.find(i.allFields).not(i.ignore),o=[],a=!0,r=[],l=n([]),c=[],u=!1;e.trigger("validate.form.validator.amui");var h=s.filter(function(t){var e;if("INPUT"===this.tagName&&"radio"===this.type){if(e=this.name,o[e]===!0)return!1;o[e]=!0; }return!0});h.each(function(){var i=n(this),s=t.isValid(this),o=i.data("validity");a=!!s&&a,r.push(o),s||(l=l.add(n(this),e));var h=i.data("amui.dfdValidity");if(h)c.push(h),u=!0;else{var d=new n.Deferred;c.push(d.promise()),d[s?"resolve":"reject"](o)}});var d={valid:a,$invalidFields:l,validity:r,promises:c,async:u};return e.trigger("validated.form.validator.amui",d),d},o.prototype.isFormValid=function(){var t=this,e=this.validateForm(),i=function(e){t.$element.trigger(e+".validator.amui")};if(e.async){var s=new n.Deferred;return n.when.apply(null,e.promises).then(function(){s.resolve(),i("valid")},function(){s.reject(),i("invalid")}),s.promise()}if(!e.valid){var o=e.$invalidFields.first();return o.is("[data-am-selected]")&&(o=o.next(".am-selected").find(".am-selected-btn")),o.focus(),i("invalid"),!1}return i("valid"),!0},o.prototype.createValidity=function(t){return n.extend({customError:t.customError||!1,patternMismatch:t.patternMismatch||!1,rangeOverflow:t.rangeOverflow||!1,rangeUnderflow:t.rangeUnderflow||!1,stepMismatch:t.stepMismatch||!1,tooLong:t.tooLong||!1,typeMismatch:t.typeMismatch||!1,valid:t.valid||!0,valueMissing:t.valueMissing||!1},t)},o.prototype.getValidationMessage=function(t){var e,i,s=o.validationMessages[this.options.locales],a="%s",r=n(t.field);return(r.is('[type="checkbox"]')||r.is('[type="radio"]'))&&(r=this.$element.find("[name="+r.attr("name")+"]").first()),n.each(t,function(t,i){return"field"===t||"valid"===t?t:"customError"===t&&i?(e=i,s=s.customError,!1):i===!0?(e=t,!1):void 0}),i=s[e]||void 0,i&&o.ERROR_MAP[e]&&(i=i.replace(a,r.attr(o.ERROR_MAP[e])||"\u89c4\u5b9a\u7684")),i},o.prototype.removeMark=function(){this.$element.find(".am-form-success, .am-form-error, ."+this.options.inValidClass+", ."+this.options.validClass).removeClass(["am-form-success","am-form-error",this.options.inValidClass,this.options.validClass].join(" "))},o.prototype.destroy=function(){this.removeMark(),this.$element.removeData("amui.validator amui.checked").off(".validator.amui").find(this.options.allFields).removeData("validity amui.dfdValidity")},s.plugin("validator",o),s.ready(function(t){n("[data-am-validator]",t).validator()}),t.exports=o},function(t,e,i){"use strict";var n=i(2),s={get:function(t){var e,i=encodeURIComponent(t)+"=",n=document.cookie.indexOf(i),s=null;return n>-1&&(e=document.cookie.indexOf(";",n),e==-1&&(e=document.cookie.length),s=decodeURIComponent(document.cookie.substring(n+i.length,e))),s},set:function(t,e,i,n,s,o){var a=encodeURIComponent(t)+"="+encodeURIComponent(e);i instanceof Date&&(a+="; expires="+i.toUTCString()),n&&(a+="; path="+n),s&&(a+="; domain="+s),o&&(a+="; secure"),document.cookie=a},unset:function(t,e,i,n){this.set(t,"",new Date(0),e,i,n)}};n.utils=n.utils||{},t.exports=n.utils.cookie=s},function(t,e,i){"use strict";var n=i(2),s=function(){var t="undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element,e=function(){for(var t,e,i=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=0,s=i.length,o={};n",{async:!0,type:"text/javascript",src:i,charset:"utf-8"});s("body").append(n)}}var s=i(1),o=i(2);s(window).on("load",n),t.exports=o.duoshuo={VERSION:"2.0.1",init:n}},function(t,e,i){"use strict";function n(){s(".am-figure").each(function(t,e){var i,n=o.utils.parseOptions(s(e).attr("data-am-figure")),a=s(e);if(n.pureview)if("auto"===n.pureview){var r=s.isImgZoomAble(a.find("img")[0]);r&&a.pureview()}else a.addClass("am-figure-zoomable").pureview();i=a.data("amui.pureview"),i&&a.on("click",":not(img)",function(){i.open(0)})})}var s=i(1),o=i(2);i(20),s.isImgZoomAble=function(t){var e=new Image;e.src=t.src;var i=s(t).width()50?"add":"remove")+"Class"]("am-active")}var e=s('[data-am-widget="gotop"]'),i=e.filter(".am-gotop-fixed"),n=s(window);e.data("init")||(e.find("a").on("click",function(t){t.preventDefault(),n.smoothScroll()}),t(),n.on("scroll.gotop.amui",o.utils.debounce(t,100)),e.data("init",!0))}var s=i(1),o=i(2);i(23),s(n),t.exports=o.gotop={VERSION:"4.0.2",init:n}},function(t,e,i){"use strict";function n(){s('[data-am-widget="header"]').each(function(){if(s(this).hasClass("am-header-fixed"))return s("body").addClass("am-with-fixed-header"),!1})}var s=i(1),o=i(2);s(n),t.exports=o.header={VERSION:"2.0.0",init:n}},function(t,e,i){"use strict";var n=i(2);t.exports=n.intro={VERSION:"4.0.2",init:function(){}}},function(t,e,i){"use strict";var n=i(2);t.exports=n.listNews={VERSION:"4.0.0",init:function(){}}},function(t,e,i){function n(t){var e=o("