|
|
@@ -1418,7 +1418,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
/**
|
|
|
* QQ分享
|
|
|
*/
|
|
|
- app.controller('QQShareCtrl', ['$scope', 'InvitationRecord', function($scope, InvitationRecord) {
|
|
|
+ app.controller('QQShareCtrl', ['$scope', 'InvitationRecord', '$modalInstance', function($scope, InvitationRecord, $modalInstance) {
|
|
|
InvitationRecord.getInviteUrl({}, function(data) {
|
|
|
$scope.inviteUrl = data.url;
|
|
|
var p = {
|
|
|
@@ -1442,11 +1442,16 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
window.open("http://connect.qq.com/widget/shareqq/index.html?" + s)
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ $scope.close = function() {
|
|
|
+ $modalInstance.dismiss();
|
|
|
+ }
|
|
|
}]);
|
|
|
|
|
|
+ /**
|
|
|
+ * 再次邀请
|
|
|
+ */
|
|
|
app.controller('ReInviteCtrl', ['$scope', 'toaster', '$modalInstance', 'id', 'InvitationRecord', function ($scope, toaster, $modalInstance, id, InvitationRecord) {
|
|
|
-
|
|
|
-
|
|
|
var loadData = function (id) {
|
|
|
InvitationRecord.getRecordById({id: id}, {}, function (data) {
|
|
|
if (data.user !== null) {
|