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
Email Patches
Plain Diff
Browse Files
Authored by
王水玲
8 years ago
Commit
b82cfaece2b51708062df54da866a26068b3e4ff
1 parent
86b7ba43
分期3
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
12 deletions
apps/home/controllers/installment.js
apps/home/models/installment.js
public/js/home/installment.page.js
public/js/yoho-app.js
public/scss/home/installment/_installment.css
public/scss/layout/_common.css
apps/home/controllers/installment.js
View file @
b82cfae
...
...
@@ -318,7 +318,7 @@ const bindCard = (req, res) => {
title
:
req
.
query
.
title
||
'使用新卡还款'
,
bindCard
:
{
userName
:
req
.
query
.
name
,
banks
:
banks
banks
:
banks
.
join
(
'、'
)
},
isInstallmentPage
:
true
});
...
...
@@ -642,7 +642,7 @@ const cardDetail = (req, res) => {
let
uid
=
req
.
cookies
.
installmentUid
;
let
cardIdNo
=
req
.
query
.
cardIdNo
;
installmentModel
.
getCardDetail
(
uid
,
cardIdNo
).
then
(
result
=>
{
installmentModel
.
getCardDetail
(
uid
,
cardIdNo
).
then
(
(
result
)
=>
{
res
.
render
(
'installment/card-detail'
,
{
module
:
'home'
,
page
:
'card-detail'
,
...
...
apps/home/models/installment.js
View file @
b82cfae
...
...
@@ -491,15 +491,12 @@ const getCardDetail = (uid, cardIdNo) => {
method
:
'user.instalment.getBankCardDetail'
,
uid
:
uid
,
cardIdNo
:
cardIdNo
},
{
timeout
:
API_TIMEOUT
,
cache
:
true
}).
then
((
result
)
=>
{
if
(
result
&&
result
.
code
===
200
)
{
return
_processCardDetail
(
result
.
data
);
}
else
{
logger
.
error
(
'get getBankCards data return code is not 200'
);
return
''
;
return
Promise
.
reject
(
result
)
;
}
});
};
...
...
public/js/home/installment.page.js
View file @
b82cfae
...
...
@@ -20,7 +20,6 @@ var installment = {
self
.
paramsInit
();
$
(
window
).
on
(
'mousewheel'
,
false
);
self
.
noticeScroll
(
'.notice'
,
$
(
'.notice'
).
data
(
'time'
)
*
1000
);
ellipsis
.
init
();
self
.
setDetailText
();
...
...
@@ -49,6 +48,7 @@ var installment = {
self
.
$tab
.
eq
(
0
).
addClass
(
'on'
).
siblings
().
removeClass
(
'on'
);
self
.
$installmentCont
.
hide
().
eq
(
0
).
fadeIn
();
}
self
.
noticeScroll
(
'.notice'
,
$
(
'.notice'
).
data
(
'time'
)
*
1000
);
cookie
.
remove
(
'installmentTab'
);
...
...
public/js/yoho-app.js
View file @
b82cfae
...
...
@@ -35,7 +35,7 @@ yoho = {
/**
* 判断是否是 APP
*/
isApp
:
/YohoBuy/i
.
test
(
navigator
.
userAgent
||
''
)
||
qs
.
app_version
,
isApp
:
/YohoBuy/i
.
test
(
navigator
.
userAgent
||
''
)
||
qs
&&
qs
.
app_version
,
isiOS
:
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/i
.
test
(
navigator
.
userAgent
||
''
),
isAndroid
:
/Android/i
.
test
(
navigator
.
userAgent
||
''
),
...
...
public/scss/home/installment/_installment.css
View file @
b82cfae
...
...
@@ -35,11 +35,19 @@
font-size
:
18px
;
}
.notice-wrap
{
width
:
100%
;
height
:
auto
;
overflow
:
hidden
;
position
:
relative
;
}
.notice
{
width
:
100%
;
height
:
69px
;
border-bottom
:
1px
solid
#efefef
;
padding-right
:
0
;
position
:
relative
;
.swiper-wrapper
{
float
:
left
;
...
...
public/scss/layout/_common.css
View file @
b82cfae
...
...
@@ -10,6 +10,7 @@
box-sizing
:
border-box
;
-webkit-tap-highlight-color
:
rgba
(
0
,
0
,
0
,
0
);
}
html
,
body
{
width
:
100%
;
...
...
@@ -17,11 +18,14 @@ body {
font-family
:
helvetica
,
Arial
,
"黑体"
;
line-height
:
1.4
;
}
.width750
{
font-size
:
28px
;
.main-wrap
{
max-width
:
750px
;
}
.good-failure
{
background-size
:
155px
!important
;
}
...
...
@@ -79,8 +83,8 @@ button {
@font-face
{
font-family
:
"iconfont"
;
src
:
resolve
(
'iconfont.eot'
);
/* IE9 */
src
:
resolve
(
'iconfont.eot?#iefix'
)
format
(
'embedded-opentype'
),
resolve
(
'iconfont.woff'
)
format
(
'woff'
),
resolve
(
'iconfont.ttf'
)
format
(
'truetype'
),
resolve
(
'iconfont.svg#iconfont'
)
format
(
'svg'
);
/* iOS 4.1- */
src
:
resolve
(
"iconfont.eot"
);
/* IE9 */
src
:
resolve
(
"iconfont.eot?#iefix"
)
format
(
"embedded-opentype"
),
resolve
(
"iconfont.woff"
)
format
(
"woff"
),
resolve
(
"iconfont.ttf"
)
format
(
"truetype"
),
resolve
(
"iconfont.svg#iconfont"
)
format
(
"svg"
);
/* iOS 4.1- */
}
.iconfont
{
...
...
@@ -109,15 +113,16 @@ button {
border
:
none
;
z-index
:
4
;
border-radius
:
10
PX
;
box-sizing
:
border-box
;
}
.order-failure
{
background-image
:
resolve
(
'common/order-good.jpg'
);
background-image
:
resolve
(
"common/order-good.jpg"
);
background-size
:
100%
;
}
.good-failure
{
background-image
:
resolve
(
'common/order-good.jpg'
);
background-image
:
resolve
(
"common/order-good.jpg"
);
background-position-x
:
40%
;
background-size
:
132px
!important
;
}
...
...
Please
register
or
login
to post a comment