人人商城

welcome-system.html 8.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. {template 'common/header'}
  2. <!--系统管理首页-->
  3. <div class="welcome-container js-system-welcome" ng-controller="WelcomeCtrl" ng-cloak>
  4. <div ng-if="ads" class="ad-img we7-margin-bottom">
  5. <div ng-click="close_ads()" class="close">关闭</div>
  6. <div id="welcome-ad" class="carousel slide" data-ride="carousel">
  7. <!-- Wrapper for slides -->
  8. <div class="carousel-inner" role="listbox">
  9. <div class="item " ng-class="key ==0 ? 'active' : ''" ng-repeat="(key, ad) in ads">
  10. <a ng-href="{{ad.url}}" target="_blank" alt="{{ad.title}}"><img ng-src="{{ad.src}}" alt="{{ad.title}}" ></a>
  11. </div>
  12. </div>
  13. <!-- Controls -->
  14. <a class="left carousel-control" href="#welcome-ad" role="button" data-slide="prev">
  15. <span class="wi wi-angle-left" aria-hidden="true"></span>
  16. <span class="sr-only">Previous</span>
  17. </a>
  18. <a class="right carousel-control" href="#welcome-ad" role="button" data-slide="next">
  19. <span class="wi wi-angle-right" aria-hidden="true"></span>
  20. <span class="sr-only">Next</span>
  21. </a>
  22. </div>
  23. <!-- <a ng-href="{{ad.url}}" target="_blank" ng-repeat="ad in ads"><img ng-src="{{ad.src}}" alt="" class="img-responsive" style="margin: 0 auto;"></a> -->
  24. </div>
  25. <div class="row">
  26. <div class="col-sm-6">
  27. <div class="panel we7-panel account-stat">
  28. <div class="panel-heading">微信应用模块</div>
  29. <div class="panel-body we7-padding-vertical">
  30. <div class="col-sm-4 text-center">
  31. <div class="title">未安装应用</div>
  32. <div class="num">
  33. <a href="{php echo url('module/manage-system/not_installed', array('support' => MODULE_SUPPORT_ACCOUNT_NAME))}" class="color-default">{{module_statistics.account.total.uninstall}}</a>
  34. </div>
  35. </div>
  36. <div class="col-sm-4 text-center">
  37. <div class="title">可升级应用</div>
  38. <div class="num">
  39. {{module_statistics.account.total.upgrade}}
  40. </div>
  41. </div>
  42. <div class="col-sm-4 text-center">
  43. <div class="title">应用总数</div>
  44. <div class="num">
  45. <a href="{php echo url('module/manage-system/installed', array('support' => MODULE_SUPPORT_ACCOUNT_NAME))}" class="color-default">{{module_statistics.account.total.all}}</a>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="col-sm-6">
  52. <div class="panel we7-panel account-stat">
  53. <div class="panel-heading">小程序应用模块</div>
  54. <div class="panel-body we7-padding-vertical">
  55. <div class="col-sm-4 text-center">
  56. <div class="title">未安装应用</div>
  57. <div class="num">
  58. <a href="{php echo url('module/manage-system/not_installed', array('support' => MODULE_SUPPORT_WXAPP_NAME))}" class="color-default">{{module_statistics.wxapp.total.uninstall}}</a>
  59. </div>
  60. </div>
  61. <div class="col-sm-4 text-center">
  62. <div class="title">可升级应用</div>
  63. <div class="num">
  64. {{module_statistics.wxapp.total.upgrade}}
  65. </div>
  66. </div>
  67. <div class="col-sm-4 text-center">
  68. <div class="title">应用总数</div>
  69. <div class="num">
  70. <a href="{php echo url('module/manage-system/installed', array('support' => MODULE_SUPPORT_WXAPP_NAME))}" class="color-default">{{module_statistics.wxapp.total.all}}</a>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. <div id="modal-loading" style="width:100%">
  77. <div style="text-align:center;background-color: transparent;">
  78. <img style="width:48px; height:48px; margin-top:10px;margin-bottom:10px;" src="resource/images/loading.gif" title="正在努力加载...">
  79. </div>
  80. </div>
  81. </div>
  82. <div class="panel we7-panel system-update" ng-if="upgrade_show == 1">
  83. <div class="panel-heading">
  84. <span class="color-gray pull-right">当前版本:{IMS_FAMILY}{IMS_VERSION}({IMS_RELEASE_DATE})</span>
  85. 系统更新
  86. </div>
  87. <div class="panel-body we7-padding-vertical clearfix">
  88. <div class="col-sm-3 text-center">
  89. <div class="title">更新文件</div>
  90. <div class="num">{{upgrade.file_nums}} 个</div>
  91. </div>
  92. <div class="col-sm-3 text-center">
  93. <div class="title">更新数据库</div>
  94. <div class="num">{{upgrade.database_nums}} 项</div>
  95. </div>
  96. <div class="col-sm-3 text-center">
  97. <div class="title">更新脚本</div>
  98. <div class="num">{{upgrade.script_nums}} 项</div>
  99. </div>
  100. <div class="col-sm-3 text-center">
  101. <a href="{php echo url('cloud/upgrade');}" class="btn btn-danger">去更新</a>
  102. </div>
  103. </div>
  104. </div>
  105. <div class="panel we7-panel database">
  106. <div class="panel-heading">
  107. 数据库备份提醒
  108. </div>
  109. <div class="panel-body clearfix">
  110. <div class="col-sm-9">
  111. <span class="day">{$backup_days}</span>
  112. <span class="color-default">天</span>
  113. 没有备份数据库了,请及时备份!
  114. </div>
  115. <div class="col-sm-3 text-center">
  116. <a class="btn btn-default" href="{php echo url('system/database');}">开始备份</a>
  117. </div>
  118. </div>
  119. </div>
  120. <div class="panel we7-panel apply-list">
  121. <div class="panel-heading">
  122. <span class="pull-right">
  123. <a href="{php echo url('module/manage-system', array('support' => MODULE_SUPPORT_ACCOUNT_NAME))}" class="color-default">查看更多公众号应用</a>
  124. <span class="we7-padding-horizontal inline-block color-gray">|</span>
  125. <a href="{php echo url('module/manage-system', array('support' => MODULE_SUPPORT_WXAPP_NAME))}" class="color-default">查看更多小程序应用</a>
  126. </span>
  127. 可升级应用
  128. <div class="btn-group">
  129. <span class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="cursor:pointer">
  130. 筛选 <span class="caret"></span>
  131. </span>
  132. <ul class="dropdown-menu" style="top: 150%;left: -103px;">
  133. <li><a href="javascript:;" ng-click="searchType('all')">全部可升级应用</a></li>
  134. <li><a href="javascript:;" ng-click="searchType('has_new_version')">应用版本更新</a></li>
  135. <li><a href="javascript:;" ng-click="searchType('has_new_branch')">应用分支升级</a></li>
  136. </ul>
  137. </div>
  138. </div>
  139. <div class="panel-body welcome-apple-list">
  140. <div class="apply-item" ng-repeat="module in upgrade_modules" ng-if="!module.is_ignore && $index+1 <= 8">
  141. <a href="{{module.link}}" target="_blank"><img src="{{module.logo}}" class="apply-img"/></a>
  142. <a href="{{module.link}}" target="_blank"><span class="text-over">{{module.title|limitTo:4}}</span></a>
  143. <a href="{{module.link}}" target="_blank" class="color-red" ng-if="module.has_new_version == 1">升级</a>
  144. <a href="{{module.link}}" target="_blank" class="color-red" ng-if="module.has_new_branch == 1">新分支</a>
  145. <a href="javascript:;"data-toggle="popover" class="ignore" class="color-default" data-placement="bottom" data-trigger="hover" data-content="忽略当前版本更新,重新升级到模块列表自行升级" ng-click="ignoreUpdate(module.name)">忽略</a>
  146. </div>
  147. <div class="text-center" ng-if="upgrade_modules_show == 0">
  148. 没有可升级的应用
  149. </div>
  150. </div>
  151. </div>
  152. <div class="panel we7-panel apply-list" ng-show="not_installed_show == 1">
  153. <div class="panel-heading">
  154. <span class="pull-right">
  155. <a href="{php echo url('module/manage-system/not_installed', array('support' => MODULE_SUPPORT_ACCOUNT_NAME))}" class="color-default">查看更多公众号应用</a>
  156. <span class="we7-padding-horizontal inline-block color-gray">|</span>
  157. <a href="{php echo url('module/manage-system/not_installed', array('support' => MODULE_SUPPORT_WXAPP_NAME))}" class="color-default">查看更多小程序应用</a>
  158. </span>
  159. 未安装应用
  160. </div>
  161. <div class="panel-body">
  162. <a href="{{module.link}}" target="_blank" class="apply-item" ng-repeat="module in not_installed_module" ng-if="$index+1 <= 8">
  163. <img src="{{module.logo}}" class="apply-img"/>
  164. <span class="text-over">{{module.title|limitTo:4}}</span>
  165. <span class="color-red">未安装</span>
  166. </a>
  167. </div>
  168. </div>
  169. </div>
  170. <!--end 系统管理首页-->
  171. <script type="text/javascript">
  172. $(function(){
  173. angular.module('systemApp').value('config', {
  174. notices: {php echo !empty($notices) ? json_encode($notices) : 'null'},
  175. systemUpgradeUrl : "{php echo url('home/welcome/get_system_upgrade')}",
  176. upgradeModulesUrl: "{php echo url('home/welcome/get_upgrade_modules')}",
  177. moduleStatisticsUrl: "{php echo url('home/welcome/get_module_statistics')}",
  178. ignoreUpdateUrl : "{php echo url('home/welcome/ignore_update_module')}",
  179. });
  180. angular.bootstrap($('.js-system-welcome'), ['systemApp']);
  181. });
  182. </script>
  183. {template 'common/footer'}