|
|
|
@ -121,7 +121,18 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
|
|
|
|
|
$scope.loadPartnerNotice();
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
//$scope.showAG();
|
|
|
|
|
|
|
|
|
|
$scope.getAgStatus = function () {
|
|
|
|
|
$http.get('/sys/partners/check').then(function (resp) {
|
|
|
|
|
// $scope.rate_expire = resp.data.rate_expire;
|
|
|
|
|
$scope.rate_waring = resp.data.rate_waring;
|
|
|
|
|
// $scope.file_url = resp.data.file_url;
|
|
|
|
|
if($scope.rate_waring){
|
|
|
|
|
$scope.showAG(resp.data);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
$scope.getAgStatus();
|
|
|
|
|
$scope.refundNotice = {counts: 0};
|
|
|
|
|
$scope.openRefundNotice = false;
|
|
|
|
|
$scope.showRefundNotice = function () {
|
|
|
|
@ -292,9 +303,13 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
|
|
|
|
|
}]);
|
|
|
|
|
|
|
|
|
|
app.controller('agreementDetailCtrl', ['$scope', '$http', '$sce', 'ag', function ($scope, $http, $sce, ag) {
|
|
|
|
|
$scope.ag = angular.copy(ag);
|
|
|
|
|
$scope.agreeCheck = false;
|
|
|
|
|
$scope.agree = function () {
|
|
|
|
|
$scope.$close();
|
|
|
|
|
$http.post('/sys/partners/agree/confirm').then(function () {
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
$scope.$close();
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
$scope.notAgree = function () {
|
|
|
|
|
window.location.href = "https://mpay.royalpay.com.au";
|
|
|
|
|