Merge branch 'release/1.0' of http://git.yoho.cn/fe/yoho-blk into release/1.0
Showing
5 changed files
with
27 additions
and
21 deletions
@@ -143,7 +143,7 @@ const exchangeDeatail = (req, res) => { | @@ -143,7 +143,7 @@ const exchangeDeatail = (req, res) => { | ||
143 | navigation: mcHandler.getSideMenu('我的退/换货'), | 143 | navigation: mcHandler.getSideMenu('我的退/换货'), |
144 | banner: 'http://placehold.it/{width}x{height}', | 144 | banner: 'http://placehold.it/{width}x{height}', |
145 | returns: { | 145 | returns: { |
146 | - title: '换货详情', | 146 | + title: '换货申请', |
147 | exchange: result.exchangeDetail | 147 | exchange: result.exchangeDetail |
148 | } | 148 | } |
149 | } | 149 | } |
@@ -630,7 +630,7 @@ const _setExchangeDetailData = (data) => { | @@ -630,7 +630,7 @@ const _setExchangeDetailData = (data) => { | ||
630 | } | 630 | } |
631 | 631 | ||
632 | break; | 632 | break; |
633 | - case 20: | 633 | + case 20: |
634 | 634 | ||
635 | if (data.deliveryTpyeName === '寄回换货') { | 635 | if (data.deliveryTpyeName === '寄回换货') { |
636 | Object.assign(list, { | 636 | Object.assign(list, { |
@@ -643,19 +643,22 @@ const _setExchangeDetailData = (data) => { | @@ -643,19 +643,22 @@ const _setExchangeDetailData = (data) => { | ||
643 | if (data.deliveryTpyeName === '寄回换货') { | 643 | if (data.deliveryTpyeName === '寄回换货') { |
644 | list.takeGoods = true; | 644 | list.takeGoods = true; |
645 | list.auditSuccess = true; | 645 | list.auditSuccess = true; |
646 | + list.view = `//www.yohobuy.com/me/order/detail?code=${data.orderCode}`; | ||
646 | } | 647 | } |
647 | break; | 648 | break; |
648 | case 50: | 649 | case 50: |
649 | Object.assign(list, { | 650 | Object.assign(list, { |
650 | send: true, | 651 | send: true, |
651 | doubt: true, | 652 | doubt: true, |
652 | - auditSuccess: true | 653 | + auditSuccess: true, |
654 | + view: `//www.yohobuy.com/me/order/detail?code=${data.orderCode}` | ||
653 | }); | 655 | }); |
654 | break; | 656 | break; |
655 | case 40: | 657 | case 40: |
656 | Object.assign(list, { | 658 | Object.assign(list, { |
657 | finish: true, | 659 | finish: true, |
658 | - auditSuccess: true | 660 | + auditSuccess: true, |
661 | + view: `//www.yohobuy.com/me/order/detail?code=${data.orderCode}` | ||
659 | }); | 662 | }); |
660 | break; | 663 | break; |
661 | case 91: | 664 | case 91: |
@@ -664,7 +667,7 @@ const _setExchangeDetailData = (data) => { | @@ -664,7 +667,7 @@ const _setExchangeDetailData = (data) => { | ||
664 | default: | 667 | default: |
665 | break; | 668 | break; |
666 | } | 669 | } |
667 | - | 670 | + console.log(list); |
668 | return list; | 671 | return list; |
669 | }; | 672 | }; |
670 | 673 |
@@ -30,7 +30,7 @@ | @@ -30,7 +30,7 @@ | ||
30 | <div class="way"> | 30 | <div class="way"> |
31 | 31 | ||
32 | {{#if takeGoods}} | 32 | {{#if takeGoods}} |
33 | - <p class="contact">我们会尽快将您的商品发出,请耐心等待,如有疑问,请联系<a href="http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409"><span class="iconfont"></span>在线客服</p></a> | 33 | + <p class="contact">我们会尽快将您的商品发出,请耐心等待,如有疑问,请联系<a href="http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409"><span class="iconfont"></span></a>在线客服</p> |
34 | {{/if}} | 34 | {{/if}} |
35 | 35 | ||
36 | {{#if reminder}} | 36 | {{#if reminder}} |
@@ -50,12 +50,12 @@ | @@ -50,12 +50,12 @@ | ||
50 | {{/if}} | 50 | {{/if}} |
51 | 51 | ||
52 | {{#if doubt}} | 52 | {{#if doubt}} |
53 | - <p class="contact">如有疑问,请联系<span class="iconfont"></span>在线客服</p> | 53 | + <p class="contact">如有疑问,请联系<a href="http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409"><span class="iconfont"></span></a>在线客服</p> |
54 | {{/if}} | 54 | {{/if}} |
55 | 55 | ||
56 | {{#if auditSuccess}} | 56 | {{#if auditSuccess}} |
57 | <div class="order"> | 57 | <div class="order"> |
58 | - <span class="check">查看</span> | 58 | + <a href="{{view}}" target="_blank"><span class="check">查看</span></a> |
59 | <span class="exchange-order">换货订单</span> | 59 | <span class="exchange-order">换货订单</span> |
60 | </div> | 60 | </div> |
61 | {{/if}} | 61 | {{/if}} |
@@ -75,11 +75,12 @@ | @@ -75,11 +75,12 @@ | ||
75 | 75 | ||
76 | <div class="edit-content{{#if expressNumber}} hide{{/if}}"{{# expressList}} data-{{id}}="{{name}}"{{/ expressList}}> | 76 | <div class="edit-content{{#if expressNumber}} hide{{/if}}"{{# expressList}} data-{{id}}="{{name}}"{{/ expressList}}> |
77 | <h4 class="third-title">填写物流</h4> | 77 | <h4 class="third-title">填写物流</h4> |
78 | - <p>请您在<span class="blue">七天内</span>将商品寄回并填写物流,逾期将自动取消申请</p> | 78 | + <p>请您在<span class="blue">7天内</span>将商品寄回并填写物流,逾期将自动取消申请</p> |
79 | <dl class="express-wrap"> | 79 | <dl class="express-wrap"> |
80 | <dd> | 80 | <dd> |
81 | 物流公司: | 81 | 物流公司: |
82 | <select class="express-company"> | 82 | <select class="express-company"> |
83 | + <option value="0">选择快递公司</option> | ||
83 | {{# expressList}} | 84 | {{# expressList}} |
84 | <option value="{{id}}">{{name}}</option> | 85 | <option value="{{id}}">{{name}}</option> |
85 | {{/ expressList}} | 86 | {{/ expressList}} |
@@ -87,7 +88,7 @@ | @@ -87,7 +88,7 @@ | ||
87 | </dd> | 88 | </dd> |
88 | <dd> | 89 | <dd> |
89 | 快递单号: | 90 | 快递单号: |
90 | - <input type="text" class="express-code" value="{{number}}"> | 91 | + <input type="text" class="express-code" placeholder="填写快递单号" value="{{number}}"> |
91 | </dd> | 92 | </dd> |
92 | <dd> | 93 | <dd> |
93 | <span class="submit-express btn">提交</span> | 94 | <span class="submit-express btn">提交</span> |
@@ -147,10 +148,10 @@ | @@ -147,10 +148,10 @@ | ||
147 | <p>×{{num}}</p> | 148 | <p>×{{num}}</p> |
148 | </div> | 149 | </div> |
149 | </div> | 150 | </div> |
150 | - <div class="common-column special-border"> | 151 | + <div class="common special-border"> |
151 | <p class="reason">{{reasonName}}</p> | 152 | <p class="reason">{{reasonName}}</p> |
152 | </div> | 153 | </div> |
153 | - <div class="common-column special-border operation"> | 154 | + <div class="common special-border operation"> |
154 | <p class="subtext">color: {{newColorName}}<br>size: {{newSizeName}}</p> | 155 | <p class="subtext">color: {{newColorName}}<br>size: {{newSizeName}}</p> |
155 | </div> | 156 | </div> |
156 | </div> | 157 | </div> |
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | const _ = require('lodash'); | 3 | const _ = require('lodash'); |
4 | const cookie = global.yoho.cookie; | 4 | const cookie = global.yoho.cookie; |
5 | const cache = global.yoho.cache; | 5 | const cache = global.yoho.cache; |
6 | -const loginService = require('../../apps/passport/models/login-service'); | 6 | +const LoginService = require('../../apps/passport/models/login-service'); |
7 | 7 | ||
8 | /** | 8 | /** |
9 | * 已登录用户的信息,包括记住我功能。 | 9 | * 已登录用户的信息,包括记住我功能。 |
@@ -41,13 +41,13 @@ module.exports = () => { | @@ -41,13 +41,13 @@ module.exports = () => { | ||
41 | let password = data.password; | 41 | let password = data.password; |
42 | let area = data.area; | 42 | let area = data.area; |
43 | 43 | ||
44 | - return loginService.signin(area, account, password); | 44 | + return LoginService.signin(area, account, password); |
45 | }).then(result => { | 45 | }).then(result => { |
46 | if (result.code !== 200) { | 46 | if (result.code !== 200) { |
47 | return Promise.reject(new Error(result.message)); | 47 | return Promise.reject(new Error(result.message)); |
48 | } | 48 | } |
49 | 49 | ||
50 | - return loginService.syncUserSession(result.data.uid, req, res); | 50 | + return LoginService.syncUserSession(result.data.uid, req, res); |
51 | }).then(()=> { | 51 | }).then(()=> { |
52 | return res.redirect(req.getUrl()); | 52 | return res.redirect(req.getUrl()); |
53 | }).catch(next); | 53 | }).catch(next); |
@@ -160,13 +160,13 @@ | @@ -160,13 +160,13 @@ | ||
160 | } | 160 | } |
161 | 161 | ||
162 | .info { | 162 | .info { |
163 | - width: 507px; | 163 | + width: 380px; |
164 | text-align: left; | 164 | text-align: left; |
165 | } | 165 | } |
166 | 166 | ||
167 | .st, | 167 | .st, |
168 | .op { | 168 | .op { |
169 | - width: 200px; | 169 | + width: 260px; |
170 | } | 170 | } |
171 | } | 171 | } |
172 | } | 172 | } |
@@ -175,14 +175,16 @@ | @@ -175,14 +175,16 @@ | ||
175 | display: table; | 175 | display: table; |
176 | font-size: 14px; | 176 | font-size: 14px; |
177 | border: 1px solid #f1f1f1; | 177 | border: 1px solid #f1f1f1; |
178 | + width: 100%; | ||
178 | } | 179 | } |
179 | 180 | ||
180 | .goods-info { | 181 | .goods-info { |
181 | - width: 516px; | 182 | + width: 400px; |
182 | display: inline-block; | 183 | display: inline-block; |
183 | box-sizing: border-box; | 184 | box-sizing: border-box; |
184 | border-top: none; | 185 | border-top: none; |
185 | font-weight: normal; | 186 | font-weight: normal; |
187 | + margin: 0; | ||
186 | 188 | ||
187 | img { | 189 | img { |
188 | width: 70px; | 190 | width: 70px; |
@@ -193,7 +195,7 @@ | @@ -193,7 +195,7 @@ | ||
193 | } | 195 | } |
194 | 196 | ||
195 | .info { | 197 | .info { |
196 | - width: 400px; | 198 | + width: 290px; |
197 | padding: 30px 8px 0 0; | 199 | padding: 30px 8px 0 0; |
198 | float: right; | 200 | float: right; |
199 | box-sizing: border-box; | 201 | box-sizing: border-box; |
@@ -207,8 +209,8 @@ | @@ -207,8 +209,8 @@ | ||
207 | } | 209 | } |
208 | } | 210 | } |
209 | 211 | ||
210 | - .common-column { | ||
211 | - width: 208px; | 212 | + .common { |
213 | + width: 270px; | ||
212 | display: table-cell; | 214 | display: table-cell; |
213 | text-align: center; | 215 | text-align: center; |
214 | vertical-align: top; | 216 | vertical-align: top; |
-
Please register or login to post a comment