eason.qian 7 years ago
parent b9c4d60607
commit 392e1814e5

@ -107,13 +107,28 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
$scope.loadPartnerNotice();
})
};
$scope.showAG = function (ag) {
$uibModal.open({
templateUrl: '/static/commons/templates/ag_detail.html',
controller: 'agreementDetailCtrl',
resolve: {
ag: ag
},
size: 'lg',
backdrop:'static',
keyboard:false
}).result.then(function () {
$scope.loadPartnerNotice();
})
};
//$scope.showAG();
$scope.refundNotice = {counts: 0};
$scope.openRefundNotice = false;
$scope.showRefundNotice = function () {
$http.get('/api/payment/v1.0/refund/json/auditions').then(function (resp) {
$scope.refundNotice.counts = resp.data.counts;
});
}
};
$scope.showRefundNotice();
$scope.toggleOpenRefundNotice = function () {
var openRefundNotice = angular.copy($scope.openRefundNotice);
@ -276,6 +291,16 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
}
}]);
app.controller('agreementDetailCtrl', ['$scope', '$http', '$sce', 'ag', function ($scope, $http, $sce, ag) {
$scope.agreeCheck = false;
$scope.agree = function () {
$scope.$close();
};
$scope.notAgree = function () {
window.location.href = "https://mpay.royalpay.com.au";
}
}]);
app.controller('changePwdCtrl', ['$scope', '$http', function ($scope, $http) {
$scope.formData = {};
$scope.submit = function (form) {

@ -0,0 +1,19 @@
<div class="modal-header bg-green">
<h4 style="text-align: center">合同到期续签通知</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-xs-12">
<embed src="https://file.royalpay.com.au/open/2017/08/23/1503492220481_7PDsaYCYR9aKrOf1IrwouX0clmGW6e.pdf" type="application/pdf" width="100%" height="500px">
</div>
</div>
</div>
<div class="modal-footer">
<div class="form-inline">
<label class="checkbox" style="float: left">
<input type="checkbox" ng-model="agreeCheck"> 我已阅读完合同内容,并同意相关条款
</label>
<button class="btn btn-success" type="button" ng-if="agreeCheck" ng-click="agree()">我同意 | I Agree</button>
<button class="btn btn-danger" type="button" ng-click="notAgree()">不同意,退出</button>
</div>
</div>
Loading…
Cancel
Save