Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_admin
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
cccc9bf5
authored
Nov 24, 2022
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
订单详情
parent
134ed8cb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
app/Admin/Controllers/Api/OrderApiController.php
app/Admin/Service/OrderService.php
resources/views/admin/pages/order-page.blade.php
app/Admin/Controllers/Api/OrderApiController.php
View file @
cccc9bf5
...
@@ -180,6 +180,7 @@ class OrderApiController extends BaseController
...
@@ -180,6 +180,7 @@ class OrderApiController extends BaseController
$data
[
"phone"
]
=
arrayGet
(
$reqParams
,
"phone"
,
""
,
"trim"
);
$data
[
"phone"
]
=
arrayGet
(
$reqParams
,
"phone"
,
""
,
"trim"
);
$data
[
"country"
]
=
arrayGet
(
$reqParams
,
"country"
,
0
,
"intval"
);
$data
[
"country"
]
=
arrayGet
(
$reqParams
,
"country"
,
0
,
"intval"
);
$data
[
"country_name"
]
=
arrayGet
(
$reqParams
,
"country_name"
,
""
,
"trim"
);
$data
[
"country_name"
]
=
arrayGet
(
$reqParams
,
"country_name"
,
""
,
"trim"
);
$data
[
"post_code"
]
=
arrayGet
(
$reqParams
,
"post_code"
,
""
,
"trim"
);
$data
[
"province"
]
=
arrayGet
(
$reqParams
,
"province"
,
""
,
"trim"
);
$data
[
"province"
]
=
arrayGet
(
$reqParams
,
"province"
,
""
,
"trim"
);
$data
[
"city"
]
=
arrayGet
(
$reqParams
,
"city"
,
""
,
"trim"
);
$data
[
"city"
]
=
arrayGet
(
$reqParams
,
"city"
,
""
,
"trim"
);
$data
[
"detail_address"
]
=
arrayGet
(
$reqParams
,
"detail_address"
,
""
,
"trim"
);
$data
[
"detail_address"
]
=
arrayGet
(
$reqParams
,
"detail_address"
,
""
,
"trim"
);
...
...
app/Admin/Service/OrderService.php
View file @
cccc9bf5
...
@@ -209,6 +209,7 @@ class OrderService extends BaseService
...
@@ -209,6 +209,7 @@ class OrderService extends BaseService
"country"
=>
$data
[
"country"
],
"country"
=>
$data
[
"country"
],
"country_name"
=>
$data
[
"country_name"
],
"country_name"
=>
$data
[
"country_name"
],
"province"
=>
$data
[
"province"
],
"province"
=>
$data
[
"province"
],
"post_code"
=>
$data
[
"post_code"
],
"city"
=>
$data
[
"city"
],
"city"
=>
$data
[
"city"
],
"detail_address"
=>
$data
[
"detail_address"
],
"detail_address"
=>
$data
[
"detail_address"
],
"create_time"
=>
time
(),
"create_time"
=>
time
(),
...
...
resources/views/admin/pages/order-page.blade.php
View file @
cccc9bf5
...
@@ -251,8 +251,10 @@
...
@@ -251,8 +251,10 @@
<div class="
show
" style="
display
:
none
;
width
:
158
px
;
">
<div class="
show
" style="
display
:
none
;
width
:
158
px
;
">
<input type="
hidden
" name="
country_name
" value="">
<input type="
hidden
" name="
country_name
" value="">
<select name="
country
" lay-ignore="" style="
height
:
30
px
;
border
:
1
px
solid
#eee;background: transparent;width: 100%;">
<select name="
country
" lay-ignore="" style="
height
:
30
px
;
border
:
1
px
solid
#eee;background: transparent;width: 100%;">
<
option
data
=
"Afghanistan"
value
=
"1"
>
Afghanistan
</
option
>
@
foreach
(
\App\Models\Country
::
getCountryMap
()
as
$cid
=>
$cname
)
<
option
data
=
"Aland Islands"
value
=
"2"
>
Aland
Islands
</
option
>
<
option
data
=
">
{
{$cname}
}
"
value
=
"
{
{$cid}}">{{$cname}
}
</option>
@endforeach
</select>
</select>
</div>
</div>
</div>
</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