Showing
6 changed files
with
13 additions
and
13 deletions
@@ -5,7 +5,6 @@ | @@ -5,7 +5,6 @@ | ||
5 | */ | 5 | */ |
6 | 'use strict'; | 6 | 'use strict'; |
7 | 7 | ||
8 | -const headerModel = require('../../../doraemon/models/header'); | ||
9 | const installmentModel = require('../models/installment'); | 8 | const installmentModel = require('../models/installment'); |
10 | const _ = require('lodash'); | 9 | const _ = require('lodash'); |
11 | const helpers = global.yoho.helpers; | 10 | const helpers = global.yoho.helpers; |
@@ -19,7 +18,7 @@ const _reviewStatus = (uid, status) => { | @@ -19,7 +18,7 @@ const _reviewStatus = (uid, status) => { | ||
19 | } | 18 | } |
20 | }; | 19 | }; |
21 | } else if (status === 2) { | 20 | } else if (status === 2) { |
22 | - return Promise.all([installmentModel.getSearchIntallment(), installmentModel.getQueryCreditInfo(uid)]).then((result) => { | 21 | + return Promise.all([installmentModel.getSearchIntallment(), installmentModel.getQueryCreditInfo(uid)]).then((result) => { //eslint-disable-line |
23 | return { | 22 | return { |
24 | success: { | 23 | success: { |
25 | price: result[1].initCreditLimit, | 24 | price: result[1].initCreditLimit, |
@@ -315,6 +315,7 @@ const getQueryAmtList = (params) => { | @@ -315,6 +315,7 @@ const getQueryAmtList = (params) => { | ||
315 | const getSearchIntallment = () => { | 315 | const getSearchIntallment = () => { |
316 | return api.post('', { | 316 | return api.post('', { |
317 | method: 'app.search.instalment', | 317 | method: 'app.search.instalment', |
318 | + | ||
318 | // method: 'app.search.newProduct', | 319 | // method: 'app.search.newProduct', |
319 | limit: '50', | 320 | limit: '50', |
320 | order: 's_t_desc' | 321 | order: 's_t_desc' |
@@ -20,7 +20,10 @@ module.exports = { | @@ -20,7 +20,10 @@ module.exports = { | ||
20 | //api: 'http://172.16.6.179:8080/gateway/', | 20 | //api: 'http://172.16.6.179:8080/gateway/', |
21 | //service: 'http://172.16.6.179:8080/gateway/' | 21 | //service: 'http://172.16.6.179:8080/gateway/' |
22 | api: 'http://api.yoho.cn', | 22 | api: 'http://api.yoho.cn', |
23 | - service: 'http://service.yoho.cn' | 23 | + service: 'http://dev-service.yohops.com:9999' |
24 | + | ||
25 | + // api: 'http://testapi.yoho.cn:28078/', | ||
26 | + // service: 'http://testservice.yoho.cn:28077/' | ||
24 | }, | 27 | }, |
25 | subDomains: { | 28 | subDomains: { |
26 | host: '.m.yohobuy.com', | 29 | host: '.m.yohobuy.com', |
@@ -18,7 +18,7 @@ | @@ -18,7 +18,7 @@ | ||
18 | (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); | 18 | (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); |
19 | </script> | 19 | </script> |
20 | {{#if devEnv}} | 20 | {{#if devEnv}} |
21 | - <link rel="stylesheet" href="//localhost:5001/css/index.css"> | 21 | + <link rel="stylesheet" href="//172.16.6.180:5001/css/index.css"> |
22 | {{^}} | 22 | {{^}} |
23 | <link rel="stylesheet" href="//cdn.yoho.cn/m-yohobuy-node/{{version}}/index.css"> | 23 | <link rel="stylesheet" href="//cdn.yoho.cn/m-yohobuy-node/{{version}}/index.css"> |
24 | {{/if}} | 24 | {{/if}} |
@@ -41,8 +41,8 @@ | @@ -41,8 +41,8 @@ | ||
41 | <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.1.0.js"></script> | 41 | <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.1.0.js"></script> |
42 | {{/wechatShare}} | 42 | {{/wechatShare}} |
43 | {{#if devEnv}} | 43 | {{#if devEnv}} |
44 | - <script src="//localhost:5001/libs.js"></script> | ||
45 | - <script src="//localhost:5001/{{module}}.{{page}}.js"></script> | 44 | + <script src="//172.16.6.180:5001/libs.js"></script> |
45 | + <script src="//172.16.6.180:5001/{{module}}.{{page}}.js"></script> | ||
46 | {{^}} | 46 | {{^}} |
47 | <script src="//cdn.yoho.cn/m-yohobuy-node/{{version}}/libs.js"></script> | 47 | <script src="//cdn.yoho.cn/m-yohobuy-node/{{version}}/libs.js"></script> |
48 | <script src="//cdn.yoho.cn/m-yohobuy-node/{{version}}/{{module}}.{{page}}.js"></script> | 48 | <script src="//cdn.yoho.cn/m-yohobuy-node/{{version}}/{{module}}.{{page}}.js"></script> |
@@ -35,10 +35,10 @@ $('.repay-list .cont').on('click', function() { | @@ -35,10 +35,10 @@ $('.repay-list .cont').on('click', function() { | ||
35 | $currAmt.html(amt + currAmt); | 35 | $currAmt.html(amt + currAmt); |
36 | $currFee.html(fee + currFee); | 36 | $currFee.html(fee + currFee); |
37 | } | 37 | } |
38 | - setTimeout(function(){ | 38 | + setTimeout(function() { |
39 | count = $('.repay-list input:checked').length; | 39 | count = $('.repay-list input:checked').length; |
40 | $('#repayment-total').prop('checked', count === $('.repay-list li').length); | 40 | $('#repayment-total').prop('checked', count === $('.repay-list li').length); |
41 | - }, 0) | 41 | + }, 0); |
42 | 42 | ||
43 | }); | 43 | }); |
44 | 44 | ||
@@ -66,5 +66,6 @@ $('.repayment-bottom label').on('click', function() { | @@ -66,5 +66,6 @@ $('.repayment-bottom label').on('click', function() { | ||
66 | $('.repayment-btn').on('click', function() { | 66 | $('.repayment-btn').on('click', function() { |
67 | var path = location.pathname; | 67 | var path = location.pathname; |
68 | 68 | ||
69 | - $(this).attr('href', path + '?openby:yohobuy={"action":"go.instalmentRepayment","params":{"amount":' + (+$currAmt.html()) + '}}'); | 69 | + $(this).attr('href', |
70 | + path + '?openby:yohobuy={"action":"go.instalmentRepayment","params":{"amount":' + (+$currAmt.html()) + '}}'); | ||
70 | }); | 71 | }); |
-
Please register or login to post a comment