Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jwhx
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sugar
jwhx
Commits
f0c904ff
Commit
f0c904ff
authored
Jan 04, 2025
by
xieyishang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~~~
parent
b326200d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
resources/admin/src/pages/cashierhome/cashierhome.vue
resources/admin/src/pages/cashierhome/cashierhome.vue
+19
-2
No files found.
resources/admin/src/pages/cashierhome/cashierhome.vue
View file @
f0c904ff
...
@@ -618,15 +618,32 @@ export default {
...
@@ -618,15 +618,32 @@ export default {
},
},
// 全部删除商品
// 全部删除商品
清空购物车
delAllGoods
()
{
delAllGoods
()
{
this
.
odata
=
[];
//
this.odata = [];
this
.
listdata
=
[];
this
.
listdata
=
[];
this
.
totalMoney
=
0
;
this
.
totalMoney
=
0
;
this
.
totalCount
=
0
;
this
.
totalCount
=
0
;
this
.
totaljifen
=
0
;
this
.
totaljifen
=
0
;
this
.
childgoods
=
{
spec_list
:[]};
this
.
childgoods
=
{
spec_list
:[]};
let
req
=
{
ids
:
this
.
odata
.
map
(
product
=>
product
.
id
),
};
this
.
$API
.
cashier
.
cart
.
delete
.
post
(
req
)
.
then
((
res
)
=>
{
console
.
log
(
"
🚀 ~ delCart ~ res:
"
,
res
);
if
(
res
.
code
==
1
)
{
that
.
getCartList
();
}
else
{
this
.
$message
.
error
(
res
.
message
);
}
})
.
catch
((
err
)
=>
{
console
.
log
(
"
🚀 ~ delCart ~ err:
"
,
err
);
});
},
},
// 模拟结账
// 模拟结账
...
...
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