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
bd324961
authored
Mar 06, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
防止重复提交订单
parent
abbf1098
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
public/js/add_order.js
public/js/add_order.js
View file @
bd324961
...
@@ -610,9 +610,11 @@
...
@@ -610,9 +610,11 @@
})
})
// 提交订单
// 提交订单
$
(
'.submit-order'
).
click
(
function
()
{
// $('.submit-order').on('click', function() {
$
(
'.submit-order'
).
off
().
on
(
'click'
,
function
()
{
var
self
=
$
(
this
);
var
address_id
=
$
(
'input[name=address_id]'
).
val
();
var
address_id
=
$
(
'input[name=address_id]'
).
val
();
var
type
=
$
(
this
)
.
data
(
'type'
);
// 1-联营线上,2-自营线上,3-自营线下,4-自营其他业务
var
type
=
self
.
data
(
'type'
);
// 1-联营线上,2-自营线上,3-自营线下,4-自营其他业务
var
cart_ids
=
[];
var
cart_ids
=
[];
var
user_id
=
0
;
var
user_id
=
0
;
var
remark
=
$
(
'#remark'
).
val
();
// 订单备注
var
remark
=
$
(
'#remark'
).
val
();
// 订单备注
...
@@ -666,6 +668,8 @@
...
@@ -666,6 +668,8 @@
datax
.
user_coupon_id
=
user_coupon_id
;
datax
.
user_coupon_id
=
user_coupon_id
;
}
}
self
.
attr
(
'disabled'
,
true
).
css
(
'pointer-events'
,
'none'
);
// 成功生成订单后禁用按钮,防止重复提交
// 自营线上
// 自营线上
if
(
type
==
2
&&
is_online
==
1
)
{
if
(
type
==
2
&&
is_online
==
1
)
{
var
sale_type
=
$
(
'#sale_type'
).
val
();
var
sale_type
=
$
(
'#sale_type'
).
val
();
...
@@ -702,6 +706,8 @@
...
@@ -702,6 +706,8 @@
btn
:
[],
btn
:
[],
});
});
self
.
removeAttr
(
'disabled'
).
css
(
'pointer-events'
,
'auto'
);
return
false
;
return
false
;
}
}
},
},
...
...
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