Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
81898104
authored
Nov 25, 2022
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
购物车全选逻辑 修改
parent
5105cfd3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
public/assets/js/car/car.js
resources/views/car/car.blade.php
resources/views/sku/detail.blade.php
public/assets/js/car/car.js
View file @
81898104
...
@@ -54,6 +54,11 @@ define('car', ['tool', 'liexin_pop', 'artTemplate'], function (require, exports,
...
@@ -54,6 +54,11 @@ define('car', ['tool', 'liexin_pop', 'artTemplate'], function (require, exports,
}
}
}
else
{
}
else
{
$
(
this
).
toggleClass
(
"act"
)
$
(
this
).
toggleClass
(
"act"
)
if
(
$
(
".tbody .check-group.act"
).
length
==
$
(
".tbody .tr"
).
length
){
$
(
".selectall"
).
addClass
(
"act"
)
}
else
{
$
(
".selectall"
).
removeClass
(
"act"
)
}
}
}
car
.
priceInit
();
car
.
priceInit
();
})
})
...
...
resources/views/car/car.blade.php
View file @
81898104
...
@@ -125,7 +125,11 @@
...
@@ -125,7 +125,11 @@
<div class="
td
w93
">
<div class="
td
w93
">
<input type="
text
" class="
valuep
" goods_id="
{{
value
.
goods_id
}}
" mult="
{{
value
.
mult
}}
" minNum="
{{
value
.
moq
}}
" maxNum="
{{
value
.
max_buy_stock
}}
" value="
{{
value
.
buy_number
}}
" onkeyup="
if
(
this
.
value
.
length
==
1
){
this
.
value
=
this
.
value
.
replace
(
/
[
^
1
-
9
]
/
g
,
''
)}
else
{
this
.
value
=
this
.
value
.
replace
(
/
\D
/
g
,
''
)}
" onafterpaste="
if
(
this
.
value
.
length
==
1
){
this
.
value
=
this
.
value
.
replace
(
/
[
^
1
-
9
]
/
g
,
''
)}
else
{
this
.
value
=
this
.
value
.
replace
(
/
\D
/
g
,
''
)}
">
<input type="
text
" class="
valuep
" goods_id="
{{
value
.
goods_id
}}
" mult="
{{
value
.
mult
}}
" minNum="
{{
value
.
moq
}}
" maxNum="
{{
value
.
max_buy_stock
}}
" value="
{{
value
.
buy_number
}}
" onkeyup="
if
(
this
.
value
.
length
==
1
){
this
.
value
=
this
.
value
.
replace
(
/
[
^
1
-
9
]
/
g
,
''
)}
else
{
this
.
value
=
this
.
value
.
replace
(
/
\D
/
g
,
''
)}
" onafterpaste="
if
(
this
.
value
.
length
==
1
){
this
.
value
=
this
.
value
.
replace
(
/
[
^
1
-
9
]
/
g
,
''
)}
else
{
this
.
value
=
this
.
value
.
replace
(
/
\D
/
g
,
''
)}
">
</div>
</div>
<div class="
td
w110
">
{
{value.stock}
}
</div>
<div class="
td
w110
">
{
{value.stock}
}
<br/>
Min:
{
{value.moq}
}
<br/>
Mult:
{
{value.mult}
}
</div>
<div class="
td
w92
">$<span class="
rowdj
">
{
{value.buy_price}
}
</span></div>
<div class="
td
w92
">$<span class="
rowdj
">
{
{value.buy_price}
}
</span></div>
<div class="
td
">$<span class="
rowxj
">
{
{value.ext_price}
}
</span></div>
<div class="
td
">$<span class="
rowxj
">
{
{value.ext_price}
}
</span></div>
</div>
</div>
...
...
resources/views/sku/detail.blade.php
View file @
81898104
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
<div class="
contents
">
{
{goods_name}
}
</div>
<div class="
contents
">
{
{goods_name}
}
</div>
</div>
</div>
<div class="
group
-
info
row
">
<div class="
group
-
info
row
">
<div class="
label
">
Lead Tim
e</div>
<div class="
label
">
Delivery dat
e</div>
<div class="
contents
">
{
{hk_delivery_time}
}
</div>
<div class="
contents
">
{
{hk_delivery_time}
}
</div>
</div>
</div>
{{if pdf}}
{{if pdf}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment