Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
8 years ago
Commit
0747c6d3a3c028a47697d3841b0a6a103026cb9d
1 parent
71039262
有货币不可以使用错误信息判断
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
12 deletions
web-static/js/order/ensure.js
web-static/js/order/ticket-ensure.js
web-static/js/order/ensure.js
View file @
0747c6d
...
...
@@ -241,6 +241,7 @@ var Order = {
isExpress
=
''
;
var
tipsStr
;
var
isJuan
=
false
;
var
envelopesVal
;
...
...
@@ -253,6 +254,7 @@ var Order = {
for
(
i
=
0
;
i
<
dArr
.
length
;
i
++
)
{
if
(
dArr
[
i
].
promotion
===
'优惠券:'
)
{
isJuan
=
true
;
dArr
[
i
].
promotion
=
(
tipsStr
?
tipsStr
:
'优惠券'
)
+
'<span class="juan-modify">[修改]</span>:'
;
}
...
...
@@ -275,16 +277,23 @@ var Order = {
e
.
$payTotal
.
html
(
str
);
e
.
$toPay
.
html
((
data
.
last_order_amount
).
toFixed
(
2
));
//有货币清零状态更新
//有货币清零状态更新
start
$
(
'dl.play-bi-pan'
).
find
(
'dt'
).
removeClass
(
'not-btn'
);
$
(
'.not-btn-tip'
).
addClass
(
'hide'
);
$
(
'.yohoCoinTip'
).
removeClass
(
'coin-gray'
);
if
(
data
.
yohoCoinCompute
.
yohoCoinNum
>
0
)
{
$
(
'.errbitip'
).
html
(
''
);
}
if
(
!
data
.
yohoCoinCompute
.
yohoCoinClick
)
{
//不可以使用状态
$
(
'dl.play-bi-pan'
).
find
(
'dt'
).
addClass
(
'not-btn'
);
$
(
'.not-btn-tip'
).
removeClass
(
'hide'
);
//如果有货币按钮为打开状态,则关闭
Order
.
Common
.
winHide
(
$
(
'.play-bi-pan'
));
if
(
isJuan
)
{
//不可以使用状态
$
(
'dl.play-bi-pan'
).
find
(
'dt'
).
addClass
(
'not-btn'
);
$
(
'.not-btn-tip'
).
removeClass
(
'hide'
);
//如果有货币按钮为打开状态,则关闭
Order
.
Common
.
winHide
(
$
(
'.play-bi-pan'
));
}
$
(
'.yohoCoinTip'
).
addClass
(
'coin-gray'
);
$
(
'.errbitip'
).
html
(
data
.
yohoCoinCompute
.
yohoCoinMsg
);
}
$
(
'#biprice'
).
data
({
'yoho-coin-num'
:
data
.
yohoCoinCompute
.
yohoCoinNum
,
...
...
@@ -294,6 +303,7 @@ var Order = {
$
(
'#biprice'
).
find
(
'.totalYohoCoinNum'
).
html
(
data
.
yohoCoinCompute
.
totalYohoCoinNum
);
$
(
'#biprice'
).
find
(
'.yohoCoinNum'
).
html
(
data
.
yohoCoinCompute
.
yohoCoinNum
);
$
(
'#biprice'
).
find
(
'.yohoCoin'
).
html
(
data
.
yohoCoinCompute
.
yohoCoin
);
//有货币清零状态更新 end
//使用的红包
envelopesVal
=
e
.
$useEnvelopesInput
.
data
(
'all'
)
-
data
.
use_red_envelopes
;
...
...
web-static/js/order/ticket-ensure.js
View file @
0747c6d
...
...
@@ -298,6 +298,7 @@ var TicketCat = {
i
,
dArr
=
data
.
shopping_cart_data
.
promotion_formula_list
,
str
=
''
,
isJuan
=
false
,
isExpress
=
''
;
for
(
i
=
0
;
i
<
dArr
.
length
;
i
++
)
{
...
...
@@ -321,16 +322,23 @@ var TicketCat = {
e
.
$payTotal
.
html
(
str
);
e
.
$toPay
.
html
((
data
.
shopping_cart_data
.
last_order_amount
).
toFixed
(
2
));
//有货币清零状态更新
//有货币清零状态更新
start
$
(
'dl.play-bi-pan'
).
find
(
'dt'
).
removeClass
(
'not-btn'
);
$
(
'.not-btn-tip'
).
addClass
(
'hide'
);
$
(
'.yohoCoinTip'
).
removeClass
(
'coin-gray'
);
if
(
data
.
yohoCoinCompute
.
yohoCoinNum
>
0
)
{
$
(
'.errbitip'
).
html
(
''
);
}
if
(
!
data
.
yohoCoinCompute
.
yohoCoinClick
)
{
//不可以使用状态
$
(
'dl.play-bi-pan'
).
find
(
'dt'
).
addClass
(
'not-btn'
);
$
(
'.not-btn-tip'
).
removeClass
(
'hide'
);
//如果有货币按钮为打开状态,则关闭
_this
.
Common
.
winHide
(
$
(
'.play-bi-pan'
));
if
(
isJuan
)
{
//不可以使用状态
$
(
'dl.play-bi-pan'
).
find
(
'dt'
).
addClass
(
'not-btn'
);
$
(
'.not-btn-tip'
).
removeClass
(
'hide'
);
//如果有货币按钮为打开状态,则关闭
_this
.
Common
.
winHide
(
$
(
'.play-bi-pan'
));
}
$
(
'.yohoCoinTip'
).
addClass
(
'coin-gray'
);
$
(
'.errbitip'
).
html
(
data
.
yohoCoinCompute
.
yohoCoinMsg
);
}
$
(
'#biprice'
).
data
({
'yoho-coin-num'
:
data
.
yohoCoinCompute
.
yohoCoinNum
,
...
...
@@ -340,6 +348,7 @@ var TicketCat = {
$
(
'#biprice'
).
find
(
'.totalYohoCoinNum'
).
html
(
data
.
yohoCoinCompute
.
totalYohoCoinNum
);
$
(
'#biprice'
).
find
(
'.yohoCoinNum'
).
html
(
data
.
yohoCoinCompute
.
yohoCoinNum
);
$
(
'#biprice'
).
find
(
'.yohoCoin'
).
html
(
data
.
yohoCoinCompute
.
yohoCoin
);
//有货币清零状态更新 end
},
getSelectData
:
function
()
{
var
expressVal
=
$
(
'.express-list input[name="carriagegroup"]:checked'
).
val
();
...
...
Please
register
or
login
to post a comment