fix something

master
luoyang 6 years ago
parent 419758b21f
commit 53f60669a3

@ -136,227 +136,232 @@ margin-bottom: 10%;"/>
<p style="color: #666">To Be The Best QRCode Payment Service Provider!</p> <p style="color: #666">To Be The Best QRCode Payment Service Provider!</p>
</div> </div>
</div> </div>
<header ng-if="headerDisplay" class="main-header">
<nav style="margin-left: 0px" class="navbar navbar-static-top navbar-static-top-yedian" role="navigation">
<!-- Logo --> <div ng-if="currentUser!=null" ng-cloak
<a href="#" class="logo logo-yedian shine" ng-if="!currentUser.org"> ng-class="currentUser.org?(currentUser.org.banner_class||'fxplus'):'royalpay'">
<!-- mini logo for sidebar mini 50x50 pixels --> <header ng-if="headerDisplay" class="main-header">
<span class="logo-mini"><img src="static/images/r_white_logo.svg"
style="max-height: 35px;margin-left: 15%;"></span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><img src="static/images/rp_white_logo.svg"
style="max-height: 35px;">
<!--<b>RoyalPay</b>-->
</span>
</a>
<a href="#" class="logo logo-yedian shine" ng-if="currentUser.org">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><img ng-src="{{currentUser.org.logo}}"
style="max-height: 35px;margin-bottom: 8px;margin-right: 5px;"></span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><img ng-src="{{currentUser.org.logo}}"
style="max-height: 35px;margin-bottom: 8px;margin-right: 5px;"><b
ng-bind="currentUser.org.name"></b></span>
</a>
<div class="navbar-header">
<a ui-sref="dashboard" role="button" style="border: 1px solid #FFF; color: #FFF;padding: 3px">Dashboard</a>
<a ui-sref="listMenu({role:''})" ui-sref-opts="{reload:true}" role="button" style="border: 1px solid #FFF; color: #FFF;padding: 3px">Main Menu</a>
</div>
<!-- Header Navbar: style can be found in header.less -->
<!--顶部导航栏-->
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<li class="user-menu" ng-if="currentUser.onoff">
<a role="button" ng-click="customerService()">
<i class="fa fa-wechat"></i> contact service
</a>
</li> <nav style="margin-left: 0px" class="navbar navbar-static-top navbar-static-top-yedian" role="navigation">
<li class="user-menu">
<a role="button" ng-click="managerBindWechat(true)">
<i class="fa fa-wechat"></i> Bind WeChat
</a>
</li>
<!-- User Account: style can be found in dropdown.less --> <!-- Logo -->
<li class="dropdown user user-menu" uib-dropdown> <a href="#" onclick="location.reload()" class="logo logo-yedian shine" ng-if="!currentUser.org">
<a href class="dropdown-toggle" uib-dropdown-toggle> <!-- mini logo for sidebar mini 50x50 pixels -->
<img ng-src="{{currentUser.org.logo||'static/images/r_white_logo.svg'}}" <span class="logo-mini"><img src="static/images/r_white_logo.svg"
class="user-image user-img-yedian" style="max-height: 35px;margin-left: 15%;"></span>
alt="User Image"> <!-- logo for regular state and mobile devices -->
<span class="hidden-xs" ng-bind="currentUser.display_name"></span> <span class="logo-lg"><img src="static/images/rp_white_logo.svg"
</a> style="max-height: 35px;">
<ul class="dropdown-menu user-dropdown-menu" ng-cloak> <!--<b>RoyalPay</b>-->
<!-- User image --> </span>
<li class="user-header user-header-yedian"> </a>
<img ng-src="{{currentUser.org.logo||'static/images/r_white_logo.svg'}}" class="img-circle" <a href="#" onclick="location.reload()" class="logo logo-yedian shine" ng-if="currentUser.org">
alt="User Image"> <!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><img ng-src="{{currentUser.org.logo}}"
style="max-height: 35px;margin-bottom: 8px;margin-right: 5px;"></span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><img ng-src="{{currentUser.org.logo}}"
style="max-height: 35px;margin-bottom: 8px;margin-right: 5px;"><b
ng-bind="currentUser.org.name"></b></span>
</a>
<div class="navbar-header">
<a ui-sref="dashboard" role="button" style="border: 1px solid #FFF; color: #FFF;padding: 3px">Dashboard</a>
<a ui-sref="listMenu({role:''})" ui-sref-opts="{reload:true}" role="button" style="border: 1px solid #FFF; color: #FFF;padding: 3px">Main Menu</a>
</div>
<!-- Header Navbar: style can be found in header.less -->
<!--顶部导航栏-->
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<li class="user-menu" ng-if="currentUser.onoff">
<a role="button" ng-click="customerService()">
<i class="fa fa-wechat"></i> contact service
</a>
<p>
{{currentUser.display_name}}
<small>
<i class="fa fa-user-secret" title="Administrator"
ng-class="{'text-orange':!('1'|withRole),'text-gray':('1'|withRole)}"></i>
<i class="fa fa-eye" title="Compliance"
ng-class="{'text-orange':!('10'|withRole),'text-gray':('10'|withRole)}"></i>
<i class="fa fa-crosshairs" title="BD User"
ng-class="{'text-orange':!('100'|withRole),'text-gray':('100'|withRole)}"></i>
<i class="fa fa-balance-scale" title="Accountant"
ng-class="{'text-orange':!('1000'|withRole),'text-gray':('1000'|withRole)}"></i>
<i class="fa fa-tty" title="Service"
ng-class="{'text-orange':!('10000'|withRole),'text-gray':('10000'|withRole)}"></i>
<i class="fa fa-university" title="Account Manager"
ng-class="{'text-orange':!('100000'|withRole),'text-gray':('100000'|withRole)}"></i>
<i class="fa fa-line-chart" title="Director"
ng-class="{'text-orange':!('1000000'|withRole),'text-gray':('1000000'|withRole)}"></i>
<i class="fa fa-map-o" title="Site Manager"
ng-class="{'text-orange':!('10000000'|withRole),'text-gray':('10000000'|withRole)}"></i>
<i class="fa fa-code" title="Developer"
ng-class="{'text-orange':!('100000000'|withRole),'text-gray':('100000000'|withRole)}"></i>
<i class="fa fa-user" title="Risk Manager"
ng-class="{'text-orange':!('10000000000'|withRole),'text-gray':('10000000000'|withRole)}"></i>
<i class="fa fa-tripadvisor" title="GUEST"
ng-class="{'text-orange':!('100000000000'|withRole),'text-gray':('100000000000'|withRole)}"></i>
<i class="fa fa-user-plus" title="Org Manager"
ng-class="{'text-orange':!('1000000000000'|withRole),'text-gray':('1000000000000'|withRole)}"></i>
</small>
</p>
</li> </li>
<!-- Menu Footer--> <li class="user-menu">
<li class="user-footer"> <a role="button" ng-click="managerBindWechat(true)">
<div class="pull-left"> <i class="fa fa-wechat"></i> Bind WeChat
<a href class="btn btn-default btn-flat" ng-click="changePwd()">Change Password</a> </a>
</div>
<div class="pull-right">
<a href class="btn btn-default btn-flat" ng-click="logout()">Sign Out</a>
</div>
</li> </li>
<!-- User Account: style can be found in dropdown.less -->
<li class="dropdown user user-menu" uib-dropdown>
<a href class="dropdown-toggle" uib-dropdown-toggle>
<img ng-src="{{currentUser.org.logo||'static/images/r_white_logo.svg'}}"
class="user-image user-img-yedian"
alt="User Image">
<span class="hidden-xs" ng-bind="currentUser.display_name"></span>
</a>
<ul class="dropdown-menu user-dropdown-menu" ng-cloak>
<!-- User image -->
<li class="user-header user-header-yedian">
<img ng-src="{{currentUser.org.logo||'static/images/r_white_logo.svg'}}" class="img-circle"
alt="User Image">
<p>
{{currentUser.display_name}}
<small>
<i class="fa fa-user-secret" title="Administrator"
ng-class="{'text-orange':!('1'|withRole),'text-gray':('1'|withRole)}"></i>
<i class="fa fa-eye" title="Compliance"
ng-class="{'text-orange':!('10'|withRole),'text-gray':('10'|withRole)}"></i>
<i class="fa fa-crosshairs" title="BD User"
ng-class="{'text-orange':!('100'|withRole),'text-gray':('100'|withRole)}"></i>
<i class="fa fa-balance-scale" title="Accountant"
ng-class="{'text-orange':!('1000'|withRole),'text-gray':('1000'|withRole)}"></i>
<i class="fa fa-tty" title="Service"
ng-class="{'text-orange':!('10000'|withRole),'text-gray':('10000'|withRole)}"></i>
<i class="fa fa-university" title="Account Manager"
ng-class="{'text-orange':!('100000'|withRole),'text-gray':('100000'|withRole)}"></i>
<i class="fa fa-line-chart" title="Director"
ng-class="{'text-orange':!('1000000'|withRole),'text-gray':('1000000'|withRole)}"></i>
<i class="fa fa-map-o" title="Site Manager"
ng-class="{'text-orange':!('10000000'|withRole),'text-gray':('10000000'|withRole)}"></i>
<i class="fa fa-code" title="Developer"
ng-class="{'text-orange':!('100000000'|withRole),'text-gray':('100000000'|withRole)}"></i>
<i class="fa fa-user" title="Risk Manager"
ng-class="{'text-orange':!('10000000000'|withRole),'text-gray':('10000000000'|withRole)}"></i>
<i class="fa fa-tripadvisor" title="GUEST"
ng-class="{'text-orange':!('100000000000'|withRole),'text-gray':('100000000000'|withRole)}"></i>
<i class="fa fa-user-plus" title="Org Manager"
ng-class="{'text-orange':!('1000000000000'|withRole),'text-gray':('1000000000000'|withRole)}"></i>
</small>
</p>
</li>
<!-- Menu Footer-->
<li class="user-footer">
<div class="pull-left">
<a href class="btn btn-default btn-flat" ng-click="changePwd()">Change Password</a>
</div>
<div class="pull-right">
<a href class="btn btn-default btn-flat" ng-click="logout()">Sign Out</a>
</div>
</li>
</ul>
</li>
<!-- Control Sidebar Toggle Button -->
</ul> </ul>
</li> </div>
<!-- Control Sidebar Toggle Button --> </nav>
</ul> </header>
</div> <div style="min-height: 890px" ui-view>
</nav> <div class="backgroud">
</header> <div class="total_logo">
<div ng-if="currentUser!=null" ng-cloak <a><img src="/static/images/manage_total_logo.png"> </a>
ng-class="currentUser.org?(currentUser.org.banner_class||'fxplus'):'royalpay'" ui-view> <div class="easypay">
<div class="backgroud"> <b>Easy BusinessEasy Payment!</b>
</div>
<div class="total_logo"> </div>
<a><img src="/static/images/manage_total_logo.png"> </a>
<div class="easypay">
<b>Easy BusinessEasy Payment!</b>
</div>
</div> <div style="margin: 0 auto;display: flex;padding-top: 40px;padding-bottom:0.5%;width: 60%;flex-wrap:wrap">
<div class="box-items" ng-if="'10'|withRole">
<a ng-click="headerShow()" ui-sref="listMenu({role:'Compliance'})" ui-sref-opts="{reload:true}">
<div class="boxs">
<img src="/static/images/manage/menu_1.png">
</div>
<p class="box-font">Compliance</p>
</a>
</div>
<div style="margin: 0 auto;display: flex;padding-top: 40px;padding-bottom:0.5%;width: 60%;flex-wrap:wrap"> <div class="box-items" ng-if="'10000000000'|withRole">
<div class="box-items" ng-if="'10'|withRole"> <a ng-click="headerShow()" ui-sref="listMenu({role:'RiskManager'})" ui-sref-opts="{reload:true}">
<a ng-click="headerShow()" ui-sref="listMenu({role:'Compliance'})" ui-sref-opts="{reload:true}"> <div class="boxs">
<div class="boxs"> <img src="/static/images/manage/menu_2.png">
<img src="/static/images/manage/menu_1.png"> </div>
<p class="box-font">Risk Manager</p>
</a>
</div> </div>
<p class="box-font">Compliance</p>
</a>
</div>
<div class="box-items" ng-if="'10000000000'|withRole"> <div class="box-items" ng-if="'100000'|withRole">
<a ui-sref="listMenu({role:'RiskManager'})" ui-sref-opts="{reload:true}"> <a ng-click="headerShow()" ui-sref="listMenu({role:'AccountManager'})" ui-sref-opts="{reload:true}">
<div class="boxs"> <div class="boxs">
<img src="/static/images/manage/menu_2.png"> <img src="/static/images/manage/menu_3.png">
</div>
<p class="box-font">Account Manager</p>
</a>
</div> </div>
<p class="box-font">Risk Manager</p>
</a>
</div>
<div class="box-items" ng-if="'100000'|withRole"> <div class="box-items" ng-if="'1000'|withRole">
<a ui-sref="listMenu({role:'AccountManager'})" ui-sref-opts="{reload:true}"> <a ng-click="headerShow()" ui-sref="listMenu({role:'Accountant'})" ui-sref-opts="{reload:true}">
<div class="boxs"> <div class="boxs">
<img src="/static/images/manage/menu_3.png"> <img src="/static/images/manage/menu_4.png">
</div>
<p class="box-font">Accountant</p>
</a>
</div> </div>
<p class="box-font">Account Manager</p>
</a>
</div>
<div class="box-items" ng-if="'1000'|withRole"> <div class="box-items" ng-if="'100'|withRole">
<a ui-sref="listMenu({role:'Accountant'})" ui-sref-opts="{reload:true}"> <a ng-click="headerShow()" ui-sref="listMenu({role:'BDUser'})" ui-sref-opts="{reload:true}">
<div class="boxs"> <div class="boxs">
<img src="/static/images/manage/menu_4.png"> <img src="/static/images/manage/menu_5.png">
</div>
<p class="box-font">BD User</p>
</a>
</div> </div>
<p class="box-font">Accountant</p>
</a>
</div>
<div class="box-items" ng-if="'100'|withRole"> <div class="box-items" ng-if="'10000'|withRole">
<a ui-sref="listMenu({role:'BDUser'})" ui-sref-opts="{reload:true}"> <a ng-click="headerShow()" ui-sref="listMenu({role:'Service'})" ui-sref-opts="{reload:true}">
<div class="boxs"> <div class="boxs">
<img src="/static/images/manage/menu_5.png"> <img src="/static/images/manage/menu_6.png">
</div>
<p class="box-font">Service</p>
</a>
</div> </div>
<p class="box-font">BD User</p>
</a>
</div>
<div class="box-items" ng-if="'10000'|withRole"> <div class="box-items" ng-if="'1'|withRole">
<a ui-sref="listMenu({role:'Service'})" ui-sref-opts="{reload:true}"> <a ng-click="headerShow()" ui-sref="listMenu({role:'Administrator'})" ui-sref-opts="{reload:true}">
<div class="boxs"> <div class="boxs">
<img src="/static/images/manage/menu_6.png"> <img src="/static/images/manage/menu_7.png">
</div>
<p class="box-font">Administrator</p>
</a>
</div> </div>
<p class="box-font">Service</p>
</a>
</div>
<div class="box-items" ng-if="'1'|withRole"> <div class="box-items" ng-if="'10000000'|withRole">
<a ui-sref="listMenu({role:'Administrator'})" ui-sref-opts="{reload:true}"> <a ng-click="headerShow()" ui-sref="listMenu({role:'SiteManager'})" ui-sref-opts="{reload:true}">
<div class="boxs"> <div class="boxs">
<img src="/static/images/manage/menu_7.png"> <img src="/static/images/manage/menu_8.png">
</div>
<p class="box-font">Site Manager</p>
</a>
</div> </div>
<p class="box-font">Administrator</p>
</a>
</div>
<div class="box-items" ng-if="'10000000'|withRole"> <div class="box-items" ng-if="'100000000'|withRole">
<a ui-sref="listMenu({role:'SiteManager'})" ui-sref-opts="{reload:true}"> <a ng-click="headerShow()" ui-sref="listMenu({role:'Developer'})" ui-sref-opts="{reload:true}">
<div class="boxs"> <div class="boxs">
<img src="/static/images/manage/menu_8.png"> <img src="/static/images/manage/menu_9.png">
</div>
<p class="box-font">Developer</p>
</a>
</div> </div>
<p class="box-font">Site Manager</p>
</a>
</div>
<div class="box-items" ng-if="'100000000'|withRole"> <div class="box-items" ng-if="'1000000'|withRole">
<a ui-sref="listMenu({role:'Developer'})" ui-sref-opts="{reload:true}"> <a ng-click="headerShow()" ui-sref="listMenu({role:'Director'})" ui-sref-opts="{reload:true}">
<div class="boxs"> <div class="boxs">
<img src="/static/images/manage/menu_9.png"> <img src="/static/images/manage/menu_10.png">
</div>
<p class="box-font">Director</p>
</a>
</div> </div>
<p class="box-font">Developer</p>
</a>
</div> </div>
<div class="box-items" ng-if="'1000000'|withRole"> <div style="text-align: center">
<a ui-sref="listMenu({role:'Director'})" ui-sref-opts="{reload:true}"> <footer>
<div class="boxs"> <strong>Copyright © 2015-2017 <a href="http://www.royalpay.com.au">RoyalPay</a>.</strong> All rights
<img src="/static/images/manage/menu_10.png"> reserved.
</footer>
</div> </div>
<p class="box-font">Director</p> </div>
</a> </div>
<footer ng-if="copyright" class="main-footer" style="margin-left: 0px">
<div class="pull-right hidden-xs">
<b>Easy BusinessEasy Pay</b>
</div>
<strong>Copyright © 2015-2017 <a href="http://www.royalpay.com.au">RoyalPay</a>.</strong> All rights
reserved.
</footer>
</div> </div>
</div>
<div style="text-align: center">
<footer>
<strong>Copyright © 2015-2017 <a href="http://www.royalpay.com.au">RoyalPay</a>.</strong> All rights
reserved.
</footer>
</div>
</div>
<footer ng-if="copyright" class="main-footer" style="margin-left: 0px">
<div class="pull-right hidden-xs">
<b>Easy BusinessEasy Pay</b>
</div>
<strong>Copyright © 2015-2017 <a href="http://www.royalpay.com.au">RoyalPay</a>.</strong> All rights
reserved.
</footer>
</div>
</body> </body>
</html> </html>

@ -17,8 +17,14 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
}]); }]);
app.controller('managerIndexCtrl', ['$scope', '$rootScope', '$http', '$log', '$timeout', '$interval', '$uibModal', '$filter', 'myLoginLogView', 'commonDialog', app.controller('managerIndexCtrl', ['$scope', '$rootScope', '$http', '$log', '$timeout', '$interval', '$uibModal', '$filter', 'myLoginLogView', 'commonDialog',
function ($scope, $rootScope, $http, $log, $timeout, $interval, $uibModal, $filter, myLoginLogView, commonDialog) { function ($scope, $rootScope, $http, $log, $timeout, $interval, $uibModal, $filter, myLoginLogView, commonDialog) {
$scope.headerDisplay = false; if (window.location.hash == "" || window.location.hash == "#/") {
$scope.copyright = false; $scope.headerDisplay = false;
$scope.copyright = false;
}else{
$scope.headerDisplay = true;
$scope.copyright = true;
}
$scope.headerShow = function () { $scope.headerShow = function () {
$scope.headerDisplay = true; $scope.headerDisplay = true;

Loading…
Cancel
Save