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
5974e414
authored
Mar 06, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'zjl_inner_account_20190221' into development
parents
0878121b
bd324961
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
public/js/add_order.js
public/js/add_order.js
View file @
5974e414
...
...
@@ -610,12 +610,14 @@
})
// 提交订单
$
(
'.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
type
=
$
(
this
)
.
data
(
'type'
);
// 1-联营线上,2-自营线上,3-自营线下,4-自营其他业务
var
cart_ids
=
[];
var
user_id
=
0
;
var
remark
=
$
(
'#remark'
).
val
();
// 订单备注
var
type
=
self
.
data
(
'type'
);
// 1-联营线上,2-自营线上,3-自营线下,4-自营其他业务
var
cart_ids
=
[];
var
user_id
=
0
;
var
remark
=
$
(
'#remark'
).
val
();
// 订单备注
if
(
internal_uid
)
{
user_id
=
internal_uid
;
...
...
@@ -666,6 +668,8 @@
datax
.
user_coupon_id
=
user_coupon_id
;
}
self
.
attr
(
'disabled'
,
true
).
css
(
'pointer-events'
,
'none'
);
// 成功生成订单后禁用按钮,防止重复提交
// 自营线上
if
(
type
==
2
&&
is_online
==
1
)
{
var
sale_type
=
$
(
'#sale_type'
).
val
();
...
...
@@ -702,6 +706,8 @@
btn
:
[],
});
self
.
removeAttr
(
'disabled'
).
css
(
'pointer-events'
,
'auto'
);
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