Skip to content

Commit

Permalink
系统更新窗口优化
Browse files Browse the repository at this point in the history
  • Loading branch information
gongfuxiang committed Jan 19, 2024
1 parent b0c2821 commit 4e28c57
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 29 deletions.
1 change: 1 addition & 0 deletions app/admin/lang/cht.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
'upgrade_date_name' => '更新日期:',
],
// 页面基础
'base_update_system_title' => '系統更新',
'base_update_button_title' => '立即更新',
'base_item_base_stats_title' => '商城統計',
'base_item_base_stats_tips' => '時間篩選僅對總數有效',
Expand Down
1 change: 1 addition & 0 deletions app/admin/lang/en.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
'upgrade_date_name' => 'Update Date:',
],
// 页面基础
'base_update_system_title' => 'System updates',
'base_update_button_title' => 'Update Now',
'base_item_base_stats_title' => 'Shop Statistics',
'base_item_base_stats_tips' => 'Time filtering is only valid for totals',
Expand Down
1 change: 1 addition & 0 deletions app/admin/lang/spa.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
'upgrade_date_name' => 'Fecha de actualización:',
],
// 页面基础
'base_update_system_title' => 'Actualización del sistema',
'base_update_button_title' => 'Actualización inmediata',
'base_item_base_stats_title' => 'Estadísticas del centro comercial',
'base_item_base_stats_tips' => 'El cribado temporal solo es válido para el total',
Expand Down
1 change: 1 addition & 0 deletions app/admin/lang/zh.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
'upgrade_date_name' => '更新日期:',
],
// 页面基础
'base_update_system_title' => '系统更新',
'base_update_button_title' => '立即更新',
'base_item_base_stats_title' => '商城统计',
'base_item_base_stats_tips' => '时间筛选仅对总数有效',
Expand Down
27 changes: 18 additions & 9 deletions app/admin/view/default/index/init.html
Original file line number Diff line number Diff line change
Expand Up @@ -752,17 +752,26 @@
<!-- right content end -->

<!-- 检查更新显示信息 -->
<div class="am-popup popup-not-title" id="inspect-upgrade-popup">
<div class="am-popup am-radius" id="inspect-upgrade-popup">
<div class="am-popup-inner">
<span data-am-modal-close class="am-close am-close-alt">&times;</span>
<div class="am-popup-hd">
<h4 class="am-popup-title">{{:MyLang('index.base_update_system_title')}}</h4>
<span data-am-modal-close class="am-close">&times;</span>
</div>
<div class="am-popup-bd">
<div class="upgrade-content"></div>
<div class="upgrade-bottom am-text-right">
<div class="upgrade-bottom-content">
<button type="button" class="am-btn am-btn-default am-radius am-btn-xs" data-am-modal-close>{{:MyLang('cancel_title')}}</button>
<button type="button" class="am-btn am-btn-success am-radius am-btn-xs am-margin-left-sm am-hide inspect-upgrade-confirm" data-url="{{:MyUrl('admin/index/inspectupgradeconfirm')}}">{{:MyLang('index.base_update_button_title')}}</button>
</div>
</div>
<form class="am-form am-form-popup-fixed">
<div class="upgrade-content"></div>
<div class="am-form-popup-submit">
<button type="button" class="am-btn am-btn-warning am-radius am-btn-xs btn-loading-example am-margin-right-lg" data-am-modal-close>
<i class="am-icon-paint-brush"></i>
<span>{{:MyLang('cancel_title')}}</span>
</button>
<button type="button" class="am-btn am-btn-primary am-radius am-btn-xs inspect-upgrade-confirm" data-url="{{:MyUrl('admin/index/inspectupgradeconfirm')}}">
<i class="am-icon-check"></i>
<span>{{:MyLang('index.base_update_button_title')}}</span>
</button>
</div>
</form>
</div>
</div>
</div>
Expand Down
20 changes: 0 additions & 20 deletions public/static/admin/default/css/index.init.css
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,6 @@ body {
/**
* 更新信息展示
*/
#inspect-upgrade-popup .am-popup-bd {
padding-bottom: 5rem;
overflow: auto;
}

#inspect-upgrade-popup .upgrade-title span {
font-weight: bold;
Expand All @@ -387,22 +383,6 @@ body {
min-height: 2.6rem;
}

#inspect-upgrade-popup .upgrade-bottom {
position: fixed;
left: 0;
bottom: 0px;
width: 100%;
height: 7rem;
padding: 0 2.5rem;
}

#inspect-upgrade-popup .upgrade-bottom-content {
background: #fff;
padding: 1rem 2rem 0 0;
height: 5rem;
border-top: 0.1rem solid #ececec;
}

/**
* 常用功能
*/
Expand Down

0 comments on commit 4e28c57

Please sign in to comment.