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
bbaa3dbf
authored
Dec 05, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'dev/ver/1.0.0' of
http://git.ichunt.net/semour/semour_web
into dev/ver/1.0.0
parents
7edd98b5
fa681608
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
app/Http/Services/OrderService.php
resources/views/car/car.blade.php
app/Http/Services/OrderService.php
View file @
bbaa3dbf
...
...
@@ -466,9 +466,9 @@ class OrderService
$temp
=
[];
$return_amount_all
=
0
;
foreach
(
$returnItems
as
$k
=>
$v
){
$
orderGoodsInfo
=
\Arr
::
get
(
$orderItemsArr
,
$v
[
"rec_id"
])
;
$
temp
[]
=
[
"no"
=>
$k
+
1
,
$
recId
=
$v
[
"rec_id"
]
;
$
orderGoodsInfo
=
\Arr
::
get
(
$orderItemsArr
,
$recId
);
$temp
[
$recId
]
=
[
"part_no"
=>
$orderGoodsInfo
[
"goods_name"
],
// 型号名称
"manufacturer"
=>
$orderGoodsInfo
[
"brand_name"
],
// 品牌名称
"price_per_unit"
=>
$orderGoodsInfo
[
"goods_price"
],
// 单价
...
...
@@ -481,6 +481,11 @@ class OrderService
];
$return_amount_all
+=
$v
[
"return_amount"
];
}
$temp
=
array_values
(
$temp
);
foreach
(
$temp
as
$c
=>&
$a
){
$a
[
"no"
]
=
$c
+
1
;
}
return
[
"return_amount_all"
=>
$return_amount_all
,
"items"
=>
$temp
];
}
...
...
resources/views/car/car.blade.php
View file @
bbaa3dbf
...
...
@@ -78,7 +78,7 @@
</div>
</div>
<div class="
create
createcarbtn
">Place Order</div>
@if(
empty(
$_COOKIE['sem_email']
))
@if(
Auth::check(
))
<div class="
lgtips
">
Already Registered? <a href="
/
login
?
referer
=
{{
\Illuminate\Support\Facades\URL
::
current
()}}
">Log In</a>
</div>
...
...
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