Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
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
Plain Diff
Browse Files
Authored by
王水玲
9 years ago
Commit
861e8f1cf686747620d59408c9717b276ed47436
2 parents
9e548e7a
8e395aac
Merge branch 'feature/installment' of git.yoho.cn:fe/yohobuywap-node into feature/installment
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
5 deletions
apps/home/views/action/installment/order-detail.hbs
apps/home/views/action/installment/starting-service.hbs
apps/home/views/partial/installment/repayment-bottom.hbs
public/img/home/bank-icons/pufa.png → public/img/home/bank-icons/SPDB.png
public/js/home/installment.order-detail.page.js
public/js/home/installment.starting-service.page.js
apps/home/views/action/installment/order-detail.hbs
View file @
861e8f1
...
...
@@ -61,7 +61,7 @@
本金:¥
{{
currPrincipalAmt
}}
{{#if
currFeeAmt
}}
服务
费:¥
{{
currFeeAmt
}}
手续
费:¥
{{
currFeeAmt
}}
{{/if}}
{{#
greaterThanZero
currDealyFeeAmt
}}
...
...
apps/home/views/action/installment/starting-service.hbs
View file @
861e8f1
...
...
@@ -55,7 +55,7 @@
<input
id=
"accept-agreements"
name=
"agreements"
type=
"checkbox"
class=
"installment-check-btn"
/>
<label
for=
"accept-agreements"
>
<span>
免费开通,详情请见
<a
href=
"/home/installment/agreement"
>
《有货分期服务协议》
&
《第三方支付协议》
</a>
<a
id=
"agreements"
href=
""
data-
href=
"/home/installment/agreement"
>
《有货分期服务协议》
&
《第三方支付协议》
</a>
</span>
</label>
<div
class=
"clearfix"
></div>
...
...
apps/home/views/partial/installment/repayment-bottom.hbs
View file @
861e8f1
...
...
@@ -15,7 +15,7 @@
<input
id=
"repayment-total"
type=
"checkbox"
class=
"installment-check-btn"
{{#if
isAllChecked
}}
checked
{{/if}}
/>
<label
for=
"repayment-total"
>
<p
class=
"repay-price"
>
待支付:
<span>
¥
<span
class=
"curr-amt"
>
{{
round
currAmtCount
}}
</span></span></p>
<p
class=
"serve-price"
{{#if
isCurrFee
}}
style=
"display:block;"
{{/if}}
>
含服务费¥
<span
class=
"curr-fee"
>
{{
round
currFeeCount
}}
</span></p>
<p
class=
"serve-price"
{{#if
isCurrFee
}}
style=
"display:block;"
{{/if}}
>
含
逾期
服务费¥
<span
class=
"curr-fee"
>
{{
round
currFeeCount
}}
</span></p>
</label>
<a
href=
''
class=
"repayment-btn"
>
立即还款
</a>
</div>
...
...
public/img/home/bank-icons/
pufa
.png → public/img/home/bank-icons/
SPDB
.png
View file @
861e8f1
18.2 KB
public/js/home/installment.order-detail.page.js
View file @
861e8f1
...
...
@@ -14,7 +14,7 @@ var repayment = new Repayment({
orderCode
:
input
.
data
(
'orderCode'
),
termNo
:
input
.
data
(
'sortId'
),
amount
:
parseFloat
(
input
.
data
(
'amount'
)),
fee
:
parseFloat
(
input
.
data
(
'
fee'
))
+
parseFloat
(
input
.
data
(
'
delayFee'
))
fee
:
parseFloat
(
input
.
data
(
'delayFee'
))
};
ret
.
push
(
data
);
...
...
public/js/home/installment.starting-service.page.js
View file @
861e8f1
...
...
@@ -32,6 +32,7 @@ var validateForm = function() {
if
(
formModel
.
userName
&&
formModel
.
identityCardNo
&&
formModel
.
cardNo
&&
formModel
.
bankCode
&&
formModel
.
mobile
&&
formModel
.
snsCheckCode
&&
formModel
.
agreements
===
'on'
)
{
...
...
@@ -51,6 +52,9 @@ const clearVerifyCode = function() {
};
var
debounceFn
=
debounce
(
function
(
cardNo
)
{
formModel
.
bankCode
=
''
;
formModel
.
bankName
=
''
;
// 获取银行信息
$
.
get
(
'/home/installment/bank-info'
,
{
cardNo
:
cardNo
}).
then
(
function
(
result
)
{
if
(
result
.
code
===
200
)
{
...
...
@@ -62,12 +66,20 @@ var debounceFn = debounce(function(cardNo) {
$
(
'#bank-name'
).
text
(
result
.
data
.
bankName
);
// 设置银行图标
$
(
'#bank-icon'
).
attr
(
'src'
,
$
(
'#bank-icon'
).
show
().
attr
(
'src'
,
window
.
STATIC_RESOURCE_PATH
+
'/img/home/bank-icons/'
+
result
.
data
.
bankCode
+
'.png'
);
$
(
'#bank-desc'
).
show
();
}
// 返回1不支持, 孟令阶
if
(
result
&&
result
.
data
&&
result
.
data
.
businessSupport
===
'1'
)
{
$
(
'#bank-name'
).
text
(
'暂不支持此银行卡'
);
$
(
'#bank-desc'
).
show
();
$
(
'#bank-icon'
).
hide
();
}
}
else
{
tip
.
show
(
result
.
message
);
$
(
'#bank-desc'
).
hide
();
}
});
...
...
@@ -298,3 +310,14 @@ $('input[maxlength]').keyup(function() {
$
(
this
).
val
(
value
.
slice
(
0
,
length
));
});
$
(
'#agreements'
).
click
(
function
()
{
const
params
=
{
action
:
'go.instalmentProtocol'
,
params
:
{
protocolUrl
:
location
.
protocol
+
'//'
+
location
.
hostname
+
location
.
port
+
$
(
this
).
data
(
'href'
)
}
};
$
(
this
).
attr
(
'href'
,
location
.
pathname
+
'?openby:yohobuy='
+
encodeURIComponent
(
JSON
.
stringify
(
params
)));
});
...
...
Please
register
or
login
to post a comment