Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
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
66d09fbe
authored
Jun 28, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'zjl_erp_address_20210622' into development
parents
2df325b4
9975570c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
3 deletions
public/js/details.js
resources/views/changeShipping/content.blade.php
public/js/details.js
View file @
66d09fbe
...
...
@@ -643,6 +643,46 @@
}
$
(
'form'
).
on
(
'submit'
,
function
(){
var
shipping_type
=
$
(
'.shipping_type'
).
val
();
var
consignee
=
$
(
'.consignee'
).
val
();
var
mobile
=
$
(
'.mobile'
).
val
();
var
s_province
=
$
(
'.s_province'
).
val
();
var
s_city
=
$
(
'.s_city'
).
val
();
var
s_county
=
$
(
'.s_county'
).
val
();
var
address
=
$
(
'.address'
).
val
();
if
(
!
consignee
)
{
layer
.
tips
(
'收货人不能为空'
,
$
(
'.consignee'
));
return
false
;
}
if
(
!
mobile
)
{
layer
.
tips
(
'联系电话不能为空'
,
$
(
'.mobile'
));
return
false
;
}
if
(
shipping_type
==
1
)
{
// 快递
if
(
s_province
==
0
)
{
layer
.
tips
(
'省不能为空'
,
$
(
'.s_province'
));
return
false
;
}
if
(
s_city
==
0
)
{
layer
.
tips
(
'市不能为空'
,
$
(
'.s_city'
));
return
false
;
}
if
(
s_county
==
0
)
{
layer
.
tips
(
'区不能为空'
,
$
(
'.s_county'
));
return
false
;
}
}
if
(
!
address
)
{
layer
.
tips
(
'详细地址不能为空'
,
$
(
'.address'
));
return
false
;
}
$
(
this
).
ajaxSubmit
({
data
:
{
order_id
:
order_id
},
dataType
:
'json'
,
...
...
resources/views/changeShipping/content.blade.php
View file @
66d09fbe
...
...
@@ -38,12 +38,12 @@
<tr>
<th
width=
"10%"
>
收货人
</th>
<td><input
type=
"text"
name=
"consignee"
value=
"{{$detail['consignee']}}"
></td>
<td><input
type=
"text"
name=
"consignee"
class=
"consignee"
value=
"{{$detail['consignee']}}"
></td>
</tr>
<tr>
<th
width=
"10%"
>
联系电话
</th>
<td><input
type=
"text"
name=
"mobile"
value=
"{{$detail['mobile']}}"
></td>
<td><input
type=
"text"
name=
"mobile"
class=
"mobile"
value=
"{{$detail['mobile']}}"
></td>
</tr>
<tr
class=
"address-info"
>
...
...
@@ -56,7 +56,7 @@
</tr>
<tr>
<th
width=
"10%"
>
详细地址
</th>
<td><textarea
class=
"form-control"
name=
"address"
placeholder=
"请输入详细地址"
>
{{$detail['address']}}
</textarea></td>
<td><textarea
class=
"form-control
address
"
name=
"address"
placeholder=
"请输入详细地址"
>
{{$detail['address']}}
</textarea></td>
</tr>
<tr>
<td
colspan=
"2"
><input
type=
"submit"
value=
"保存"
class=
"btn btn-success"
></td>
...
...
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