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
370faca8
authored
Jun 24, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
temp
parent
a486fc48
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
5 deletions
public/js/add_order.js
resources/views/addOrder/content.blade.php
public/js/add_order.js
View file @
370faca8
...
...
@@ -113,12 +113,23 @@
get_user
();
})
// 选择配送方式
$
(
'#shipping_type'
).
change
(
function
()
{
var
shipping_type
=
$
(
'#shipping_type'
).
val
();
if
(
shipping_type
==
2
)
{
$
(
'.select-addr'
).
hide
();
}
else
{
$
(
'.select-addr'
).
show
();
}
})
// 选择收货地址
$
(
'.user-info'
).
delegate
(
'#address'
,
'change'
,
function
()
{
var
user_id
=
$
(
'.user_id'
).
val
();
var
address_id
=
$
(
this
).
val
();
var
user_id
=
$
(
'.user_id'
).
val
();
var
address_id
=
$
(
this
).
val
();
var
user_coupon_id
=
$
(
'.user_coupon_id'
).
val
();
var
cart_ids
=
[];
var
cart_ids
=
[];
$
(
'.shop-table tbody'
).
find
(
'tr'
).
each
(
function
()
{
var
cid
=
$
(
this
).
data
(
'cid'
);
...
...
resources/views/addOrder/content.blade.php
View file @
370faca8
...
...
@@ -61,11 +61,15 @@
<div
class=
"col-sm-6"
>
<div
class=
"form-group"
>
<span>
收货方式:
</span>
<span>
快递上门
</span>
<!-- <span>快递上门</span> -->
<select
name=
"shipping_type"
id=
"shipping_type"
>
<option
value=
"1"
>
快递上门
</option>
<option
value=
"2"
>
自提
</option>
</select>
</div>
</div>
<div
class=
"col-sm-6"
>
<div
class=
"col-sm-6
select-addr
"
>
<div
class=
"form-group"
>
<span><i
class=
"text-danger"
>
*
</i>
选择收货地址:
</span>
<select
name=
"address"
id=
"address"
>
...
...
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