Merge branch 'release/5.2' of git.yoho.cn:fe/yohobuywap-node into release/5.2
Showing
5 changed files
with
26 additions
and
9 deletions
@@ -628,7 +628,10 @@ const bankCard = (req, res) => { | @@ -628,7 +628,10 @@ const bankCard = (req, res) => { | ||
628 | 628 | ||
629 | // 银行卡详情 | 629 | // 银行卡详情 |
630 | const cardDetail = (req, res) => { | 630 | const cardDetail = (req, res) => { |
631 | - installmentModel.getCardDetail(req.cookies.installmentUid, req.query.cardIdNo).then(result => { | 631 | + let uid = req.cookies.installmentUid; |
632 | + let cardIdNo = req.query.cardIdNo; | ||
633 | + | ||
634 | + installmentModel.getCardDetail(uid, cardIdNo).then(result => { | ||
632 | res.render('installment/card-detail', { | 635 | res.render('installment/card-detail', { |
633 | module: 'home', | 636 | module: 'home', |
634 | page: 'card-detail', | 637 | page: 'card-detail', |
@@ -492,8 +492,7 @@ const getCardDetail = (uid, cardIdNo) => { | @@ -492,8 +492,7 @@ const getCardDetail = (uid, cardIdNo) => { | ||
492 | uid: uid, | 492 | uid: uid, |
493 | cardIdNo: cardIdNo | 493 | cardIdNo: cardIdNo |
494 | }, { | 494 | }, { |
495 | - timeout: API_TIMEOUT, | ||
496 | - cache: true | 495 | + timeout: API_TIMEOUT |
497 | }).then((result) => { | 496 | }).then((result) => { |
498 | if (result && result.code === 200) { | 497 | if (result && result.code === 200) { |
499 | return _processCardDetail(result.data); | 498 | return _processCardDetail(result.data); |
@@ -28,7 +28,7 @@ var cardDetail = { | @@ -28,7 +28,7 @@ var cardDetail = { | ||
28 | errorText: '解除失败', | 28 | errorText: '解除失败', |
29 | successAction: function() { | 29 | successAction: function() { |
30 | tip.show('解除成功!'); | 30 | tip.show('解除成功!'); |
31 | - window.location.href = '/home/installment/bank-card'; | 31 | + window.location.href = '/home/installment/bank-card?openby:yohobuy={"action":"go.relieveCardSuccess"}'; |
32 | } | 32 | } |
33 | }); | 33 | }); |
34 | }); | 34 | }); |
@@ -6,6 +6,7 @@ | @@ -6,6 +6,7 @@ | ||
6 | 6 | ||
7 | var $ = require('yoho-jquery'), | 7 | var $ = require('yoho-jquery'), |
8 | ellipsis = require('yoho-mlellipsis'), | 8 | ellipsis = require('yoho-mlellipsis'), |
9 | + cookie = require('yoho-cookie'), | ||
9 | ListData = require('./installment-goods'), | 10 | ListData = require('./installment-goods'), |
10 | bp = require('./burying-point'), | 11 | bp = require('./burying-point'), |
11 | PullRefresh = require('../plugin/pull-refresh'), | 12 | PullRefresh = require('../plugin/pull-refresh'), |
@@ -41,7 +42,7 @@ var installment = { | @@ -41,7 +42,7 @@ var installment = { | ||
41 | uuid: self.uuidVal | 42 | uuid: self.uuidVal |
42 | }); | 43 | }); |
43 | 44 | ||
44 | - if (self.cookieTab && window.queryString.refresh) { | 45 | + if (self.cookieTab) { |
45 | self.$tab.eq(self.cookieTab).addClass('on').siblings().removeClass('on'); | 46 | self.$tab.eq(self.cookieTab).addClass('on').siblings().removeClass('on'); |
46 | self.$installmentCont.hide().eq(self.cookieTab).fadeIn(); | 47 | self.$installmentCont.hide().eq(self.cookieTab).fadeIn(); |
47 | } else { | 48 | } else { |
@@ -49,6 +50,8 @@ var installment = { | @@ -49,6 +50,8 @@ var installment = { | ||
49 | self.$installmentCont.hide().eq(0).fadeIn(); | 50 | self.$installmentCont.hide().eq(0).fadeIn(); |
50 | } | 51 | } |
51 | 52 | ||
53 | + cookie.remove('installmentTab'); | ||
54 | + | ||
52 | // 已开通tab 切换 | 55 | // 已开通tab 切换 |
53 | self.$tab.on('click', function() { | 56 | self.$tab.on('click', function() { |
54 | self.tabChangeAction(this); | 57 | self.tabChangeAction(this); |
@@ -129,7 +132,7 @@ var installment = { | @@ -129,7 +132,7 @@ var installment = { | ||
129 | var starIScroll = new PullRefresh('.installment-main', { | 132 | var starIScroll = new PullRefresh('.installment-main', { |
130 | pullDown: function() { | 133 | pullDown: function() { |
131 | window.setCookie('installmentTab', $('.detail-tab .on').index()); | 134 | window.setCookie('installmentTab', $('.detail-tab .on').index()); |
132 | - location.href = '/home/installment/index?uid=' + window.queryString.uid + '&refresh=1'; | 135 | + location.reload(); |
133 | } | 136 | } |
134 | }); | 137 | }); |
135 | 138 |
@@ -91,15 +91,27 @@ | @@ -91,15 +91,27 @@ | ||
91 | } | 91 | } |
92 | 92 | ||
93 | .girls-wrap .home-header { | 93 | .girls-wrap .home-header { |
94 | - background: #ff88ae; | 94 | + background: rgb(255,136,174); |
95 | + | ||
96 | + &.iswechat { | ||
97 | + background: rgba(255,136,174, 0.6); | ||
98 | + } | ||
95 | } | 99 | } |
96 | 100 | ||
97 | .kids-wrap .home-header { | 101 | .kids-wrap .home-header { |
98 | - background: #7ad9f9; | 102 | + background: rgb(122,217,249); |
103 | + | ||
104 | + &.iswechat { | ||
105 | + background: rgba(122,217,249,0.6); | ||
106 | + } | ||
99 | } | 107 | } |
100 | 108 | ||
101 | .lifestyle-wrap .home-header { | 109 | .lifestyle-wrap .home-header { |
102 | - background: #4f4138; | 110 | + background: rgb(79,65,56); |
111 | + | ||
112 | + &.iswechat { | ||
113 | + background: rgba(79,65,56,0.6); | ||
114 | + } | ||
103 | } | 115 | } |
104 | 116 | ||
105 | .kids-wrap .logo { | 117 | .kids-wrap .logo { |
-
Please register or login to post a comment