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
24059b1bcc0725f128a7bcc13be93812ebe0bca1
1 parent
bacc7a13
有货币不可以使用,提示
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
12 deletions
template/www.yohobuy.com/actions/cart/index/order-ensure.phtml
web-static/js/order/ensure.js
web-static/sass/order/_pay.css
template/www.yohobuy.com/actions/cart/index/order-ensure.phtml
View file @
24059b1
...
...
@@ -366,11 +366,14 @@
</dl>
{{/if}}
<dl class="play-bi-pan pan">
<dt class="{{#unless yohoCoinCompute.yohoCoinClick}}not-btn{{/unless}}">使用有货币支付</dt>
<dt class="{{#unless yohoCoinCompute.yohoCoinClick}}not-btn{{/unless}}">
<span class="not-btn-tip red {{#if yohoCoinCompute.yohoCoinClick}}hide{{/if}}">抱歉,您的订单实付款不满足有货币使用条件</span>使用有货币支付
</dt>
<dd>
<div class="errbitip red"></div>
<ul class="play-pan" id="biprice" data-yoho-coin-num={{yohoCoinCompute.yohoCoinNum}} data-yoho-coin-click={{yohoCoinCompute.yohoCoinClick}}>
<li>
<div class="float-left">
<div class="float-left
num-list-width
">
有货币满<span class="sign-amount num-limit-coin">{{yohoCoinCompute.yoho_coin_pay_rule.num_limit}}</span>个即可使用,每次使用有货币为<span class="sign-amount num-limit-coin">{{yohoCoinCompute.yoho_coin_pay_rule.num_limit}}</span>的整数倍
</div>
<div class="float-right yoho-coin-help">?
...
...
@@ -379,10 +382,10 @@
<div class="yoho-coin-help-dialog-title">有货币使用条件:</div>
<div class="yoho-coin-help-dialog-content">
<ul>
<li>(1)订单金额大于20元(含)</li>
<li>(2)有货币数量大于<span class="num-limit-coin">{{yohoCoinCompute.yoho_coin_pay_rule.num_limit}}</span>个含)</li>
<li>(3)有货币支付不得超过每笔订单应付金额{{yohoCoinCompute.yoho_coin_pay_rule.max_pay_rate_desc}}</li>
<li>备注:使用有货币数量为<span class="num-limit-coin">{{yohoCoinCompute.yoho_coin_pay_rule.num_limit}}</span>的整数倍,100有货币抵1元。</li>
<li>1.订单金额大于20元(含20元)</li>
<li>2.有货币数量大于<span class="num-limit-coin">{{yohoCoinCompute.yoho_coin_pay_rule.num_limit}}</span>个(含<span class="num-limit-coin">{{yohoCoinCompute.yoho_coin_pay_rule.num_limit}}</span>个)</li>
<li>3.每笔支付不得超过应付金额{{yohoCoinCompute.yoho_coin_pay_rule.max_pay_rate_desc}}</li>
<li>备注:使用有货币数量为<span class="num-limit-coin">{{yohoCoinCompute.yoho_coin_pay_rule.num_limit}}的整数倍,100有货币抵1元。</li>
</ul>
</div>
</div>
...
...
@@ -404,7 +407,6 @@
</div>
</li>
</ul>
<div class="errbitip red"></div>
</dd>
</dl>
...
...
web-static/js/order/ensure.js
View file @
24059b1
...
...
@@ -278,8 +278,11 @@ var Order = {
//有货币清零状态更新
$
(
'dl.play-bi-pan'
).
find
(
'dt'
).
removeClass
(
'not-btn'
);
$
(
'.not-btn-tip'
).
addClass
(
'hide'
);
if
(
!
data
.
yohoCoinCompute
.
yohoCoinClick
)
{
//不可以使用状态
$
(
'dl.play-bi-pan'
).
find
(
'dt'
).
addClass
(
'not-btn'
);
$
(
'.not-btn-tip'
).
removeClass
(
'hide'
);
}
$
(
'#biprice'
).
data
(
'.yoho-coin-click'
,
data
.
yohoCoinCompute
.
yohoCoinClick
);
$
(
'#biprice'
).
find
(
'.num-limit-coin'
).
html
(
data
.
yohoCoinCompute
.
yoho_coin_pay_rule
.
num_limit
);
...
...
web-static/sass/order/_pay.css
View file @
24059b1
...
...
@@ -127,6 +127,7 @@
.red
{
color
:
#e8044f
!important
;
text-align
:
center
;
}
.orange
{
...
...
@@ -157,6 +158,11 @@
cursor
:
auto
;
}
.not-btn-tip
{
position
:
absolute
;
right
:
150px
;
}
.pan
dd
{
display
:
none
;
border
:
1px
#ccc
solid
;
...
...
@@ -247,8 +253,7 @@
.play-right
{
float
:
right
;
width
:
50%
;
width
:
405px
;
width
:
410px
;
.pan
{
text-align
:
right
;
...
...
@@ -354,12 +359,16 @@
width
:
100%
;
height
:
166px
;
.num-list-width
{
width
:
360px
;
}
.yoho-coin-help-link
{
color
:
#027cf9
;
}
li
{
margin-top
:
1
8
px
;
margin-top
:
1
5
px
;
overflow
:
hidden
;
&:last-child
{
...
...
@@ -387,8 +396,8 @@
background-color
:
#fff
;
border
:
1px
solid
#000
;
margin-top
:
10px
;
width
:
340px
;
height
:
140px
;
width
:
280px
;
height
:
150px
;
padding
:
15px
;
text-align
:
left
;
cursor
:
auto
;
...
...
Please
register
or
login
to post a comment