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
1ab16540
authored
Jul 02, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
注释定金限制
parent
4936e25e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
public/js/order.js
public/js/order.js
View file @
1ab16540
...
...
@@ -964,26 +964,26 @@
})
// 定金调整
$
(
'.advance'
).
on
(
'blur'
,
function
(){
if
(
$
(
this
).
val
()
<
(
$
(
'.total'
).
html
()
*
0.2
)){
$
(
this
).
val
(
parseFloat
(
$
(
'.total'
).
html
()
*
0.2
).
toFixed
(
2
));
layer
.
tips
(
'预付款金额不能小于'
+
$
(
'.total'
).
html
()
*
0.2
,
$
(
this
));
}
if
(
$
(
this
).
val
()
>
(
$
(
'.total'
).
html
()
*
0.5
)){
$
(
this
).
val
(
parseFloat
(
$
(
'.total'
).
html
()
*
0.5
).
toFixed
(
2
));
layer
.
tips
(
'预付款金额不能大于'
+
$
(
'.total'
).
html
()
*
0.5
,
$
(
this
));
}
//
$('.advance').on('blur',function(){
//
if($(this).val()<($('.total').html()*0.2)){
//
$(this).val(parseFloat($('.total').html()*0.2).toFixed(2));
//
layer.tips('预付款金额不能小于'+$('.total').html()*0.2,$(this));
//
}
//
if($(this).val()>($('.total').html()*0.5)){
//
$(this).val(parseFloat($('.total').html()*0.5).toFixed(2));
//
layer.tips('预付款金额不能大于'+$('.total').html()*0.5,$(this));
//
}
// 价格调整后,付款类型显示或隐藏
// var orderPayType = $('input[name=order_pay_type]').val();
// var total = $('input[name=order_amount]').val();
//
// 价格调整后,付款类型显示或隐藏
//
// var orderPayType = $('input[name=order_pay_type]').val();
//
// var total = $('input[name=order_amount]').val();
// if (currency == 1) { // 人民币
// checkPayType(total, orderPayType, 10000, 49999);
// } else {
// checkPayType(total, orderPayType, 1500, 7800);
// }
})
//
// if (currency == 1) { // 人民币
//
// checkPayType(total, orderPayType, 10000, 49999);
//
// } else {
//
// checkPayType(total, orderPayType, 1500, 7800);
//
// }
//
})
// 订单审核---通过or不通过
$
(
'input[name="order_status"]'
).
parent
().
on
(
'click'
,
function
(){
...
...
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