Authored by 王水玲

有货分期

... ... @@ -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,
... ...
... ... @@ -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'
... ...
... ... @@ -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',
... ...
... ... @@ -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>
... ...
... ... @@ -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()) + '}}');
});
... ...
... ... @@ -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 {
... ...