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
王水玲
9 years ago
Commit
ee365173825da03bc1cb64c3bae9efbfde1041a8
1 parent
f7f69247
有货分期
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
16 deletions
apps/home/controllers/installment.js
apps/home/models/installment.js
config/common.js
doraemon/views/layout.hbs
public/js/home/repayment-list.page.js
public/scss/home/installment/_repayment-list.css
apps/home/controllers/installment.js
View file @
ee36517
...
...
@@ -5,7 +5,6 @@
*/
'use strict'
;
const
headerModel
=
require
(
'../../../doraemon/models/header'
);
const
installmentModel
=
require
(
'../models/installment'
);
const
_
=
require
(
'lodash'
);
const
helpers
=
global
.
yoho
.
helpers
;
...
...
@@ -19,7 +18,7 @@ const _reviewStatus = (uid, status) => {
}
};
}
else
if
(
status
===
2
)
{
return
Promise
.
all
([
installmentModel
.
getSearchIntallment
(),
installmentModel
.
getQueryCreditInfo
(
uid
)]).
then
((
result
)
=>
{
return
Promise
.
all
([
installmentModel
.
getSearchIntallment
(),
installmentModel
.
getQueryCreditInfo
(
uid
)]).
then
((
result
)
=>
{
//eslint-disable-line
return
{
success
:
{
price
:
result
[
1
].
initCreditLimit
,
...
...
apps/home/models/installment.js
View file @
ee36517
...
...
@@ -315,6 +315,7 @@ const getQueryAmtList = (params) => {
const
getSearchIntallment
=
()
=>
{
return
api
.
post
(
''
,
{
method
:
'app.search.instalment'
,
// method: 'app.search.newProduct',
limit
:
'50'
,
order
:
's_t_desc'
...
...
config/common.js
View file @
ee36517
...
...
@@ -20,7 +20,10 @@ module.exports = {
//api: 'http://172.16.6.179:8080/gateway/',
//service: 'http://172.16.6.179:8080/gateway/'
api
:
'http://api.yoho.cn'
,
service
:
'http://service.yoho.cn'
service
:
'http://dev-service.yohops.com:9999'
// api: 'http://testapi.yoho.cn:28078/',
// service: 'http://testservice.yoho.cn:28077/'
},
subDomains
:
{
host
:
'.m.yohobuy.com'
,
...
...
doraemon/views/layout.hbs
View file @
ee36517
...
...
@@ -18,7 +18,7 @@
(
function
(
d
,
c
){
var
e
=
d
.
documentElement
,
a
=
"orientationchange"
in
window
?
"orientationchange"
:
"resize"
,
b
=
function
(){
var
f
=
e
.
clientWidth
;
if
(
!
f
){
return
}
if
(
f
>=
640
){
e
.
style
.
fontSize
=
"40px"
}
else
{
e
.
style
.
fontSize
=
40
*
(
f
/
640
)
+
"px"
}};
if
(
!
d
.
addEventListener
){
return
}
b
();
c
.
addEventListener
(
a
,
b
,
false
);
d
.
addEventListener
(
"DOMContentLoaded"
,
b
,
false
)})(
document
,
window
);
</script>
{{#if
devEnv
}}
<link
rel=
"stylesheet"
href=
"//
localhost
:5001/css/index.css"
>
<link
rel=
"stylesheet"
href=
"//
172.16.6.180
:5001/css/index.css"
>
{{^}}
<link
rel=
"stylesheet"
href=
"//cdn.yoho.cn/m-yohobuy-node/
{{
version
}}
/index.css"
>
{{/if}}
...
...
@@ -41,8 +41,8 @@
<script
type=
"text/javascript"
src=
"//res.wx.qq.com/open/js/jweixin-1.1.0.js"
></script>
{{/
wechatShare
}}
{{#if
devEnv
}}
<script
src=
"//localhost:5001/libs.js"
></script>
<script
src=
"//localhost:5001/
{{
module
}}
.
{{
page
}}
.js"
></script>
<script
src=
"//172.16.6.180:5001/libs.js"
></script>
<script
src=
"//172.16.6.180:5001/
{{
module
}}
.
{{
page
}}
.js"
></script>
{{^}}
<script
src=
"//cdn.yoho.cn/m-yohobuy-node/
{{
version
}}
/libs.js"
></script>
<script
src=
"//cdn.yoho.cn/m-yohobuy-node/
{{
version
}}
/
{{
module
}}
.
{{
page
}}
.js"
></script>
...
...
public/js/home/repayment-list.page.js
View file @
ee36517
...
...
@@ -35,10 +35,10 @@ $('.repay-list .cont').on('click', function() {
$currAmt
.
html
(
amt
+
currAmt
);
$currFee
.
html
(
fee
+
currFee
);
}
setTimeout
(
function
(){
setTimeout
(
function
()
{
count
=
$
(
'.repay-list input:checked'
).
length
;
$
(
'#repayment-total'
).
prop
(
'checked'
,
count
===
$
(
'.repay-list li'
).
length
);
},
0
)
},
0
)
;
});
...
...
@@ -66,5 +66,6 @@ $('.repayment-bottom label').on('click', function() {
$
(
'.repayment-btn'
).
on
(
'click'
,
function
()
{
var
path
=
location
.
pathname
;
$
(
this
).
attr
(
'href'
,
path
+
'?openby:yohobuy={"action":"go.instalmentRepayment","params":{"amount":'
+
(
+
$currAmt
.
html
())
+
'}}'
);
});
\ No newline at end of file
$
(
this
).
attr
(
'href'
,
path
+
'?openby:yohobuy={"action":"go.instalmentRepayment","params":{"amount":'
+
(
+
$currAmt
.
html
())
+
'}}'
);
});
...
...
public/scss/home/installment/_repayment-list.css
View file @
ee36517
...
...
@@ -163,20 +163,16 @@
.repay-status
{
width
:
614px
;
margin
:
35px
auto
0
;
margin
:
35px
auto
0
;
font-size
:
32px
;
height
:
auto
;
overflow
:
hidden
;
overflow
:
hidden
;
li
{
float
:
left
;
width
:
134px
;
text-align
:
center
;
margin
:
0
30px
;
&:before
{
}
}
.spot
{
...
...
Please
register
or
login
to post a comment