wip
This commit is contained in:
parent
e45e72b4a2
commit
223aeaa46f
|
|
@ -11,6 +11,14 @@ $(document).ready(function ($) {
|
|||
$.ajaxSetup({
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
||||
},
|
||||
beforeSend: function beforeSend() {
|
||||
layer.load(2, {
|
||||
shade: [0.3, '#fff']
|
||||
});
|
||||
},
|
||||
complete: function complete() {
|
||||
layer.closeAll('loading');
|
||||
}
|
||||
});
|
||||
$('.quantity-wrap .right i').on('click', function (event) {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
$(document).ready(function ($) {
|
||||
$.ajaxSetup({ headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')} });
|
||||
$.ajaxSetup({
|
||||
headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
|
||||
beforeSend: function() { layer.load(2, {shade: [0.3,'#fff'] }); },
|
||||
complete: function() { layer.closeAll('loading'); },
|
||||
});
|
||||
|
||||
$('.quantity-wrap .right i').on('click', function(event) {
|
||||
let input = $(this).parent().siblings('input')
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
<title>首页</title>
|
||||
<link rel="stylesheet" type="text/css" href="{{ asset('/build/beike/shop/default/css/bootstrap.css') }}">
|
||||
<script src="{{ asset('vendor/jquery/jquery-3.6.0.min.js') }}"></script>
|
||||
<script src="{{ asset('vendor/layer/3.5.1/layer.js') }}"></script>
|
||||
<script src="{{ asset('vendor/bootstrap/5.1.3/js/bootstrap.bundle.min.js') }}"></script>
|
||||
<script src="{{ asset('vendor/bootstrap/5.1.3/js/bootstrap.min.js') }}"></script>
|
||||
<script src="{{ asset('/build/beike/shop/default/js/app.js') }}"></script>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
<div class="quantity-wrap">
|
||||
<input type="text" class="form-control" onkeyup="this.value=this.value.replace(/\D/g,'')" value="{{ isset($quantity) ? $quantity : 1 }}" name="quantity" minimum="{{ isset($minimum) ? $minimum : 1 }}">
|
||||
<div class="right">
|
||||
<i class="bi bi-chevron-up"></i>
|
||||
<i class="bi bi-chevron-down"></i>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Reference in New Issue