Authored by 王水玲

有货分期

@@ -196,17 +196,6 @@ const getStauts = (uid) => { @@ -196,17 +196,6 @@ const getStauts = (uid) => {
196 method: 'user.instalment.getStatus', 196 method: 'user.instalment.getStatus',
197 uid: uid 197 uid: uid
198 }).then((result) => { 198 }).then((result) => {
199 - // result = {  
200 - // alg: 'SALT_MD5',  
201 - // code: 200,  
202 - // data: {  
203 - // status: '2',  
204 - // isShow: '1',  
205 - // currCreditLimit: '3125.20'  
206 - // },  
207 - // md5: '6d729d4b35f10fc73531210bd7ecff91',  
208 - // message: 'success'  
209 - // };  
210 if (result && result.code === 200) { 199 if (result && result.code === 200) {
211 return result.data.status; 200 return result.data.status;
212 } else { 201 } else {
@@ -222,18 +211,6 @@ const getQueryCreditInfo = (uid) => { @@ -222,18 +211,6 @@ const getQueryCreditInfo = (uid) => {
222 method: 'user.instalment.queryCreditLimit', 211 method: 'user.instalment.queryCreditLimit',
223 uid: uid 212 uid: uid
224 }).then((result) => { 213 }).then((result) => {
225 - // result = {  
226 - // alg: 'SALT_MD5',  
227 - // code: 200,  
228 - // data: {  
229 - // initCreditLimit: '5000',  
230 - // currCreditLimit: '2000',  
231 - // status: '2',  
232 - // maxOverdueDay: '5'  
233 - // },  
234 - // md5: 'c1d725306fb09dcbf504776d276521cb',  
235 - // message: 'ok'  
236 - // };  
237 if (result && result.code === 200) { 214 if (result && result.code === 200) {
238 return result.data; 215 return result.data;
239 } else { 216 } else {
@@ -249,19 +226,6 @@ const getQueryAmtInfo = (uid) => { @@ -249,19 +226,6 @@ const getQueryAmtInfo = (uid) => {
249 method: 'app.order.queryAmtInfo', 226 method: 'app.order.queryAmtInfo',
250 uid: uid 227 uid: uid
251 }).then((result) => { 228 }).then((result) => {
252 - // result = {  
253 - // alg: 'SALT_MD5',  
254 - // code: 200,  
255 - // data: {  
256 - // totalAmt: '2000.00',  
257 - // monthAmt: '800.00',  
258 - // s_7daysAmt: '400.00',  
259 - // overAmt: '400.00'  
260 - // },  
261 - // md5: 'c1d725306fb09dcbf504776d276521cb',  
262 - // message: 'ok'  
263 - // };  
264 -  
265 if (result && result.code === 200) { 229 if (result && result.code === 200) {
266 result.data.dayAmt = result.data.s_7daysAmt; 230 result.data.dayAmt = result.data.s_7daysAmt;
267 return result.data; 231 return result.data;
@@ -281,47 +245,6 @@ const getQueryAmtList = (params) => { @@ -281,47 +245,6 @@ const getQueryAmtList = (params) => {
281 }, params), { 245 }, params), {
282 cache: true 246 cache: true
283 }).then((result) => { 247 }).then((result) => {
284 - // result = {  
285 - // alg: 'SALT_MD5',  
286 - // code: 200,  
287 - // data: {  
288 - // amtList: [  
289 - // {  
290 - // billNo: 'x00001',  
291 - // terms: 3,  
292 - // currTerm: 1,  
293 - // unExpireDays: -3,  
294 - // billInfo: '三叶草运动休闲鞋',  
295 - // currAmt: '845.00',  
296 - // currNoFeeAmt: '840.00',  
297 - // currFee: '0.00'  
298 - // }, {  
299 - // billNo: 'x00002',  
300 - // terms: 3,  
301 - // currTerm: 2,  
302 - // unExpireDays: 10,  
303 - // billInfo: '三叶草运动休闲鞋',  
304 - // currAmt: '840.00',  
305 - // currNoFeeAmt: '840.00',  
306 - // currFee: '5.00'  
307 - // }, {  
308 - // billNo: 'x00003',  
309 - // terms: 3,  
310 - // currTerm: 1,  
311 - // unExpireDays: -3,  
312 - // billInfo: '三叶草运动休闲鞋',  
313 - // currAmt: '845.00',  
314 - // currNoFeeAmt: '840.00',  
315 - // currFee: '0.00'  
316 - // }  
317 - // ],  
318 - // pageNo: 1,  
319 - // pageTotal: 1,  
320 - // total: 2  
321 - // },  
322 - // md5: 'c1d725306fb09dcbf504776d276521cb',  
323 - // message: 'ok'  
324 - // };  
325 if (result && result.code === 200) { 248 if (result && result.code === 200) {
326 return _processAmtList(result.data.amtList, params.queryDays); 249 return _processAmtList(result.data.amtList, params.queryDays);
327 } else { 250 } else {
@@ -335,131 +258,11 @@ const getQueryAmtList = (params) => { @@ -335,131 +258,11 @@ const getQueryAmtList = (params) => {
335 const getSearchIntallment = () => { 258 const getSearchIntallment = () => {
336 return api.post('', { 259 return api.post('', {
337 method: 'app.search.instalment', 260 method: 'app.search.instalment',
338 -  
339 - // method: 'app.search.newProduct',  
340 limit: '50', 261 limit: '50',
341 order: 's_t_desc' 262 order: 's_t_desc'
342 }, { 263 }, {
343 cache: true 264 cache: true
344 }).then((result) => { 265 }).then((result) => {
345 - // result = {  
346 - // alg: 'SALT_MD5',  
347 - // code: 200,  
348 - // data: {  
349 - // product_list: [  
350 - // {  
351 - // brand_domain: '5cm',  
352 - // brand_id: 4,  
353 - // brand_name: '5CM',  
354 - // cn_alphabet: '5CMPeiShi5CXTIT0600S66',  
355 - // default_images: 'http://img13.static.yhbimg.com/goodsimg/2016/02/21/07/026d569b2db7d9ce9339a79bcb3fe420f8.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',  
356 - // edit_time: 1456119592,  
357 - // gender: '1',  
358 - // goods_list: [  
359 - // {  
360 - // color_code: '333333',  
361 - // color_id: '2',  
362 - // color_name: '黑色',  
363 - // color_value: '',  
364 - // cover_1: '',  
365 - // cover_2: '',  
366 - // goods_id: '476147',  
367 - // images_url: 'http://img13.static.yhbimg.com/goodsimg/2016/02/21/07/026d569b2db7d9ce9339a79bcb3fe420f8.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',  
368 - // is_default: 'N',  
369 - // product_skc: '346699',  
370 - // status: '1'  
371 - // }  
372 - // ],  
373 - // is_advance: 'N',  
374 - // is_discount: 'N',  
375 - // is_limited: 'N',  
376 - // is_new: 'Y',  
377 - // is_outlets: 2,  
378 - // is_promotion: 104,  
379 - // is_soon_sold_out: 'N',  
380 - // is_special: 'N',  
381 - // market_price: 359,  
382 - // max_sort_id: 8,  
383 - // middle_sort_id: 66,  
384 - // product_id: 373507,  
385 - // product_name: '5CM 字母印花领带',  
386 - // product_skn: 51206745,  
387 - // sales_num: 0,  
388 - // sales_phrase: '春潮新势力',  
389 - // sales_price: 359,  
390 - // shelve_time: 1457140500,  
391 - // small_sort_id: 77,  
392 - // status: 1,  
393 - // stock_number: 25,  
394 - // storage_num: 25,  
395 - // tags: [  
396 - // 'is_new'  
397 - // ],  
398 - // vip1_price: 341.05,  
399 - // vip2_price: 323.1,  
400 - // vip3_price: 315.92,  
401 - // vip_discount_type: 1,  
402 - // vip_price: 0  
403 - // }, {  
404 - // brand_domain: '5cm',  
405 - // brand_id: 4,  
406 - // brand_name: '5CM',  
407 - // cn_alphabet: '5CMPeiShi5CXTIT0603S66',  
408 - // default_images: 'http://img12.static.yhbimg.com/goodsimg/2016/02/21/07/02d463c9f8945ad14f824e8ba35efb9555.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',  
409 - // edit_time: 1456119581,  
410 - // gender: '1',  
411 - // goods_list: [  
412 - // {  
413 - // color_code: '333333',  
414 - // color_id: '2',  
415 - // color_name: '黑色',  
416 - // color_value: '',  
417 - // cover_1: '',  
418 - // cover_2: '',  
419 - // goods_id: '476153',  
420 - // images_url: 'http://img12.static.yhbimg.com/goodsimg/2016/02/21/07/02d463c9f8945ad14f824e8ba35efb9555.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',  
421 - // is_default: 'N',  
422 - // product_skc: '346702',  
423 - // status: '1'  
424 - // }  
425 - // ],  
426 - // is_advance: 'N',  
427 - // is_discount: 'N',  
428 - // is_limited: 'N',  
429 - // is_new: 'Y',  
430 - // is_outlets: 2,  
431 - // is_promotion: 104,  
432 - // is_soon_sold_out: 'N',  
433 - // is_special: 'N',  
434 - // market_price: 359,  
435 - // max_sort_id: 8,  
436 - // middle_sort_id: 66,  
437 - // product_id: 373513,  
438 - // product_name: '5CM 字母印花领结',  
439 - // product_skn: 51206748,  
440 - // sales_num: 0,  
441 - // sales_phrase: '春潮新势力',  
442 - // sales_price: 359,  
443 - // shelve_time: 1457140500,  
444 - // small_sort_id: 77,  
445 - // status: 1,  
446 - // stock_number: 19,  
447 - // storage_num: 19,  
448 - // tags: [  
449 - // 'is_new'  
450 - // ],  
451 - // vip1_price: 341.05,  
452 - // vip2_price: 323.1,  
453 - // vip3_price: 315.92,  
454 - // vip_discount_type: 1,  
455 - // vip_price: 0  
456 - // }  
457 - // ],  
458 - // rec_id: '00f185af-936a-4053-97f8-1c802cb91e8b'  
459 - // },  
460 - // md5: 'ace93d0f598db0bebec30234381c0cbf',  
461 - // message: 'Product List.'  
462 - // };  
463 if (result && result.code === 200) { 266 if (result && result.code === 200) {
464 return productProcess.processProductList(result.data.product_list); 267 return productProcess.processProductList(result.data.product_list);
465 } else { 268 } else {
@@ -555,40 +358,6 @@ const getQueryRePayList = (params) => { @@ -555,40 +358,6 @@ const getQueryRePayList = (params) => {
555 }, params), { 358 }, params), {
556 cache: true 359 cache: true
557 }).then((result) => { 360 }).then((result) => {
558 - // result = {  
559 - // alg: "SALT_MD5",  
560 - // code: 200,  
561 - // data: {  
562 - // rePayList: [  
563 - // {  
564 - // prePayNo: "00001",  
565 - // time: "2016.06.01",  
566 - // status: 1,  
567 - // desc: null,  
568 - // amt: "200.00"  
569 - // },  
570 - // {  
571 - // prePayNo: "00001",  
572 - // time: "2016.07.01",  
573 - // status: 2,  
574 - // desc: "银行卡余额不足",  
575 - // amt: "200.00"  
576 - // },  
577 - // {  
578 - // prePayNo: "00001",  
579 - // time: "2016.08.01",  
580 - // status: 3,  
581 - // desc: null,  
582 - // amt: "200.00"  
583 - // }  
584 - // ],  
585 - // pageNo: 1,  
586 - // pageTotal: 1,  
587 - // total: 3  
588 - // },  
589 - // md5: "c1d725306fb09dcbf504776d276521cb",  
590 - // message: "ok"  
591 - // };  
592 if (result && result.code === 200) { 361 if (result && result.code === 200) {
593 return _processRepayList(result.data.rePayList); 362 return _processRepayList(result.data.rePayList);
594 } else { 363 } else {
@@ -606,21 +375,6 @@ const getBankCards = (uid) => { @@ -606,21 +375,6 @@ const getBankCards = (uid) => {
606 }, { 375 }, {
607 cache: true 376 cache: true
608 }).then((result) => { 377 }).then((result) => {
609 - // result = {  
610 - // alg: 'SALT_MD5',  
611 - // code: 200,  
612 - // data: [  
613 - // {  
614 - // userName: '张三',  
615 - // cardNo: '25202200000',  
616 - // bankCode: 'ABC',  
617 - // bankName: '农业银行',  
618 - // mobile: '18021200000'  
619 - // }  
620 - // ],  
621 - // md5: '6d729d4b35f10fc73531210bd7ecff91',  
622 - // message: 'success'  
623 - // };  
624 if (result && result.code === 200) { 378 if (result && result.code === 200) {
625 return _processBankCards(result.data); 379 return _processBankCards(result.data);
626 } else { 380 } else {