Toggle navigation
Toggle navigation
This project
Loading...
Sign in
liuloulou
/
yohobuy-portal-fe2
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
dongjunjie
9 years ago
Commit
0b55d27afab9def01757e43225c8997ba8b3e4fb
1 parent
8551be01
代销变价,销售价不能为0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
16 deletions
code/static/js.jquery/module/goods/price/PriceChange.js
code/static/js.jquery/module/goods/price/PriceChange.js
View file @
0b55d27
...
...
@@ -186,22 +186,26 @@ $(document).on('click', '.modify-btn', function() {
vipPrice
(
$wrap
);
});
$submitBtn
.
on
(
'click'
,
function
()
{
common
.
util
.
__ajax
({
url
:
'/goods/updatePrice'
,
data
:
{
product_skn
:
skn
,
sales_price
:
$price
.
val
(),
vip_discount_type
:
$select
.
val
(),
vip_price
:
$vipPrice
.
val
(),
vip1_price
:
$vip1Price
.
val
(),
vip2_price
:
$vip2Price
.
val
(),
vip3_price
:
$vip3Price
.
val
(),
cgpriceStartTime
:
$startDate
.
val
(),
cgpriceEndTime
:
$endDate
.
val
()
}
},
function
(
res
)
{
if
(
res
.
code
==
200
)
{
g
.
reload
()}
})
if
(
$price
.
val
()
!=
0
){
common
.
util
.
__ajax
({
url
:
'/goods/updatePrice'
,
data
:
{
product_skn
:
skn
,
sales_price
:
$price
.
val
(),
vip_discount_type
:
$select
.
val
(),
vip_price
:
$vipPrice
.
val
(),
vip1_price
:
$vip1Price
.
val
(),
vip2_price
:
$vip2Price
.
val
(),
vip3_price
:
$vip3Price
.
val
(),
cgpriceStartTime
:
$startDate
.
val
(),
cgpriceEndTime
:
$endDate
.
val
()
}
},
function
(
res
)
{
if
(
res
.
code
==
200
)
{
g
.
reload
()}
})
}
else
{
common
.
util
.
__tip
(
"销售价不能为0!"
);
}
});
},
true
);
}
...
...
Please
register
or
login
to post a comment