return bank and trans, and work time
Showing
7 changed files
with
20 additions
and
12 deletions
@@ -236,9 +236,9 @@ | @@ -236,9 +236,9 @@ | ||
236 | <td>收款银行:</td> | 236 | <td>收款银行:</td> |
237 | <td> | 237 | <td> |
238 | <select name="bank_id" id="bank-id"> | 238 | <select name="bank_id" id="bank-id"> |
239 | - <option value="0" data="N">请选择</option> | ||
240 | - <option value="1" data="Y">招商银行</option> | ||
241 | - <option value="2" data="N">中国银行</option> | 239 | + {{# returnBankMode}} |
240 | + <option value="{{id}}" data="{{needSubbranch}}">{{title}}</option> | ||
241 | + {{/ returnBankMode}} | ||
242 | </select> | 242 | </select> |
243 | <span class="hide" id="bank-name-span"> | 243 | <span class="hide" id="bank-name-span"> |
244 | <input type="text" name="bank-name" id="bank-name" > 例:江苏省南京市奥体支行 | 244 | <input type="text" name="bank-name" id="bank-name" > 例:江苏省南京市奥体支行 |
@@ -28,7 +28,7 @@ | @@ -28,7 +28,7 @@ | ||
28 | {{/if}} | 28 | {{/if}} |
29 | <div class="detail-container"> | 29 | <div class="detail-container"> |
30 | {{# express}} | 30 | {{# express}} |
31 | - <h2>请填写寄回快递单号,以便我们查询</h2> | 31 | + <h2>{{noticeTitle}}</h2> |
32 | <div class="courier-code{{#unless id}} in-edit{{/unless}}"> | 32 | <div class="courier-code{{#unless id}} in-edit{{/unless}}"> |
33 | {{#with detail}} | 33 | {{#with detail}} |
34 | <ul style="display: none;"> | 34 | <ul style="display: none;"> |
@@ -4,5 +4,5 @@ | @@ -4,5 +4,5 @@ | ||
4 | {{^}} | 4 | {{^}} |
5 | <img class="help-us-icon" src="//cdn.yoho.cn/yohobuy/assets/img/home/help-us.svg"> | 5 | <img class="help-us-icon" src="//cdn.yoho.cn/yohobuy/assets/img/home/help-us.svg"> |
6 | {{/if}} | 6 | {{/if}} |
7 | - 客服电话:400-889-9646 08:00-22:30(周一至周日) | 7 | + 客服电话:400-889-9646 09:00-22:30(周一至周日) |
8 | </p> | 8 | </p> |
@@ -38,7 +38,6 @@ var pageType = 0, // 0-换货 1-退货 | @@ -38,7 +38,6 @@ var pageType = 0, // 0-换货 1-退货 | ||
38 | colorSize = {}, | 38 | colorSize = {}, |
39 | timer, | 39 | timer, |
40 | needSubbranch = ''; | 40 | needSubbranch = ''; |
41 | - | ||
42 | require('../../plugin/jquery.qupload'); | 41 | require('../../plugin/jquery.qupload'); |
43 | 42 | ||
44 | if (defaultPhone) { | 43 | if (defaultPhone) { |
@@ -89,6 +88,7 @@ function setBackInput(type) { | @@ -89,6 +88,7 @@ function setBackInput(type) { | ||
89 | $payYoho.hide(); | 88 | $payYoho.hide(); |
90 | if (type === 2) { | 89 | if (type === 2) { |
91 | $payBank.show(); | 90 | $payBank.show(); |
91 | + switchSubBank(); | ||
92 | $payAli.hide(); | 92 | $payAli.hide(); |
93 | $payYoho.hide(); | 93 | $payYoho.hide(); |
94 | } else if (type === 3) { | 94 | } else if (type === 3) { |
@@ -140,16 +140,21 @@ $reasons.change(function() { | @@ -140,16 +140,21 @@ $reasons.change(function() { | ||
140 | } | 140 | } |
141 | }); | 141 | }); |
142 | 142 | ||
143 | -//选择退款银行 | 143 | +// 选择退款银行 |
144 | $bankId.change(function() { | 144 | $bankId.change(function() { |
145 | - needSubbranch = $(this).children('option:selected').attr('data'); | 145 | + switchSubBank(); |
146 | +}); | ||
147 | + | ||
148 | +// 切换支行银行信息 | ||
149 | +function switchSubBank() { | ||
150 | + needSubbranch = $bankId.children('option:selected').attr('data'); | ||
146 | if (needSubbranch === 'Y') { | 151 | if (needSubbranch === 'Y') { |
147 | $bankNameSpan.removeClass('hide'); | 152 | $bankNameSpan.removeClass('hide'); |
148 | } else { | 153 | } else { |
149 | $bankNameSpan.addClass('hide'); | 154 | $bankNameSpan.addClass('hide'); |
150 | } | 155 | } |
151 | $refundInfo.find('input[name="bank-name"]').val(''); | 156 | $refundInfo.find('input[name="bank-name"]').val(''); |
152 | -}); | 157 | +} |
153 | 158 | ||
154 | $checkBox.change(function() { | 159 | $checkBox.change(function() { |
155 | var $par = $(this).parent().parent(); | 160 | var $par = $(this).parent().parent(); |
@@ -328,6 +333,8 @@ function packRefundInfo() { | @@ -328,6 +333,8 @@ function packRefundInfo() { | ||
328 | 333 | ||
329 | if (res.payment.return_amount_mode === 2) { | 334 | if (res.payment.return_amount_mode === 2) { |
330 | res.payment.bank_id = $bankId.val() * 1; | 335 | res.payment.bank_id = $bankId.val() * 1; |
336 | + res.payment.head_bank_name = $bankId.children('option:selected').text();; | ||
337 | + | ||
331 | if (!verifyTip && res.payment.bank_id === 0) { | 338 | if (!verifyTip && res.payment.bank_id === 0) { |
332 | verifyTip = '请选择银行'; | 339 | verifyTip = '请选择银行'; |
333 | } | 340 | } |
@@ -358,7 +365,6 @@ function packRefundInfo() { | @@ -358,7 +365,6 @@ function packRefundInfo() { | ||
358 | } | 365 | } |
359 | 366 | ||
360 | } | 367 | } |
361 | - console.log(res); return false; | ||
362 | return res; | 368 | return res; |
363 | } | 369 | } |
364 | 370 |
@@ -155,6 +155,7 @@ class ReturnsModel | @@ -155,6 +155,7 @@ class ReturnsModel | ||
155 | $detail['express']['id'] = isset($res['notice']['express_id']) ? $res['notice']['express_id'] : ''; | 155 | $detail['express']['id'] = isset($res['notice']['express_id']) ? $res['notice']['express_id'] : ''; |
156 | $detail['express']['company'] = isset($res['notice']['express_company']) ? $res['notice']['express_company'] : ''; | 156 | $detail['express']['company'] = isset($res['notice']['express_company']) ? $res['notice']['express_company'] : ''; |
157 | $detail['express']['number'] = isset($res['notice']['express_number']) ? $res['notice']['express_number'] : ''; | 157 | $detail['express']['number'] = isset($res['notice']['express_number']) ? $res['notice']['express_number'] : ''; |
158 | + $detail['express']['noticeTitle'] = isset($res['notice']['title']) ? $res['notice']['title'] : ''; | ||
158 | } | 159 | } |
159 | foreach ($res['statusList'] as $key => $value) { | 160 | foreach ($res['statusList'] as $key => $value) { |
160 | $detail['statusList'][$key]['act'] = ($value['act'] == 'Y') ? true : false; | 161 | $detail['statusList'][$key]['act'] = ($value['act'] == 'Y') ? true : false; |
@@ -357,6 +358,7 @@ class ReturnsModel | @@ -357,6 +358,7 @@ class ReturnsModel | ||
357 | } | 358 | } |
358 | } | 359 | } |
359 | $result['returnAmountMode'] = $data['data']['return_amount_mode']; | 360 | $result['returnAmountMode'] = $data['data']['return_amount_mode']; |
361 | + $result['returnBankMode'] = isset($data['data']['return_bank_mode']) ? $data['data']['return_bank_mode'] : ''; | ||
360 | } | 362 | } |
361 | 363 | ||
362 | //面包屑-左侧导航 | 364 | //面包屑-左侧导航 |
@@ -21,8 +21,8 @@ define('USE_INTER_FACE_SHUNT', false);//分流开关 | @@ -21,8 +21,8 @@ define('USE_INTER_FACE_SHUNT', false);//分流开关 | ||
21 | //define('API_OLD', 'http://test2.open.yohobuy.com/'); | 21 | //define('API_OLD', 'http://test2.open.yohobuy.com/'); |
22 | 22 | ||
23 | #dev环境 | 23 | #dev环境 |
24 | - define('API_URL', 'http://api-test2.yohops.com:9999'); | ||
25 | - define('SERVICE_URL', 'http://service-test2.yohops.com:9999/'); | 24 | + define('API_URL', 'http://api-test3.yohops.com:9999'); |
25 | + define('SERVICE_URL', 'http://service-test3.yohops.com:9999/'); | ||
26 | define('YOHOBUY_URL', 'http://www.yohobuy.com/'); | 26 | define('YOHOBUY_URL', 'http://www.yohobuy.com/'); |
27 | define('SERVICE_NOTIFY', 'http://test2.open.yohobuy.com/'); | 27 | define('SERVICE_NOTIFY', 'http://test2.open.yohobuy.com/'); |
28 | define('API_OLD', 'http://devservice.yoho.cn:58077/'); | 28 | define('API_OLD', 'http://devservice.yoho.cn:58077/'); |
-
Please register or login to post a comment