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
439d5c1d
authored
Sep 17, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整下单修改数量
parent
78942a3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
public/js/add_order.js
public/js/add_order.js
View file @
439d5c1d
...
...
@@ -356,7 +356,7 @@
}
}
var
joint_goods_type
=
[
'1'
,
'2'
];
// 商品联营类型
var
joint_goods_type
=
[
1
,
2
];
// 商品联营类型
if
(
joint_goods_type
.
indexOf
(
data
.
goods_type
)
!=
-
1
)
{
html
+=
'<th>USD价格</th>'
;
...
...
@@ -502,12 +502,13 @@
}
if
(
num
<
min_buy
)
{
num
=
min_buy
;
self
.
val
(
min_buy
)
;
layer
.
msg
(
'购买数量低于最小起订量,默认调整为最小起订量'
);
return
}
var
curr_goods_type
=
$
(
this
).
parents
(
'tr'
).
data
(
'goods_type'
);
var
joint_goods_type
=
[
'1'
,
'2'
];
// 商品联营类型
var
joint_goods_type
=
[
1
,
2
];
// 商品联营类型
// if (goods_type == 1) { // 联营需要选择交货地
if
(
joint_goods_type
.
indexOf
(
curr_goods_type
)
!=
-
1
)
{
...
...
@@ -516,7 +517,7 @@
var
mpl
=
Number
(
self
.
parents
(
'tr'
).
find
(
'.goods_mpl'
).
text
());
// 倍数
num
=
Math
.
ceil
(
num
/
mpl
)
*
mpl
;
}
$
.
ajax
({
type
:
"POST"
,
url
:
'/ajax/changeNum'
,
...
...
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