@@ -125,8 +150,29 @@
$(".category").show();
}
});
+ $('.group-password-link').click(function() {
+ $('#group-password-id').val($(this).data('group-id'));
+ $('#group-password-name').text($(this).data('group-name'));
+ $('#group-password-input').val('');
+ $('#group-password-modal').modal();
+ });
+
+ $('#group-password-submit').click(function() {
+ $.post("{{ url('verify-group-password') }}", {
+ _token: "{{ csrf_token() }}",
+ group_id: $('#group-password-id').val(),
+ password: $('#group-password-input').val()
+ }, function(res) {
+ if (res.code === 200) {
+ window.location.reload();
+ } else {
+ $.NotificationApp.send("{{ __('hyper.home_tip') }}", res.msg, "top-center", "rgba(0,0,0,0.2)", "error");
+ }
+ });
+ });
+
function sell_out_tip() {
$.NotificationApp.send("{{ __('hyper.home_tip') }}","{{ __('hyper.home_sell_out_tip') }}","top-center","rgba(0,0,0,0.2)","info");
}
-@stop
\ No newline at end of file
+@stop
diff --git a/resources/views/luna/static_pages/home.blade.php b/resources/views/luna/static_pages/home.blade.php
index f652912..ee5f9e2 100644
--- a/resources/views/luna/static_pages/home.blade.php
+++ b/resources/views/luna/static_pages/home.blade.php
@@ -73,8 +73,8 @@